/* ===== Aviary Tech Solutions — theme tokens ===== */
:root{
  --navy: #002546;
  --navy-2: #013a63;
  --cyan: #00b5c0;
  --cyan-light: #4fd8e0;

  --bg: #ffffff;
  --bg-alt: #f4f8fa;
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.85);
  --border: #e3ebee;

  --text: #0d2436;
  --text-muted: #4d6472;
  --text-soft: #7c919c;

  --hero-bg-1: #002546;
  --hero-bg-2: #013a63;
  --hero-text: #ffffff;
  --hero-text-muted: #b9d3dc;

  --shadow: 0 10px 30px -12px rgba(0,37,70,0.15);
  --shadow-lg: 0 20px 50px -16px rgba(0,37,70,0.22);

  --radius: 16px;
  --radius-sm: 10px;
}

html[data-theme="dark"]{
  --bg: #071b2a;
  --bg-alt: #0a2233;
  --bg-card: #0e2c40;
  --bg-header: rgba(7,27,42,0.8);
  --border: #16394f;

  --text: #eaf4f8;
  --text-muted: #a9c3cf;
  --text-soft: #7d99a6;

  --hero-bg-1: #03101c;
  --hero-bg-2: #062338;
  --hero-text: #ffffff;
  --hero-text-muted: #9fc1cd;

  --shadow: 0 10px 30px -12px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 50px -16px rgba(0,0,0,0.6);
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  zoom: 1.2;
}
body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{ font-family: 'Space Grotesk', 'Inter', sans-serif; margin: 0; color: var(--text); }
p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
address{ font-style: normal; }

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent{ color: var(--cyan); }
.accent-gradient{
  background: linear-gradient(90deg, var(--cyan-light), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-grid{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 40%);
  mask-image: linear-gradient(to bottom, black, transparent 40%);
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(90deg, var(--cyan), var(--navy-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover{ box-shadow: var(--shadow-lg); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{ border-color: var(--cyan); color: var(--cyan); }
/* Hero background is always a dark navy gradient regardless of site theme,
   so its ghost button needs light text/border in both light and dark mode. */
.hero .btn-ghost{ color: var(--hero-text); border-color: rgba(255,255,255,0.25); }
.btn-block{ width: 100%; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-logo{ height: 58px; width: auto; object-fit: contain; }
.nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a:not(.btn){
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a:not(.btn):hover{ color: var(--cyan); }
.nav-cta{ margin-left: 4px; }

.theme-toggle{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.theme-toggle .theme-icon{ font-size: 1rem; position: absolute; transition: opacity .2s ease, transform .2s ease; }
.theme-icon-sun{ opacity: 1; }
.theme-icon-moon{ opacity: 0; transform: scale(.6); }
html[data-theme="dark"] .theme-icon-sun{ opacity: 0; transform: scale(.6); }
html[data-theme="dark"] .theme-icon-moon{ opacity: 1; transform: scale(1); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--hero-bg-1), var(--hero-bg-2));
  padding: 110px 0 90px;
}
.hero-inner{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-light);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1{
  color: var(--hero-text);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-lead{
  color: var(--hero-text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 0 auto 36px;
  max-width: 620px;
}
.hero-actions{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats{
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat{ display: flex; flex-direction: column; align-items: center; }
.stat-num{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan-light);
}
.stat-label{ color: var(--hero-text-muted); font-size: 0.85rem; margin-top: 4px; }

.hero-glow{
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,181,192,0.35), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

/* ===== Clients strip ===== */
.clients{
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 40px 0;
}
.clients-inner{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.clients-label{
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
}
.clients-list{
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.client-logo{
  display: flex;
  align-items: center;
  height: 84px;
  padding: 10px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.client-logo img{
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.client-logo-badge{ padding: 0; overflow: hidden; }
.client-logo-badge img{ height: 84px; }
.client-logo-text{
  color: #4d6472;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Section shared ===== */
section{ padding: 96px 0; }
.section-eyebrow{
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h2{
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-lead{
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.6;
}
.services > .container > h2,
.services > .container > .section-lead{ text-align: center; margin: 0 auto; }
.services > .container > .section-eyebrow{ text-align: center; }
.services .section-lead{ margin-bottom: 56px; }

/* ===== Services grid ===== */
.services{ background: var(--bg-alt); }
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cyan);
}
.service-photo{
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-photo img{ transform: scale(1.06); }
.service-body{ padding: 28px 28px 32px; }
.service-icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--bg-card);
  margin: -54px 0 18px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.service-card h3{ font-size: 1.15rem; margin-bottom: 14px; }
.service-card ul{ display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.service-card li{
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}
.service-card li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.service-desc{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; }
.service-link{
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-2);
  margin-right: 14px;
  transition: color .2s ease;
}
html[data-theme="dark"] .service-link{ color: var(--cyan-light); }
.service-link:hover{ color: var(--cyan); }

/* ===== About / Values ===== */
.about-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text{
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 8px;
}
.values-list{ display: flex; flex-direction: column; gap: 20px; }
.value-item{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.value-item h3{ font-size: 1.05rem; margin-bottom: 6px; }
.value-item p{ color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* ===== Team ===== */
.team{ background: var(--bg-alt); text-align: center; }
.team-heading{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.team-heading .section-eyebrow,
.team-heading h2{ text-align: left; margin-bottom: 0; }
.team-heading .section-eyebrow{ margin-bottom: 12px; }
.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}
.team-card{
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  padding-top: 52px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(115deg, var(--navy-2), var(--cyan));
}
.team-grid .team-card:nth-child(4n+2)::before{ background: linear-gradient(115deg, var(--cyan), var(--navy-2)); }
.team-grid .team-card:nth-child(4n+3)::before{ background: linear-gradient(65deg, var(--navy), var(--cyan)); }
.team-grid .team-card:nth-child(4n+4)::before{ background: linear-gradient(65deg, var(--cyan-light), var(--navy-2)); }
.team-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.team-avatar{
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--navy-2));
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px var(--bg-card);
}
.team-card h3{ font-size: 1.1rem; margin-bottom: 2px; }
.team-role{
  display: inline-block;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.team-bio{ color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; }
.team-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.team-tags span{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.team-tags span::before{
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
html[data-theme="dark"] .team-tags span{ background: rgba(0,181,192,0.1); }

/* ===== CTA band ===== */
.cta{
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  padding: 72px 0;
}
.cta-inner{ text-align: center; max-width: 620px; }
.cta h2{ color: #fff; margin-bottom: 12px; }
.cta p{ color: var(--hero-text-muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ===== Contact ===== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-details{ margin: 32px 0; display: flex; flex-direction: column; gap: 24px; }
.contact-item{ display: flex; flex-direction: column; gap: 6px; }
.contact-label{ font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); }
.contact-item a{ color: var(--cyan); font-weight: 600; font-size: 1.05rem; }
.contact-item address{ color: var(--text-muted); line-height: 1.7; }
.map-embed{
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 280px;
  background: var(--bg-alt);
}

.contact-form{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea{
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  transition: border-color .2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--cyan);
}

/* ===== Footer ===== */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy{ color: var(--text-soft); font-size: 0.88rem; }

/* ===== Reveal animation ===== */
[data-reveal]{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px){
  .nav{ display: none; }
  .nav-toggle{ display: flex; }
  .services-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .hero{ padding: 90px 0 64px; }
  .hero-stats{ gap: 28px; }
  section{ padding: 64px 0; }

  .site-header.nav-open .nav{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 16px;
  }
  .site-header.nav-open .nav-cta{
    margin-left: 0;
    margin-top: 8px;
  }
}
