/* ===================================
   ADVENTI NAPTÁRAK TAMITÓL – főoldal
   Ugyanaz a "hímzett advent" arculat, mint a naptárban.
   =================================== */

:root {
    --pine: #0f4a32;
    --pine-deep: #0a3524;
    --teal: #12595e;
    --gold: #d9b861;
    --gold-deep: #b8953c;
    --sage: #c4d086;
    --berry: #b5432f;

    --bg: #f6f1e7;
    --surface: #fffdf8;
    --surface-2: #efe7d6;
    --ink: #22302a;
    --muted: #5f6b63;
    --line: #e2d6bd;
    --stitch: rgba(15, 74, 50, 0.08);
    --shadow: 0 1px 2px rgba(10, 53, 36, 0.06), 0 14px 32px -18px rgba(10, 53, 36, 0.35);

    --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
    --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 20px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1a14;
        --surface: #142620;
        --surface-2: #1b3129;
        --ink: #ece6d8;
        --muted: #a9b3a8;
        --line: #26403a;
        --stitch: rgba(217, 184, 97, 0.06);
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 32px -16px rgba(0, 0, 0, 0.75);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0d1a14;
    --surface: #142620;
    --surface-2: #1b3129;
    --ink: #ece6d8;
    --muted: #a9b3a8;
    --line: #26403a;
    --stitch: rgba(217, 184, 97, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 32px -16px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(45deg, transparent 46%, var(--stitch) 46% 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, var(--stitch) 46% 54%, transparent 54%);
    background-size: 16px 16px;
    overflow-x: hidden;
}

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

.container {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 16px;
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    color: #f4efe2;
    background:
        radial-gradient(120% 80% at 85% 0%, rgba(18, 89, 94, 0.55), transparent 60%),
        linear-gradient(180deg, var(--pine) 0%, var(--pine-deep) 100%);
    padding: calc(18px + var(--safe-top)) 0 84px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, transparent 46%, rgba(217, 184, 97, 0.07) 46% 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, rgba(217, 184, 97, 0.07) 46% 54%, transparent 54%);
    background-size: 16px 16px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
    pointer-events: none;
}

.hero .container { position: relative; }

.hero__logo { display: inline-block; margin-bottom: 36px; }
.hero__logo img { height: 52px; width: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}
.eyebrow::before {
    content: "";
    width: 18px;
    border-top: 1.5px dashed currentColor;
}

.hero__title {
    margin: 12px 0 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 9vw, 76px);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variation-settings: 'SOFT' 100, 'opsz' 144;
    color: #fbf6ea;
    text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold); }

.hero__lead {
    max-width: 560px;
    margin: 0;
    font-size: 17px;
    color: rgba(244, 239, 226, 0.86);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    border: 1px dashed rgba(217, 184, 97, 0.45);
    border-radius: 999px;
    font-size: 14px;
    color: #f4efe2;
    background: rgba(10, 53, 36, 0.35);
}
.steps b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--pine-deep);
    font-size: 13px;
}

.hero__curve {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%;
    height: 48px;
    display: block;
}
.hero__curve .fill { fill: var(--bg); }
.hero__curve .thread { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 7 6; }

/* ---------- cards ---------- */

main { padding: 28px 16px 8px; }

.section-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 5vw, 34px);
    line-height: 1.15;
    color: var(--ink);
}

.cards {
    display: grid;
    gap: 22px;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:not(.card--soon):hover { transform: translateY(-3px); }

/* portrait product images (about 1 : 1.41) */
.card__media {
    position: relative;
    aspect-ratio: 900 / 1274;
    overflow: hidden;
    background: var(--pine-deep);
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* wider screens: image on the left, text on the right */
@media (min-width: 700px) {
    .card { flex-direction: row; }
    .card__media { flex: 0 0 min(42%, 360px); align-self: stretch; }
    .card__body { padding: 28px 30px 28px; justify-content: center; }
    .card__title { font-size: 32px; }
}

.card__tag {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--pine);
    color: #fbf6ea;
    border: 1px dashed rgba(217, 184, 97, 0.6);
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.card__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .card__eyebrow { color: var(--sage); }
}

.card__title {
    margin: 4px 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
}

.card__body p { margin: 0 0 12px; color: var(--muted); }

.card__list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.card__list li {
    position: relative;
    padding-left: 30px;
    margin: 6px 0;
    font-size: 15px;
}
.card__list li::before {
    /* small gold check badge */
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--pine-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.card__price {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--pine);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .card__price { color: var(--gold); }
}
.card__price--soon { font-size: 18px; color: var(--muted) !important; }

/* coming soon */
.card--soon .card__media img { filter: saturate(0.75); }
.card--soon .card__tag { background: var(--berry); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s var(--ease), background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--gold {
    background: var(--gold);
    color: var(--pine-deep);
    box-shadow: 0 4px 0 var(--gold-deep);
}
.btn--gold:hover { background: #e6c873; }

.btn--ghost {
    border: 1px dashed var(--line);
    color: var(--muted);
    cursor: default;
}

/* ---------- note + footer ---------- */

.note {
    margin: 32px 0 0;
    padding: 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}
.note h2 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}
.note p { margin: 0; color: var(--muted); font-size: 15px; }
.note a { color: var(--teal); font-weight: 500; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .note a { color: var(--gold); }
}

.footer {
    padding: 32px 0 calc(32px + var(--safe-bottom));
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.footer img { height: 40px; width: auto; margin: 0 auto 10px; opacity: 0.9; }
.footer a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
