/* Astrado Marketing Group  -  Main Stylesheet */
:root {
  --navy: #1a2332;
  --navy-mid: #22304a;
  --navy-light: #2d3f5a;
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,0.18);
  --gold-rule: rgba(201,168,76,0.4);
  --white: #ffffff;
  --off-white: #f7f6f3;
  --cream: #f7f4ee;
  --muted: #1a2332;
  --text-dark: #1a2332;
  --text-body: #1a2332;
  --text-muted: #1a2332;
  --gold-border: rgba(201,168,76,0.2);
  --text-dim: rgba(255,255,255,0.75);
  --bg: #ffffff;
  --fg: #1a2332;
  --card-bg: #f7f6f3;
  --border: rgba(26,35,50,0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* =====================
   NAV
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(26,35,50,0.08);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, env(safe-area-inset-left, 0px));
  height: 68px;
  gap: 32px;
}

.site-logo img { height: 44px; width: auto; display: block; }

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 5px; background: none; border: none; outline: none; padding: 0; margin: 0; appearance: none; -webkit-appearance: none; box-shadow: none; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--navy); letter-spacing: normal; line-height: inherit; transition: color 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--gold); }
.nav-dropdown-toggle svg { transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(26,35,50,0.32), 0 4px 12px rgba(26,35,50,0.18);
  padding: 10px;
  min-width: 260px;
  list-style: none;
  margin: 0;
  z-index: 200;
}

/* Arrow pointer connecting button to panel */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.22);
  border-left: 1px solid rgba(201,168,76,0.22);
  transform: translateX(-50%) rotate(45deg);
}

/* Gold rule across the top of the panel */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

/* Keep menu visible briefly after mouse leaves so cursor can reach it */
.nav-dropdown-menu {
  transition: opacity 0.15s;
}
.nav-dropdown:not(:hover):not(:focus-within):not(.open) .nav-dropdown-menu {
  pointer-events: none;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.nav-dropdown-menu li a::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-dropdown-menu li a:hover {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}

.nav-dropdown-menu li a:hover::before {
  opacity: 1;
  transform: scale(1.4);
}

.nav-cta {
  background: var(--navy);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--gold); color: var(--navy); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #111c2a;
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }

.footer-tagline {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 28ch;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--gold); }

.footer-col-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.footer-services-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-services-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-services-nav a:hover { color: #ffffff; }

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #ffffff; }

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* =====================
   SHARED SECTION STYLES
   ===================== */
.band { padding: 80px 0; }
.band-navy { background: var(--navy); }
.band-cream { background: var(--cream); }
.band-white { background: #fff; }

.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}

.section-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 16px;
  text-wrap: balance;
  line-height: 1.2;
}

.section-heading-light { color: #fff; }

.section-sub {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 56px;
}

.section-sub-light { color: rgba(255,255,255,0.85); }

.band-navy .section-sub,
.band-navy .section-heading { color: rgba(255,255,255,0.88); }
.band-navy .section-heading { color: #fff; }

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #b8922e; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 9999px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  /* CTA button always visible on mobile - primary action */
  .nav-cta { display: block; font-size: 0.8rem; padding: 8px 16px; white-space: nowrap; }

  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(26,35,50,0.1);
    gap: 4px;
    align-items: flex-start;
  }

  /* nav-cta stays in header on mobile, not duplicated in open menu panel */

  /* Dropdown: on mobile nav, pin to left edge of trigger so it doesn't overflow off-screen */
  .nav-mobile-open .nav-dropdown-menu {
    left: 0;
    right: auto;
    transform: none;
    min-width: 240px;
    max-width: calc(100vw - 32px);
  }
  .nav-mobile-open .nav-dropdown-menu::before {
    left: 24px;
    transform: rotate(45deg);
  }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { padding-bottom: 24px; border-bottom: 1px solid rgba(201,168,76,0.15); }
  .footer-tagline { max-width: none; }
  .footer-copy { padding-top: 20px; }
  .band { padding: 56px 0; }
}
