/* ============================================
   A KAPLAN CPA — Modern Luxury Stylesheet
   ============================================ */
:root {
  --navy: #0B1A2C; --navy-2: #122340; --navy-3: #1A2D4A;
  --cream: #F7F4EE; --cream-2: #EDE7DA;
  --gold: #C9A961; --gold-bright: #D9B872;
  --white: #FFFFFF; --ink: #0E1726; --ink-2: #2A3447;
  --muted: #6B7280; --line: rgba(201, 169, 97, 0.25);
  --shadow-sm: 0 2px 8px rgba(11, 26, 44, 0.06);
  --shadow-md: 0 12px 40px rgba(11, 26, 44, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 26, 44, 0.15);
  --container: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.65; color: var(--ink);
  background: var(--white); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.18; color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 500; }
p { color: var(--ink-2); }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px; display: inline-block;
}
.eyebrow-dark { color: var(--ink-2); }
.divider-gold { width: 48px; height: 2px; background: var(--gold); margin: 22px 0 28px; }
.text-center { text-align: center; }
.text-center .divider-gold { margin-left: auto; margin-right: auto; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid #ECE7DC;
}
.nav {
  max-width: var(--container); margin: 0 auto; padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: 'Playfair Display', serif; font-weight: 500; font-size: 1.3rem;
  letter-spacing: 0.06em; color: var(--navy); text-transform: uppercase;
}
.brand .dot { color: var(--gold); }
.brand small {
  display: block; font-family: 'Inter', sans-serif; font-size: 0.62rem;
  font-weight: 400; letter-spacing: 0.24em; color: var(--muted);
  margin-top: 2px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.92rem; color: var(--ink-2); font-weight: 400; position: relative; padding: 4px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--navy); }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--gold);
}
.nav-cta {
  font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); border: 1px solid var(--navy); padding: 10px 22px;
  border-radius: 2px; transition: all 0.25s ease;
}
.nav-cta:hover { background: var(--navy); color: var(--cream); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--navy); }

/* BUTTONS */
.btn {
  display: inline-block; padding: 16px 36px; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.7,.3,1); border-radius: 2px; font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(201,169,97,0.25); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover { background: var(--navy-2); }

/* HERO */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 0%, rgba(201,169,97,0.10), transparent 50%),
              radial-gradient(ellipse 60% 80% at 0% 100%, rgba(201,169,97,0.06), transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 120px 32px 140px; position: relative; z-index: 1; }
