/* ===========================
   CPA Portfolio – style.css
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables (High-Contrast Emerald Theme) ── */
:root {
  /* Emerald Palette */
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-300: #6ee7b7;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50:  #ecfdf5;
  
  --gold:        #c9a84c;
  --gold-light:  #e6c97b;

  /* Text & Background Colors (Light Mode) */
  --bg-color:    #fafaf7; /* Clean cream to make text pop */
  --bg-surface:  #ffffff; /* Pure white for cards */
  --ink:         #0d1f1a; /* Very dark slate/green for max readability */
  --ink-soft:    #1e3a2f; /* Dark for readable links/subheaders */
  --muted:       #4b6b5e; /* Highly legible grey-green for paragraphs */
  --divider:     rgba(6,78,59,0.12);

  --shadow-sm:   0 2px 8px rgba(6,78,59,0.06);
  --shadow-md:   0 8px 32px rgba(6,78,59,0.1);
  --shadow-lg:   0 24px 64px rgba(6,78,59,0.15);
  
  --radius:      12px;
  --transition:  0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Dark Theme Overrides ── */
[data-theme="dark"] {
  --bg-color:    #05100c; /* Deep charcoal with a hint of emerald */
  --bg-surface:  #081c15; /* Slightly lighter for cards */
  --ink:         #f8fafc; /* Pure bright white for headings */
  --ink-soft:    #e2e8f0; /* Soft white for links */
  --muted:       #94a3b8; /* Crisp light grey for paragraphs */
  --divider:     rgba(167, 243, 208, 0.1); /* Soft emerald glow */
  
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.5);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg:   0 24px 64px rgba(0,0,0,0.8);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-color);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--emerald-600); border-radius: 3px; }

::selection { background: var(--emerald-300); color: var(--emerald-900); }

/* ── Utility ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 0.75rem;
}
[data-theme="dark"] .section-label { color: var(--emerald-400); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 520px; line-height: 1.75; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--divider);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: 0.03em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--emerald-600); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--emerald-700);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { background: var(--emerald-600) !important; box-shadow: 0 4px 20px rgba(6,78,59,0.3); }
.nav-cta::after { display: none !important; }

/* Theme Toggle Button */
.theme-toggle {
  background: none; border: none; cursor: pointer; color: var(--ink); padding: 0.5rem;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: background 0.3s ease; margin-left: 1rem;
}
.theme-toggle:hover { background: var(--emerald-100); }
[data-theme="dark"] .theme-toggle:hover { background: var(--emerald-900); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* ── Hero ── */
#hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--emerald-900); }
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(16,185,129,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(201,168,76,0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--emerald-900) 0%, #031c14 100%);
}
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 8rem 0 5rem; }

.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: var(--emerald-200); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 2rem; animation: fadeInDown 0.8s ease 0.2s both; }
.hero-heading { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 300; color: #fff; line-height: 1.08; margin-bottom: 1.5rem; animation: fadeInUp 0.9s ease 0.4s both; }
.hero-heading strong { font-weight: 700; color: #fff; display: block; }
.hero-heading em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.8; max-width: 460px; margin-bottom: 2.5rem; animation: fadeInUp 0.9s ease 0.6s both; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.8s both; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--emerald-600); color: #fff; padding: 0.9rem 2rem; border-radius: 50px; font-size: 0.9rem; font-weight: 700; border: none; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); }
.btn-primary:hover { background: var(--emerald-500); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,0.3); }
.btn-ghost { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; cursor: pointer; border: none; background: none; padding: 0; transition: color var(--transition); }
.btn-ghost:hover { color: var(--emerald-300); }
.btn-ghost svg { transition: transform 0.3s ease; }
.btn-ghost:hover svg { transform: translateX(4px); }

.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.15); animation: fadeInUp 0.9s ease 1s both; }
.hero-stat .num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.hero-stat .label { font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.25rem; }

.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeInRight 1s ease 0.5s both; perspective: 1000px; }
.hero-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); backdrop-filter: blur(20px); border-radius: 24px; padding: 2.5rem; width: 100%; max-width: 380px; position: relative; overflow: hidden; transition: transform 0.1s ease; transform-style: preserve-3d; }
.hero-card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 30%, rgba(16,185,129,0.3) 50%, transparent 70%); animation: rotateSlow 12s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.hero-card-inner { position: relative; z-index: 1; transform: translateZ(20px); }
.hero-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-300)); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: #000; margin-bottom: 1.25rem; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.hero-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.25rem; }
.hero-card .title { font-size: 0.78rem; color: var(--emerald-300); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.5rem; }
.hero-card-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 50px; letter-spacing: 0.05em; }
.hero-card-items { display: flex; flex-direction: column; gap: 0.75rem; }
.hci { display: flex; align-items: center; gap: 0.75rem; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 0.65rem 0.9rem; }
.hci-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--emerald-300); font-size: 0.9rem; flex-shrink: 0; }
.hci-text strong { font-size: 0.82rem; color: #fff; font-weight: 600; display: block; }
.hci-text span { font-size: 0.7rem; color: rgba(255,255,255,0.6); }
.scroll-cue { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.6); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; animation: bounceDown 2s ease infinite; z-index: 3; }

