/* ============================================================
   Jupiter Website Design — Main Stylesheet
   Brand: Navy #1a2e4a | Gold #c9a84c | White #ffffff
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:      #1a2e4a;
  --navy-dark: #0f1e32;
  --navy-mid:  #243a5e;
  --gold:      #c9a84c;
  --gold-light:#e0c472;
  --white:     #ffffff;
  --off-white: #f7f6f2;
  --gray-light:#eef0f4;
  --gray:      #8a94a6;
  --text:      #2c3e50;
  --radius:    4px;
  --shadow:    0 4px 24px rgba(26,46,74,.12);
  --shadow-lg: 0 12px 48px rgba(26,46,74,.18);
  --transition:all .25s ease;
  --max-w:     1200px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--off-white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-intro { font-size: 1.1rem; color: var(--gray); max-width: 640px; }
.section-intro--center { margin: 0 auto; }
.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  margin: 16px 0 32px;
}
.divider--center { margin: 16px auto 32px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-text span { display: block; font-size: .7rem; font-weight: 400; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.85);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(255,255,255,.06); }
.nav-link .arrow { font-size: .6rem; margin-left: 3px; opacity: .6; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  padding-top: 12px; /* invisible travel zone so cursor can move down without losing hover */
  z-index: 200;
  min-width: 220px;
}
.dropdown-menu-inner {
  background: var(--navy-dark);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}
.dropdown.is-open .dropdown-menu { display: block; }
/* Extend hit area over the gap with a pseudo-element bridge */
.dropdown.is-open > .nav-link::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 0; right: 0;
  height: 12px;
}
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: .87rem; color: rgba(255,255,255,.8);
  font-weight: 400;
  transition: var(--transition);
}
.dropdown-menu a:hover { color: var(--gold); background: rgba(255,255,255,.05); padding-left: 26px; }

/* CTA in nav */
.nav-cta {
  margin-left: 12px;
  padding: 9px 20px;
  background: var(--gold);
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--navy-dark) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phone in header */
.header-phone {
  font-size: .82rem; color: var(--gold); font-weight: 700;
  display: flex; align-items: center; gap: 6px; margin-left: 16px;
}
.header-phone::before { content: "📞"; font-size: .9rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 90px; /* top: header(70) + breathing room; bottom: generous space */
  min-height: 620px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1e3d6e 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.78); margin-bottom: 36px;
  max-width: 520px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700; color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 4px;
}

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 36px 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: var(--transition);
  transform-origin: left;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--navy); }
.service-card h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: .92rem; color: var(--gray); line-height: 1.65; margin: 0; }
.service-card .card-link {
  display: inline-block; margin-top: 18px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
.service-card .card-link:hover { letter-spacing: .12em; }

/* ── Why Us / Features ──────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 32px; margin-top: 48px;
}
.feature { text-align: center; }
.feature-num {
  font-family: var(--font-head);
  font-size: 3rem; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 8px;
}
.feature h4 { color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--gray); margin: 0; }

/* ── Testimonial ────────────────────────────────────────────── */
.testimonial-block {
  background: var(--navy-dark);
  border-radius: 12px; padding: 48px;
  position: relative; overflow: hidden;
}
.testimonial-block::before {
  content: '"';
  position: absolute; top: -20px; left: 24px;
  font-family: var(--font-head);
  font-size: 12rem; line-height: 1; color: rgba(201,168,76,.1);
  pointer-events: none;
}
.testimonial-text {
  font-size: 1.2rem; color: rgba(255,255,255,.88); font-style: italic;
  line-height: 1.8; margin-bottom: 24px; position: relative;
}
.testimonial-author { font-weight: 700; color: var(--gold); font-size: .9rem; letter-spacing: .08em; }
.testimonial-company { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: var(--gold);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy-dark); margin-bottom: 12px; }
.cta-band p  { color: var(--navy); opacity: .8; margin-bottom: 28px; font-size: 1.05rem; }

