/* =========================================================
   Acadèmia Siblings — estils
   Paleta: blau cel i blau Siblings (logo), blanc, vermell London
           + blau nit i or Big Ben com a colors de suport.
   ========================================================= */

/* Tipografies allotjades al propi servidor (sense connectar amb Google) */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Caveat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/Caveat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/NunitoSans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/NunitoSans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/Outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../fonts/Outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sky: #3BAEE6;
  --blue: #1B6FB5;
  --white: #FFFFFF;
  --red: #D2231A;
  --red-dark: #B01C14;
  --navy: #0F2747;
  --gold: #F2B544;

  --ink: #0F2747;
  --muted: #3A4D66;
  --line: #E3EEF7;
  --tint: #F5FAFE;
  --sky-soft: #EAF5FC;
  --on-navy: #C9D6E8;

  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --font-script: 'Caveat', cursive;

  --radius: 24px;
  --radius-lg: 28px;
  --shadow: 0 24px 50px -36px rgba(15, 39, 71, .4);
  --shadow-lg: 0 30px 60px -40px rgba(15, 39, 71, .45);
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; color: inherit; }
p { margin: 0; }
address { font-style: normal; }
.icon { flex: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--navy); border: 2px solid #CFE6F6; padding-top: 14px; padding-bottom: 14px; }
.btn--ghost:hover { background: var(--sky-soft); color: var(--navy); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white .icon { color: var(--red); }
.btn--white:hover { background: var(--sky-soft); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #1b3a63; color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--navy); color: var(--white); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; text-decoration: none;
}

/* ---------- Barra superior ---------- */
.topbar { position: relative; z-index: 30; background: var(--navy); color: var(--white); font-size: 14px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__links a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; }
.topbar__links a:hover { color: var(--sky); }
.topbar__links a:nth-child(1) .icon, .topbar__links a:nth-child(3) .icon { color: var(--sky); }
.topbar__links a:nth-child(2) .icon { color: #25D366; }
.langs { display: flex; gap: 4px; }
.langs a { color: var(--white); text-decoration: none; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.langs a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.langs a[aria-current] { background: var(--white); color: var(--navy); font-weight: 700; }

/* ---------- Capçalera ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: transparent; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { width: 50px; height: 59px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__top { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.brand__name { font-weight: 800; font-size: 26px; }

.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.main-nav a:not(.btn) { color: var(--navy); text-decoration: none; }
.main-nav a:not(.btn):hover { color: var(--blue); }
.main-nav__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.burger {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--white); color: var(--navy);
  align-items: center; justify-content: center; cursor: pointer;
}
.burger__open { display: inline-flex; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: inline-flex; }

/* ---------- Cercle decoratiu ---------- */
/* El cercle va dins d'una capa retallada perquè mai faci la pàgina més ampla que la pantalla */
.hero-glow {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 760px;
  overflow: hidden; pointer-events: none;
}
.hero-glow::before {
  content: ""; position: absolute; right: -120px; top: 45px;
  width: 620px; height: 620px; border-radius: 50%;
  background: #D9EDFA; filter: blur(48px); opacity: .85;
}
main { position: relative; }
.page-home main { position: static; }

/* ---------- Portada ---------- */
.hero { position: relative; z-index: 1; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-soft); color: var(--blue); font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
}
.hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__title .pill { font-family: var(--font-body); line-height: 1.3; letter-spacing: 0; }
.hero__tagline { display: block; font-weight: 800; font-size: clamp(44px, 6.4vw, 80px); line-height: .98; letter-spacing: -.02em; color: var(--navy); }
.hero__tagline span { color: var(--blue); }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__badges { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: 15px; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--red); stroke-width: 2.6; }

.hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero__img {
  width: 100%; height: 520px; object-fit: cover; object-position: 30% center;
  border-radius: 32px 32px 32px 120px; box-shadow: 0 30px 60px -30px rgba(15, 39, 71, .45);
}
.hero__card {
  position: absolute; left: -22px; bottom: 40px; display: flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: 20px; padding: 16px 20px;
  box-shadow: 0 20px 40px -18px rgba(15, 39, 71, .35);
}
.hero__card strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.2; }
.hero__card small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero__sticker {
  position: absolute; right: 22px; top: 22px; background: var(--gold); color: var(--navy);
  border-radius: 16px; padding: 10px 16px; font-family: var(--font-script); font-weight: 700; font-size: 26px;
  transform: rotate(4deg);
}

