/* =====================================================================
   Money Box Game — public website
   Dark pirate / treasure theme. Plain CSS, no build step.
   ===================================================================== */

:root {
    --bg:        #020404;
    --bg-2:      #070a0a;
    --panel:     #0c0f0f;
    --panel-2:   #121616;
    --line:      #4a3a1c;
    --line-soft: #382c16;
    --gold:      #a8731c;
    --gold-2:    #c18421;
    --gold-deep: #7d531a;
    --text:      #efe7d6;
    --muted:     #b3a589;
    --muted-2:   #8a7d63;
    --maxw:      1180px;
    --radius:    14px;
    --shadow:    0 18px 40px rgba(0,0,0,.55);
    /* Type system: titles / subtitles+menu+buttons / body */
    --font-title: 'Bebas Neue', Impact, Haettenschweiler, sans-serif;
    --font-head:  'Oswald', system-ui, sans-serif;
    --font-body:  'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1,h2,h3,h4 { font-family: var(--font-title); margin: 0; line-height: 1.05; letter-spacing: .5px; }

.gold { color: var(--gold-2); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 8px; font-weight: 600; font-family: var(--font-head);
    font-size: .82rem; letter-spacing: 1.2px; text-transform: uppercase;
    cursor: pointer; border: 1px solid transparent; transition: .2s ease;
}
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); color: #2a1c05; box-shadow: 0 8px 20px rgba(230,169,46,.3); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(230,169,46,.45); }
.btn--ghost { background: rgba(0,0,0,.25); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border: 1px solid var(--line); border-radius: 12px;
    background: rgba(0,0,0,.35); min-width: 170px;
}
.store-badge svg { width: 36px; height: 36px; fill: var(--text); flex: 0 0 auto; }
.store-badge small { display: block; font-size: .62rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.store-badge b { font-size: .95rem; font-family: var(--font-head); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(0,0,0,.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.site-header__brand img { height: 70px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav__link { font-family: var(--font-head); font-size: .86rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: .2s; }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--gold-2); }
.site-nav__lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: .82rem; color: var(--muted-2); }
.site-nav__lang a { font-weight: 700; }
.site-nav__lang a.is-active { color: var(--gold-2); }
.site-nav__cta { padding: 10px 18px; }
.site-header__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.site-header__toggle span { width: 26px; height: 2px; background: var(--gold-2); display: block; }

/* ---------- Generic section ---------- */
section { position: relative; }
.section { padding: 42px 0; }
.section--tight { padding: 28px 0; }

.section-title { text-align: center; margin-bottom: 14px; }
.section-title h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.5rem); text-transform: uppercase; color: var(--gold-2);
    display: inline-flex; align-items: center; gap: 18px;
}
.section-title h2::before, .section-title h2::after {
    content: ""; width: 46px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold)); opacity: .8;
}
.section-title h2::after { background: linear-gradient(90deg, var(--gold), transparent); }
.section-sub { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 44px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: clamp(560px, 86vh, 900px); display: flex; align-items: center;
    background-size: cover; background-position: center; background-color: var(--bg-2);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8,6,3,.68) 0%, rgba(8,6,3,.3) 45%, rgba(8,6,3,0) 100%),
                linear-gradient(0deg, var(--bg) 1%, transparent 30%);
}
.hero__inner { position: relative; z-index: 2; max-width: 320px; padding: 60px 0; text-align: center; }
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; text-transform: uppercase;
    text-shadow: 0 6px 26px rgba(0,0,0,.6);
}
.hero h1 .gold { display: block; }
.hero p { font-size: 1.05rem; color: #e7dcc6; margin: 18px 0 30px; max-width: 460px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Landing hero: content sits in the standard container, left-aligned */
/* Content box shrinks to its content (the buttons row), so it is never
   full-width; the title/text then wrap within that width. */
.page-landing .hero__inner { display: inline-block; width: fit-content; max-width: min(560px, 100%); margin: 0; text-align: left; }
/* Both CTAs always stay on a single row */
.page-landing .hero__actions { flex-wrap: nowrap; }
/* Text never exceeds the content box width */
.page-landing .hero h1,
.page-landing .hero p { max-width: 100%; }

/* Landing: How it works — icons on the background, no boxes, dotted connector */
.how-funciona { background-size: cover; background-position: center; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 42px; }
.how-step { text-align: center; position: relative; padding: 0 10px; }
/* Vertical divider between columns (matches design) */
.how-step:not(:first-child)::before {
    content: ""; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold-deep) 30%, var(--gold-deep) 70%, transparent);
    opacity: .6;
}
.how-step__icon { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 18px; background: radial-gradient(circle, var(--bg) 60%, transparent 72%); }
.how-step h3 { color: var(--gold-2); text-transform: uppercase; font-size: 1.05rem; margin-bottom: 10px; }
.how-step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Landing: "Porque vais adorar" cards — image fills the tile, text sits in
   a black block that gradients up into the image, with an icon above it. */
