/* ============================================================
   Kyle S. Scott Financial Planning — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Mulish:wght@300;400;500;600&display=swap');

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --navy:        #0c1d38;
  --navy-mid:    #163060;
  --navy-light:  #1e3f7a;
  --gold:        #b5892a;
  --gold-light:  #d4a63c;
  --gold-pale:   #f0e0b0;
  --cream:       #f8f5f0;
  --cream-mid:   #eee9df;
  --cream-dark:  #e2dbd0;
  --text:        #1e1e1e;
  --text-mid:    #404040;
  --text-light:  #6a6a6a;
  --white:       #ffffff;
  --shadow-sm:   0 2px 12px rgba(12,29,56,.07);
  --shadow-md:   0 8px 32px rgba(12,29,56,.12);
  --shadow-lg:   0 16px 56px rgba(12,29,56,.18);
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Mulish', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  padding: .4rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  font-size: .78rem;
  letter-spacing: .05em;
}
.topbar a {
  color: var(--gold-pale);
  transition: color .2s;
  display: flex; align-items: center; gap: .4rem;
}
.topbar a:hover { color: var(--white); }
.topbar-icon { opacity: .7; font-style: normal; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 200;
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  display: flex; flex-direction: column;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.logo-name {
  font-size: 1.3rem; font-weight: 600;
  color: var(--navy); line-height: 1.1;
  letter-spacing: -.01em;
}
.logo-sub {
  font-size: .65rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-family: 'Mulish', sans-serif;
  margin-top: .15rem;
}
.primary-nav { display: flex; gap: .15rem; align-items: center; }
.primary-nav a {
  font-size: .77rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy-mid); padding: .5rem .9rem;
  border-radius: 2px;
  transition: background .2s, color .2s;
  position: relative;
}
.primary-nav a::after {
  content: ''; position: absolute; bottom: 4px; left: .9rem; right: .9rem;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transition: transform .25s; transform-origin: left;
}
.primary-nav a:hover { color: var(--navy); }
.primary-nav a:hover::after,
.primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem !important;
  margin-left: .5rem;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold) !important; }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: 2px solid var(--navy);
  color: var(--navy); cursor: pointer; padding: .3rem .55rem;
  border-radius: 3px; font-size: 1.1rem; line-height: 1;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 7rem 2rem 6rem;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 110%, rgba(181,137,42,.22) 0%, transparent 65%),
    linear-gradient(175deg, #0c1d38 0%, #163060 100%);
}
.hero-grid {
  position: absolute; inset: 0; overflow: hidden;
  opacity: .055;
  background-image:
    repeating-linear-gradient(0deg,   var(--gold) 0, var(--gold) 1px, transparent 0, transparent 64px),
    repeating-linear-gradient(90deg,  var(--gold) 0, var(--gold) 1px, transparent 0, transparent 64px);
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(181,137,42,.12) 0%, transparent 70%);
}
.hero-orb-1 { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-orb-2 { width: 400px; height: 400px; bottom: -180px; left: -100px; }

.hero-content { position: relative; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(181,137,42,.15);
  border: 1px solid rgba(181,137,42,.35);
  color: var(--gold-light);
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 50px;
  margin-bottom: 1.6rem; font-weight: 600;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-light); display: block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(1.4); }
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 300; color: var(--white);
  line-height: 1.08; margin-bottom: 1.6rem;
  letter-spacing: -.02em;
}
.hero-title strong { font-weight: 600; }
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  color: rgba(255,255,255,.65); font-size: 1.05rem;
  max-width: 580px; margin: 0 auto 2.8rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; border-radius: 2px; font-weight: 600;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .9rem 2.2rem; transition: all .25s; cursor: pointer; border: none; font-family: 'Mulish', sans-serif; }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(181,137,42,.35); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

/* ── SECTION COMMONS ───────────────────────────────────────── */
.section { padding: 5.5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-intro { max-width: 600px; margin-bottom: 3.5rem; }
.eyebrow {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px; background: var(--gold);
}
h2.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600; color: var(--navy);
  line-height: 1.12; letter-spacing: -.02em;
}
.section-desc { color: var(--text-light); font-size: .95rem; margin-top: .75rem; }