/* Roundel estil metro de Londres */
.roundel { position: relative; display: inline-block; width: 52px; height: 52px; border-radius: 50%; border: 8px solid var(--red); flex: none; }
.roundel span { position: absolute; left: -12px; right: -12px; top: 50%; height: 12px; margin-top: -6px; background: var(--blue); }
.roundel--sm { width: 34px; height: 34px; border-width: 6px; }
.roundel--sm span { left: -9px; right: -9px; height: 8px; margin-top: -4px; background: var(--navy); }
.roundel--lg { width: 96px; height: 96px; border-width: 14px; }
.roundel--lg span { left: -26px; right: -26px; height: 22px; margin-top: -11px; }

/* ---------- Seccions ---------- */
.section { position: relative; z-index: 1; padding: 88px 0; background: var(--white); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 680px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-weight: 800; font-size: clamp(32px, 3.6vw, 46px); }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.section--navy .section-head p { color: var(--on-navy); }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.eyebrow--gold { color: var(--gold); }
.script-accent { font-family: var(--font-script); font-weight: 700; font-size: 30px; color: var(--blue); line-height: 1.2; }
.script-accent--light { color: var(--white); font-size: 26px; }
.section-head .script-accent { font-size: 30px; color: var(--blue); }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

/* Per què nosaltres */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-weight: 700; font-size: 21px; }
.feature p { color: var(--muted); }
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; }
.feature__icon--sky { background: var(--sky-soft); color: var(--blue); }
.feature__icon--gold { background: #FDF3DD; color: #B57A0C; }
.feature__icon--red { background: #FCE9E7; color: var(--red); }

/* Cursos */
.course {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s;
}
.course:hover { transform: translateY(-4px); }
.course__media { position: relative; }
.course__media img { width: 100%; height: 220px; object-fit: cover; }
.course__tag { position: absolute; left: 18px; top: 18px; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.course__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; border-top: 6px solid; }
.course__body h3 { font-weight: 800; font-size: 24px; }
.course__body p { color: var(--muted); }
.course__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; }
.course__facts li { display: flex; gap: 10px; align-items: center; }
.course__facts .icon { color: var(--blue); }
.course .link-arrow { margin-top: auto; }
.course--gold .course__tag { background: var(--gold); color: var(--navy); }
.course--gold .course__body { border-top-color: var(--gold); }
.course--sky .course__tag { background: var(--sky); color: var(--navy); }
.course--sky .course__body { border-top-color: var(--sky); }
.course--red .course__tag { background: var(--red); color: var(--white); }
.course--red .course__body { border-top-color: var(--red); }

/* Nivells: línia de metro */
.levels { position: relative; z-index: 1; background: var(--blue); color: var(--white); padding: 64px 0; }
.levels__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 32px; }
.levels__head h2 { font-weight: 800; font-size: clamp(28px, 3vw, 38px); }
.levels__badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--white); color: var(--navy);
  border-radius: 999px; padding: 6px 16px 6px 6px; font-family: var(--font-head); font-weight: 700;
  font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.tube { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tube__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 4px; }
.tube__stop::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 10px; background: var(--white); }
.tube__stop:first-child::before { left: 50%; }
.tube__stop--last::before { right: 50%; }
.tube__dot { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--white); border: 8px solid var(--navy); }
.tube__stop--exam .tube__dot { border-color: var(--red); }
.tube__stop--last .tube__dot { background: var(--gold); }
.tube__code { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; }
.tube__name { font-weight: 700; font-size: 14px; }

