/* ==========================================================================
   AtticUp — site styles
   Palette and type carried over from the original brand (gold + charcoal,
   Cormorant Garamond + DM Sans), rebuilt on a modern layout system.
   ========================================================================== */

:root {
  --ink: #14161a;
  --ink-2: #1d2026;
  --ink-3: #2a2e36;
  --paper: #fbf8f3;
  --cream: #f4ede1;
  --sand: #e9dfcd;
  --line: rgba(20, 22, 26, 0.1);
  --line-dark: rgba(255, 255, 255, 0.1);
  --text: #23262c;
  --muted: #5d6068;
  --muted-dark: rgba(244, 237, 225, 0.68);
  --gold: #c9a84c;
  --gold-2: #dcc07a;
  --gold-ink: #8b6914;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --danger: #c0392b;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(20, 22, 26, 0.28);
  --shadow-sm: 0 6px 18px -8px rgba(20, 22, 26, 0.2);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; color: var(--ink); letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--gold-ink); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--cream); }
.dark h1 em, .dark h2 em, .dark h3 em { color: var(--gold); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.5rem; }
p + p { margin-top: 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.dark .lead, .dark p { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--muted-dark); font-size: 0.84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar-l, .topbar-r { display: flex; gap: 22px; align-items: center; }
@media (max-width: 760px) { .topbar-l .hide-sm, .topbar-r { display: none; } .topbar .wrap { justify-content: center; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
}
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.logo-text span { color: var(--gold-ink); }
.dark .logo, .site-footer .logo { color: var(--cream); }
.site-footer .logo-mark { background: var(--gold); color: var(--ink); }
.site-footer .logo-text span { color: var(--gold); }
.logo-img { display: block; height: 54px; width: auto; }
.site-footer .logo-img { height: 72px; }
@media (max-width: 560px) { .logo-img { height: 46px; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-dd > button {
  padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--text); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-dd > button:hover, .nav-dd.open > button { background: var(--cream); }
.nav > a[aria-current="page"] { color: var(--gold-ink); }
.nav .btn { margin-left: 10px; padding: 12px 20px; }
.nav-dd { position: relative; }
.nav-dd > button svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dd.open > button svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  width: 340px; padding: 10px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 961px) {
  .nav-dd:hover .dd-menu, .nav-dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.dd-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; font-size: 0.93rem; color: var(--text); }
.dd-menu a:hover { background: var(--cream); color: var(--gold-ink); }
.dd-menu .dd-all { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600; color: var(--gold-ink); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav-dd > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; padding: 16px; }
  .dd-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: var(--cream); padding: 6px; margin: 4px 0 8px; display: none; opacity: 1; visibility: visible; }
  .nav-dd.open .dd-menu { display: block; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.dark { background: var(--ink); color: var(--cream); }
.tint { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-head .lead { margin-top: 1rem; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(201, 168, 76, 0.18), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 0.98; margin-bottom: 1.4rem; }
.hero h1 em { display: inline; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.hero-badges span::before { content: "✓"; color: var(--gold-ink); font-weight: 700; margin-right: 6px; }

.hero-media { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img:first-child { grid-row: 1 / 3; }
.hero-media .float-card {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; font-size: 0.9rem;
}
.hero-media-wrap { position: relative; }
.float-card strong { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--ink); }
.float-card .stars { color: var(--gold); letter-spacing: 2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stats > div { padding: 24px 22px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stat-n { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; color: var(--ink); }
.stat-l { margin-top: 6px; font-size: 0.85rem; letter-spacing: .04em; color: var(--muted); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media .float-card { left: 12px; bottom: 12px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-media { height: 360px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: var(--cream); overflow: hidden; }
.trust-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.trust:hover .trust-track { animation-play-state: paused; }
.trust-list { display: flex; gap: 0; list-style: none; padding: 0; }
.trust-list li { display: flex; align-items: center; gap: 10px; padding: 20px 34px; white-space: nowrap; font-size: 0.95rem; font-weight: 500; }
.trust-list li::after { content: "✦"; color: var(--gold); margin-left: 34px; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-media img:first-child { grid-column: 1 / 3; aspect-ratio: 3 / 2; }
.about-media img:not(:first-child) { aspect-ratio: 4 / 5; }
.about-text h3 { margin: 2rem 0 .6rem; font-size: 1.6rem; }
.about-text p { color: var(--muted); }
.quote {
  margin-top: 2rem; padding: 22px 26px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--ink); box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .about-media { order: 2; } }

/* ---------- Process + video ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.video-frame { position: relative; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); border: 1px solid var(--line-dark); }
.video-frame video { width: 100%; max-height: 640px; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 2rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 24px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.02); transition: border-color .2s, background-color .2s; }
.step:hover { border-color: rgba(201,168,76,.45); background: rgba(201,168,76,.05); }
.step-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; color: var(--gold); }
.step h3 { font-size: 1.45rem; margin-bottom: 4px; }
.step p { font-size: 0.98rem; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .video-frame { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { display: flex; flex-direction: column; gap: 18px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.review blockquote { font-size: 1.02rem; color: var(--text); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.review figcaption strong { display: block; color: var(--ink); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-card { display: grid; grid-template-columns: 1fr 1.25fr; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-dark); background: var(--ink-2); }
.price-side { padding: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, rgba(201,168,76,.18), rgba(201,168,76,0) 60%); border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.price-a { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 9vw, 6.5rem); line-height: .9; color: var(--gold); }
.price-p { display: block; margin-top: 10px; color: var(--muted-dark); font-size: .95rem; letter-spacing: .04em; }
.price-main { padding: clamp(28px, 4vw, 48px); }
.price-main h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 600; }
.price-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--cream); }
.price-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: rgba(201,168,76,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.price-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .95rem; }
@media (max-width: 860px) {
  .price-card { grid-template-columns: 1fr; }
  .price-side { border-right: 0; border-bottom: 1px solid var(--line-dark); }
}
@media (max-width: 520px) { .price-list { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.wa-box { margin: 2rem 0; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(37,211,102,.35); box-shadow: var(--shadow-sm); }
.wa-box strong { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.wa-box p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--text); }
.contact-list .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.contact-list .ic svg { width: 18px; height: 18px; stroke: var(--gold-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-ink); }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }

.form-card { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h3 { font-size: 2rem; }
.form-card > p { color: var(--muted); margin: 6px 0 24px; font-size: .95rem; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--sand); background: var(--paper);
  font-size: 1rem; color: var(--text); transition: border-color .18s, box-shadow .18s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238b6914' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,.18); }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 16px; border-radius: 10px; text-align: center; font-weight: 500; }
.form-status.ok { display: block; background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.35); color: #138a43; }
.form-status.err { display: block; background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.3); color: var(--danger); }
.hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.blog-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 250px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,168,76,.5); }
.post-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--sand); transition: color .2s; }
.post-card:hover .post-num { color: var(--gold); }
.post-tag { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.post-card h3, .post-card h4 { font-size: 1.4rem; line-height: 1.15; }
.post-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.post-more { font-size: .9rem; font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.post-card:hover .post-more { color: var(--gold-ink); }
.post-meta { font-size: .82rem; color: var(--muted); }
@media (max-width: 1024px) { .blog-grid, .blog-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid, .blog-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(32px, 6vw, 64px); background: var(--ink); color: var(--cream); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,168,76,.35), transparent); }
.cta-band h2 { color: var(--cream); font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-band h2 em { color: var(--gold); }
.cta-band p { color: var(--muted-dark); margin-top: 10px; }
.cta-band .btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand p { margin-top: 18px; max-width: 34ch; }
.foot-col h4 { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; color: var(--muted-dark); transition: color .15s; }
.foot-col a:hover { color: var(--cream); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-dark); display: grid; place-items: center; color: var(--cream); transition: border-color .15s, color .15s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bot { margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.foot-bot button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.foot-bot button:hover { color: var(--cream); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + sticky mobile bar ---------- */
.fab-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.75); transition: transform .2s, background-color .2s;
}
.fab-wa:hover { transform: translateY(-2px); background: var(--wa-dark); }
.fab-wa svg { width: 24px; height: 24px; fill: currentColor; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .fab-wa { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20,22,26,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar .btn { padding: 14px 12px; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Cookie banner + privacy dialog ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 420px; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, #262d35, #1f252c); color: rgba(233, 236, 240, .82); border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.6; display: none;
}
.cookie.show { display: block; }
.cookie p { margin-bottom: 16px; }
.cookie button.link { background: none; border: 0; color: #d4b96e; text-decoration: none; cursor: pointer; padding: 0; font: inherit; }
.cookie button.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cookie .btns { display: flex; gap: 12px; }
.cookie .btn { padding: 10px 20px; font-size: .9rem; border-radius: 6px; }
.cookie .btn-gold { background: #d4b96e; color: #23262c; font-weight: 700; }
.cookie .btn-gold:hover { background: #dfc683; }
@media (max-width: 760px) { .cookie { left: 12px; right: 12px; bottom: 88px; max-width: none; } }

dialog.privacy { border: 0; padding: 0; border-radius: 18px; width: min(640px, calc(100% - 32px)); max-height: 85vh; box-shadow: var(--shadow); background: var(--paper); color: var(--text); }
dialog.privacy::backdrop { background: rgba(20,22,26,.6); backdrop-filter: blur(3px); }
.privacy-inner { padding: clamp(24px, 4vw, 40px); }
.privacy-inner h2 { font-size: 2.2rem; margin-bottom: 8px; }
.privacy-inner h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.privacy-inner p, .privacy-inner li { color: var(--muted); font-size: .95rem; }
.privacy-inner ul { padding-left: 20px; }
.privacy-inner .btn { margin-top: 26px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Blog
   ========================================================================== */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); background: var(--ink); color: var(--cream); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, rgba(201,168,76,.2), transparent 70%); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); color: var(--cream); max-width: 18ch; }
.page-hero h1 em { color: var(--gold); }
.page-hero .lead { color: var(--muted-dark); margin-top: 1.2rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted-dark); margin-bottom: 1.6rem; list-style: none; padding: 0; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 1.6rem; font-size: .92rem; color: var(--muted-dark); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; }
.aside-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.aside-card.dark { background: var(--ink); border-color: var(--ink); }
.aside-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.aside-card p { font-size: .93rem; color: var(--muted); margin-bottom: 18px; }
.aside-card.dark p { color: var(--muted-dark); }
.aside-card .btn + .btn { margin-top: 10px; }
.toc { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .9rem; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--ink); background: var(--cream); border-left-color: var(--gold); }
.aside-title { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 12px; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .aside { position: static; } .aside .toc-card { display: none; } }

/* Article prose — keeps every original content component */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--text); max-width: 72ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 2.2em; margin-bottom: .2em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--gold-ink); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold); }
.prose > p:first-child { font-size: 1.22rem; line-height: 1.7; color: var(--ink); }

.prose table, .price-table, .compare-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 2em 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; background: #fff; }
.prose th { background: var(--ink); color: var(--gold); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 15px 18px; font-weight: 600; }
.prose td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--paper); }
.prose td:last-child { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2em 0; }
.table-scroll > table { margin: 0; min-width: 480px; }

.highlight-box { padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; border-left: 3px solid var(--gold); background: var(--cream); }
.highlight-box p { margin: 0; font-size: 1rem; color: var(--ink); }
.winner-box { padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--cream); }
.winner-box h3 { margin: 0 0 8px; color: var(--gold); font-size: 1.5rem; }
.winner-box p { margin: 0; color: var(--muted-dark); font-size: 1rem; }