/* ── Ticker Strip ── */
.ticker-wrap { background: var(--emerald-800); padding: 0.7rem 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); }
.ticker-track { display: flex; gap: 3rem; animation: ticker 28s linear infinite; white-space: nowrap; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--emerald-100); }
.ticker-item .dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Services Section ── */
#services { padding: 7rem 0; background: var(--bg-color); }
.services-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 4rem; flex-wrap: wrap; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; perspective: 1000px; }

/* Card Tilt Animation Setup */
.service-card {
  background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius); padding: 2.25rem;
  cursor: pointer; position: relative; overflow: hidden; transform-style: preserve-3d;
  box-shadow: var(--shadow-sm); transition: border-color var(--transition);
}
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--emerald-600), var(--emerald-400)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; background: var(--emerald-50); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: background var(--transition); transform: translateZ(30px); }
[data-theme="dark"] .service-icon { background: rgba(16,185,129,0.1); }
.service-card:hover .service-icon { background: var(--emerald-100); }
[data-theme="dark"] .service-card:hover .service-icon { background: rgba(16,185,129,0.2); }
.service-icon svg { color: var(--emerald-600); }
[data-theme="dark"] .service-icon svg { color: var(--emerald-400); }
.service-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 0.65rem; transform: translateZ(20px); }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; transform: translateZ(10px); }
.service-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.8rem; font-weight: 600; color: var(--emerald-700); letter-spacing: 0.04em; transform: translateZ(20px); }
[data-theme="dark"] .service-more { color: var(--emerald-400); }
.service-more svg { transition: transform 0.3s ease; }
.service-card:hover .service-more svg { transform: translateX(4px); }

/* ── About Section ── */
#about { padding: 7rem 0; background: var(--bg-surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img { width: 100%; aspect-ratio: 4/5; background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-700) 100%); border-radius: 20px; overflow: hidden; position: relative; }
.about-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.25) 0%, transparent 55%); }
.about-img-initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 7rem; font-weight: 700; color: rgba(255,255,255,0.1); letter-spacing: -0.05em; z-index: 1; }
.about-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--gold); border-radius: 16px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow-md); }
.about-badge .num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; color: #000; line-height: 1; }
.about-badge .text { font-size: 0.7rem; color: rgba(0,0,0,0.8); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.about-list { display: flex; flex-direction: column; gap: 0.9rem; margin: 2rem 0; }
.about-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.about-list li::before { content: ''; width: 18px; height: 18px; background: var(--emerald-50); border-radius: 50%; border: 2px solid var(--emerald-400); flex-shrink: 0; margin-top: 2px; }
[data-theme="dark"] .about-list li::before { background: rgba(16,185,129,0.1); }
.credentials-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.cred-pill { background: var(--bg-color); border: 1px solid var(--divider); color: var(--ink); font-size: 0.78rem; font-weight: 600; padding: 0.45rem 1rem; border-radius: 50px; letter-spacing: 0.06em; }

/* ── Stats Bar ── */
#stats-bar { background: var(--emerald-900); padding: 4.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.78rem; color: #fff; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Process Section ── */
#process { padding: 7rem 0; background: var(--bg-color); }
.process-header { text-align: center; margin-bottom: 4rem; }
.process-header .section-sub { margin: 0 auto; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 2.25rem; left: 10%; width: 80%; height: 1px; background: linear-gradient(90deg, var(--divider), var(--emerald-400), var(--divider)); z-index: 0; }
.process-step { text-align: center; padding: 0 1.5rem; position: relative; z-index: 1; }
.step-num { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--bg-surface); border: 2px solid var(--emerald-300); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 700; color: var(--emerald-700); transition: background var(--transition), border-color var(--transition), transform var(--transition); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .step-num { color: var(--emerald-400); border-color: var(--emerald-600); }
.process-step:hover .step-num { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; transform: scale(1.1); }
.process-step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }

/* ── Testimonials Section ── */
#testimonials { padding: 7rem 0; background: var(--bg-surface); }
.testimonials-header { text-align: center; margin-bottom: 4rem; }
.testimonials-header .section-sub { margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: var(--bg-color); border: 1px solid var(--divider); border-radius: var(--radius); padding: 2rem; position: relative; transition: transform var(--transition), box-shadow var(--transition); }
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-quote { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; color: var(--emerald-200); line-height: 0.5; margin-bottom: 1rem; }
[data-theme="dark"] .testi-quote { color: var(--emerald-800); }
.testi-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; font-style: italic; margin-bottom: 1.5rem; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-700), var(--emerald-500)); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.testi-author strong { font-size: 0.85rem; font-weight: 600; color: var(--ink); display: block; }
.testi-author span { font-size: 0.75rem; color: var(--muted); }
.testi-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.75rem; }

