/* ============================================
   The Ragged Flagon — Styles
   Palette: Midnight Blue (#0a1628) + Mint (#98d4c4)
   Fonts: Cormorant Garamond (display) + Inter (body)
   ============================================ */

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

:root {
    --midnight: #0a1628;
    --midnight-light: #132238;
    --midnight-mid: #1a2d47;
    --mint: #98d4c4;
    --mint-light: #b8e6d8;
    --mint-dark: #6fb8a5;
    --white: #ffffff;
    --off-white: #f7f9f8;
    --cream: #f0f4f2;
    --text-dark: #0a1628;
    --text-muted: #4a5e72;
    --text-light: #8a9ab0;
    --line: rgba(10, 22, 40, 0.10);
    --line-strong: rgba(10, 22, 40, 0.20);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* ---------- Typography ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mint-dark);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

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

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 1.5px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--mint);
    color: var(--midnight);
    border-color: var(--mint);
}

.btn-primary:hover {
    background: var(--mint-light);
    border-color: var(--mint-light);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.4s var(--ease);
    letter-spacing: 0.01em;
}

.nav.scrolled .nav-logo {
    color: var(--midnight);
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid currentColor;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav.scrolled .nav-link {
    color: var(--text-muted);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease);
}

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

.nav-link:hover {
    color: var(--white);
}

.nav.scrolled .nav-link:hover {
    color: var(--midnight);
}

.nav-cta {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.625rem 1.5rem;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: var(--white);
    transition: all 0.3s var(--ease);
}

.nav.scrolled .nav-cta {
    border-color: var(--midnight);
    color: var(--midnight);
}

.nav-cta:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--midnight);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s var(--ease);
}

.nav.scrolled .nav-toggle-line {
    background: var(--midnight);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--midnight);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.mobile-menu-link:hover {
    opacity: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 22, 40, 0.55) 0%,
        rgba(10, 22, 40, 0.70) 50%,
        rgba(10, 22, 40, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.75;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
    background: var(--white);
}

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

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

.about-text {
    padding: 1rem 0;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-text p:first-of-type {
    color: var(--text-dark);
}

/* ---------- Products ---------- */
.products {
    padding: 8rem 0;
    background: var(--off-white);
}

.products .section-eyebrow,
.products .section-title {
    text-align: center;
}

.products .section-subtitle {
    text-align: center;
    margin: 0 auto 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

.product-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card-image img {
    transform: scale(1.03);
}

.product-card-image {
    overflow: hidden;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    padding: 1.5rem 1.75rem 0.75rem;
    color: var(--text-dark);
}

.product-card p {
    padding: 0 1.75rem 1.75rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- Philosophy ---------- */
.philosophy {
    padding: 8rem 0;
    background: var(--midnight);
}

.philosophy .section-eyebrow {
    color: var(--mint);
}

.philosophy .section-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 4rem;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.philosophy-item {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid var(--line-strong);
}

.philosophy-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--mint);
    line-height: 1;
    margin-bottom: 1.25rem;
    opacity: 0.7;
}

.philosophy-item h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.philosophy-item p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}

/* ---------- Visit ---------- */
.visit {
    padding: 8rem 0;
    background: var(--white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-info .section-title {
    margin-bottom: 2rem;
}

.visit-details {
    list-style: none;
    margin-bottom: 2.5rem;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.visit-detail svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--mint-dark);
}

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

.visit-detail a:hover {
    color: var(--mint-dark);
}

.visit-map img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--midnight);
    padding: 4rem 0 2.5rem;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--mint);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--mint);
    flex-shrink: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
}

.footer-tagline {
    color: rgba(255,255,255,0.45);
    font-size: 0.875rem;
    line-height: 1.7;
    padding-top: 0.5rem;
}

.footer-divider {
    height: 1px;
    background: var(--line-strong);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

.footer-bottom a {
    color: rgba(255,255,255,0.35);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--mint);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-inner {
        padding: 0 1.5rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .about {
        padding: 5rem 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-image img {
        height: 350px;
    }
    .products {
        padding: 5rem 0;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .philosophy {
        padding: 5rem 0;
    }
    .philosophy-items {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .visit {
        padding: 5rem 0;
    }
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .visit-map img {
        height: 280px;
    }
    .footer-top {
        flex-direction: column;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}
