/* ============================================
   THE NUMBER 9 BREWING COMPANY
   Bold Editorial Style — Emerald & Cream
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50: #f8f6f0;
    --cream-100: #f0ece0;
    --cream-200: #e8e2d0;
    --cream-300: #d4cfb8;
    --dark: #0a0a08;
    --dark-soft: #1a1a16;
    --text-light: #f8f6f0;
    --text-dark: #0a0a08;
    --text-muted: #6b6b5e;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--cream-50);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    color: var(--text-dark);
    margin-bottom: 24px;
}

.section-title em {
    font-style: italic;
    color: var(--emerald-700);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.btn-primary {
    background: var(--emerald-700);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1.5px solid rgba(248, 246, 240, 0.4);
}

.btn-secondary:hover {
    background: rgba(248, 246, 240, 0.1);
    border-color: var(--text-light);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(10, 10, 8, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.navbar.scrolled .logo {
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--emerald-700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-light);
    transition: background 0.3s;
}

.navbar.scrolled .logo-icon {
    background: var(--emerald-700);
}

.logo-text {
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(248, 246, 240, 0.8);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--emerald-500);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--text-light);
}

.navbar.scrolled .nav-links a {
    color: var(--text-muted);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--text-dark);
}

.navbar.scrolled .nav-links a::after {
    background: var(--emerald-700);
}

.nav-links .btn {
    background: var(--emerald-700);
    color: var(--text-light);
}

.navbar.scrolled .nav-links .btn {
    background: var(--emerald-700);
    color: var(--text-light);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
    transition: color 0.3s;
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-dark);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--emerald-950);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-menu-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--emerald-500);
}

.mobile-cta {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    background: var(--emerald-700);
    border-radius: 4px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--emerald-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--emerald-600), transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #059669, transparent 70%);
    bottom: -100px;
    left: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--emerald-500), transparent 70%);
    top: 40%;
    left: 40%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--emerald-400);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--emerald-400);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(248, 246, 240, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-accent {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(248, 246, 240, 0.15);
    border-radius: 12px;
    pointer-events: none;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.4);
}

/* --- About Section --- */
.about {
    padding: 140px 0;
    background: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--emerald-700);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.15;
}

.about-content {
    max-width: 480px;
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--cream-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--emerald-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Beer Section --- */
.beer {
    padding: 140px 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.beer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.beer .container {
    position: relative;
    z-index: 1;
}

.beer .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.beer .section-eyebrow {
    color: var(--emerald-500);
}

.beer .section-title {
    color: var(--text-light);
}

.beer .section-title em {
    color: var(--emerald-400);
}

.beer .section-subtitle {
    margin: 0 auto;
    color: rgba(248, 246, 240, 0.5);
}

.beer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.beer-card {
    background: rgba(248, 246, 240, 0.04);
    border: 1px solid rgba(248, 246, 240, 0.08);
    border-radius: 8px;
    padding: 40px 28px;
    transition: all 0.4s var(--ease-out);
}

.beer-card:hover {
    background: rgba(248, 246, 240, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
}

.beer-card-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-800);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-400);
    margin-bottom: 24px;
}

.beer-card-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.2;
}

.beer-card-desc {
    font-size: 0.9375rem;
    color: rgba(248, 246, 240, 0.5);
    line-height: 1.7;
}

.beer-cta {
    text-align: center;
    padding: 48px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
}

.beer-cta-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 24px;
}

/* --- Visit Section --- */
.visit {
    padding: 140px 0;
    background: var(--cream-50);
}

.visit-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visit-content {
    max-width: 520px;
}

.visit-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--emerald-700);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-text strong {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
}

.detail-text span {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.detail-text a {
    color: var(--emerald-700);
    transition: color 0.3s;
}

.detail-text a:hover {
    color: var(--emerald-600);
}

.visit-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 44, 34, 0.3), transparent 50%);
    border-radius: 12px;
}

/* --- Contact Section --- */
.contact {
    padding: 140px 0;
    background: var(--emerald-950);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-content {
    max-width: 440px;
}

.contact .section-eyebrow {
    color: var(--emerald-400);
}

.contact .section-title {
    color: var(--text-light);
}

.contact .section-title em {
    color: var(--emerald-400);
}

.contact-desc {
    font-size: 1.0625rem;
    color: rgba(248, 246, 240, 0.6);
    line-height: 1.8;
}

.contact-form-wrapper {
    background: rgba(248, 246, 240, 0.05);
    border: 1px solid rgba(248, 246, 240, 0.1);
    border-radius: 12px;
    padding: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.6);
}

.form-group input,
.form-group textarea {
    background: rgba(248, 246, 240, 0.06);
    border: 1px solid rgba(248, 246, 240, 0.12);
    border-radius: 6px;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.3s;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(248, 246, 240, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--emerald-500);
    background: rgba(16, 185, 129, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success.active {
    display: flex;
}

.form-success svg {
    color: var(--emerald-400);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text-light);
}

.form-success p {
    color: rgba(248, 246, 240, 0.6);
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(248, 246, 240, 0.08);
}

.logo-light {
    color: var(--text-light);
}

.logo-light .logo-icon {
    background: var(--emerald-700);
}

.footer-brand p {
    color: rgba(248, 246, 240, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.4);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(248, 246, 240, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact p {
    font-size: 0.9375rem;
    color: rgba(248, 246, 240, 0.6);
}

.footer-contact a {
    color: var(--emerald-400);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--emerald-300);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(248, 246, 240, 0.3);
}

.footer-tagline {
    font-style: italic;
    font-family: var(--font-serif);
    color: rgba(248, 246, 240, 0.2) !important;
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: all 0.8s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .beer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .visit-split,
    .contact-wrapper {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-grid,
    .visit-split,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .about-image-wrapper img {
        height: 350px;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .beer-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .beer-cta {
        padding: 32px 24px;
    }
    
    .beer-cta-text {
        font-size: 1.25rem;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .about-stats {
        gap: 32px;
    }
    
    .visit-image {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}
