/* ═══════════════════════════════════════════════════════
   SEO Agency Qatar — Core Stylesheet
   Stack: Pure PHP / HTML / CSS
   ═══════════════════════════════════════════════════════ */

/* ─── 1. Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; }

/* ─── 2. Design Tokens ─── */
:root {
  --bg-deep:          #0B0C10;
  --bg-card:          #15171D;
  --bg-card-alt:      #1B1E26;
  --border:           rgba(255,255,255,0.08);
  --border-strong:    rgba(255,255,255,0.14);
  --border-gold:      rgba(201,169,106,0.28);
  --accent-maroon:    #8A1538;
  --accent-maroon-dk: #6f1030;
  --accent-gold:      #C9A96A;
  --accent-gold-dim:  rgba(201,169,106,0.18);
  --text-primary:     #F5F3EF;
  --text-muted:       #9A9591;
  --text-dim:         #635F5B;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --container: 1220px;
  --px:        clamp(1.25rem, 5vw, 3.5rem);
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --radius:    2px;
}

/* ─── 3. Base ─── */
body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 4. Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.018em;
}
h3 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p { max-width: 68ch; line-height: 1.75; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
}

/* ─── 5. Layout ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--px);
}
section { padding: var(--section-y) 0; }
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 56ch;
}

/* ─── 6. Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1.5rem 0;
  transition: background 0.28s ease, padding 0.28s ease, border-color 0.28s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(11,12,16,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent-gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-cta {
  background: var(--accent-maroon) !important;
  color: var(--text-primary) !important;
  padding: 0.65rem 1.5rem;
  transition: background 0.18s ease !important;
}
.nav-cta:hover { background: var(--accent-maroon-dk) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.site-nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── 7. Hero sections ─── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-full { min-height: 100svh; padding-bottom: 8vh; }
.hero-page { min-height: 62vh; padding-bottom: 5rem; padding-top: 7rem; }

/* Hero background image — <img> element for LCP + alt text */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}

/* Gradient overlays — composited over the photo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.overlay-home {
  background: linear-gradient(
    to top,
    var(--bg-deep)              0%,
    var(--bg-deep)              13%,
    rgba(11,12,16,0.88)         36%,
    rgba(11,12,16,0.46)         62%,
    rgba(11,12,16,0.10)        100%
  );
}
.overlay-page {
  background: linear-gradient(
    to top,
    var(--bg-deep)              0%,
    var(--bg-deep)              10%,
    rgba(11,12,16,0.82)         38%,
    rgba(11,12,16,0.52)         70%,
    rgba(11,12,16,0.28)        100%
  );
}

/* Hero content sits above the image + overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--px);
}
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.hero .lead {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Mashrabiya lattice — upper-right corner decoration */
.hero-lattice {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.22;
}

/* Bottom maroon baseline */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(
    to right,
    var(--accent-maroon)         0%,
    rgba(138,21,56,0.45)        45%,
    transparent                 80%
  );
}

/* ─── 8. Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0.95rem 2.3rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  border-radius: var(--radius);
}
.btn-maroon {
  background: var(--accent-maroon);
  color: var(--text-primary);
}
.btn-maroon:hover {
  background: var(--accent-maroon-dk);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
}
.btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* ─── 9. Service Cards ─── */
.services-section { background: var(--bg-card); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1px;
  background: var(--border);
}
.service-card {
  background: var(--bg-deep);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--bg-card-alt); }
.service-icon {
  width: 36px;
  height: 36px;
  color: var(--accent-gold);
  flex-shrink: 0;
}
.service-card h3 {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  margin-bottom: 0;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  max-width: none;
}
.service-link {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 0.9rem; }
.service-card-top { border-top: 2px solid var(--accent-maroon); }

/* ─── 10. Why-us (section with BG image) ─── */
.whyus-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(11,12,16,0.80), rgba(11,12,16,0.80)),
    url('/Images/Portfoliolocation section.jpg') center / cover no-repeat;
  background-attachment: fixed; /* parallax */
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
}
.diff-item { border-left: 2px solid var(--accent-maroon); padding-left: 1.5rem; }
.diff-item h3 { margin-bottom: 0.65rem; }
.diff-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: none;
}

/* ─── 11. CTA Band ─── */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-y) 0;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='%23C9A96A' stroke-width='0.65'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.055;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 660px; margin: 0 auto 1.25rem; }
.cta-band .rule-gold {
  width: 40px;
  height: 2px;
  background: var(--accent-maroon);
  margin: 0 auto 1.75rem;
}
.cta-band p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ─── 11b. Testimonials ─── */
.testimonials-section {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover {
  border-color: var(--accent-maroon);
  transform: translateY(-3px);
}
.testimonial-stars {
  color: var(--accent-gold);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.1rem;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}
.testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.testimonial-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ─── 12. FAQ ─── */
.faq-section { background: var(--bg-deep); }
.faq-list {
  border-top: 1px solid var(--border);
  max-width: 840px;
}
details.faq-item { border-bottom: 1px solid var(--border); }
summary.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
summary.faq-q::-webkit-details-marker { display: none; }
summary.faq-q .faq-icon {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-gold);
  transition: transform 0.22s ease;
  line-height: 1;
  width: 20px;
  text-align: center;
}
details[open] summary.faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.82;
  max-width: 680px;
}

