/* Markham Accountants — site styles */
:root {
  --navy: #0f2c4d;
  --navy-700: #14375f;
  --navy-900: #0a1f37;
  --gold: #c9a24b;
  --gold-soft: #e7d3a3;
  --ink: #1d2733;
  --muted: #5a6b7b;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(15, 44, 77, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 44, 77, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .8rem;
}
.eyebrow.light { color: var(--gold-soft); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #2a2210;
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201,162,75,.35); }
.btn-ghost { background: transparent; border-color: rgba(15,44,77,.25); color: var(--navy); }
.btn-ghost:hover { background: rgba(15,44,77,.05); box-shadow: none; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; color: var(--navy); }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy); color: var(--gold);
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem;
}
.brand-logo { width: 40px; height: 40px; object-fit: contain; display: block; }
.brand-text { font-family: "Fraunces", serif; font-weight: 500; }
.brand-text strong { font-weight: 600; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--navy); }
.nav a.btn { color: #2a2210; }

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background:
    linear-gradient(100deg, rgba(10,31,55,.94) 28%, rgba(10,31,55,.72) 52%, rgba(10,31,55,.45) 100%),
    url("../images/hero-bg.jpg") center right / cover no-repeat,
    var(--navy-900);
  color: #e7eef7;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #ffffff; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-copy .lede { max-width: 52ch; color: #c4d2e2; }
.hero .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.hero .hero-trust { color: #b3c2d6; }
.hero .hero-trust strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.8rem; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; padding: 0; margin: 0; color: var(--muted); font-size: .95rem; }
.hero-trust strong { color: var(--navy); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem;
  color: var(--ink);
}
.hero-card-row { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.hero-card-row:first-child { padding-top: .2rem; }
.tick { color: #1f7a4d; font-weight: 600; font-size: .9rem; background: #e7f4ec; padding: .2rem .6rem; border-radius: 999px; }
.hero-card-foot { margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* Grids & cards */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service .ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-700));
  color: var(--gold-soft); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1rem;
}
.service h3 { margin-bottom: .4rem; }
.service p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-grid p { color: var(--muted); }
.ticklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.ticklist li { position: relative; padding-left: 1.8rem; margin-bottom: .7rem; color: var(--ink); }
.ticklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; box-shadow: var(--shadow); }
.stat .num { display: block; font-family: "Fraunces", serif; font-size: 2rem; color: var(--navy); font-weight: 600; }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* Team */
.person { text-align: center; padding-bottom: 1.6rem; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; background: var(--bg-alt); }
.person h3 { margin-bottom: .1rem; }
.person .role { color: var(--gold); font-weight: 600; font-size: .92rem; margin: 0 0 .6rem; }
.person .bio { color: var(--muted); font-size: .92rem; margin: 0; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-900)); color: #dce6f2; }
.section-dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-lede { color: #b9c8da; font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-list li { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: center; }
.contact-list span:first-child { color: var(--gold-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-list a, .contact-list address { color: #fff; font-style: normal; }
.contact-list a:hover { color: var(--gold-soft); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .92rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fbfcfe;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.form-note { text-align: center; color: var(--muted); font-size: .88rem; margin: .9rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-banner { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.1rem; font-size: .94rem; font-weight: 500; }
.form-banner.ok { background: #e7f4ec; color: #1f7a4d; border: 1px solid #bfe3cd; }
.form-banner.err { background: #fdecec; color: #b3261e; border: 1px solid #f3c4c0; }

/* Footer */
.site-footer { background: var(--navy-900); color: #aebfd2; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { max-width: 360px; }
.footer-brand .brand-text { color: #fff; font-size: 1.15rem; }
.footer-brand p { margin-top: .8rem; font-size: .92rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: #cdd9e8; font-weight: 500; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .85rem; color: #7e91a8; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { order: -1; }
}
@media (max-width: 620px) {
  .nav a:not(.btn) { display: none; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 70px 1fr; }
}
