/* ================================
   Balmaidens Landing Page Styles
   Victorian Cornwall Aesthetic
   ================================ */

:root {
    /* Color Palette */
    --charcoal: #1a1a1a;
    --parchment: #f4f1ea;
    --gold: #d4a753;
    --copper: #8b5a2b;
    --cream: #c9b18c;
    --brown: #2d2419;
    --teal: #2a5a5a;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--charcoal);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ================================
   Typography
   ================================ */

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--copper);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================
   Buttons
   ================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-primary:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 167, 83, 0.3);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* ================================
   Hero Section
   ================================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 36, 25, 0.8)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%231a1a1a" width="1200" height="800"/><path fill="%232d2419" opacity="0.3" d="M0 400L200 350L400 450L600 380L800 420L1000 360L1200 400V800H0Z"/></svg>') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 26, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: min(600px, 90vw);
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: var(--gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--copper);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--cream);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    font-size: 0.9rem;
    color: var(--cream);
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.hero-stats .dot {
    margin: 0 0.8rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--gold);
    animation: bounce 2s infinite;
}

/* ================================
   About Section
   ================================ */

.about {
    padding: 6rem 0;
    background: var(--brown);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}

.about .btn {
    margin-top: 2rem;
}

/* ================================
   Features Grid
   ================================ */

.features {
    padding: 6rem 0;
    background: var(--charcoal);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--brown);
    padding: 2.5rem;
    border: 1px solid rgba(212, 167, 83, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 167, 83, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--cream);
    font-size: 1rem;
    line-height: 1.6;
}

/* ================================
   Gameplay Section
   ================================ */

.gameplay {
    padding: 6rem 0;
    background: var(--brown);
}

.gameplay-example {
    background: #0d0d0d;
    border: 2px solid var(--gold);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.game-text {
    font-family: 'Courier New', monospace;
    color: #7cb342;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
}

.gameplay-note {
    text-align: center;
    font-style: italic;
    color: var(--cream);
    opacity: 0.8;
    margin-top: 2rem;
}

/* ================================
   Tourism Partners Section
   ================================ */

.partners {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--teal) 0%, var(--brown) 100%);
}

.partners h2 {
    color: var(--gold);
}

.partners-intro {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.partners-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.partners-highlight {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.benefit-card {
    background: rgba(26, 26, 26, 0.6);
    padding: 2.5rem;
    border: 1px solid rgba(212, 167, 83, 0.3);
}

.benefit-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.partners-cta {
    text-align: center;
    margin-top: 4rem;
}

.partners-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.partners-email {
    margin-top: 1rem;
    font-size: 1rem;
}

.partners-email a {
    color: var(--gold);
    font-weight: 600;
}

/* ================================
   Made in Cornwall Section
   ================================ */

.made-in-cornwall {
    padding: 6rem 0;
    background: var(--charcoal);
    text-align: center;
}

.made-in-cornwall p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
}

.emphasis {
    font-weight: 600;
    color: var(--gold);
    margin-top: 2rem;
}

/* ================================
   Footer
   ================================ */

.footer {
    padding: 3rem 0;
    background: var(--brown);
    text-align: center;
    border-top: 1px solid rgba(212, 167, 83, 0.3);
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--cream);
    opacity: 0.8;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ================================
   Animations
   ================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hero {
        height: 100svh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-text {
        font-size: 0.85rem;
    }

    .gameplay-example {
        padding: 1.5rem;
    }

    section {
        padding: 4rem 0 !important;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.2em;
    }

    .hero-stats {
        font-size: 0.75rem;
    }

    .hero-stats .dot {
        margin: 0 0.5rem;
    }
}

/* ================================
   Accessibility
   ================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