/* ── Contact Section ── */
#contact { padding: 7rem 0; background: var(--emerald-900); position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; top: -30%; right: -10%; width: 60%; height: 160%; background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.contact-text .section-title { color: #fff; }
.contact-text .section-sub { color: rgba(255,255,255,0.8); max-width: 420px; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.ci-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--emerald-300); flex-shrink: 0; }
.ci-text strong { font-size: 0.78rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.ci-text span { font-size: 0.9rem; color: #fff; font-weight: 500; }
.contact-form { background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 2.5rem; backdrop-filter: blur(12px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.5rem; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.7); letter-spacing: 0.1em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 0.85rem 1.1rem; font-size: 0.9rem; color: #fff; font-family: 'DM Sans', sans-serif; transition: border-color var(--transition); outline: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--emerald-400); background: rgba(255,255,255,0.15); }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--emerald-900); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { width: 100%; background: var(--emerald-600); color: #fff; padding: 1rem; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 700; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: background var(--transition), transform var(--transition); letter-spacing: 0.04em; }
.form-submit:hover { background: var(--emerald-500); transform: translateY(-2px); }

/* ── Footer ── */
#footer { background: #031c14; padding: 3rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--emerald-300); }

/* ── Floating Actions ── */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 45px; height: 45px;
  background: var(--emerald-700); color: #fff; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-md); transition: all 0.3s ease;
  opacity: 0; pointer-events: none; transform: translateY(20px); z-index: 1000;
}
.back-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-to-top:hover { background: var(--emerald-600); transform: translateY(-5px); }
[data-theme="dark"] .back-to-top { background: var(--emerald-400); color: #000; }

/* ── Modals & Toast ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(6,20,16,0.8); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-surface); border-radius: 20px; padding: 2.5rem; max-width: 560px; width: 100%; position: relative; transform: scale(0.92) translateY(20px); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; opacity: 0; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 34px; height: 34px; background: var(--bg-color); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background var(--transition); }
.modal-close:hover { background: var(--divider); }
.modal-icon { width: 60px; height: 60px; background: var(--emerald-50); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--emerald-700); margin-bottom: 1.25rem; }
[data-theme="dark"] .modal-icon { background: rgba(16,185,129,0.1); color: var(--emerald-400); }
.modal h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; }
.modal p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.modal-list { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; }
.modal-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--muted); }
.modal-list li::before { content: '✓'; width: 20px; height: 20px; background: var(--emerald-50); border-radius: 50%; color: var(--emerald-700); font-size: 0.65rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
[data-theme="dark"] .modal-list li::before { background: rgba(16,185,129,0.1); color: var(--emerald-400); }
.modal-cta { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--emerald-700); color: #fff; padding: 0.85rem 1.75rem; border-radius: 50px; font-size: 0.88rem; font-weight: 600; cursor: pointer; border: none; transition: background var(--transition), transform var(--transition); }
.modal-cta:hover { background: var(--emerald-600); transform: translateY(-2px); }
[data-theme="dark"] .modal-cta { background: var(--emerald-600); color: #fff; }
[data-theme="dark"] .modal-cta:hover { background: var(--emerald-500); }
.modal-divider { height: 1px; background: var(--divider); margin: 1.25rem 0; }

.toast { position: fixed; bottom: 2rem; right: 5rem; background: var(--emerald-800); color: #fff; padding: 1rem 1.5rem; border-radius: 12px; font-size: 0.88rem; font-weight: 500; display: flex; align-items: center; gap: 0.75rem; box-shadow: var(--shadow-lg); z-index: 3000; transform: translateY(100px); opacity: 0; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; max-width: 320px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--emerald-300); flex-shrink: 0; }
.toast-close { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.5); margin-left: 0.5rem; padding: 2px; transition: color var(--transition); }
.toast-close:hover { color: #fff; }

/* ── Keyframes ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 75%; max-width: 320px; background: var(--bg-surface); flex-direction: column; padding: 5rem 2.5rem 2rem; gap: 1.5rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform var(--transition); z-index: 999; }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-links a { font-size: 1rem; color: var(--ink); }
  .nav-cta { background: var(--emerald-800) !important; padding: 0.8rem 1.5rem !important; border-radius: 8px !important; text-align: center; }
  [data-theme="dark"] .nav-cta { background: var(--emerald-600) !important; color: #fff !important; }
  .hamburger { display: flex; z-index: 1001; }
  [data-theme="dark"] .hamburger span { background: var(--ink); }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { bottom: -1rem; right: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-heading { font-size: 2.4rem; }
  .section-title { font-size: 1.9rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
}