/* ── Contact Form ───────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.contact-info h3 { color: var(--navy); margin-bottom: 24px; }
.contact-detail {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.contact-icon {
  width: 40px; height: 40px; background: var(--off-white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; color: var(--navy);
}
.contact-detail strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
.contact-detail a, .contact-detail span { color: var(--navy); font-size: .95rem; }

form { background: var(--white); border-radius: 8px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 16px;
  font-family: var(--font-body); font-size: .95rem;
  border: 1.5px solid var(--gray-light); border-radius: var(--radius);
  background: var(--off-white); color: var(--text);
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--gold);
  background: var(--white); box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
textarea { resize: vertical; min-height: 130px; }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 130px 0 70px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.7); margin-top: 16px; font-size: 1.1rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.breadcrumb {
  display: flex; justify-content: center; gap: 8px;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: .1em;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── Clients logos ──────────────────────────────────────────── */
.clients-bar {
  padding: 40px 0;
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}
.clients-bar p {
  text-align: center; font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 24px;
}
.clients-logos {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 32px 48px;
}
.clients-logos span {
  font-family: var(--font-head); font-size: 1.05rem;
  color: var(--navy); opacity: .5; font-weight: 600;
  transition: var(--transition);
}
.clients-logos span:hover { opacity: 1; }

/* ── Process Steps ──────────────────────────────────────────── */
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 0; counter-reset: steps; margin-top: 48px;
}
.process-step {
  padding: 32px; text-align: center; position: relative;
  counter-increment: steps;
}
.process-step:not(:last-child)::after {
  content: '→';
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); z-index: 1;
}
.step-num {
  width: 52px; height: 52px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--gold);
  margin: 0 auto 16px;
}
.process-step h4 { color: var(--navy); margin-bottom: 8px; }
.process-step p  { font-size: .88rem; color: var(--gray); margin: 0; }

/* ── City LP specific ───────────────────────────────────────── */
.city-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.city-intro-text h2 { margin-bottom: 16px; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-col ul a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Utility ────────────────────────────────────────────────── */
.gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── 404 ─────────────────────────────────────────────────────── */
.not-found {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  text-align: center;
}
.not-found h1 {
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--gold); margin-bottom: 0; line-height: 1;
}
.not-found h2 { color: var(--white); margin: 12px 0 20px; }
.not-found p  { color: rgba(255,255,255,.6); margin-bottom: 32px; }

/* ── Scroll animation utility ───────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .city-intro { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-menu { display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--navy-dark); padding: 16px 0; gap: 0;
    box-shadow: var(--shadow-lg); }
  .nav-menu.open { display: flex; }
  .dropdown-menu { position: static; display: none; padding-top: 0; box-shadow: none; border: none; background: rgba(0,0,0,.2); min-width: auto; }
  .dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-menu-inner { border: none; box-shadow: none; background: transparent; padding: 4px 0; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .hero { min-height: auto; padding: 120px 0 70px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .process-step:not(:last-child)::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonial-block { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
}

/* ── Mobile Sticky CTA Bar ──────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
  background: var(--navy-dark);
  border-top: 1px solid rgba(201,168,76,.3);
  padding: 10px 16px;
  gap: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.mobile-bar-btn {
  flex: 1; text-align: center; padding: 12px 8px;
  border-radius: var(--radius); font-weight: 700; font-size: .88rem;
  letter-spacing: .06em; text-transform: uppercase; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.mobile-bar-call {
  background: var(--white); color: var(--navy);
  border: 2px solid var(--white);
}
.mobile-bar-call:hover { background: var(--off-white); color: var(--navy); }
.mobile-bar-quote {
  background: var(--gold); color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.mobile-bar-quote:hover { background: var(--gold-light); color: var(--navy-dark); }
@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 68px; }
}
/* ── Contact page address — hidden by default, toggle to show ── */
/* To reveal: remove display:none or change to display:flex      */
.contact-address-block { display: none; }
