/* Kokorama site styles
   Layout: Tinta header and footer bands frame Crema pages; white cards for offers; one Laguna closing band per page.
   Single light theme by choice: every pair below was checked against WCAG 2.1 AA in the brand guide. */
:root {
  color-scheme: light;
  /* Brand palette */
  --laguna: #2BA39B;        /* big color blocks, icon */
  --laguna-deep: #1A6E68;   /* Laguna Profunda: links, buttons, small teal text */
  --coral: #E8664A;         /* first sun on dark */
  --coral-light-bg: #E75C3E;/* first sun on Crema or white */
  --cempa: #F2B544;         /* second sun, highlights */
  --cempa-deep: #98660B;    /* marigold sun edge on light backgrounds */
  --tinta: #1F2D2C;         /* body text, dark bands */
  --crema: #FFF4E0;         /* page background */
  --paper: #FFFFFF;         /* cards */
  --muted: #4A5957;         /* secondary text, 6.7:1 on Crema */
  --on-dark-muted: #C9D3D1; /* secondary text on Tinta, 9.3:1 */
  --line: #E8D9BC;          /* decorative dividers only */
  --field: #6B7A78;         /* form field borders, 4.5:1 on white */
  --error: #A3341F;         /* error text, with an icon and the word Error */
  --focus: var(--tinta);

  /* Type */
  --display: "Baloo 2", "Nunito", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--laguna-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 64ch; }
.stack { display: grid; gap: 16px; }
.lede { font-size: 1.15rem; color: var(--muted); }
.eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--laguna-deep);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip {
  position: absolute; left: max(16px, env(safe-area-inset-left, 0px)); top: -100px; z-index: 50;
  background: var(--cempa); color: var(--tinta); font-weight: 800;
  padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Preview banner (remove at launch) */
.preview-bar { background: var(--cempa); color: var(--tinta); font-size: 0.9rem; font-weight: 700; }
.preview-bar .wrap { padding-block: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.preview-bar .ph-key { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.preview-bar .ph-key i { width: 22px; height: 14px; border: 2px dashed var(--tinta); border-radius: 4px; display: inline-block; }

/* Wordmark: lowercase text in Baloo 2 with two sun circles for the O's */
.wm {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; line-height: 1;
  white-space: nowrap; display: inline-flex; align-items: baseline; color: var(--wm-color, var(--laguna-deep));
}
.wm .sun {
  display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  margin: 0 0.03em; position: relative; top: 0.01em; flex: none;
}
/* Main logo on Tinta: Crema wordmark, kit suns */
.on-dark .wm { --wm-color: var(--crema); }
.on-dark .wm .s1 { background: var(--coral); }
.on-dark .wm .s2 { background: var(--cempa); }
/* Light-background logo: deeper coral, marigold with amber edge, Laguna Profunda wordmark */
.wm .s1 { background: var(--coral-light-bg); }
.wm .s2 { background: var(--cempa); box-shadow: inset 0 0 0 0.04em var(--cempa-deep); }
.on-dark .wm .s2 { box-shadow: none; }

/* Header */
.site-header { background: var(--tinta); color: var(--crema); --focus: var(--crema); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { text-decoration: none; display: inline-flex; padding: 6px 0; margin-right: auto; }
.brand .wm { font-size: 2rem; }
.nav-toggle {
  display: none; font: inherit; font-weight: 800; color: var(--crema); background: transparent;
  border: 2px solid var(--crema); border-radius: 999px; padding: 6px 16px; cursor: pointer;
  min-height: 44px; align-items: center; gap: 8px;
}
.nav-toggle .bars { width: 16px; height: 12px; display: grid; align-content: space-between; }
.nav-toggle .bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a, .site-nav .ph-link {
  color: var(--crema); text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 8px;
  display: inline-flex; min-height: 44px; align-items: center;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--cempa); text-underline-offset: 6px; }
@media (max-width: 880px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { flex-basis: 100%; display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .js .site-nav a, .js .site-nav .ph-link { width: 100%; }
}

/* Placeholders: dashed outline plus a written label, never color alone */
.ph {
  border: 2px dashed var(--tinta); border-radius: 8px; padding: 1px 8px; background: #FFF9EE;
  color: var(--tinta); font-weight: 700; font-size: 0.92em; white-space: normal;
}
.ph::before { content: "To add: "; font-weight: 800; }
.ph.plain::before { content: none; }
.ph-link { border: 2px dashed currentColor !important; }
.ph-block {
  border: 2px dashed var(--tinta); border-radius: var(--radius); background: #FFF9EE;
  padding: 20px; display: grid; gap: 6px; place-content: center; text-align: center; color: var(--tinta);
}
.ph-block b { font-family: var(--display); font-size: 1.15rem; }
.ph-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px dashed currentColor; border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: middle;
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 10px 22px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--body); line-height: 1.2;
}
.btn-primary { background: var(--laguna-deep); color: #FFFFFF; }
.btn-primary:hover { background: #145A55; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn-ghost:hover { background: rgba(31, 45, 44, 0.06); text-decoration: none; }
.btn-dark { background: var(--tinta); color: var(--crema); }
.btn-dark:hover { background: #2C3E3D; text-decoration: none; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Sections */
section { padding-block: clamp(48px, 7vw, 80px); }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 64ch; }
.band-white { background: var(--paper); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 18px; max-width: 46ch; color: var(--tinta); }
.hero .btns { margin-top: 28px; }
.hero-art { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1 / 1; justify-self: center; }
.hero-art .s-a { position: absolute; left: 0; top: 6%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--coral-light-bg); }
.hero-art .s-b { position: absolute; right: 0; top: 22%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--cempa); box-shadow: inset 0 0 0 6px var(--cempa-deep); }
.hero-art svg { position: absolute; left: 20%; bottom: 0; width: 60%; height: auto; transform: rotate(-5deg); filter: drop-shadow(0 10px 16px rgba(31, 45, 44, 0.18)); }
.page-hero { padding-block: clamp(40px, 6vw, 72px) 8px; }
.page-hero .lede { margin-top: 14px; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 220px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.card .price { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--laguna-deep); }
.card-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--crema); }
.card-mark svg { width: 26px; height: 26px; }

