/* =========================================================
   Summit Tax & Accounting — shared stylesheet
   Palette: deep evergreen + warm cream + brass + ink
   Type: Fraunces (display serif) + Inter (body)
   No pure #fff/#000. SVG icons, not emoji.
   ========================================================= */

:root {
  --ink: #1c2620;
  --evergreen: #1d3b30;
  --evergreen-dark: #142a22;
  --brass: #b08d57;
  --brass-dark: #95743f;
  --cream: #f7f3ea;
  --cream-deep: #efe8d8;
  --paper: #fcfaf4;
  --text: #38423b;
  --text-soft: #6a7269;
  --line: #e2dccd;
  --shadow: 0 10px 30px -12px rgba(28, 38, 32, 0.18);
  --shadow-brass: 0 14px 34px -14px rgba(176, 141, 87, 0.45);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Rule 246: subtle grain overlay across whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--evergreen);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.container-narrow { max-width: 820px; }

/* Accessibility skip link (530 checklist) */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--evergreen); color: var(--cream);
  padding: 10px 18px; z-index: 10000; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons (Rule 401: custom shape/shadow/hover) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.98rem;
  border-radius: 50px; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brass); color: var(--paper); }
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-3px); box-shadow: var(--shadow-brass); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(247, 243, 234, 0.35); }
.btn-ghost:hover { background: rgba(247, 243, 234, 0.1); border-color: var(--cream); transform: translateY(-3px); }
.btn-ink { background: var(--evergreen); color: var(--cream); }
.btn-ink:hover { background: var(--evergreen-dark); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- Navigation (Rule 481-500: not generic white bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(252, 250, 244, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.35rem; color: var(--evergreen); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--evergreen); color: var(--brass);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand em { color: var(--brass); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links > li > a { font-weight: 500; font-size: 0.96rem; color: var(--text); position: relative; padding: 4px 0; }
.nav-links > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--brass); transition: width 0.3s var(--ease);
}
.nav-links > li > a:not(.btn):hover { color: var(--evergreen); }
.nav-links > li > a:not(.btn):hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--evergreen); }
.nav-links a[aria-current="page"]:not(.btn)::after { width: 100%; }
.nav-links .btn { padding: 11px 22px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--evergreen); border-radius: 2px; transition: 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 26px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: none; }
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- Section scaffolding ---------- */
.section { padding: 104px 0; position: relative; }
.section.cream { background: var(--cream); }
.section.deep { background: var(--evergreen); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--brass); display: inline-block; }
.section.deep .eyebrow { color: var(--brass); }
.shead { max-width: 640px; margin-bottom: 58px; }
.shead.center { margin-left: auto; margin-right: auto; text-align: center; }
.shead.center .eyebrow { justify-content: center; }
.shead h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 18px 0 14px; }
.shead p { color: var(--text-soft); font-size: 1.08rem; }
.section.deep .shead h2 { color: var(--cream); }
.section.deep .shead p { color: rgba(247, 243, 234, 0.75); }

/* Rule 56: curved section divider */
.divider-top { position: absolute; top: -1px; left: 0; width: 100%; line-height: 0; }
.divider-top svg { width: 100%; height: 60px; display: block; }

/* ---------- Fade in (Rule 341 / reduced motion respected below) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero (Rule 80: asymmetrical hero) ---------- */
.hero { position: relative; background: var(--evergreen); color: var(--cream); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px; width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(176,141,87,0.28), transparent 70%); border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 92px 0 100px; position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 9px; background: rgba(176,141,87,0.16); border: 1px solid rgba(176,141,87,0.4); color: var(--brass); padding: 8px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 26px; }
.hero-tag svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); color: var(--cream); margin-bottom: 22px; font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.28rem); color: rgba(247,243,234,0.82); max-width: 560px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid rgba(247,243,234,0.14); }
.hero-trust-item { display: flex; align-items: center; gap: 11px; font-size: 0.92rem; color: rgba(247,243,234,0.9); font-weight: 500; }
.hero-trust-item svg { width: 26px; height: 26px; color: var(--brass); flex-shrink: 0; }

/* Rule 92 frame-within-frame + Rule 276 image mask */
.hero-figure { position: relative; }
.hero-figure img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--r-lg); border: 1px solid rgba(247,243,234,0.12); }
.hero-figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--brass); border-radius: var(--r-lg); z-index: -1; }
.hero-stat-chip {
  position: absolute; left: -22px; bottom: 38px;
  background: var(--paper); color: var(--ink); border-radius: var(--r-md);
  padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
}
.hero-stat-chip .num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--evergreen); line-height: 1; }
.hero-stat-chip .lbl { font-size: 0.82rem; color: var(--text-soft); max-width: 120px; }