.why-card {
    position: relative; display: flex; align-items: flex-end;
    min-height: 360px; overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--line-soft); background-size: cover; background-position: center;
    transition: .25s ease;
}
.why-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card__body {
    position: relative; width: 100%; padding: 80px 22px 24px;
    background: linear-gradient(to top, #060503 32%, rgba(6,5,3,.86) 52%, rgba(6,5,3,0) 100%);
}
.why-card__icon { width: 42px; height: 42px; object-fit: contain; margin-bottom: 12px; }
.why-card h3 { color: var(--gold-2); text-transform: uppercase; font-size: 1.02rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Landing: download CTA over footer_bg */
/* Footer-style CTA over a background image. Selectors are keyed off
   .cta-strip--footer (specificity > the generic .cta-strip) so they win
   regardless of source order and work on any page (landing, how, ...). */
.cta-strip.cta-strip--footer { position: relative; background-size: cover; background-repeat: no-repeat; background-position: center; border: 0; padding: 92px 0; }
.cta-strip--footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,6,3,.62) 10%, rgba(8,6,3,.25) 70%, rgba(8,6,3,0)); }
.cta-strip--footer .cta-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; text-align: left; }
.cta-strip--footer .cta-footer__text { max-width: 490px; }
.cta-strip--footer .cta-footer__text h2 { color: var(--gold-2); font-size: clamp(1.5rem, 3.4vw, 2.4rem); text-transform: uppercase; }
.cta-strip--footer .cta-footer__text p { color: #e7dcc6; margin: 12px 0 22px; }
.cta-strip--footer .cta-footer .stores { justify-content: flex-start; flex-wrap: nowrap; }
.cta-strip--footer .cta-footer__actions { flex: 0 0 auto; }
.cta-strip--footer .cta-footer__actions .stores { justify-content: flex-end; }
.cta-strip--footer .cta-footer__brand img { width: 230px; max-width: 36vw; }

/* "Como Funciona" page: hero content in the standard container, left-aligned */
.page-how .hero__inner { max-width: 620px; margin: 0; text-align: left; }

/* "Como Funciona" page: the path-to-treasure steps (image + text rows) */
.path-steps { display: grid; gap: 18px; max-width: 1000px; margin: 40px auto 0; }
.path-step {
    display: grid; grid-template-columns: minmax(0, 360px) 84px 1fr; align-items: stretch;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: .2s ease;
}
.path-step:hover { border-color: var(--gold-deep); }
/* Image fills its cell flush — no padding, rounded only on the left edge */
.path-step__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.path-step__icon { display: flex; align-items: center; justify-content: center; color: var(--gold-2); }
.path-step__icon svg { width: 40px; height: 40px; }
.path-step__text { padding: 20px 26px 20px 0; align-self: center; }
.path-step__text h3 { color: var(--gold-2); text-transform: uppercase; font-size: 1.1rem; margin-bottom: 8px; }
.path-step__text p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Ranking page: hero content in the standard container, left-aligned */
.page-ranking .hero__inner { max-width: 620px; margin: 0; text-align: left; }
/* Crown centered over the RANKING title (the wrapper shrinks to the title) */
.rank-hero__title { display: inline-block; text-align: center; }
.rank-hero__crown { display: block; width: 110px; height: auto; margin: 0 auto 10px; }
.rank-hero__btn { width: 360px; max-width: 100%; height: auto; margin: 12px 0 22px; }
.rank-hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.rank-hero__points li { display: flex; align-items: center; gap: 12px; color: #e7dcc6; font-weight: 600; }
.rank-hero__points img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }

/* Ranking page: "Como funciona" cards use func images as the card background,
   with the title/description rendered over the image's black bottom area. */
.rank-steps { display: flex; align-items: flex-start; gap: 6px; margin-top: 34px; }
.rank-step { position: relative; flex: 1 1 0; min-width: 0; }
/* All cards identical size; no border */
.rank-step__img { width: 100%; aspect-ratio: 161 / 231; object-fit: cover; display: block; }
.rank-step__text { position: absolute; left: 0; right: 0; top: 190px; padding: 0 10px 14px; text-align: center; }
.rank-step__text h3 { color: var(--gold-2); font-size: 1rem; text-transform: uppercase; margin: 0 0 5px; white-space: nowrap; }
.rank-step__text p { color: var(--muted); font-size: .66rem; margin: 0; line-height: 1.35; }
/* Arrow connector — sit a quarter of the way down the cards, not centred */
.rank-arrow { flex: 0 0 auto; width: 24px; height: auto; opacity: .9; margin-top: clamp(50px, 5.5vw, 78px); }

/* Centered footer CTA variant (ranking): even overlay, content centered */
/* Centered footer (ranking, gallery): no overlay */
.cta-strip--footer.cta-strip--center::before { display: none; }
/* Footers on a light parchment background (gallery, faq) — black text,
   first line a little smaller than the second */
.cta-strip--parchment h2,
.cta-strip--parchment h2 span { color: #030404; }
.cta-strip--parchment .cta-line-sm { font-size: .74em; }

/* Footer band constrained to the container, background on the band */
.cta-foot { padding: 50px 0; }
.cta-foot__band {
    background-size: 100% 100%; background-position: center; background-repeat: no-repeat;
    border-radius: var(--radius); min-height: 140px;
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px 22px;
}
.cta-strip--footer.cta-strip--center .container { position: relative; z-index: 1; }
.cta-strip--footer.cta-strip--center .stores { justify-content: center; }

/* compact hero for inner pages */
.hero--inner { min-height: clamp(420px, 60vh, 640px); }
.hero--inner h1 { font-size: clamp(2.4rem, 7vw, 5rem); }
/* scoped under .hero so they beat the generic `.hero p` colour rule */
.hero .hero__subtitle { color: var(--gold-2); font-family: var(--font-head); font-size: clamp(1rem,2.2vw,1.5rem); text-transform: uppercase; margin-top: 6px; max-width: 540px; }
.hero .hero__lead { color: #ddd2bb; margin-top: 18px; max-width: 480px; }
.hero .hero__lead--gold { color: var(--gold-2); font-family: var(--font-head); text-transform: uppercase; margin-top: 12px; }
.hero__divider { position: relative; z-index: 2; display: block; width: 120px; height: auto; margin: 22px auto 0; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: 28px 24px; transition: .25s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.card h3 { color: var(--gold-2); font-size: 1.05rem; text-transform: uppercase; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; }
.step {
    display: flex; gap: 22px; align-items: flex-start;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 26px;
}
.step__num {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; font-size: 1.5rem;
    color: var(--gold-2); border: 1px solid var(--gold-deep); background: rgba(230,169,46,.08);
}
.step h3 { color: var(--gold-2); font-size: 1.05rem; text-transform: uppercase; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

/* ---------- Banner ribbon ---------- */
.ribbon {
    text-align: center; padding: 22px 28px; border-radius: var(--radius);
    border: 1px solid var(--gold-deep); background: rgba(230,169,46,.06);
    font-family: var(--font-head); text-transform: uppercase; color: var(--gold-2);
    letter-spacing: .5px; font-size: 1.05rem;
}
.ribbon__icon { width: 30px; height: 30px; display: inline-block; vertical-align: middle; margin-right: 12px; }

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft); text-align: center; padding: 70px 0;
}
.cta-strip h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: #030404; text-transform: uppercase; }
.cta-strip p { color: var(--muted); margin: 14px 0 26px; }
.cta-strip .stores { justify-content: center; }

/* ---------- Feature list (landing app block) ---------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature-split h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); text-transform: uppercase; color: var(--text); }
.feature-split p { color: var(--muted); margin: 18px 0; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.feature-list li::before {
    content: "✓"; flex: 0 0 auto;
    display: inline-grid; place-items: center;
    width: 24px; height: 24px; border-radius: 50%;
    border: 1.5px solid var(--gold); color: var(--gold-2);
    font-size: .72rem; font-weight: 700; line-height: 1;
}

/* ---------- Treasure types ---------- */
/* Background is a decorative frame — show it fully (no crop) and give the
   bottom ornament room to render. */
.treasure-card { text-align: center; background-size: 100% 100%; background-repeat: no-repeat; background-position: center; border: 0; padding-bottom: 80px; }
.treasure-card__head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.treasure-card__head img { height: 46px; margin: 0; object-fit: contain; flex: 0 0 auto; }
.treasure-card__head h3 { margin: 0; font-size: 1rem; }

/* About: value cards on a wood panel (item_bg), icon overhangs the top */
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 26px; margin-top: 52px; }
.value-card {
    position: relative; text-align: center; border-radius: var(--radius);
    background-size: 100% 100%; background-repeat: no-repeat;
    padding: 48px 24px 30px;
}
.value-card__icon { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; object-fit: contain; }
.value-card h3 { color: var(--gold-2); text-transform: uppercase; font-size: 1.05rem; margin: 0 0 10px; }
.value-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* About: combined banner + CTA footer over the single footer_bg image */
.about-footer {
    background-size: 100% 100%; background-repeat: no-repeat; background-color: var(--bg);
    display: flex; align-items: center; text-align: center;
    min-height: clamp(340px, 34vw, 500px); padding: 40px 0;
}
.about-footer__inner { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.about-footer__title { color: var(--gold-2); font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: clamp(1.05rem, 2.3vw, 1.45rem); letter-spacing: .5px; margin: 0 0 12px; }
.about-footer__text { color: #e7dcc6; margin: 0 0 36px; font-size: .98rem; }
.about-footer__cta { color: #500300; text-transform: uppercase; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.08; margin: 0; }
.about-footer__cta span { color: #000; }

/* ---------- Hints ---------- */
/* Pistas: (shorter) text on the left, two clue images on the right */
.hints-layout { display: grid; grid-template-columns: minmax(0, 430px) 1fr; gap: 48px; align-items: center; }
.hints-intro .hints-title-lg { font-size: 2rem; color: var(--gold-2); text-transform: uppercase; }
.hints-intro .hints-sub { color: var(--gold-2); font-family: var(--font-head); text-transform: uppercase; margin: 8px 0 14px; }
.hints-intro .hints-text { color: var(--muted); margin: 0 0 18px; }
.hints-types { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hints-types li { color: var(--muted); font-size: .92rem; }
.hints-types b { color: var(--gold-2); }
/* Both images identical size; tilted 10°. */
.hints-images { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 18px 6px; }
.hints-images img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; border: 1px solid var(--gold-2); padding: 10px; transform: rotate(10deg); }

/* ---------- Ranking ---------- */
.rank-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.rank-tab { padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .78rem; letter-spacing: 1px; cursor: pointer; }
.rank-tab.is-active { background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); color: #2a1c05; border-color: transparent; }
.rank-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.rank-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.rank-table th { background: var(--panel-2); color: var(--gold-2); font-family: var(--font-head); text-transform: uppercase; font-size: .72rem; letter-spacing: 1px; padding: 16px 18px; text-align: left; }
.rank-table td { padding: 15px 18px; border-top: 1px solid var(--line-soft); color: var(--text); font-size: .92rem; }
.rank-table tr:nth-child(even) td { background: rgba(255,255,255,.015); }
.rank-table .pos { font-family: var(--font-head); font-weight: 900; color: var(--gold-2); }
.rank-table tr.is-you td { background: rgba(230,169,46,.10); }
.rank-pos-badge { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-deep); color: var(--gold-2); font-weight: 800; }
.rank-medal { width: 36px; height: 36px; object-fit: contain; display: block; }
.rank-cell { display: inline-flex; align-items: center; gap: 8px; }
.rank-cell img { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: "🔍"; position: absolute; top: 10px; right: 10px; opacity: .7; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 920px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 18px 22px; font-size: .98rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--font-head); }
.faq-q .chev { color: var(--gold-2); transition: .25s; flex: 0 0 auto; }
.faq-item.is-open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.info-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 28px; }
.info-card h3 { color: var(--gold-2); text-transform: uppercase; margin-bottom: 14px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.info-row:first-of-type { border-top: 0; }
.info-row .lbl { color: var(--gold-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.info-row .val { color: var(--muted); font-size: .92rem; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .76rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.form-field input, .form-field textarea {
    width: 100%; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); padding: 12px 14px; font-family: inherit; font-size: .95rem;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #f08a82; font-size: .8rem; margin-top: 5px; }
.alert-success { background: rgba(63,185,80,.12); border: 1px solid #3fb950; color: #b7f0bf; padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }

/* Contact: hero needs room for the extra lines */
.page-contact .hero__inner { max-width: 310px; }

/* Our location — text sits on the black right half of our_location.png */
.contact-location__band {
    background-size: 100% 100%; background-repeat: no-repeat; border-radius: var(--radius);
    min-height: 380px; display: flex; align-items: center; justify-content: flex-end;
}
.contact-location__text { width: 50%; min-width: 300px; padding: 50px; }
.contact-location__text h3 { display: flex; align-items: center; gap: 10px; color: var(--gold-2); text-transform: uppercase; }
.contact-location__icon { width: 26px; height: 26px; object-fit: contain; }
.contact-location__text .c-place { color: var(--gold-2); font-weight: 700; margin: 8px 0 4px; }
.contact-location__text .c-addr { color: #e7dcc6; margin: 0 0 14px; font-size: .92rem; }
.contact-location__text .c-text { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.contact-location__text .c-lbl { color: var(--gold-2); text-transform: uppercase; font-size: .78rem; margin: 0 0 4px; }

/* Talk + form band over contact_us_bg.png (black left, parchment right) */
.contact-form-band {
    background-size: 100% 100%; background-repeat: no-repeat; border-radius: var(--radius);
    display: grid; grid-template-columns: 36% 1fr; min-height: 400px; overflow: hidden;
}
.contact-form-band__info { padding: 40px 32px; }
.contact-form-band__info h3 { color: var(--gold-2); text-transform: uppercase; margin-bottom: 14px; }
.contact-form-band__form { padding: 120px 100px 40px; }   /* top pad clears the baked title */
.contact-form-band__form .form-field { margin-bottom: 13px; }
.contact-form-band__form .form-field input,
.contact-form-band__form .form-field textarea { background: rgba(255,255,255,.45); border-color: #8a6630; color: #2a1d0c; }
.contact-form-band__form .form-field input::placeholder,
.contact-form-band__form .form-field textarea::placeholder { color: #6a4f24; opacity: 1; text-transform: uppercase; font-size: .82rem; letter-spacing: .5px; }
/* Submit button uses contact_button.png, centred */
.contact-form-band__submit { text-align: center; margin-top: 16px; }
.contact-btn {
    background-size: 100% 100%; background-repeat: no-repeat; background-position: center;
    border: 0; cursor: pointer; width: 240px; height: 54px; padding: 0 18px 0 44px;
    color: #2a1c05; font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; font-size: .9rem; transition: transform .2s ease;
}
.contact-btn:hover { transform: translateY(-2px); }

/* Visually hidden (kept for screen readers) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Footer band over footer.png */
.contact-foot { padding: 44px 0; }
.contact-foot__band {
    background-size: 100% 100%; background-repeat: no-repeat; border-radius: var(--radius);
    min-height: 130px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 26px 22px;
}
.contact-foot__cta { text-transform: uppercase; line-height: 1.1; font-size: clamp(1.2rem, 2.6vw, 1.9rem); color: #560902; }
.contact-foot__cta span { display: block; color: #000; }
.contact-foot__cta small { display: block; font-size: .58em; margin-top: 8px; color: #560902; }

@media (max-width: 760px) {
    .contact-location__band { min-height: 0; display: block; }
    .contact-location__text { width: 100%; min-width: 0; background: rgba(2,4,4,.62); border-radius: var(--radius); }
    .contact-form-band { grid-template-columns: 1fr; }
    .contact-form-band__form { padding: 30px; }
}

/* ---------- Legal pages ---------- */

/* Wrapper holds the parchment bg + 100px top/bottom inset, so the inner
   scroll sits in the flat middle and text never rides over the edges */
.legal-scroll-wrap { margin: 20px 0; padding: 110px 0; background-size: 100% 100%; background-position: center; background-repeat: no-repeat; }
.legal-scroll { max-height: 90vh; overflow-y: auto; }
.legal-scroll::-webkit-scrollbar { width: 10px; }
.legal-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.25); }
.legal-scroll::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 6px; }
.legal-scroll__inner { max-width: 820px; margin: 0 auto; padding: 0 30px; }
.legal__updated { color: #6b4e22; font-size: .82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 26px; }
.legal__section { margin-bottom: 24px; }
.legal__section h2 { color: #5a3a0e; font-size: 1.12rem; text-transform: uppercase; margin-bottom: 10px; }
.legal__section p { color: #2c1f0e; margin: 0 0 10px; }
.legal__section ul { color: #2c1f0e; margin: 0 0 10px; padding-left: 20px; }
.legal__section li { margin-bottom: 4px; }

/* Footer quote band — constrained to the container, background on the band */
.legal-foot { padding: 20px 0 50px; }
.legal-foot__band {
    background-size: 100% 100%; background-repeat: no-repeat; border-radius: var(--radius);
    min-height: 130px; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 26px 22px;
}
.legal-foot__cta { text-transform: uppercase; line-height: 1.12; font-size: clamp(1.05rem, 2.3vw, 1.7rem); color: #560902; }
.legal-foot__cta span { color: #000; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid var(--line-soft); margin-top: 0; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 22px; flex-wrap: wrap; }
.site-footer__brand img { height: 70px; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__links a { font-family: var(--font-head); color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.site-footer__links a:hover { color: var(--gold-2); }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); }
.site-footer__social a:hover { color: var(--gold-2); border-color: var(--gold); }
.site-footer__bar { border-top: 1px solid var(--line-soft); padding: 14px 0; text-align: center; color: var(--muted-2); font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-split, .contact-grid { grid-template-columns: 1fr; }
    .how-steps { grid-template-columns: repeat(2, 1fr); gap: 34px; }
    .about-values { grid-template-columns: repeat(2, 1fr); }
    .rank-steps { flex-wrap: wrap; justify-content: center; gap: 14px; }
    .rank-step { flex: 0 0 30%; }
    .rank-arrow { display: none; }
    /* Only keep the divider between the two columns of each row */
    .how-step::before { display: none; }
    .how-step:nth-child(even)::before { display: block; left: -17px; }
    .cta-strip--footer .cta-footer { flex-direction: column; text-align: center; }
    .cta-strip--footer .cta-footer .stores { justify-content: center; flex-wrap: wrap; }
    .cta-strip--footer .cta-footer__actions .stores { justify-content: center; }
    .cta-strip--footer .cta-footer__brand img { max-width: 60vw; }
    .site-header__toggle { display: flex; }
    .site-nav {
        position: fixed; inset: 92px 0 auto 0; flex-direction: column; align-items: flex-start;
        background: rgba(0,0,0,.98); padding: 22px; gap: 16px; border-bottom: 1px solid var(--line);
        transform: translateY(-120%); transition: .3s; max-height: calc(100vh - 92px); overflow: auto;
    }
    .site-nav.is-open { transform: translateY(0); }
}
@media (max-width: 620px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .hints-layout { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 56px 0; }
    .step { flex-direction: column; gap: 14px; }
    .page-landing .hero__inner { display: block; width: auto; max-width: 100%; }
    .page-landing .hero__actions { flex-wrap: wrap; }
    .about-values { grid-template-columns: 1fr; }
    .rank-step { flex: 0 0 45%; }
    .path-step { grid-template-columns: 1fr; text-align: center; }
    .path-step__icon { padding-top: 16px; }
    .path-step__text { padding: 12px 22px 22px; }
}
