/* ─────────────────────────────────────────────────────────────────
   Retro TV — homepage stylesheet
   Aesthetic: dark wood + warm amber + cream paper.
   ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Palette */
    --wood-1:       #2a1810;       /* darkest wood — deep walnut */
    --wood-2:       #3d251a;       /* mid wood */
    --wood-3:       #5a3a26;       /* light wood */
    --wood-grain:   rgba(0, 0, 0, 0.18);
    --cream:        #f4ead2;       /* aged paper */
    --cream-dim:    #cdbd97;
    --amber:        #ffb347;       /* warm tungsten */
    --amber-soft:   #d99c4a;
    --brass:        #b08d5b;
    --ink:          #1a0f08;       /* dark text on cream */
    --ink-soft:     #4a342a;

    --shadow-inset: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-glow:  0 0 24px rgba(255, 179, 71, 0.35);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    background-color: var(--wood-1);
    background-image:
        /* Subtle vertical wood-grain bands */
        repeating-linear-gradient(
            90deg,
            transparent 0,
            var(--wood-grain) 1px,
            transparent 2px,
            transparent 22px
        ),
        /* Broader colour variation across the planks */
        linear-gradient(
            180deg,
            var(--wood-2) 0%,
            var(--wood-1) 40%,
            var(--wood-2) 80%,
            var(--wood-1) 100%
        );
    min-height: 100vh;
}

/* ── Language switcher ── */
#lang-switcher {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 1000;
    font-family: 'Helvetica Neue', sans-serif;
}

#lang-btn {
    background: var(--wood-3);
    border: 1px solid var(--brass);
    color: var(--cream);
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: var(--shadow-inset);
    transition: background 0.15s ease;
}
#lang-btn:hover { background: var(--brass); color: var(--wood-1); }

#lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--wood-2);
    border: 1px solid var(--brass);
    border-radius: 6px;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#lang-menu.open { display: block; }
#lang-menu li {
    padding: 10px 16px;
    font-size: 0.82em;
    cursor: pointer;
    color: var(--cream);
    transition: background 0.12s;
}
#lang-menu li:hover { background: var(--wood-3); }
#lang-menu li.active { color: var(--amber); font-weight: 700; }

/* ── Hero ── */
.hero {
    padding: 100px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    /* Warm vignette glow behind the banner */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 50% at 50% 30%,
        rgba(255, 179, 71, 0.22) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.hero nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 12px;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.84em;
    position: relative;
    z-index: 2;
}
.hero nav .logo-back {
    color: var(--cream-dim);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.hero nav .logo-back:hover { color: var(--amber); }
.hero nav .nav-links a {
    color: var(--cream-dim);
    margin-left: 22px;
    text-decoration: none;
    font-weight: 500;
}
.hero nav .nav-links a:hover { color: var(--amber); }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.hero-image {
    max-width: 360px;
    width: 100%;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.55));
}

/* Wide hero banner — the timeline-of-six-TVs panoramic shot.
   Sits above the H1, breaks out of .hero-content's narrow column. */
.hero-banner {
    display: block;
    width: 100%;
    max-width: 1180px;
    height: auto;
    margin: 0 auto 44px;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    box-shadow:
        0 22px 56px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 179, 71, 0.12);
}

.hero h1 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(2.6rem, 7vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--cream);
    text-shadow:
        0 2px 0 var(--wood-1),
        0 4px 14px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 179, 71, 0.30);
    margin-bottom: 18px;
}

.hero .tagline {
    font-size: clamp(1.1rem, 2.4vw, 1.4rem);
    font-style: italic;
    color: var(--amber);
    margin-bottom: 22px;
}