.hero h1 { color: var(--cream); margin-bottom: 28px; max-width: 880px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { max-width: 620px; font-size: 1.12rem; line-height: 1.7; color: rgba(247,244,238,0.78); margin-bottom: 44px; }
.hero .eyebrow { color: var(--gold); }
.hero .divider-gold { background: var(--gold); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-compact .hero-inner { padding: 96px 32px 104px; }
.hero-compact h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* SECTIONS */
section { padding: 110px 0; }
.section-bg-cream { background: var(--cream); }
.section-bg-dark { background: var(--navy); color: var(--cream); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: var(--cream); }
.section-bg-dark p { color: rgba(247,244,238,0.78); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 18px; }

/* PILLARS */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.pillar {
  padding: 44px 36px; background: var(--white); border: 1px solid #ECE7DC;
  border-top: 3px solid var(--gold); transition: all 0.3s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar .num { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.16em; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 14px; }
.pillar p { font-size: 0.97rem; line-height: 1.7; }

/* TWO-COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col .col-img {
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  position: relative; overflow: hidden;
}
.two-col .col-img::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,169,97,0.18), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(201,169,97,0.10), transparent 50%);
}
.monogram {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 14rem; color: rgba(201,169,97,0.15); font-weight: 400;
}

/* TESTIMONIAL WIDGET */
.testimonial-section { background: var(--cream); padding: 110px 0; position: relative; }
.testimonial-section.on-dark { background: var(--navy); }
.testimonial-section.on-dark .testimonial-quote { color: var(--cream); }
.testimonial-section.on-dark .testimonial-author { color: rgba(247,244,238,0.7); }
.testimonial-section.on-dark .testimonial-role { color: var(--gold); }
.testimonial-section.on-dark .dot-btn { background: rgba(255,255,255,0.25); }
.testimonial-section.on-dark .dot-btn.active { background: var(--gold); }
.testimonial-wrap { max-width: 880px; margin: 0 auto; text-align: center; position: relative; min-height: 320px; }
.quote-mark { font-family: 'Playfair Display', serif; font-size: 5rem; color: var(--gold); line-height: 1; margin-bottom: 12px; height: 60px; }
.testimonial-slide {
  opacity: 0; position: absolute; inset: 0; transition: opacity 0.6s ease;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px 20px 0;
}
.testimonial-slide.active { opacity: 1; position: relative; }
.testimonial-quote {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.6; color: var(--ink);
  font-weight: 400; max-width: 760px; margin-bottom: 32px;
}
.testimonial-author { font-size: 0.95rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.testimonial-role { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.dot-btn { width: 8px; height: 8px; border-radius: 50%; background: rgba(11,26,44,0.18); border: none; cursor: pointer; transition: all 0.3s ease; padding: 0; }
.dot-btn:hover { transform: scale(1.3); }
.dot-btn.active { background: var(--gold); width: 28px; border-radius: 4px; }

/* Google badge */
.google-badge-wrap { text-align: center; }
.google-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  padding: 14px 26px; background: var(--white); border: 1px solid #ECE7DC;
  border-radius: 999px; font-size: 0.9rem; color: var(--ink-2);
  box-shadow: 0 2px 12px rgba(11,26,44,0.04);
}
.testimonial-section.on-dark .google-badge {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--cream); box-shadow: none;
}
.google-badge .g-logo { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.google-badge .g-logo .g-b { color: #4285F4; }
.google-badge .g-logo .g-r { color: #EA4335; }
.google-badge .g-logo .g-y { color: #FBBC05; }
.google-badge .g-logo .g-g { color: #34A853; }
.google-badge .stars { color: #FBBC05; letter-spacing: 1px; font-size: 0.95rem; }
.google-badge .rating-num { font-weight: 600; color: var(--ink); }
.testimonial-section.on-dark .google-badge .rating-num { color: var(--cream); }
.google-badge .sep { width: 1px; height: 16px; background: rgba(0,0,0,0.12); }
.testimonial-section.on-dark .google-badge .sep { background: rgba(255,255,255,0.2); }

/* PACKAGES */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pkg {
  background: var(--white); border: 1px solid #ECE7DC; padding: 48px 38px;
  display: flex; flex-direction: column; position: relative; transition: all 0.3s ease;
}
.pkg:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pkg.featured { background: var(--navy); color: var(--cream); border-color: var(--navy); transform: scale(1.02); }
.pkg.featured h3, .pkg.featured .pkg-price { color: var(--cream); }
.pkg.featured .pkg-feat { color: rgba(247,244,238,0.85); border-color: rgba(255,255,255,0.08); }
.pkg.featured .pkg-feat::before { color: var(--gold); }
.pkg.featured .pkg-ideal { color: rgba(247,244,238,0.65); }
.pkg.featured .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 6px 18px; border-radius: 2px;
}
.pkg-tier { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pkg h3 { font-size: 1.55rem; margin-bottom: 8px; }
.pkg-price { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); margin: 14px 0 6px; }
.pkg-price small { font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.pkg-ideal { font-size: 0.9rem; font-style: italic; color: var(--muted); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #ECE7DC; }
.pkg-features { list-style: none; margin-bottom: 32px; flex-grow: 1; }
.pkg-feat {
  font-size: 0.93rem; line-height: 1.5; padding: 14px 0; border-bottom: 1px solid #F0EBE0;
  position: relative; padding-left: 28px; color: var(--ink-2);
}
.pkg-feat:last-child { border-bottom: none; }
.pkg-feat::before { content: '◆'; position: absolute; left: 0; top: 14px; color: var(--gold); font-size: 0.7rem; }
.pkg-feat strong { color: inherit; font-weight: 600; display: block; margin-bottom: 2px; }

/* BIO PHOTO */
.bio { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.bio-photo {
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  position: relative; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(11,26,44,0.22);
}
.bio-photo::before {
  content: 'AK'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 7rem; color: var(--gold);
  font-weight: 300; letter-spacing: 0.05em; z-index: 0;
}
.bio-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 70%, rgba(11,26,44,0.35) 100%),
              radial-gradient(circle at 70% 20%, rgba(201,169,97,0.08), transparent 60%);
}
.bio-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top; z-index: 1; display: block;
}
.bio-content h2 { margin-bottom: 6px; }
.bio-title { font-size: 0.95rem; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 32px; }
.bio-content p { margin-bottom: 18px; font-size: 1.02rem; line-height: 1.78; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.cred { text-align: center; padding: 18px 10px; background: var(--cream); border: 1px solid var(--line); }
.cred-acro { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); font-weight: 500; }
.cred-full { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* VALUES */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 60px; }
.value { text-align: center; padding: 36px 24px; }
.value-num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--gold); margin-bottom: 14px; font-weight: 400; }
.value h4 { margin-bottom: 10px; font-family: 'Playfair Display', serif; font-weight: 500; }
.value p { font-size: 0.92rem; }
.section-bg-dark .value h4 { color: var(--cream); }

/* PROCESS */
.process-list { max-width: 760px; margin: 0 auto; }
.proc-step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid #ECE7DC; align-items: start; }
.proc-step:last-child { border-bottom: none; }
.proc-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); line-height: 1; }
.proc-content h4 { margin-bottom: 8px; font-size: 1.2rem; }
.proc-content p { font-size: 0.97rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info-block { padding: 12px 0; }
.contact-info-block h4 { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.contact-info-block p { font-size: 1.08rem; color: var(--ink); }
.contact-info-block a:hover { color: var(--gold); }
.contact-info-divider { height: 1px; background: var(--line); margin: 28px 0; }
.form-card { background: var(--white); padding: 48px; border: 1px solid #ECE7DC; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; font-family: 'Inter', sans-serif; font-size: 0.98rem;
  background: var(--cream); border: 1px solid transparent; border-radius: 2px;
  color: var(--ink); transition: all 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* CTA */
.cta-strip { background: var(--navy); color: var(--cream); padding: 96px 0; text-align: center; }
.cta-strip h2 { color: var(--cream); margin-bottom: 16px; }
.cta-strip p { color: rgba(247,244,238,0.75); max-width: 580px; margin: 0 auto 40px; font-size: 1.05rem; }

/* FOOTER */
.site-footer { background: var(--ink); color: rgba(247,244,238,0.6); padding: 72px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--cream); letter-spacing: 0.06em; margin-bottom: 12px; text-transform: uppercase; }
.footer-brand .dot { color: var(--gold); }
.footer-tagline { color: rgba(247,244,238,0.5); font-size: 0.88rem; line-height: 1.7; max-width: 320px; margin-bottom: 18px; }
.footer h5 { color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--gold); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: rgba(247,244,238,0.4); }

.split-headline { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); font-weight: 400; }

@media (max-width: 1024px) {
  .pillars, .packages-grid { grid-template-columns: 1fr; }
  .pkg.featured { transform: none; }
  .two-col, .bio, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section { padding: 80px 0; }
  .hero-inner { padding: 80px 32px; }
}
@media (max-width: 720px) {
  .container, .nav, .hero-inner { padding-left: 22px; padding-right: 22px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 24px; border-bottom: 1px solid #ECE7DC; gap: 16px;
  }
  .values-grid, .credentials { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
