/* Not My Fault design system. Calm, plain, readable. */
/* Fonts, self-hosted (SIL Open Font License; see assets/fonts/LICENSE-OFL.txt). No third-party connection. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"); }

:root {
  --cream: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #17231F;
  --ink-soft: #46554F;
  --green: #0F3D2E;
  --green-deep: #0A2B21;
  --green-link: #0B5E48;
  --green-tint: #E4EFE9;
  --amber: #E9A23B;
  --amber-hover: #D6902D;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5A;
  --line: #D9D4C7;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(23,35,31,.08), 0 6px 20px rgba(23,35,31,.06);
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px on phones */
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 76px; /* room for the mobile bar */
}
@media (min-width: 48em) {
  body { font-size: 1.125rem; padding-bottom: 0; } /* 18px on larger screens */
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--green-link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--green); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); margin-top: 0; }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
p, ul, ol { margin: 0 0 1.1em; }
p.lead { font-size: 1.2em; color: var(--ink); }
.muted { color: var(--ink-soft); }
strong { font-weight: 700; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .45em; }

.wrap { width: min(100% - 2rem, 1100px); margin-inline: auto; }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: 1100px; }
.wrap.prose > * { max-width: var(--measure); }
.wrap.prose > .steps { max-width: 44rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--amber); color: var(--ink); }
.btn-call:hover { background: var(--amber-hover); color: var(--ink); }
.btn-whatsapp { background: var(--whatsapp); color: var(--ink); }
.btn-whatsapp:hover { background: var(--whatsapp-hover); color: var(--ink); }
.btn-outline { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-deep); }
.btn-lg { font-size: 1.15em; padding: .85em 1.5em; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green); font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.brand img { width: 40px; height: 40px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .4em 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--green-deep); }
.header-call { white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 60em) {
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: .95em; }
}
@media (max-width: 48em) {
  .header-row { flex-wrap: wrap; gap: .75rem; }
  .brand { font-size: 1.2rem; }
  .header-call { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    background: var(--green-tint); color: var(--green); border: 0; border-radius: var(--radius);
    padding: .55em .9em; font: inherit; font-weight: 700; min-height: 44px; cursor: pointer;
  }
  .nav-toggle-bars { width: 20px; height: 2px; background: currentColor; position: relative; display: block; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .site-nav { display: none; width: 100%; margin: 0; padding-bottom: .5rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .7em 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60em) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 34ch; }
.phone-card {
  background: var(--green); color: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow);
}
.phone-card p { margin: 0 0 .5rem; }
.phone-card .phone-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8em; font-weight: 700; opacity: .9; }
.phone-card .phone-number { font-family: var(--font-head); font-size: clamp(2.25rem, 7vw, 3.4rem); font-weight: 700; line-height: 1.05; color: #fff; text-decoration: none; display: block; margin: .1em 0 .3em; }
.phone-card .phone-number:hover { color: var(--amber); }
.phone-card .phone-hours { opacity: .92; }
.phone-card .btn { width: 100%; margin-top: .75rem; }
.phone-card .btn-call { background: var(--amber); }
.phone-card .btn-whatsapp { background: var(--whatsapp); }

/* Sections */
.section { padding: clamp(2.25rem, 6vw, 4rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint { background: var(--green-tint); }
.section h2 { max-width: 24ch; }
.section-intro { max-width: var(--measure); }

.facts { display: grid; gap: 1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0; }
.facts strong { display: block; color: var(--green); margin-bottom: .2em; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.25rem 4.4rem; margin: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.1rem; top: 1.15rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(15,61,46,.35);
}
.steps h3 { margin: 0 0 .35em; }
.steps p { margin: 0; }

.checklist { list-style: none; padding: 0; margin: 1rem 0 0; max-width: var(--measure); }
.checklist li { padding-left: 2.1rem; position: relative; margin-bottom: .8em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 6px;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/contain no-repeat;
}

.two-col { display: grid; gap: 2rem; }
@media (min-width: 54em) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h2, .card h3 { margin-top: 0; }
.card-tint { background: var(--green-tint); border-color: transparent; }

.callout { border-left: 5px solid var(--amber); background: var(--paper); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }

/* Answer-first block on question pages */
.answer { background: var(--green-tint); border-radius: var(--radius); padding: 1.25rem 1.4rem; max-width: var(--measure); margin: 1.25rem 0 2rem; }
.answer p { margin: 0; font-size: 1.1em; }
.answer .answer-label { display: block; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--green); margin-bottom: .4em; }

/* Page header for inner pages */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 22ch; }
.page-head .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8em; font-weight: 700; color: var(--ink-soft); margin-bottom: .6em; }
.page-body { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-body h2 { margin-top: 2.2rem; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 1.6rem; }
.source { font-size: .9em; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--green); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 1.5em; line-height: 1; color: var(--amber); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 1.25rem 1.1rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* Contact band and footer */
.contact-band { background: var(--green); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: center; }
.contact-band h2 { color: #fff; max-width: none; }
.contact-band-lead { max-width: 50ch; margin: 0 auto 1.5rem; font-size: 1.15em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-band-note { margin: 1.25rem auto 0; max-width: 52ch; opacity: .92; }
.site-footer { background: var(--green-deep); color: #D7E3DD; padding: 2.5rem 0 2rem; font-size: .95em; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 54em) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; } }
.footer-brand { font-family: var(--font-head); font-size: 1.4rem; color: #fff; margin-bottom: .4em; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { margin-bottom: .5em; }
.footer-small p { margin-bottom: .8em; }

/* Mobile fixed bar */
.mobile-bar { display: none; }
@media (max-width: 48em) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(23,35,31,.08);
  }
  .mobile-bar .btn { min-height: 50px; font-size: 1.05em; }
}

/* Contact page */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid .card .big { font-family: var(--font-head); font-size: 1.9rem; color: var(--green); text-decoration: none; display: inline-block; margin: .2em 0 .4em; }
.contact-grid .card .big:hover { color: var(--green-link); text-decoration: underline; }

/* Tables (legal and privacy) */
table { border-collapse: collapse; width: 100%; max-width: var(--measure); margin: 1rem 0 1.5rem; font-size: .97em; }
th, td { text-align: left; vertical-align: top; padding: .6em .7em; border-bottom: 1px solid var(--line); }
th { color: var(--green); }

@media print {
  .site-header, .mobile-bar, .contact-band, .nav-toggle { display: none !important; }
  body { background: #fff; padding: 0; }
}