.hero .subtitle {
    color: var(--cream-dim);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.cta-row {
    margin-bottom: 18px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--amber) 0%, var(--amber-soft) 100%);
    color: var(--wood-1);
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--brass);
    box-shadow:
        0 2px 0 var(--wood-3),
        0 8px 22px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    font-family: 'Helvetica Neue', sans-serif;
}
.cta-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 3px 0 var(--wood-3),
        0 12px 30px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cta-button:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 var(--wood-3),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero .meta {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.8em;
    color: var(--cream-dim);
    letter-spacing: 0.05em;
    margin-top: 6px;
}

/* ── Generic section ── */
main { position: relative; z-index: 1; }

section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    color: var(--amber);
    text-shadow: 0 2px 0 var(--wood-1), 0 0 20px rgba(255, 179, 71, 0.2);
    margin-bottom: 14px;
}

.section-sub {
    text-align: center;
    color: var(--cream-dim);
    font-size: 1.02em;
    max-width: 560px;
    margin: 0 auto 50px;
    font-style: italic;
}

/* ── Timeline section ── */
.timeline-section {
    padding-bottom: 90px;
}

.timeline-rail {
    position: relative;
    margin: 60px auto 0;
    padding: 0 24px;
}

.timeline-line {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 55%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--brass) 10%,
        var(--brass) 90%,
        transparent 100%
    );
    z-index: 0;
}

.timeline-thumbs {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.timeline-thumb {
    flex: 1;
    min-width: 110px;
    text-align: center;
}

.timeline-thumb img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background: #0a0a0a;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid var(--brass);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-thumb.featured img {
    border-color: var(--amber);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(255, 179, 71, 0.45);
}

.timeline-thumb:hover img {
    transform: translateY(-3px);
}

.thumb-year {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    font-weight: 700;
    color: var(--cream);
}

.thumb-name {
    font-size: 0.78em;
    color: var(--cream-dim);
    margin-top: 2px;
    font-family: 'Helvetica Neue', sans-serif;
}

/* ── Screenshots ── */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.screenshot-shot {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--wood-2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 179, 71, 0.10);
    transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.screenshot-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-shot:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 179, 71, 0.30);
}

/* ── Features grid ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(
        180deg,
        rgba(244, 234, 210, 0.97) 0%,
        rgba(220, 206, 178, 0.95) 100%
    );
    color: var(--ink);
    padding: 30px 24px 26px;
    border-radius: 10px;
    border: 1px solid var(--brass);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    /* subtle paper texture */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 4px 4px;
    pointer-events: none;
}

.feature-icon {
    height: 64px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 16px;
    display: block;
    background: #0a0a0a;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--ink-soft);
    font-size: 0.93em;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── Closing CTA ── */
.cta-section {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 40px;
}
.cta-section h2 {
    margin-bottom: 30px;
    font-style: italic;
}

/* ── Contact ── */
.contact-section {
    text-align: center;
    padding: 40px 20px 90px;
    max-width: 760px;
    margin: 0 auto;
}
.contact-section h2 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--cream);
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin-bottom: 12px;
}
.contact-card {
    margin-top: 24px;
    padding: 28px 32px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--wood-3);
    border-radius: 10px;
    color: var(--cream-dim);
    font-size: 1.05em;
    line-height: 1.8;
    display: inline-block;
}
.contact-card .contact-name {
    color: var(--cream);
    font-weight: 700;
    letter-spacing: 0.04em;
}
.contact-card a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card .contact-loc {
    font-style: italic;
    font-size: 0.92em;
    color: var(--cream-dim);
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--wood-3);
    color: var(--cream-dim);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.82em;
}
footer a {
    color: var(--cream-dim);
    text-decoration: none;
}
footer a:hover { color: var(--amber); }

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero { padding: 80px 16px 50px; }
    .hero-image { max-width: 280px; }
    .hero-banner {
        margin-bottom: 30px;
        border-radius: 6px;
        box-shadow:
            0 14px 32px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(255, 179, 71, 0.1);
    }
    .timeline-thumb { min-width: 80px; }
    .timeline-thumb img { height: 56px; }
    section { padding: 50px 16px; }
}
