
/* Layout: the corporate deck translated to the web. Cream squared paper (quadrícula) as ground, navy logo colour for type and the closing band, teal and sage as supports, pink only as the highlighter. Photos sit in rounded white frames like the deck; the three teal squares of the logo are the recurring motif. Single light theme by design: the brand is cream and navy. */
:root {
  --cream: #FFFBEB;
  --paper-grid: #EDE6C8;
  --white: #FFFFFF;
  --navy: #002E5A;
  --navy-2: #144882;
  --teal: #54A3A4;
  --teal-deep: #2F7F85;
  --teal-ink: #2A7378;
  --sage: #AFC2BD;
  --sage-soft: #E6EEEB;
  --ink: #1F3039;
  --ink-soft: #3F4E56;
  --pink: #F7BFC5;
  --rose-ink: #B25F63;
  --band-soft: #B9C9DE;
  --band-line: #1C4A7A;
  --f-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-hand: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1160px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); margin: 0; text-wrap: balance; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-ink);
}
.dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; background: var(--teal-deep); display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--navy); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.15s ease; }
  .btn:hover { transform: translateY(-2px); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Photos ---------- */
.ph {
  position: absolute;
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: 28px;
  box-shadow: 0 18px 34px -20px rgba(0, 46, 90, 0.45);
  overflow: hidden;
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.frame {
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: 30px;
  box-shadow: 0 18px 34px -22px rgba(0, 46, 90, 0.45);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; pointer-events: none; }
.sticker img { width: 100%; height: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.hero .wrap { position: relative; }
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
}
.top .logo { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; font-family: var(--f-head); font-weight: 600; font-size: 0.92rem; }
.nav a { color: var(--navy); text-decoration: none; padding: 4px 0; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(24px, 5vw, 56px) clamp(48px, 7vw, 88px);
}
.pill {
  display: inline-block;
  background: var(--pink);
  color: var(--navy);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.3rem); line-height: 1.04; margin: 18px 0 20px; }
.hl { background: linear-gradient(transparent 60%, var(--pink) 60% 92%, transparent 92%); color: inherit; padding-inline: 0.04em; }
.lede { max-width: 50ch; font-size: 1.18rem; color: var(--ink-soft); }
.motto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 26px; font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.motto .sep { width: 8px; height: 8px; background: var(--teal-deep); }

.collage { position: relative; width: 100%; max-width: 540px; margin-inline: auto; aspect-ratio: 1 / 1.04; }
.collage .a { left: 0; top: 0; width: 76%; aspect-ratio: 4 / 3; transform: rotate(-2deg); }
.collage .b { right: 0; bottom: 4%; width: 60%; aspect-ratio: 4 / 3; transform: rotate(2.5deg); }
.collage .bulb { right: 2%; top: 2%; width: 13%; transform: rotate(8deg); }

/* ---------- Method ---------- */
.band-sage { background: var(--sage-soft); }
.section { padding-block: clamp(48px, 7vw, 92px); }
.method-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.method-photo { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.method-photo .frame { aspect-ratio: 3 / 4; }
h2.title { font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.1; margin: 10px 0 0; max-width: 20ch; }
.pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.pillars li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 16px; align-items: center; background: var(--white); border-radius: 22px; padding: 16px 20px; }
.pillars .n {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--f-head);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.pillars h3 { font-size: 1.1rem; line-height: 1.2; align-self: end; }
.pillars p { color: var(--ink-soft); font-size: 1rem; align-self: start; }

/* ---------- Plan ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.note { font-family: var(--f-hand); font-weight: 600; font-size: 1.9rem; color: var(--rose-ink); display: inline-block; transform: rotate(-3deg); margin-top: 10px; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; counter-reset: step; }
.steps li { counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--teal-ink); margin-bottom: 8px; }
.steps h3 { font-size: 1.05rem; line-height: 1.25; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }
.sheet {
  position: relative;
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: 8px;
  padding: 20px 22px 14px 58px;
  transform: rotate(1.4deg);
  box-shadow: 0 18px 34px -22px rgba(0, 46, 90, 0.45);
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 40px; width: 2px; background: var(--pink); }
.sheet .tag { font-family: var(--f-head); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.sheet h3 { font-size: 1.4rem; margin: 4px 0 8px; }
.sheet dl { margin: 0; }
.sheet .row { padding-block: 9px 6px; border-bottom: 1px solid var(--sage-soft); }
.sheet dt { font-family: var(--f-head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.sheet dd { margin: 0; font-family: var(--f-hand); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--navy-2); }

/* ---------- Commitment ---------- */
.commit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
.commit p.body { margin-top: 18px; max-width: 54ch; color: var(--ink-soft); font-size: 1.1rem; }
.quote { margin: 28px 0 0; padding-left: 20px; border-left: 5px solid var(--teal); font-family: var(--f-head); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.25; color: var(--navy); }
.quote span { display: block; }
.quote span:first-child { color: var(--ink-soft); font-weight: 600; }
.values { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values li { background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.92rem; padding: 6px 14px; border-radius: 999px; }
.commit-photo { position: relative; max-width: 430px; width: 100%; margin-inline: auto; }
.commit-photo .frame { aspect-ratio: 3 / 4; transform: rotate(1.6deg); }

/* ---------- Courses ---------- */
.band-white { background: var(--white); }
.section-head { margin-bottom: clamp(26px, 4vw, 46px); }
.section-head .intro { margin-top: 12px; max-width: 56ch; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course { background: var(--cream); border: 1px solid var(--sage); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.course .pic { position: relative; aspect-ratio: 4 / 3; background: var(--sage-soft); overflow: hidden; }
.course .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course .pic .sticker { z-index: 1; }
.badge { position: absolute; left: 12px; top: 12px; background: var(--cream); color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 14px -8px rgba(0, 46, 90, 0.5); }
.course .pic .sticker { right: 10px; bottom: -6px; width: 22%; transform: rotate(-6deg); }
.course .txt { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course h3 { font-size: 1.5rem; line-height: 1.1; }
.course .sub { font-family: var(--f-head); font-weight: 600; font-size: 0.95rem; color: var(--teal-ink); }
.course p { color: var(--ink-soft); font-size: 1rem; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { background: var(--white); border: 1px solid var(--sage); color: var(--navy); font-weight: 600; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; }
.course.wide { grid-column: 1 / -1; flex-direction: row; }
.course.wide .pic { flex: 0 0 34%; aspect-ratio: auto; min-height: 320px; }
.course.wide .txt { padding: 26px 28px 28px; }
.exams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; margin: 8px 0 0; }
.exams > div { border-top: 1px solid var(--sage); padding-top: 10px; min-width: 0; }
.exams dt { font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); line-height: 1.2; }
.exams dt small { display: block; font-family: var(--f-body); font-weight: 600; font-size: 0.8rem; color: var(--teal-ink); margin-top: 2px; }
.exams dd { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.course .foot { font-family: var(--f-head); font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-top: 8px; }

/* ---------- Contact ---------- */
.band-navy { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.band-navy .wrap { padding-block: clamp(52px, 8vw, 96px); position: relative; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.band-navy h2 { color: var(--cream); font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 16px 0 12px; }
.band-navy .tagline { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; color: var(--band-soft); }
.band-navy .btn { border-color: var(--cream); }
.band-navy .btn-primary { background: var(--cream); color: var(--navy); }
.band-navy .btn-ghost { color: var(--cream); }
.band-navy :focus-visible { outline-color: var(--cream); }
.band-navy .bulb { right: max(16px, env(safe-area-inset-right, 0px)); top: 22px; width: 64px; transform: rotate(10deg); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--band-line); }
.contact-list li:first-child { border-top: 1px solid var(--band-line); }
.contact-list .k { font-family: var(--f-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-soft); }
.contact-list .v { font-family: var(--f-head); font-weight: 600; font-size: 1.25rem; }
.contact-list a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--teal); }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.copy { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--cream); background: transparent; border: 1px solid var(--band-soft); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.copy-status { font-size: 0.85rem; color: var(--band-soft); min-height: 1.2em; flex-basis: 100%; text-align: right; }

.foot { background: var(--cream); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 28px; }
.foot img { width: 170px; height: auto; }
.foot p { font-family: var(--f-head); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .method-grid, .plan-grid, .commit-grid, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .method-photo { max-width: 340px; }
  .commit-photo { max-width: 340px; order: -1; }
  .copy-status { text-align: left; }
  .course.wide { flex-direction: column; }
  .course.wide .pic { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .band-navy .bulb { width: 48px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .exams { grid-template-columns: minmax(0, 1fr); }
  .top .logo { width: 160px; }
  .nav { gap: 16px; }
}
@media (max-width: 420px) {
  .sheet { padding-left: 48px; }
  .sheet::before { left: 34px; }
}

/* ================= Multi-page additions ================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Home hero extras */
.collage .globe { left: 0; bottom: -2%; width: 25%; transform: rotate(-8deg); }

/* Inner page heading */
.pagehead { position: relative; overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.pagehead .wrap { position: relative; }
.pagehead .ph-body { padding-block: clamp(20px, 4vw, 48px) clamp(34px, 5vw, 60px); }
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.05; margin: 12px 0 14px; }
.pagehead .lede { max-width: 56ch; }
.jump { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; background: var(--white); border: 1px solid var(--sage); color: var(--navy); font-family: var(--f-head); font-weight: 700; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.jump a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* Home: course tiles that link to the courses page */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.tile { flex: 0 1 calc((100% - 66px) / 4); min-width: 0; display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--sage); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; }
.tile .pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage-soft); }
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .txt { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tile h3 { font-size: 1.2rem; line-height: 1.15; }
.tile .sub { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4; }
.tile .go { margin-top: auto; padding-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: 0.9rem; color: var(--teal-ink); }
.tile:hover { border-color: var(--teal-deep); box-shadow: 0 16px 30px -22px rgba(0, 46, 90, 0.5); }
.tile:hover .go { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) { .tile { transition: transform 0.15s ease; } .tile:hover { transform: translateY(-3px); } }
.more { text-align: center; margin-top: 34px; }
.pillars.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-text { margin-top: 12px; max-width: 56ch; color: var(--ink-soft); }

/* Facts row (Qui som) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.facts li { border-top: 3px solid var(--teal); padding-top: 14px; }
.facts strong { display: block; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); line-height: 1.15; margin-bottom: 4px; }
.facts span { color: var(--ink-soft); }

/* Closing call-to-action band */
.cta-band .wrap { padding-block: clamp(40px, 6vw, 68px); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-inner h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 6px; }
.cta-inner .cta-row { margin-top: 0; }

/* Footer */
.sitefoot { background: var(--cream); border-top: 1px solid var(--paper-grid); }
.sitefoot .fgrid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr; gap: 32px 48px; padding-block: 40px 28px; }
.sitefoot img { width: 170px; height: auto; }
.sitefoot .mt { margin-top: 12px; font-family: var(--f-head); font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.sitefoot h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 12px; font-weight: 700; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitefoot li a { color: var(--navy); text-decoration: none; font-weight: 500; }
.sitefoot li a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--teal); }
.sitefoot .legal { border-top: 1px solid var(--paper-grid); padding-block: 16px 22px; font-size: 0.85rem; color: var(--ink-soft); }

/* Contact page */
.contact-page .band-navy .wrap { padding-block: clamp(40px, 6vw, 72px); }
main { display: block; }

@media (max-width: 960px) {
  .tile { flex-basis: calc((100% - 22px) / 2); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sitefoot .fgrid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
@media (max-width: 640px) {
  .tile { flex-basis: 100%; flex-direction: row; }
  .tile .pic { flex: 0 0 38%; aspect-ratio: auto; min-height: 118px; }
  .tile .txt { padding: 12px 14px 14px; }
  .tile h3 { font-size: 1.1rem; }
  .tiles { gap: 14px; }
  .top .logo { width: 150px; }
}