/* Problem block */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.problem .big { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.3; }
@media (max-width: 760px) { .problem { grid-template-columns: 1fr; } }

/* Trust strip */
.trust { border-block: 1px solid var(--line); padding-block: 28px; }
.trust .wrap { display: grid; gap: 12px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.trust li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; }

/* Checklist with icons (meaning carried by words) */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks svg { width: 28px; height: 28px; margin-top: 2px; }
.ticks b { display: block; font-family: var(--display); font-size: 1.15rem; }

/* Closing band */
.closing { background: var(--laguna); color: var(--tinta); --focus: var(--tinta); }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding-block: clamp(36px, 5vw, 56px); }
.closing h2 { max-width: 22ch; }
.spanish-line { padding-block: 22px; }
.spanish-line p { color: var(--muted); }
.spanish-line b { color: var(--tinta); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
caption { text-align: left; padding: 16px 18px 4px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
th, td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
tbody th { font-weight: 800; }
tbody tr:last-child > * { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { color: var(--muted); font-size: 0.98rem; margin-top: 14px; max-width: 70ch; }

/* Services: sub-nav */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.jump a { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--tinta); }
.jump a:hover { border-color: var(--tinta); }
.svc { display: grid; gap: 18px; scroll-margin-top: 16px; }
.svc + .svc { margin-top: 56px; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offer-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 6px; }
.offer-list .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.offer-list .head h3 { font-size: 1.2rem; }
.offer-list .head .price { font-family: var(--display); font-weight: 700; color: var(--laguna-deep); font-variant-numeric: tabular-nums; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; margin: 0; }
.tools div { border-top: 3px solid var(--laguna); padding-top: 10px; }
.tools dt { font-weight: 800; }
.tools dd { margin: 2px 0 0; color: var(--muted); }

/* Kits: certificate flow */
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.flow li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; position: relative; }
.flow li::before {
  content: "Step " counter(step); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--laguna-deep);
}
.flow b { font-family: var(--display); font-size: 1.15rem; }
.cert {
  background: var(--paper); border-radius: 12px; padding: 22px; border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 12px 28px rgba(31, 45, 44, 0.08);
  display: grid; gap: 6px; text-align: center; position: relative; overflow: hidden;
}
.cert::before { content: ""; position: absolute; inset: 8px; border: 2px solid var(--laguna); border-radius: 8px; pointer-events: none; }
.cert .k { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cert .n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.cert .meta { font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cert .file { margin-top: 8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8rem; background: var(--crema); border-radius: 6px; padding: 4px 8px; justify-self: center; max-width: 100%; overflow-wrap: anywhere; }
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }
.inside { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.coming { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.coming li { background: var(--paper); border: 1px dashed var(--field); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.coming .soon { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.small-print { font-size: 0.95rem; color: var(--muted); }

/* Work */
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.case + .case { margin-top: 18px; }
.case dl { margin: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px 20px; }
.case dt { font-weight: 800; }
.case dd { margin: 0; min-width: 0; }
@media (max-width: 620px) { .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }
.orgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.orgs li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-weight: 700; display: grid; gap: 2px; }
.orgs li span { font-weight: 600; color: var(--muted); font-size: 0.95rem; }

/* About */
.about-top { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 36px; align-items: start; }
.about-top .ph-block { aspect-ratio: 4 / 5; max-width: 100%; }
.headshot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: 10px 10px 0 var(--laguna, #2BA39B); }
@media (max-width: 720px) { .about-top { grid-template-columns: 1fr; } .about-top .ph-block, .about-top .headshot { max-width: 260px; } }
.name-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.name-story div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.name-story b { font-family: var(--display); font-size: 1.5rem; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ways li { border-top: 3px solid var(--laguna); padding-top: 12px; }
.ways b { display: block; font-family: var(--display); font-size: 1.2rem; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
form.card { gap: 18px; padding: clamp(20px, 3vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field .req { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea {
  font: inherit; color: var(--tinta); background: #FFFFFF; border: 2px solid var(--field); border-radius: 12px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; border-color: var(--tinta); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 3px; }
.err { color: var(--error); font-weight: 700; font-size: 0.95rem; display: flex; gap: 6px; align-items: flex-start; }
.err svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.form-note { font-size: 0.95rem; color: var(--muted); }
.thanks { background: var(--paper); border: 2px solid var(--laguna-deep); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.thanks svg { width: 64px; height: 64px; }
.thanks .preview-only { font-size: 0.95rem; border: 2px dashed var(--tinta); border-radius: 10px; padding: 8px 12px; background: #FFF9EE; }
.side-box { display: grid; gap: 14px; }
.side-box .card { gap: 12px; }

/* Footer */
.site-footer { background: var(--tinta); color: var(--crema); --focus: var(--crema); }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer .wm { font-size: 1.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer a { color: var(--crema); font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.site-footer .muted { color: var(--on-dark-muted); }
.site-footer .ph-link { color: var(--crema); padding: 4px 10px; border-radius: 8px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