/* ── PILLARS ───────────────────────────────────────────────── */
.section-pillars { background: var(--white); }
.pillars-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: var(--cream-dark); border: 1px solid var(--cream-dark);
  margin-top: 3.5rem;
}
.pillar {
  background: var(--cream); padding: 2.8rem 2.2rem;
  border-top: 3px solid transparent;
  transition: border-color .3s, transform .3s, background .3s;
  position: relative;
}
.pillar:hover { border-color: var(--gold); transform: translateY(-5px); background: var(--white); }
.pillar-num {
  font-family: 'Cormorant Garamond', serif; font-size: 4rem;
  color: var(--navy); opacity: .08; line-height: 1; margin-bottom: .4rem;
  font-weight: 300;
}
.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 600; color: var(--navy); margin-bottom: .8rem;
}
.pillar p { font-size: .9rem; color: var(--text-light); line-height: 1.8; }

/* ── ABOUT STRIP ───────────────────────────────────────────── */
.section-about { background: var(--cream); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about-body p { color: var(--text-mid); font-size: .95rem; margin-bottom: 1.1rem; }
.cfp-badge {
  display: inline-flex; align-items: center; gap: .8rem;
  background: var(--navy); color: var(--white);
  padding: .75rem 1.5rem; border-radius: 2px; margin-top: 1.2rem;
  font-size: .8rem; letter-spacing: .06em; font-weight: 600;
}
.cfp-badge .badge-label { color: var(--gold); font-size: 1.1rem; font-family: 'Cormorant Garamond', serif; }
.sidebar-cards { display: flex; flex-direction: column; gap: 1.4rem; }
.sidebar-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.sidebar-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.sidebar-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem;
}
.sidebar-card p { font-size: .87rem; color: var(--text-light); }

/* ── SERVICES ──────────────────────────────────────────────── */
.section-services { background: var(--navy); position: relative; overflow: hidden; }
.section-services::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-services .eyebrow { color: var(--gold-light); }
.section-services .eyebrow::before { background: var(--gold-light); }
.section-services h2.section-title { color: var(--white); }
.section-services .section-desc { color: rgba(255,255,255,.5); }
.services-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 3.5rem;
}
.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(181,137,42,.2);
  padding: 1.8rem 1.5rem;
  transition: all .25s;
}
.service-card:hover {
  background: rgba(181,137,42,.1);
  border-color: rgba(181,137,42,.6);
  transform: translateY(-4px);
}
.svc-icon { font-size: 1.6rem; margin-bottom: .9rem; display: block; }
.service-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: .5rem;
}
.service-card p { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.75; }

/* ── PROCESS ───────────────────────────────────────────────── */
.section-process { background: var(--white); }
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 3.5rem; position: relative; }
.process-steps::before {
  content: ''; position: absolute; top: 2.5rem; left: 12%; right: 12%;
  height: 1px; background: var(--cream-dark); z-index: 0;
}
.process-step { text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.step-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--cream-dark);
}
.process-step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.process-step p { font-size: .83rem; color: var(--text-light); }

