/* ===============================================
   NT CPA Professional Corporation — Stylesheet v2
   =============================================== */

:root {
  --navy: #182449;
  --navy-deep: #0F1730;
  --navy-mid: #24346B;
  --green: #5FBE8D;
  --green-deep: #3E9A6C;
  --paper: #FFFFFF;
  --tint: #F4F7F6;
  --line: #E4E9E8;
  --text: #26304A;
  --text-muted: #616B82;
  --white: #FFFFFF;

  --font-heading: "Poppins", -apple-system, Segoe UI, sans-serif;
  --font-body: "Inter", -apple-system, Segoe UI, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --shadow: 0 20px 45px -22px rgba(15,23,48,0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.15rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; }

p { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.08rem;
  max-width: 58ch;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--green); color: var(--navy-deep); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.92rem;
  color: var(--green-deep);
}
.btn-link:hover { color: var(--navy); gap: 10px; }
.btn-link svg { transition: transform 0.18s ease; }

/* ---------- Top utility bar ---------- */

.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-items { display: flex; gap: 24px; }
.topbar-items a:hover { color: var(--green); }
.topbar-hours { color: rgba(255,255,255,0.55); }

/* ---------- Header ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.logo-mark { display: flex; align-items: center; gap: 12px; }
.logo-mark img { height: 42px; width: auto; }
.logo-word { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; color: var(--navy-deep); line-height: 1.2; }
.logo-word span { display: block; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--green-deep); }

nav.main-nav { display: flex; align-items: center; gap: 32px; }
nav.main-nav a { font-family: var(--font-heading); font-weight: 500; font-size: 0.95rem; color: var(--text); padding: 6px 0; position: relative; }
nav.main-nav a:hover { color: var(--green-deep); }
nav.main-nav a.active { color: var(--navy-deep); font-weight: 600; }
nav.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--green); border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero { padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.credential-panel {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
  position: relative;
}
.credential-panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 85% 15%, rgba(95,190,141,0.25), transparent 55%);
  pointer-events: none;
}
.credential-panel h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 22px; font-weight: 600; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative; }
.credential-tile {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.credential-tile .stat { font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--green); display: block; margin-bottom: 4px; }
.credential-tile .label { font-size: 0.82rem; color: rgba(255,255,255,0.72); }

/* Hero photo card (replaces text-only credential tiles) */
.hero-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-photo-badge {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(15,23,48,0.92) 10%, rgba(15,23,48,0.75) 60%, transparent 100%);
  padding: 28px 24px 20px;
}
.hero-photo-badge .name { font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.badge-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-chip {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 6px 12px; font-size: 0.78rem; color: var(--white);
  font-family: var(--font-heading); font-weight: 500;
}
.badge-chip b { color: var(--green); }

/* Stats band with skyline */
.stats-band {
  background: var(--navy-deep) url('/assets/skyline.svg') bottom center / cover no-repeat;
  padding: 46px 0 34px;
  position: relative;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,48,0.75) 0%, rgba(15,23,48,0.4) 55%, rgba(15,23,48,0.85) 100%);
}
.stats-band .container { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.stat-item { display: flex; align-items: baseline; gap: 10px; color: var(--white); }
.stat-item .num { font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--green); }
.stat-item .txt { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.stat-divider { width: 1px; background: rgba(255,255,255,0.15); align-self: stretch; }

/* ---------- Sections ---------- */

section { padding: 92px 0; }
section.tint { background: var(--tint); }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 52px; text-align: left; }

/* Icon */
.icon-circle {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(95,190,141,0.14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-circle svg { width: 26px; height: 26px; stroke: var(--green-deep); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: 0 1px 2px rgba(15,23,48,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.94rem; margin-bottom: 18px; }
.service-card ul { margin-bottom: 22px; }
.service-card li {
  font-size: 0.88rem; color: var(--text-muted);
  padding-left: 20px; position: relative; margin-bottom: 8px;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.service-card .btn-link { margin-top: auto; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 0;
  border-radius: var(--radius);
}
.cta-band .container { max-width: 980px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-inner h2 { color: var(--white); font-size: 1.7rem; margin: 0; max-width: 480px; }
.cta-inner p { color: rgba(255,255,255,0.7); margin-top: 6px; }

/* Credential badges (about) */
.badge-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.badge {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center;
}
.badge .badge-year { font-family: var(--font-heading); font-weight: 700; color: var(--green-deep); font-size: 0.85rem; margin-bottom: 8px; }
.badge .badge-title { font-size: 0.92rem; color: var(--navy-deep); font-weight: 600; }

.bio-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bio-photo img { width: 100%; display: block; object-fit: cover; }
.bio-copy p { margin-bottom: 18px; font-size: 1.02rem; color: var(--text); }
.bio-copy p:last-child { margin-bottom: 0; }
.bio-side {
  background: var(--tint); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
}
.bio-side h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-deep); margin-bottom: 18px; }
.bio-side .sys-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bio-side .sys-tag {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 0.84rem; color: var(--navy-deep); font-weight: 500;
}

/* Service detail page */
.service-hero {
  background: var(--navy-deep) url('/assets/skyline.svg') bottom center / cover no-repeat;
  padding: 64px 0 56px;
  position: relative;
}
.service-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,48,0.88) 0%, rgba(15,23,48,0.6) 60%, rgba(15,23,48,0.92) 100%);
}
.service-hero .container { position: relative; }
.service-hero .container { max-width: 780px; }
.service-hero .eyebrow { color: var(--green); }
.service-hero h1 { color: var(--white); margin-bottom: 14px; }
.service-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--green); }

.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.included-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start;
}
.included-item .check {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.included-item .check svg { width: 14px; height: 14px; stroke: var(--white); stroke-width: 3; }
.included-item span.title { font-weight: 600; color: var(--navy-deep); font-size: 0.98rem; display: block; margin-bottom: 4px; }
.included-item p.item-desc { font-size: 0.87rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Related services */
.related-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.related-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.related-card:hover { border-color: var(--green); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
.contact-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin-bottom: 20px;
}
.contact-detail { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon-sm {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(95,190,141,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail .icon-sm svg { width: 18px; height: 18px; stroke: var(--green-deep); }
.contact-detail .label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 3px; }
.contact-detail .value { font-size: 0.98rem; color: var(--navy-deep); font-weight: 500; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 20px; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

form.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
form.contact-form h3 { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--navy-deep); }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; font-family: var(--font-body); font-size: 0.96rem; color: var(--text); background: var(--tint);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }

.form-alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-alert-ok { background: rgba(95,190,141,0.14); color: var(--green-deep); border: 1px solid rgba(95,190,141,0.35); }
.form-alert-err { background: rgba(220,90,90,0.1); color: #B23A3A; border: 1px solid rgba(220,90,90,0.3); }

.recaptcha-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.recaptcha-note a { color: var(--green-deep); text-decoration: underline; }
.grecaptcha-badge { z-index: 50; }

/* ---------- Footer ---------- */

footer.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.85fr 0.85fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo img { height: 38px; margin-bottom: 16px; }
.footer-grid p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.footer-col a, .footer-col div { display: block; color: rgba(255,255,255,0.68); font-size: 0.92rem; margin-bottom: 12px; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; justify-content: space-between; padding: 22px 0; font-size: 0.82rem;
  color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .topbar-items { gap: 14px; font-size: 0.78rem; }
  nav.main-nav { display: none; }
  .hero-grid, .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid, .included-grid, .badge-row, .related-services { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-band .container { justify-content: flex-start; gap: 28px; }
  .stat-divider { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