/* ─── 13. Team ─── */
.team-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(11,12,16,0.82), rgba(11,12,16,0.82)),
    url('/Images/Services-team section.jpg') center / cover no-repeat;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.team-card {
  background: rgba(21,23,29,0.85);
  border: 1px solid var(--border-strong);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
}
.team-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  display: block;
}
.team-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.team-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.82;
  max-width: none;
}

/* ─── 14. Why Qatar (image section on About) ─── */
.why-qatar-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(11,12,16,0.76), rgba(11,12,16,0.76)),
    url('/Images/About-why Qatar section.jpg') center 30% / cover no-repeat;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 680px;
}
.why-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.why-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  flex-shrink: 0;
  padding-top: 0.15rem;
  min-width: 2rem;
}
.why-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why-item p { font-size: 0.875rem; color: var(--text-muted); max-width: none; line-height: 1.8; }

/* ─── 15. Contact form ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.18s ease;
  -webkit-appearance: none;
  border-radius: var(--radius);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-gold);
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.65; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp-field { display: none !important; }
.form-submit-row { margin-top: 0.5rem; }
.form-note { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.75rem; }
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--radius);
}
.alert-success {
  background: rgba(34,100,60,0.18);
  border: 1px solid rgba(40,160,80,0.22);
  color: #5be09b;
}
.alert-error {
  background: rgba(138,21,56,0.12);
  border: 1px solid rgba(138,21,56,0.28);
  color: #e07070;
}
.contact-info { padding-top: 0.5rem; }
.contact-info h2 { margin-bottom: 1.25rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 42ch; }
.contact-detail { margin-bottom: 1.75rem; }
.contact-detail .c-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-detail a,
.contact-detail span {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.18s;
}
.contact-detail a:hover { color: var(--accent-gold); }
.contact-rule {
  width: 40px;
  height: 2px;
  background: var(--accent-maroon);
  margin: 2.5rem 0;
}

/* ─── 16. Decorative dividers ─── */
.rule-maroon {
  width: 44px;
  height: 2px;
  background: var(--accent-maroon);
  margin-bottom: 2rem;
}
.rule-maroon.center { margin-left: auto; margin-right: auto; }

/* ─── 17. About story section ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.story-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 56ch;
}
.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.stat-block { border-left: 2px solid var(--accent-maroon); padding-left: 1.25rem; }
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

/* ─── 18. Footer ─── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--accent-gold); }
.footer-tagline {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 1.5rem;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  display: block;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.75rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-legal a:hover { color: var(--text-muted); }

/* ─── 19. Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--accent-gold); }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }

/* ─── 20. Responsive ─── */
@media (max-width: 900px) {
  .story-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 3.5rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 62px;
    background: var(--bg-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
  }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { font-size: 1.05rem; color: var(--text-primary); }
  .nav-cta { display: block; padding: 0.9rem 2rem; }

  .hero-lattice { width: 200px; height: 200px; opacity: 0.16; }
  .form-row { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .whyus-section,
  .team-section { background-attachment: scroll; }
}

/* ─── Nav dropdowns ──────────────────────────────────────────────────────── */
.has-dropdown { position: relative; }

.drop-caret {
  font-size: 0.6em;
  opacity: 0.55;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.2em;
  transition: transform 0.15s;
}
.has-dropdown.drop-open .drop-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11,12,16,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  min-width: 320px;
  list-style: none;
  display: none;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  gap: 0;
  z-index: 400;
  white-space: nowrap;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown.drop-open .nav-dropdown {
  display: grid;
}

.nav-dropdown li { break-inside: avoid; }

.nav-dropdown a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.76rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.12s, background 0.12s;
}
.nav-dropdown a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* Mobile: stack dropdown inside the full-screen nav overlay */
@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    display: none;
    grid-template-columns: 1fr;
    white-space: normal;
  }
  .has-dropdown.drop-open .nav-dropdown { display: grid; }
  .has-dropdown:hover .nav-dropdown { display: none; } /* disable CSS hover on mobile */
  .nav-dropdown a {
    font-size: 0.9rem;
    color: rgba(245,243,239,0.6);
    padding: 0.35rem 0;
    text-align: center;
    border: none;
  }
  .nav-dropdown a:hover { background: transparent; color: var(--text-primary); }
}
