/* =========================================================
   The Quantity Surveying Chronicles — site styles
   Palette: warm near-black · cream · champagne gold
   (variable names kept from the first version: "orange" = the accent colour, now gold)
   ========================================================= */

:root {
  --charcoal: #24201C;      /* warm near-black: headings, dark buttons, dark panels */
  --charcoal-2: #3B342D;    /* lines and borders on dark panels */
  --charcoal-3: #1A1714;    /* darkest: footer */
  --orange: #C29B62;        /* champagne gold accent */
  --orange-dark: #7D5E32;   /* darker gold for small text on light backgrounds */
  --orange-tint: #F5EDE1;   /* pale gold background for tags and notes */
  --gold-text: #A57F48;     /* gold for large headline words on light backgrounds */
  --on-dark: #E9E0D4;       /* light text on dark panels */
  --on-dark-muted: #A89C8E; /* secondary text on dark panels */
  --ink: #2A2520;
  --muted: #74695E;
  --line: #E8E1D7;
  --bg: #FDFBF8;
  --bg-soft: #F5F0E9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 4px 14px rgba(40, 30, 20, .05);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.eyebrow::after {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: var(--orange); margin-top: 8px;
}
.center .eyebrow::after { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 36px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head.row > div { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
/* Main buttons: dark pills (as in the reference design); gold is kept for highlights */
.btn-primary { background: var(--charcoal); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-primary::after { content: "→"; color: var(--orange); font-weight: 400; transition: transform .15s; }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-gold { background: var(--orange); color: var(--charcoal-3); }
.btn-gold:hover { background: #D4B07A; }
/* On dark panels, the main button turns gold so it stands out */
.newsletter .btn-primary, .page-hero .btn-primary { background: var(--orange); color: var(--charcoal-3); }
.newsletter .btn-primary:hover, .page-hero .btn-primary:hover { background: #D4B07A; }
.newsletter .btn-primary::after, .page-hero .btn-primary::after { color: var(--charcoal-3); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--charcoal); }
.btn-outline:hover { border-color: var(--charcoal); }
.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--charcoal); text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; color: var(--orange); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Top bar: visitor's local date & time ---------- */
.top-bar { background: var(--charcoal-3); color: #fff; font-size: .9rem; letter-spacing: .01em; border-bottom: 1px solid var(--charcoal-2); }
.top-bar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-height: 40px; }
.top-bar-icon { width: 17px; height: 17px; color: var(--orange); flex: none; }
.top-bar time { font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 600; }
.top-bar .clock-sep { color: var(--orange); margin: 0 .35em; }
.top-bar .clock-time { color: var(--orange); font-weight: 700; }
.top-bar .clock-place, .top-bar .clock-tz { color: var(--on-dark); font-weight: 500; }
@media (max-width: 520px) {
  .top-bar { font-size: .84rem; } .top-bar .wrap { min-height: 36px; }
  .top-bar .clock-place + .clock-tz { display: none; }   /* keep "Lagos", drop "(GMT+1)" */
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,251,248,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { line-height: 1; }
.brand-top { display: block; font-size: .58rem; letter-spacing: .2em; font-weight: 600; color: var(--muted); }
.brand-rule { display: block; width: 26px; height: 2px; background: var(--orange); margin: 4px 0 4px; border-radius: 2px; }
.brand-main { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.22rem; letter-spacing: .06em; color: var(--charcoal); }
.brand-top, .brand-main { white-space: nowrap; }
@media (max-width: 380px) {
  .brand { gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand-top { font-size: .52rem; letter-spacing: .14em; }
  .brand-main { font-size: 1.08rem; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink);
  padding: 8px 11px; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--charcoal); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: 8px; padding: 9px 16px; }
.nav a.btn { color: #fff; }
.nav .btn:hover { background: #000; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 40px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--charcoal); margin: 4px auto; border-radius: 2px; }

@media (max-width: 1099px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--orange-dark); }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; border-radius: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 28px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(194, 155, 98, .16), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.text-gold { color: var(--gold-text); }
.page-hero .text-gold { color: var(--orange); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }

/* ---------- Carousel ---------- */
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; display: grid; align-items: center;
  transition: opacity .5s ease, visibility .5s;
}
.slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.car-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--charcoal); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.car-btn:hover { border-color: var(--charcoal); }
.car-btn svg { width: 18px; height: 18px; }
.car-btn[data-car="pause"] { margin-left: 6px; }
.car-btn .i-play, .carousel.paused .car-btn .i-pause { display: none; }
.carousel.paused .car-btn .i-play { display: block; }
.car-dots { display: flex; gap: 4px; margin: 0 6px; }
.car-dots button {
  width: 34px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; position: relative;
}
.car-dots button::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 4px; border-radius: 2px;
  background: var(--line); transition: background .2s;
}
.car-dots button:hover::before { background: #CFC4B6; }
.car-dots button[aria-selected="true"]::before { background: var(--orange); }

.hero-panel {
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--charcoal); color: #fff;
  position: relative; overflow: hidden; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(var(--charcoal-2) 1px, transparent 1px), linear-gradient(90deg, var(--charcoal-2) 1px, transparent 1px);
  background-size: 36px 36px;
}
.hero-panel > * { position: relative; }
.hero-panel strong { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; margin-bottom: 18px; }
.hero-panel ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--charcoal-2); display: grid; gap: 8px; }
.hero-panel li { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; }
.hero-panel li span { color: var(--on-dark-muted); }
.hero p.lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--sans); font-weight: 700; font-size: 1.5rem; color: var(--charcoal); letter-spacing: -.01em; }
.hero-stats span { font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 44px 0 20px; }
  .hero-stats { margin-top: 28px; padding-top: 20px; gap: 24px; }
  .carousel-controls { margin-top: 28px; }
  .hero-panel { padding: 24px; aspect-ratio: auto; min-height: 220px; }
  /* On small screens each slide takes its own height (no empty gaps) */
  .slide { display: none; }
  .slide.is-active { display: grid; animation: slideFade .4s ease; }
}
@keyframes slideFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.is-active { animation: none; } }

