/* ============================================================
   Discovery Agency — shared.css
   Built by Full Percent | https://fullpercent.io
   ============================================================ */

:root {
  --navy: #1E1B4B;
  --navy-2: #2B2775;
  --navy-3: #3730A3;
  --gold: #22D3EE;
  --gold-dark: #0E7490;
  --ink: #1E293B;
  --muted: #64748B;
  --bg: #F7F9FC;
  --bg-alt: #EEF3F9;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(30, 27, 75, 0.08);
  --shadow-md: 0 14px 48px rgba(30, 27, 75, 0.18);
}

/* ---------- Global resets ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }

/* ---------- Keyframes (defined here ONLY) ---------- */
@keyframes floatCard   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scrollChips { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes revealUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Layout primitives ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 4rem 2rem; }
.section-alt { background: var(--bg); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 0.75rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--navy); line-height: 1.2; }
.section-head p { color: var(--muted); margin-top: 0.85rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0.8rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand-name span { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-size: 0.92rem; font-weight: 600;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover { color: var(--navy-2); transform: translateX(2px); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 0.55rem 1.1rem;
  border-radius: 8px; box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.nav-cta:hover { background: var(--navy-3); transform: translateY(-1px) !important; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline, .btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; min-height: 48px; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #67E8F9; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); padding: 2.25rem 2rem 0; }
.hero-grid {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 54% 1fr; gap: 3rem; align-items: center;
  padding-bottom: 3.25rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; color: var(--navy);
  letter-spacing: -0.02em; margin: 0.9rem 0 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--gold-dark); }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 520px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
.hero-reassurance { margin-top: 0.9rem; font-size: 0.86rem; color: var(--muted); }
.hero-image { position: relative; }
.hero-image img {
  border-radius: 16px; width: 100%; display: block;
  object-fit: contain; object-position: center;
  border: 5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 16px 56px rgba(30,27,75,0.22);
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.floating-card {
  position: absolute; bottom: -18px; left: -22px;
  background: #fff; border-radius: 12px; padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  animation: floatCard 5s ease-in-out infinite;
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.floating-card svg { width: 26px; height: 26px; flex-shrink: 0; }

/* ---------- Specialty marquee ---------- */
.marquee { overflow: hidden; background: var(--navy); padding: 0.9rem 0; }
.marquee-track {
  display: flex; gap: 3rem;
  animation: scrollChips 26s linear infinite;
  white-space: nowrap; align-items: center; width: max-content;
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.marquee-track:hover { animation-play-state: paused; }
.chip {
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1160px; margin: 0 auto; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { color: var(--navy); font-size: 1.12rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Photo frame ---------- */
.scene-card { position: relative; border-radius: 20px; overflow: visible; }
.scene-card img {
  border-radius: 14px;
  border: 5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 14px 48px rgba(30,27,75,0.20), 0 0 0 1px rgba(30,27,75,0.06);
  display: block; width: 100%;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.scene-card:hover img {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10), 0 24px 64px rgba(30,27,75,0.26), 0 0 0 1px rgba(30,27,75,0.08);
}

/* ---------- About / split ---------- */
.split { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.split p { color: var(--muted); margin-bottom: 0.9rem; }
.check-list { list-style: none; margin-top: 1.2rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.75rem; color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1160px; margin: 0 auto; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; margin-bottom: 1rem;
}
.step h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.45rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Banner CTA ---------- */
.banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: 18px; max-width: 1160px; margin: 0 auto;
  padding: 2.8rem 2.5rem; text-align: center; color: #fff;
}
.banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.7rem; }
.banner p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- Contact ---------- */
.contact-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.6rem; }
.contact-detail { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-detail-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
}
.contact-detail-icon svg { width: 21px; height: 21px; }
.contact-detail h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-detail p, .contact-detail a { color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.contact-detail a:hover { color: var(--navy-2); text-decoration: underline; }

/* ---------- Form ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.form-card h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-field { margin-bottom: 0.9rem; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy-2);
}
.form-field textarea { resize: vertical; min-height: 100px; }

.consent-group { margin: 1.1rem 0 0; }
.consent-label { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; }
.consent-checkbox { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--navy); }
.consent-text { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.consent-text a { color: var(--navy-2); text-decoration: none; font-weight: 600; }
.consent-text a:hover { text-decoration: underline; }

.btn-submit {
  width: 100%; margin-top: 1.4rem;
  background: var(--navy); color: #fff; border: 0; border-radius: 10px;
  padding: 0.95rem 1.5rem; min-height: 50px; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn-submit:hover { background: var(--navy-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-submit[disabled] { opacity: 0.65; cursor: wait; transform: none; }

.footer-sms-disclosure {
  background: #1e293b; padding: 1.5rem; margin-top: 2rem;
  border-radius: 6px; font-size: 0.85rem; color: #94a3b8;
  text-align: center; border: 1px solid #334155;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: translateY(0); will-change: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 3.2rem 2rem 0; margin-top: 4rem; }
.footer-grid {
  max-width: 1160px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem;
}
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 0.04em; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.55rem; }
.footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; display: inline-block; transition: color 0.2s ease, transform 0.2s ease; }
.footer a:hover { color: var(--gold); transform: translateX(4px); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: var(--gold); }
.footer p { font-size: 0.88rem; line-height: 1.65; }
.footer-legal {
  max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.4rem 0 0.4rem; font-size: 0.8rem; color: rgba(255,255,255,0.55); text-align: center;
}
.footer-legal p { font-size: 0.8rem; margin-bottom: 0.4rem; }

/* ---------- Subpage hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); padding: 2.25rem 2rem 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--navy); line-height: 1.15; margin-top: 0.8rem; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0.8rem auto 0; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.legal-body h2 { color: var(--navy); font-size: 1.35rem; margin: 2.2rem 0 0.8rem; }
.legal-body h3 { color: var(--navy); font-size: 1.08rem; margin: 1.6rem 0 0.6rem; }
.legal-body p, .legal-body li { color: #475569; font-size: 0.96rem; margin-bottom: 0.8rem; }
.legal-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-updated { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* ---------- Thank-you ---------- */
.ty-wrap { max-width: 640px; margin: 0 auto; padding: 5rem 2rem; text-align: center; }
.ty-icon { width: 84px; height: 84px; margin: 0 auto 1.6rem; }
.ty-wrap h1 { color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.9rem; }
.ty-wrap p { color: var(--muted); margin-bottom: 0.7rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .floating-quote, .floating-card { display: none !important; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .scene-card { overflow: hidden; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.6rem 2rem 1rem; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; width: 100%; }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 1.5rem 1.25rem 0; }
  .banner { padding: 2.2rem 1.5rem; }
}
