/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #f6f4ef;
    --cream-dark: #ebe6dc;
    --white: #ffffff;
    --forest: #1a4d3a;
    --forest-mid: #2d6a4f;
    --forest-light: #3d8b6a;
    --mint: #d4ebe0;
    --mint-deep: #b8dcc9;
    --ink: #1c2820;
    --ink-muted: #4a5c52;
    --line: #c9d4cc;
    --rx-red: #9e2a2b;
    --shadow: 0 12px 40px rgba(26, 77, 58, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --font-serif: "Merriweather", Georgia, serif;
    --font-sans: "Source Sans 3", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    background-image:
        linear-gradient(180deg, rgba(212, 235, 224, 0.45) 0%, transparent 28%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 24px,
            rgba(26, 77, 58, 0.03) 24px,
            rgba(26, 77, 58, 0.03) 25px
        );
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav — pharmacy strip */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--forest-mid);
    box-shadow: 0 2px 12px rgba(26, 77, 58, 0.08);
    z-index: 100;
    padding: 14px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--forest);
}

.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--rx-red) 50%, var(--white) 50%);
    border: 2px solid var(--forest);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.logo:hover {
    color: var(--forest-mid);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-link:hover {
    color: var(--forest-mid);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    min-height: 84vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--mint) 0%, transparent 42%),
        linear-gradient(225deg, rgba(212, 235, 224, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--forest);
    background: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--forest);
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--ink-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
    max-width: 36em;
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--radius);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--forest-mid);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.35);
}

.btn-primary:hover {
    background: var(--forest);
    box-shadow: 0 6px 20px rgba(26, 77, 58, 0.4);
}

/* Sections */
section {
    padding: 76px 0;
}

.section-header {
    margin-bottom: 44px;
}

.section-intro {
    margin-top: 12px;
    color: var(--ink-muted);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.65;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--forest);
}

/* Store cards */
.games-section {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.games-grid {
    display: grid;
    gap: 28px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--cream);
    border: 1px solid var(--line);
    border-left: 5px solid var(--forest-mid);
    box-shadow: var(--shadow);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-card:hover {
    border-left-color: var(--rx-red);
    box-shadow: 0 16px 48px rgba(26, 77, 58, 0.12);
}

.game-image {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background: linear-gradient(160deg, #e8f5ef 0%, #c5e6d4 45%, #9fd4b8 100%);
}

.game-2 {
    background: linear-gradient(160deg, #fdf8f3 0%, #f0e6d8 50%, #e8dcc8 100%);
}

.game-3 {
    background: linear-gradient(160deg, #fef6e8 0%, #fde8c8 40%, #f5d5a8 100%);
}

.game-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--forest);
}

.game-description {
    color: var(--ink-muted);
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.game-link {
    color: var(--forest-mid);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.game-link:hover {
    text-decoration: underline;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-lead {
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.55;
}

.about-description {
    color: var(--ink-muted);
    margin-bottom: 24px;
    font-size: 0.96rem;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.stat-item {
    font-size: 0.88rem;
    color: var(--ink-muted);
    padding: 12px 18px;
    background: var(--mint);
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.stat-number {
    font-weight: 700;
    color: var(--forest-mid);
}

/* Careers */
.careers-intro {
    color: var(--ink-muted);
    margin-bottom: 28px;
}

.positions-list {
    display: flex;
    flex-direction: column;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease;
}

.position-item:hover {
    border-color: var(--forest-mid);
}

.position-item h4 {
    font-size: 0.98rem;
    font-weight: 600;
    flex: 1;
}

.position-meta {
    font-size: 0.84rem;
    color: var(--ink-muted);
}

.position-link {
    color: var(--forest-mid);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.position-link:hover {
    color: var(--rx-red);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.contact-block-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--forest-mid);
    margin-bottom: 6px;
}

.contact-address {
    margin-bottom: 20px;
    color: var(--ink);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--ink-muted);
}

.contact-link {
    color: var(--forest-mid);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    color: var(--rx-red);
    text-decoration: underline;
}

.contact-note {
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.form-intro {
    margin-bottom: 16px;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--forest-mid);
    box-shadow: 0 0 0 3px var(--mint);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--ink-muted);
}

/* Footer */
.footer {
    padding: 60px 0 24px;
    background: var(--forest);
    color: var(--cream);
    border-top: 4px solid var(--forest-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--white);
}

.footer-description {
    font-size: 0.85rem;
    color: var(--mint);
    margin-top: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--mint);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--white);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    width: 190px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--mint);
}

.newsletter-form .btn-primary {
    background: var(--white);
    color: var(--forest);
    box-shadow: none;
}

.newsletter-form .btn-primary:hover {
    background: var(--mint);
    color: var(--forest);
}

.footer-bottom {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    padding-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 24px;
        gap: 16px;
        border-bottom: 3px solid var(--forest-mid);
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-image {
        order: 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .stats-row {
        flex-direction: column;
        gap: 14px;
    }
}