/* ── FEES TABLE ────────────────────────────────────────────── */
.section-fees { background: var(--cream); }
.fees-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.fees-body p { color: var(--text-mid); font-size: .93rem; margin-bottom: 1rem; }
.fees-note {
  background: var(--white); border-left: 4px solid var(--gold-light);
  padding: 1.2rem 1.5rem; margin-top: 1.5rem; font-size: .85rem; color: var(--text-light);
}
.fees-note strong { color: var(--navy); }
.table-wrap { overflow-x: auto; }
table.fee-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fee-table thead th {
  background: var(--navy); color: var(--white);
  padding: .85rem 1.2rem; text-align: left;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.fee-table thead th:first-child { border-radius: 0; }
.fee-table tbody tr { border-bottom: 1px solid var(--cream-dark); transition: background .15s; }
.fee-table tbody tr:hover { background: var(--white); }
.fee-table td { padding: .8rem 1.2rem; color: var(--text-mid); }
.fee-table td:last-child { color: var(--gold); font-weight: 700; font-size: .98rem; text-align: right; }

/* ── FIDUCIARY BANNER ──────────────────────────────────────── */
.fiduciary-strip {
  background: linear-gradient(135deg, var(--gold) 0%, #9e7820 100%);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.fiduciary-strip::before {
  content: '"'; position: absolute; left: -20px; top: -40px;
  font-family: 'Cormorant Garamond', serif; font-size: 18rem;
  color: rgba(255,255,255,.07); line-height: 1; pointer-events: none;
}
.fiduciary-strip blockquote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-style: italic; font-weight: 300;
  color: var(--white); max-width: 860px; margin: 0 auto;
  line-height: 1.5; position: relative;
}

/* ── CONTACT ───────────────────────────────────────────────── */
.section-contact { background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; }
.contact-intro p { color: var(--text-mid); font-size: .93rem; margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; }
.ci-icon {
  width: 38px; height: 38px; border-radius: 2px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}
.ci-text { font-size: .9rem; }
.ci-text strong { display: block; color: var(--navy); font-weight: 600; }
.ci-text span { color: var(--text-light); }
.ci-text a { color: var(--gold); }
.ci-text a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .45rem; font-weight: 600;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--cream);
  border: 1.5px solid var(--cream-dark);
  border-radius: 2px; padding: .75rem 1rem;
  font-family: 'Mulish', sans-serif; font-size: .9rem; color: var(--text);
  transition: border-color .2s, background .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: .5rem; }
.btn-navy {
  background: var(--navy); color: var(--white);
  border: none; cursor: pointer;
}
.btn-navy:hover { background: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  background: var(--navy); padding: 4rem 2rem 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb { font-size: .75rem; color: rgba(255,255,255,.45); margin-bottom: 1rem; letter-spacing: .04em; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 600;
  color: var(--white); line-height: 1.1; letter-spacing: -.02em;
}
.page-hero-sub { color: rgba(255,255,255,.6); font-size: 1rem; margin-top: .8rem; font-weight: 300; }

/* ── INNER PAGE CONTENT ────────────────────────────────────── */
.page-body { max-width: 860px; margin: 4rem auto; padding: 0 2rem; }
.page-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600; color: var(--navy);
  margin: 2.5rem 0 .75rem; border-bottom: 2px solid var(--cream-dark); padding-bottom: .5rem;
}
.page-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--navy-mid); margin: 1.5rem 0 .5rem; }
.page-body p { color: var(--text-mid); margin-bottom: 1rem; font-size: .95rem; }
.page-body ul { margin: .75rem 0 1rem 0; }
.page-body ul li {
  color: var(--text-mid); font-size: .93rem; padding: .3rem 0 .3rem 1.4rem;
  position: relative;
}
.page-body ul li::before {
  content: ''; position: absolute; left: 0; top: .9rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.page-body em { color: var(--text-light); font-style: italic; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: #07111f; color: rgba(255,255,255,.4); font-size: .8rem; line-height: 1.85; }
.footer-main {
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem;
}
.footer-brand .logo-name { color: rgba(255,255,255,.8); font-size: 1.15rem; }
.footer-brand .logo-sub { color: var(--gold); }
.footer-brand p { margin-top: 1rem; font-size: .8rem; }
.footer-col h5 {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 1.25rem 2rem; font-size: .75rem;
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-disc {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.5rem 2rem;
  font-size: .72rem; color: rgba(255,255,255,.25);
  max-width: 1200px; margin: 0 auto;
  line-height: 1.75;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .process-steps { grid-template-columns: repeat(2,1fr); gap: 2rem; }
  .process-steps::before { display: none; }
  .fees-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--cream-dark);
    padding: 1rem; box-shadow: var(--shadow-md);
  }
  .primary-nav.open a { padding: .65rem 1rem; border-radius: 3px; }
  .nav-cta { margin-left: 0 !important; }
}
@media (max-width: 600px) {
  .hero { padding: 5rem 1.5rem 4.5rem; }
  .section { padding: 3.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { justify-content: center; flex-wrap: wrap; gap: .75rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}