.page-hero {
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
  /* warm glow on the right, like lamplight in the reference design */
  background:
    radial-gradient(ellipse 55% 90% at 90% 20%, rgba(194, 155, 98, .22), transparent 70%),
    linear-gradient(120deg, var(--charcoal-3) 0%, var(--charcoal) 60%, #2E2721 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--charcoal-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--charcoal-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .eyebrow { color: var(--on-dark); }
.page-hero .lead { color: var(--on-dark); margin: 0; }

/* ---------- Video ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--charcoal); cursor: pointer; border: 0; padding: 0; width: 100%;
  display: block; color: #fff; text-align: left;
}
.video::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image:
    linear-gradient(var(--charcoal-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--charcoal-2) 1px, transparent 1px);
  background-size: 32px 32px;
}
.video img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--orange);
  display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.3); transition: transform .15s;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video .play::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.video .label {
  position: absolute; left: 12px; bottom: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: #fff;
  background: rgba(26, 23, 20, .82); padding: 4px 9px; border-radius: 5px;
}
.video.sm .play { width: 46px; height: 46px; }
.video.sm .play::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: 14px; }
.video-caption h3 { margin-bottom: 4px; }
.video-caption p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #D9CFC2; box-shadow: var(--shadow); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: .94rem; }
.card-body .meta { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; }
.card .video { border-radius: 0; }
.card-link { text-decoration: none; }

.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--orange-dark); background: var(--orange-tint); padding: 3px 9px; border-radius: 99px; margin-bottom: 10px;
  align-self: flex-start;
}
.tag.grey { color: var(--charcoal); background: var(--bg-soft); }
.tag.soon { margin: 0; color: var(--charcoal); background: var(--bg-soft); border: 1px dashed #CFC4B6; }
.price { font-family: var(--sans); font-weight: 700; font-size: 1.25rem; color: var(--charcoal); letter-spacing: -.01em; }
.price small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); }

.icon-box {
  width: 44px; height: 44px; border-radius: 10px; background: var(--orange-tint); color: var(--orange-dark);
  display: grid; place-items: center; margin-bottom: 14px;
}
.icon-box svg { width: 22px; height: 22px; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 8px 16px; border-radius: 99px; font: 500 .9rem var(--sans); cursor: pointer; text-decoration: none;
}
.filter:hover { border-color: var(--charcoal); }
.filter.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
[hidden] { display: none !important; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--charcoal); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: 11px 14px; border: 1px solid #D9D0C4; border-radius: 10px; background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-success {
  display: none; padding: 14px 16px; border-radius: 8px; background: #EAF6EE; color: #1E6B3A;
  border: 1px solid #C6E6D1; font-size: .94rem;
}
.form.sent .form-success { display: block; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--charcoal); color: #fff; border-radius: 14px; padding: 44px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: var(--on-dark); margin: 0; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; border-color: var(--charcoal-2); background: var(--charcoal-3); color: #fff; }
.newsletter input::placeholder { color: var(--on-dark-muted); }
.newsletter .form-success { flex-basis: 100%; }
.newsletter .sent .form-success { display: block; }
.newsletter small { display: block; color: var(--on-dark-muted); margin-top: 10px; font-size: .8rem; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; padding: 30px 24px; } }

/* ---------- Lists, checks ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg);
}

/* ---------- Product (shop) ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product.flip > :first-child { order: 2; }
.product .buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 22px; } .product.flip > :first-child { order: 0; } }

/* ---------- Shop: PlanSwift template ---------- */
.section-divided { border-top: 1px solid var(--line); }
.template-shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.template-shot img { width: 100%; max-width: 468px; height: auto; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); }
.template-shot figcaption { margin-top: 12px; font-size: .84rem; color: var(--muted); }

/* ---------- Pricing / course ---------- */
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--charcoal); }
.plan .price { font-size: 1.9rem; margin: 6px 0 14px; }
.plan .btn { margin-top: auto; }