/* Metodologia i Cambridge */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split__aside { flex: 1 1 380px; min-width: 0; margin-bottom: 0; }
.split__main { flex: 1.4 1 480px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--tint); }
.step h3 { font-weight: 700; font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); }
.step__num {
  flex: none; width: 52px; height: 52px; border-radius: 50%; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 20px;
}
.step__num--1 { background: var(--navy); }
.step__num--2 { background: var(--blue); }
.step__num--3 { background: var(--red); }

.exams { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.exam { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid; }
.exam__level { font-family: var(--font-head); font-weight: 800; font-size: 54px; line-height: 1; }
.exam strong { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.exam span:last-child { font-size: 15px; color: var(--muted); }
.exam--sky { border-top-color: var(--sky); }
.exam--sky .exam__level { color: var(--blue); }
.exam--red { border-top-color: var(--red); }
.exam--red .exam__level { color: var(--red); }

/* Franja de preus */
.cta-band-wrap { position: relative; z-index: 1; padding: 72px 0; background: var(--white); }
.cta-band { position: relative; border-radius: 32px; overflow: hidden; background: var(--red); color: var(--white); }
.cta-band__img { position: absolute; right: 0; top: 0; width: 55%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band__row { position: relative; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cta-band__text h2 { font-weight: 800; font-size: clamp(28px, 3.2vw, 40px); }
.cta-band__text p { font-size: 18px; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contacte */
/* Les dues columnes (info + formulari) acaben a la mateixa alçada */
.contact { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.contact__info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact__info .section-head { margin-bottom: 0; }
.contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.contact__list strong { font-family: var(--font-head); font-size: 17px; color: var(--navy); }
.contact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--white); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--red);
}
.map { position: relative; flex: 1 1 auto; min-height: 230px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map__actions { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.map__actions .btn { padding: 10px 16px; font-size: 15px; box-shadow: 0 10px 24px -10px rgba(15, 39, 71, .6); }
.map iframe { display: block; width: 100%; flex: 1 1 auto; min-height: 260px; border: 0; }
.map.is-live { display: flex; flex-direction: column; background: var(--white); }
.map.is-live .map__actions { position: static; padding: 12px; }
.contact__info { position: relative; }
.map__note { position: absolute; left: 0; right: 0; top: 100%; margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .map__note { position: static; margin-top: -10px; }
}

/* ---------- Pàgines legals ---------- */
.page-hero { position: relative; z-index: 1; background: var(--blue); color: var(--white); }
.page-hero__inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 130px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-weight: 800; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; }
.page-hero p { font-size: 18px; color: #DCEBF7; }
.page-hero__skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; display: block; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: #DCEBF7; }
.breadcrumb a { color: var(--white); }

.doc-wrap { position: relative; z-index: 1; background: var(--white); padding: 56px 0 88px; }
.doc-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.doc-aside { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.doc-toc { background: var(--tint); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; font-weight: 700; font-size: 15px; }
.doc-toc .eyebrow { font-size: 13px; }
.doc-toc a { color: var(--navy); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--blue); }
.doc-help { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.doc-help strong { font-family: var(--font-head); font-size: 18px; }
.doc-help span { font-size: 15px; color: var(--on-navy); }
.doc-help a { color: var(--white); font-weight: 700; font-size: 15px; word-break: break-all; }

.doc { flex: 3 1 560px; min-width: 0; }
.doc h2 { margin: 40px 0 12px; font-weight: 800; font-size: 24px; line-height: 1.25; scroll-margin-top: 24px; }
.doc > h2:first-child, .doc > p:first-child + h2 { margin-top: 0; }
.doc p, .doc ul { margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--navy); }

.data-card {
  margin: 0 0 14px; padding: 22px 24px; background: var(--tint); border: 1px solid var(--line); border-radius: 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; font-size: 16px; line-height: 1.5;
}
.data-card dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.data-card dd { margin: 2px 0 0; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 14px; }
.contact-cards a { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 20px; border: 2px solid var(--line); text-decoration: none; color: var(--navy); }
.contact-cards a:hover { border-color: var(--sky); color: var(--navy); }
.contact-cards a > span:last-child { display: flex; flex-direction: column; font-size: 15px; color: var(--muted); }
.contact-cards strong { font-family: var(--font-head); color: var(--navy); }
.contact-cards__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.contact-cards__icon--blue { background: var(--sky-soft); color: var(--blue); }
.contact-cards__icon--red { background: #FCE9E7; color: var(--red); }

.consent-box {
  margin: 0 0 14px; padding: 20px 22px; border-radius: 20px; background: var(--sky-soft); border: 1px solid #CFE6F6;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px;
}
.doc .consent-box__status { flex: 1 1 280px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--navy); }
.consent-box__btn { white-space: normal; text-align: left; }
.consent-box__btn:disabled { background: #B8CBDB; color: var(--white); cursor: not-allowed; }

.table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 16px; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.cookie-table th, .cookie-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table thead th { background: var(--tint); font-family: var(--font-head); }
.cookie-table tbody tr:last-child > * { border-bottom: 0; }
.cookie-table td { color: var(--muted); }

.contact-form {
  flex: 1.2 1 440px; min-width: 0; background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.field--grow { flex: 1 1 auto; }
.field--grow textarea { flex: 1 1 auto; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; color: var(--navy); background: var(--white);
  padding: 14px 16px; border-radius: 14px; border: 2px solid #D5E4F0; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--sky-soft); }
.field [aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check--error { color: var(--red); }
.form-alert { padding: 14px 16px; border-radius: 14px; font-weight: 700; }
.form-alert--error { background: #FCE9E7; color: #9B1A13; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Silueta i peu ---------- */
.skyline { line-height: 0; background: var(--tint); }
.skyline svg { display: block; width: 100%; height: 120px; }
.page-legal .skyline, .page-privacy .skyline, .page-cookies .skyline { background: var(--white); }

.site-footer { background: var(--navy); color: var(--on-navy); padding: 56px 0 28px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer strong { color: var(--white); font-family: var(--font-head); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; margin-bottom: 36px; }
.site-footer__brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand p, .site-footer__brand address { max-width: 340px; line-height: 1.6; }
.site-footer__logo { display: flex; align-items: center; gap: 12px; align-self: flex-start; }
.site-footer__logo:hover .site-footer__name { color: var(--sky); }
.site-footer__logo-tile { width: 56px; height: 56px; border-radius: 14px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.site-footer__name { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--white); }
.site-footer__nav, .site-footer__social { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.site-footer__social a { display: inline-flex; gap: 10px; align-items: center; }
.site-footer__social .icon { color: var(--sky); }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__legal a { text-decoration: underline; }
.site-footer__legal a[aria-current] { color: var(--white); font-weight: 700; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(15, 39, 71, .6);
}
.wa-float:hover { color: var(--white); transform: scale(1.05); }

/* ---------- Pàgina simple (404, gràcies) ---------- */
.page-simple { position: relative; z-index: 1; background: var(--tint); padding: 96px 20px 110px; }
.card-center {
  max-width: 720px; margin: 0 auto; background: var(--white); border-radius: 32px; padding: 56px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.card-center h1 { font-weight: 800; font-size: clamp(32px, 4vw, 46px); }
.card-center .lead { font-size: 18px; color: var(--muted); max-width: 520px; }
.card-center__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.roundel--check span { display: flex; align-items: center; justify-content: center; color: var(--white); }
.roundel--check .icon { stroke-width: 3; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .burger { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 39, 71, .35);
  }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-header.is-open .main-nav { display: flex; }
  .site-header { background: var(--white); }
}

@media (max-width: 860px) {
  .hero__row { padding-top: 40px; padding-bottom: 56px; gap: 36px; }
  .hero__img { height: 400px; border-radius: 28px 28px 28px 80px; }
  .hero__card { left: 12px; bottom: 16px; padding: 12px 16px; }
  .section { padding: 64px 0; }
  .split { gap: 32px; }
  .cta-band__row { padding: 40px 28px; }
  .cta-band__img { width: 100%; opacity: .2; }
  .doc-aside { position: static; }
  .page-hero__inner { padding-top: 40px; padding-bottom: 96px; }
  .page-hero__skyline { height: 56px; }
}

@media (max-width: 560px) {
  /* Barra superior: una sola línia amb icones */
  .topbar__row { padding-top: 6px; padding-bottom: 6px; }
  .topbar__links { gap: 8px; flex-wrap: nowrap; }
  .topbar__links a { width: 34px; height: 34px; justify-content: center; }
  .topbar__label { display: none; }

  .site-header__cta { display: none; }
  .main-nav__cta { display: inline-flex; margin-top: 16px; }
  .brand__logo { width: 42px; height: 50px; }
  .brand__name { font-size: 22px; }

  .hero__row { padding-top: 32px; padding-bottom: 48px; gap: 28px; }
  .hero__text { gap: 18px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__img { height: 320px; }
  .hero__sticker { font-size: 22px; right: 12px; top: 12px; }
  .hero__lead { font-size: 17px; }

  /* Seccions més compactes */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 28px; gap: 10px; }
  .section-head p { font-size: 17px; }
  .grid--3 { grid-template-columns: 1fr; gap: 20px; }

  /* Per què nosaltres: icona al costat del text */
  .grid--4 { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; border-radius: 20px; }
  .feature__icon { width: 48px; height: 48px; border-radius: 14px; grid-row: span 2; }
  .feature__icon .icon { width: 24px; height: 24px; }
  .feature h3 { font-size: 18px; align-self: end; }
  .feature p { font-size: 15px; line-height: 1.5; }

  /* Cursos */
  .course__media img { height: 180px; }
  .course__body { padding: 22px; gap: 12px; }
  .course__body h3 { font-size: 22px; }

  /* Nivells i passos */
  .levels { padding: 48px 0; }
  .step { padding: 18px; gap: 16px; }
  .step__num { width: 44px; height: 44px; font-size: 18px; }
  .step h3 { font-size: 19px; }

  /* Cambridge: B2 i C1 un al costat de l'altre */
  .exams { grid-template-columns: 1fr 1fr; gap: 12px; }
  .exam { padding: 20px 16px; }
  .exam__level { font-size: 42px; }
  .exam strong { font-size: 18px; }
  .exam span:last-child { font-size: 13px; }

  /* Franja de preus */
  .cta-band-wrap { padding: 44px 0; }
  .cta-band { border-radius: 24px; }
  .cta-band__row { padding: 32px 22px; }
  .cta-band__text { flex-basis: 100%; }
  .cta-band__btns { flex-direction: column; width: 100%; }
  .cta-band__btns .btn { width: 100%; }

  /* Silueta menys ampliada */
  .skyline svg { height: 64px; }

  /* Peu: marca a dalt; Enllaços (esquerra) i Segueix-nos (dreta) en dues columnes */
  .site-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__nav, .site-footer__social { min-width: 0; }
  .hero-glow::before { width: 360px; height: 360px; right: -140px; top: 80px; }

  .tube__code { font-size: 22px; }
  .tube__name { font-size: 12px; }
  .tube__dot { width: 36px; height: 36px; border-width: 6px; }
  .tube__stop::before { top: 13px; height: 8px; }

  .contact-form { padding: 24px; }
  .card-center { padding: 40px 24px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
