/* Madadi TFAS Inc — calgarytaxaccounting.com
   Mobile-first, no build step. */

:root {
  --ink: #0d141a;
  --ink-soft: #3d454c;
  --muted: #5c646b;
  --cream: #f6f3ec;
  --paper: #fbfaf7;
  --white: #ffffff;
  --gold: #a2883b;
  --gold-dark: #7a662b;
  --gold-pale: #e8dfc4;
  --line: #d9d1bf;
  --navy: #0d141a;
  --navy-2: #171f26;
  --danger: #8b2e2e;
  --serif: "Newsreader", "Times New Roman", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 70rem;
  --wide: 76rem;
  --radius: 2px;
  --header-h: 4.1rem;
  --shadow: 0 1px 2px rgba(13, 20, 26, 0.06), 0 8px 24px rgba(13, 20, 26, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 5.5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - 2rem, var(--wide)); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  height: 2.9rem;
  width: auto;
}
.nav {
  display: none;
  align-items: center;
  gap: 0.15rem 1.35rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-phone {
  display: none;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header-phone:hover { color: var(--gold-dark); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-phone { display: inline; }
  .menu-toggle { display: none; }
}

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 1rem 1.25rem;
}
.nav-panel.is-open { display: block; }
.nav-panel a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.nav-panel a[aria-current="page"] { color: var(--gold-dark); }
@media (min-width: 860px) {
  .nav-panel { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-dark); color: #fff; border-color: var(--gold-dark); }
.btn--dark {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.btn--dark:hover { background: #000; color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 243, 236, 0.55);
}
.btn--light:hover { background: var(--cream); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 0;
}
.hero-grid {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.hero-copy .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.hero-photo {
  margin: 0;
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-radius: 2px;
}
.hero-photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.45rem;
}
@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 3rem;
    padding-bottom: 0;
  }
  .hero-copy { padding-bottom: 3.25rem; }
  .hero-photo { margin-bottom: 0; }
  .hero-photo img {
    height: 100%;
    min-height: 28rem;
    max-height: 34rem;
  }
}

/* Trust bar */
.trust {
  background: var(--navy);
  color: var(--cream);
  padding: 1rem 0;
}
.trust-list {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem 2rem;
}
.trust-list li {
  font-size: 0.92rem;
  color: #e6e1d6;
}
.trust-list strong {
  display: block;
  color: var(--gold-pale);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.trust a { color: var(--cream); }
@media (min-width: 700px) {
  .trust-list { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section--cream { background: var(--cream); }
.section--navy {
  background: var(--navy);
  color: #e6e1d6;
}
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
}
.split img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 2px;
}

/* Service cards */
.cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin: 0; font-size: 1.25rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card .num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

/* Service detail blocks */
.service {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h2, .service h3 { margin: 0 0 0.35rem; }
@media (min-width: 800px) {
  .service {
    grid-template-columns: 16rem 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.85rem 0;
  }
}

/* Team */
.team {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) { .team { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 720px) {
  .team--single { grid-template-columns: 1fr; }
}
@media (min-width: 800px) {
  .team--single {
    max-width: 52rem;
  }
  .team--single .person {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: start;
  }
  .team--single .person img {
    grid-row: 1 / span 4;
    margin-bottom: 0;
  }
}
.person { margin: 0; }
.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--gold-pale);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.person h3 { margin: 0 0 0.15rem; }
.person .role {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.person p { color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 0.2rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  padding: 1rem 1.75rem 1rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--gold-dark);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.3rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  padding-right: 1.5rem;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
}
.contact-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-facts li { margin: 0; }
.contact-facts .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 0.15rem;
}
.contact-facts a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}
.contact-facts a:hover { color: var(--gold-dark); text-decoration: underline; }

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--cream);
  overflow: hidden;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Form */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.25rem 1.5rem;
}
.form h2 { margin-top: 0; }
.field { margin-bottom: 0.95rem; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #b6ae9b; }
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: #f3eee0;
  border-left: 3px solid var(--gold);
  padding: 0.75rem 0.9rem;
  margin: 0 0 1.1rem;
}
.note code, .placeholder-mark {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

/* Page hero (interior) */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2.75rem 0 2.5rem;
}
.page-hero p { max-width: 40rem; color: var(--ink-soft); font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cfc8ba;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
}
.site-footer h2, .site-footer h3 {
  color: var(--cream);
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-pale); text-decoration: underline; }
.footer-brand img { height: 5.5rem; width: auto; margin-bottom: 0.75rem; }
.footer-links, .footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li, .footer-contact li { margin: 0 0 0.4rem; }
.social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}
.social a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-pale);
}
.footer-bottom {
  width: min(100% - 2rem, var(--wide));
  margin: 2.25rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(232, 223, 196, 0.18);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.footer-bottom .placeholder-mark { color: var(--gold-pale); font-weight: 600; }

/* Utilities */
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.cta-band .btn-row { margin-top: 1.25rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