/* ---------- Waitlist ---------- */
.upcoming { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; display: flex; flex-direction: column; }
.upcoming h3 { font-size: 1.05rem; margin-bottom: 2px; }
.upcoming p { margin: 0; color: var(--muted); font-size: .92rem; }
.waitlist-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
.waitlist-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.interests { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.interests legend { font-size: .88rem; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; padding: 0; }
.interests label { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: .94rem; margin: 0; cursor: pointer; color: var(--ink); }
.interests input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; flex: none; }
@media (max-width: 640px) { .waitlist-card { padding: 22px; } }

/* ---------- Blog ---------- */
.post-thumb {
  aspect-ratio: 16 / 9; background: var(--charcoal); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 16px;
}
.post-thumb::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(var(--charcoal-2) 1px, transparent 1px), linear-gradient(90deg, var(--charcoal-2) 1px, transparent 1px);
  background-size: 28px 28px;
}
.post-thumb span { position: relative; font-family: var(--serif); color: #fff; font-size: 1.05rem; font-weight: 700; }
.post-thumb span::before { content: ""; display: block; width: 28px; height: 3px; background: var(--orange); margin-bottom: 8px; border-radius: 2px; }
.featured-post { display: grid; grid-template-columns: 1.2fr 1fr; }
.featured-post .post-thumb { aspect-ratio: auto; min-height: 300px; padding: 28px; }
.featured-post .post-thumb span { font-size: 1.5rem; max-width: 420px; }
.featured-post .card-body { padding: 32px; justify-content: center; }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } .featured-post .post-thumb { min-height: 200px; } }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; font-size: 1.5rem; }
.article p, .article li { font-size: 1.06rem; }
.article blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); color: var(--muted); font-style: italic; }
.article table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article th { background: var(--bg-soft); font-weight: 600; }
.article-meta { color: var(--on-dark); font-size: .9rem; margin-top: 12px; }
.breadcrumb { font-size: .85rem; color: var(--on-dark); margin-bottom: 14px; }
.breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- About ---------- */
.portrait {
  aspect-ratio: 4 / 5; border-radius: 14px; background: var(--charcoal); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.portrait::before {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image: linear-gradient(var(--charcoal-2) 1px, transparent 1px), linear-gradient(90deg, var(--charcoal-2) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portrait img { position: relative; width: 44%; }
.portrait small { position: absolute; bottom: 16px; color: var(--on-dark-muted); font-size: .8rem; }
/* Real photo: fills the frame, no grid lines, thin gold edge */
.portrait-photo::before { display: none; }
.portrait-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.portrait-photo { box-shadow: var(--shadow); outline: 1px solid rgba(194, 155, 98, .45); outline-offset: 6px; }
@media (max-width: 860px) { .portrait-photo { max-width: 420px; margin: 0 auto; width: 100%; } }
/* About photo: kept to a modest size, centred in its column */
.about-photo { max-width: 340px; width: 100%; margin: 0 auto; }
/* Name under the About photo */
.about-name { margin: 22px 0 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--charcoal); }
/* Social links under the About photo */
.about-socials { margin-top: 26px; text-align: center; }
.about-socials-label { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.about-socials .socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-socials .social { background: #fff; justify-content: center; }
/* odd number of buttons: the last one (Email) spans the full width so the grid stays even */
.about-socials .social:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .about-photo { max-width: 300px; margin: 0 auto; width: 100%; }
  .about-photo .portrait-photo { max-width: none; }
}
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--orange); }
.timeline .yr { font-size: .8rem; font-weight: 700; color: var(--orange-dark); letter-spacing: .06em; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.timeline p { color: var(--muted); font-size: .94rem; margin: 0; }
.cred { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cred .icon-box { margin: 0; flex: none; }
.cred h3 { font-size: 1rem; margin-bottom: 2px; }
.cred p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Coaching / booking ---------- */
.booking {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; min-height: 640px; overflow: hidden;
}
.booking-placeholder { display: grid; place-items: center; text-align: center; padding: 60px 24px; min-height: 640px; }
.booking-placeholder p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }
.booking-contact, .booking-contact .booking-placeholder { min-height: 0; }
.booking-contact .booking-placeholder { padding: 48px 28px; }
.booking-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.plan .price small { font-family: var(--sans); }
.plan .price.price-text { font-size: 1.4rem; line-height: 1.2; }
.plan .price.price-text small { display: block; margin-top: 4px; font-size: .82rem; font-weight: 500; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: flex; gap: 14px; }
.steps li::before {
  content: counter(step); flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--charcoal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1rem; margin: 4px 0 2px; font-family: var(--sans); }
.steps p { margin: 0; color: var(--muted); font-size: .92rem; }

.steps-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Billing switch ---------- */
.billing { margin-top: 8px; }
.billing-toggle {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 99px;
  background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 14px;
}
.billing-toggle button {
  border: 0; background: none; padding: 8px 16px; border-radius: 99px; cursor: pointer;
  font: 600 .9rem var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-checked="true"] { background: #fff; color: var(--charcoal); box-shadow: 0 1px 3px rgba(40,30,20,.12); }
.billing-toggle .save { font-size: .7rem; font-weight: 700; color: var(--orange-dark); background: var(--orange-tint); padding: 2px 7px; border-radius: 99px; }
.billing .buy { margin: 0 0 10px; }
.checkout-note { flex-basis: 100%; font-size: .88rem; color: var(--orange-dark); margin: 0; }

/* ---------- Accounts ---------- */
.nav a.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.nav a.nav-account::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor; opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a7 7 0 0 1 16 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-1a7 7 0 0 1 16 0v1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.auth-section { background: var(--bg-soft); min-height: 60vh; }
.auth-card {
  max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 36px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-h2 { font-size: 1.3rem; }
.auth-plan { background: var(--orange-tint); border-radius: 8px; padding: 10px 14px; font-size: .92rem; }
.auth-switch { text-align: center; font-size: .92rem; margin: 4px 0 0; color: var(--muted); }
.auth-switch a { color: var(--charcoal); font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.text-btn { background: none; border: 0; padding: 0; font: 600 .85rem var(--sans); color: var(--orange-dark); cursor: pointer; margin-bottom: 6px; }
.text-btn:hover { text-decoration: underline; }
.auth-msg { border-radius: 8px; padding: 12px 14px; font-size: .92rem; margin-bottom: 16px; border: 1px solid; }
.auth-msg.info { background: #EEF4FA; border-color: #CFE0F0; color: #1F4E78; }
.auth-msg.success { background: #EAF6EE; border-color: #C6E6D1; color: #1E6B3A; }
.auth-msg.error { background: #FDECEC; border-color: #F5C7C7; color: #9B2C2C; }
.auth-msg.warn { background: var(--orange-tint); border-color: #FFD3B0; color: #8A3D00; }
@media (max-width: 520px) { .auth-card { padding: 24px 20px; } }

.account { max-width: 980px; margin: 0 auto; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 4px; }
.account-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .account-grid { grid-template-columns: 1fr; } }
.account-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.account-card.soft { background: #fff; }
.account-card h3 { font-size: 1.1rem; }
.account-card .checks a { color: var(--charcoal); }
.sub-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: #EAF6EE; margin-bottom: 18px; line-height: 1.5; }
/* My account: one card per product */
.product-list { display: grid; gap: 24px; min-width: 0; }
.product-card h2 small { font-size: .8rem; font-weight: 500; }
.product-card code { font-size: .85rem; background: #F4F1EC; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.computer-box { padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; margin: 0 0 18px; line-height: 1.6; }
.computer-box .text-btn { margin: 4px 0 0; }
.computer-box .text-btn:disabled { color: #999; cursor: not-allowed; text-decoration: none; }
.sub-dot { width: 10px; height: 10px; border-radius: 50%; background: #1FA855; margin-top: 7px; flex: none; box-shadow: 0 0 0 4px rgba(31,168,85,.18); }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-option { position: relative; margin: 0; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
.plan-option span {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #D9D0C4; border-radius: 10px;
  font-weight: 400; transition: border-color .15s, box-shadow .15s;
}
.plan-option strong { color: var(--charcoal); display: flex; align-items: center; gap: 8px; }
.plan-option em { font-style: normal; color: var(--muted); font-size: .92rem; }
.plan-option .save { font-size: .68rem; font-weight: 700; color: var(--orange-dark); background: var(--orange-tint); padding: 2px 7px; border-radius: 99px; }
.plan-option input:checked + span { border: 2px solid var(--orange); padding: 15px; }
.plan-option input:focus-visible + span { box-shadow: 0 0 0 3px rgba(194,155,98,.35); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; background: #fff; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: .93rem; }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #178A45; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font-size: .9rem; font-weight: 500; color: var(--charcoal);
}
.social:hover { border-color: var(--charcoal); }
.social svg { width: 18px; height: 18px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  background: #1FA855; display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- CTA strip ---------- */
.cta-strip { border: 1px solid var(--line); border-radius: 14px; padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: #fff; }
.cta-strip h2 { margin-bottom: 4px; font-size: 1.5rem; }
.cta-strip p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal-3); color: var(--on-dark); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-top { color: var(--on-dark-muted); }
.site-footer .brand-main { color: #fff; }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about { margin-top: 16px; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--charcoal-2); display: grid; place-items: center; }
.footer-socials a:hover { border-color: var(--orange); }
.footer-socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--charcoal-2); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--on-dark-muted); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.muted { color: var(--muted); }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- Pricing page (pricing.html) ---------- */
.pricing-single { max-width: 460px; margin: 0 auto; }
.pricing-single .billing-toggle { margin-top: 6px; }
.pricing-single .checks { margin-bottom: 22px; }

/* My account: username form */
.username-form { margin: 12px 0 24px; }
.username-form .btn { margin-top: 4px; }