/* ---------- Service cards (Rule 421: not identical rectangles) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 36px 30px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.svc-card:nth-child(3n+1) { border-top-left-radius: var(--r-lg); }
.svc-card:nth-child(3n+2) { border-bottom-right-radius: var(--r-lg); }
.svc-card:nth-child(3n) { border-top-right-radius: var(--r-lg); }
.svc-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--brass); }
.svc-ico {
  width: 56px; height: 56px; border-radius: 14px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  color: var(--evergreen); transition: 0.35s var(--ease);
}
.svc-ico svg { width: 27px; height: 27px; }
.svc-card:hover .svc-ico { background: var(--evergreen); color: var(--brass); }
.svc-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.svc-card p { color: var(--text-soft); font-size: 0.97rem; margin-bottom: 16px; }
.svc-list { list-style: none; }
.svc-list li { font-size: 0.92rem; color: var(--text-soft); padding: 5px 0 5px 24px; position: relative; }
.svc-list li svg { position: absolute; left: 0; top: 8px; width: 15px; height: 15px; color: var(--brass); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.about-figure { position: relative; }
.about-figure img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--r-lg); }
.about-figure .frame { position: absolute; inset: -16px 16px 16px -16px; border: 1.5px solid var(--brass); border-radius: var(--r-lg); z-index: -1; }
.about-badge { position: absolute; right: -18px; bottom: 34px; background: var(--evergreen); color: var(--cream); border-radius: var(--r-md); padding: 20px 24px; max-width: 230px; box-shadow: var(--shadow); }
.about-badge .num { font-family: 'Fraunces', serif; font-size: 2.4rem; color: var(--brass); line-height: 1; margin-bottom: 6px; }
.about-badge .lbl { font-size: 0.9rem; color: rgba(247,243,234,0.85); }
.feat-list { display: grid; gap: 22px; margin-top: 34px; }
.feat { display: flex; gap: 16px; }
.feat-ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--evergreen); }
.feat-ico svg { width: 24px; height: 24px; }
.feat h4 { font-size: 1.08rem; margin-bottom: 3px; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--evergreen); }
.feat p { font-size: 0.95rem; color: var(--text-soft); }

/* ---------- Stats band ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; text-align: center; }
.stat .num { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--brass); line-height: 1; margin-bottom: 8px; }
.stat .lbl { color: rgba(247,243,234,0.78); font-size: 0.93rem; font-weight: 500; }

/* ---------- Process (Rule 98 ribbon-ish numbered path) ---------- */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }
.step { padding: 8px; position: relative; }
.step-num { width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--evergreen); font-family: 'Fraunces', serif; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: var(--paper); }
.step h3 { font-size: 1.18rem; margin-bottom: 9px; }
.step p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- Reviews (Rule 421 unique testimonial shape) ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 26px; }
.rev {
  background: var(--paper); border-radius: var(--r-md) var(--r-lg) var(--r-md) var(--r-md);
  padding: 34px 30px; border: 1px solid var(--line); position: relative;
}
.rev .quote { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--brass); line-height: 0.6; height: 26px; }
.rev .stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 14px; }
.rev .stars svg { width: 17px; height: 17px; }
.rev p { font-style: italic; color: var(--text); margin-bottom: 22px; }
.rev-who { display: flex; align-items: center; gap: 13px; }
.rev-av { width: 48px; height: 48px; border-radius: 50%; background: var(--evergreen); color: var(--brass); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; }
.rev-who h4 { font-family: 'Inter', sans-serif; font-size: 0.98rem; color: var(--evergreen); }
.rev-who span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- CTA band (Rule 441 textured) ---------- */
.cta-band { background: var(--evergreen); color: var(--cream); border-radius: var(--r-lg); padding: 66px 50px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -120px; bottom: -120px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(176,141,87,0.25), transparent 70%); border-radius: 50%; }
.cta-band h2 { color: var(--cream); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; position: relative; }
.cta-band p { color: rgba(247,243,234,0.82); font-size: 1.12rem; max-width: 540px; margin: 0 auto 32px; position: relative; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cdetail { display: flex; gap: 16px; margin-bottom: 26px; align-items: center; }
.cdetail-ico { width: 52px; height: 52px; border-radius: 13px; background: var(--cream); display: flex; align-items: center; justify-content: center; color: var(--evergreen); flex-shrink: 0; }
.cdetail-ico svg { width: 23px; height: 23px; }
.cdetail h4 { font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--evergreen); margin-bottom: 2px; }
.cdetail p { color: var(--text-soft); font-size: 0.97rem; }
.form-card { background: var(--cream); border-radius: var(--r-lg); padding: 40px; border: 1px solid var(--line); }
.fg { margin-bottom: 19px; }
.fg label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--evergreen); margin-bottom: 7px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif; font-size: 0.97rem; background: var(--paper); color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,141,87,0.16); }
.fg textarea { resize: vertical; min-height: 120px; }
.form-card .btn { width: 100%; justify-content: center; }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--evergreen); color: var(--cream); padding: 84px 0 90px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(176,141,87,0.22), transparent 70%); border-radius: 50%; }
.page-head .eyebrow { color: var(--brass); }
.page-head h1 { color: var(--cream); font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 16px 0 14px; position: relative; }
.page-head p { color: rgba(247,243,234,0.8); font-size: 1.12rem; max-width: 600px; position: relative; }
.crumbs { font-size: 0.86rem; color: rgba(247,243,234,0.6); margin-bottom: 4px; }
.crumbs a:hover { color: var(--brass); }

/* ---------- Footer (Rule 421 footer as design moment) ---------- */
.footer { background: var(--evergreen-dark); color: rgba(247,243,234,0.66); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
.footer .brand { color: var(--cream); margin-bottom: 16px; }
.footer-about p { font-size: 0.95rem; line-height: 1.7; max-width: 300px; }
.footer h4 { color: var(--cream); font-family: 'Inter', sans-serif; font-size: 0.98rem; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 11px; font-size: 0.94rem; }
.footer li a:hover { color: var(--brass); }
.footer-bottom { border-top: 1px solid rgba(247,243,234,0.12); padding-top: 26px; text-align: center; font-size: 0.88rem; }
.footer-bottom a:hover { color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-figure { order: -1; }
  .hero-figure img { height: 360px; }
  .about-figure img { height: 400px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 50px 28px; }
  .form-card { padding: 28px; }
}
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
}

/* Rule 356: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