.check-list, .cross-list, .red-list { list-style: none; padding-left: 0 !important; }
.check-list li, .cross-list li, .red-list li { position: relative; padding: 12px 16px 12px 48px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.check-list li + li, .cross-list li + li, .red-list li + li { margin-top: 8px; }
.check-list li::before, .cross-list li::before, .red-list li::before { position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.check-list li::before { content: "✓"; background: rgba(201,168,76,.2); color: var(--gold-ink); }
.cross-list li::before { content: "✕"; background: rgba(192,57,43,.12); color: var(--danger); }
.red-list li::before { content: "!"; background: rgba(231,76,60,.14); color: #c0392b; }

.timeline { position: relative; display: grid; gap: 14px; margin: 2em 0; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--sand)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.timeline-num { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; box-shadow: 0 0 0 5px var(--paper); }
.timeline-content { padding: 14px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.timeline-title { font-weight: 700; color: var(--ink); }
.timeline-desc { font-size: .97rem; color: var(--muted); margin-top: 2px; }

.idea-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 2em 0; }
.idea-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.idea-card:hover { border-color: rgba(201,168,76,.55); transform: translateY(-2px); }
.idea-icon { font-size: 1.9rem; margin-bottom: 10px; }
.idea-title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); margin-bottom: 6px; line-height: 1.15; }
.idea-desc { font-size: .95rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) { .idea-grid { grid-template-columns: 1fr; } }

hr.divider { border: 0; height: 1px; background: var(--line); margin: 2.6em 0; }

.cta-block { margin-top: 3em !important; padding: clamp(28px, 5vw, 44px); border-radius: 20px; background: var(--ink); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.cta-block::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(201,168,76,.3), transparent); }
.cta-block h3 { margin: 0 0 10px; color: var(--cream); font-size: clamp(1.7rem, 3vw, 2.2rem); }
.cta-block p { color: var(--muted-dark); max-width: 48ch; margin: 0 auto 22px; }
.cta-block .cta-btns { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 3.5em; max-width: 72ch; }
.post-nav a { display: block; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.post-nav span { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.2; }
.post-nav .next { text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { text-align: left; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--gold); }
.notfound-hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.notfound-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.notfound-hero h1 { max-width: 14ch; }
.notfound-big { font-family: var(--serif); font-weight: 700; font-size: clamp(7rem, 20vw, 15rem); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px rgba(201,168,76,.55); text-align: center; letter-spacing: -.02em; user-select: none; }
.notfound-big span { color: var(--gold); -webkit-text-stroke: 0; }
.notfound-url { margin-top: 1.2rem; font-size: .92rem; color: var(--muted-dark); overflow-wrap: anywhere; }
.notfound-url code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid var(--line-dark); color: var(--cream); }
.notfound-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.notfound-hero .btn-ghost { border-color: rgba(255,255,255,.28); color: var(--cream); }
.notfound-hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.notfound-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.notfound-links a { display: block; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .2s, transform .2s; }
.notfound-links a:hover { border-color: var(--gold); transform: translateY(-2px); }
.notfound-links small { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 4px; }
.notfound-links span { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
@media (max-width: 860px) { .notfound-grid { grid-template-columns: 1fr; } .notfound-big { order: -1; text-align: left; font-size: clamp(5rem, 26vw, 8rem); } .notfound-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .notfound-links { grid-template-columns: 1fr; } }

/* Ghost buttons on dark surfaces outside .dark sections */
.cta-band .btn-ghost, .cta-block .btn-ghost, .aside-card.dark .btn-ghost { border-color: rgba(255,255,255,.28); color: var(--cream); }
.cta-band .btn-ghost:hover, .cta-block .btn-ghost:hover, .aside-card.dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.cookie .btn-ghost { border-color: rgba(255,255,255,.16); color: rgba(233,236,240,.5); font-weight: 500; }
.cookie .btn-ghost:hover { border-color: rgba(255,255,255,.35); color: rgba(233,236,240,.85); }
