
:root {
    --bg-dark: #0a0a0a;
    --bg-subtle: #1f1f1f;
    --text-light: #e6e6e6;
    --text-muted: #a3a3a3;
    --accent-gold: #D4AF37;
    --accent-gold-dark: #e6b800;
    --border-color: #262626;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Nunito Sans', sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.2s ease;
    --container-max: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: clamp(4rem, 10vw, 8rem);
    --glass-scale: 25px;
}

/* ========== RESET & BASE ========== */

html.hide-age-modal #age-modal {
    display: none !important;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== TYPOGRAPHY ========== */

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--accent-gold);
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 4vw + 1rem, 3rem);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.4rem, 3vw + 0.5rem, 2.2rem);
    margin-bottom: 0.5rem;
}

.p1 {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
    line-height: 1.6;
}

.p2 {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    line-height: 1.6;
}

.p3 {
    font-size: clamp(0.9rem, 1vw + 0.6rem, 1.125rem);
    line-height: 1.5;
}

.p4 { font-size: 1rem; }
.p5 { font-size: 0.85rem; }

strong {font-weight: 600;}

.legal-content h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-3xl) 0;
}

#hero { padding-top: var(--spacing-lg);}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 0 var(--spacing-2xl) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero p {
    max-width: 60ch;
}

/* ========== GRID LAYOUT  ========== */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.grid:last-child {
    margin-bottom: 0;
}

.grid-text {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.grid img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

/* ========== HEADER ========== */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 0;
}

.logo svg {
    display: block;
    width: auto;
    height: 120px;
}

.logo a {
    display: inline-block;
    width: 100%;
    height: 100%;
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gold);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--accent-gold-dark);
}

.btn:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* ========== COCKTAIL CARDS ========== */
.cocktail-card {
    max-width: 480px;
    background: transparent;
    padding: var(--spacing-md) 0;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    transition: var(--transition);
}

.cocktail-card:hover {
    border-top-color: var(--accent-gold);
}

.ingredients {
    margin: var(--spacing-md) 0;
    padding: 0;
    background: transparent;
    border-left: 2px solid var(--accent-gold);
    padding-left: var(--spacing-sm);
    border-radius: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tip {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.credit {
    margin-top: var(--spacing-sm);
    font-size: 0.7rem;
    text-align: right;
}

.credit a {
    color: var(--text-light);
    text-decoration: underline;
    text-decoration-color: var(--accent-gold);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: var(--transition);
}

.credit a:hover {
    color: var(--accent-gold);
    text-decoration-color: var(--text-light);
}

.cocktail-img {
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.cocktail-img.glass-rocks    { height: calc(12 * var(--glass-scale)); }
.cocktail-img.glass-old-fashioned    { height: calc(10 * var(--glass-scale)); }
.cocktail-img.glass-highball { height: calc(16 * var(--glass-scale)); }
.cocktail-img.glass-martini  { height: calc(19 * var(--glass-scale)); }

.cocktail-card p,
.cocktail-card .ingredients {
    text-align: left;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-dark);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-contact address {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-name {
    color: var(--text-light);
    font-weight: 500;
}

.contact-link {
    display: inline-block;
    margin-top: var(--spacing-xs);
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--text-light);
}

/* ========== FOOTER BOTTOM & LANGUAGES ========== */
.footer-utilities {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.language-switch a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.language-switch a:hover,
.language-switch a.active {
    color: var(--accent-gold);
}

.language-switch .divider {
    color: var(--border-color);
}


@media (max-width: 600px) {
    .footer-utilities {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
    }
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light);
}

.social-link:hover svg {
    fill: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* ========== AGE MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-box {
    text-align: center;
    padding: var(--spacing-xl);
    max-width: 500px;
    margin: var(--spacing-sm);
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-box svg {
    width: 160px;
    margin-bottom: var(--spacing-md);
}

.modal-box a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--accent-gold);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: var(--transition);
}

.modal-box a:hover {
    color: var(--accent-gold);
    text-decoration-color: var(--text-muted);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.error-msg {
    display: none;
    color:#FF0000;
    margin-top: var(--spacing-sm);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
}

/* ========== ABOUT SECTION ========== */
.about-card {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-2xl);

    border: 1px solid var(--accent-gold);
    background: transparent;
    text-align: center;
}

.about-card h2 {
    margin-bottom: var(--spacing-xl);
}

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

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    :root {
        --glass-scale: 18px;
    }
    .about-card {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* ========== UTILITIES ========== */
.mt-2 { margin-top: var(--spacing-sm); }
.hidden { display: none; }
.mutted { color: var(--text-muted); }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    .grid-text {
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    .footer-grid > div:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid > div:last-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .header {
        flex-direction: column;
        text-align: center;
    }
    .cocktail-card {
        padding: var(--spacing-sm);
    }
}

/* ========== ZIG-ZAG DESKTOP LAYOUT ========== */
@media (min-width: 768px) {
    .grid:nth-of-type(even) > div:first-child {
        order: 2;
    }

    .grid:nth-of-type(even) > div:last-child {
        order: 1;
    }
}

/* ========== LEGAL PAGES (PRIVACY & TERMS) ========== */

.legal-content {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: var(--font-serif);
    color: var(--accent-gold);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content strong {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 1rem;
    position: relative;
    list-style: none;
}

.legal-content li:before {
    content: "";
    position: absolute;
    left: -1.5rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet & Smaller Desktop */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl); /* Reduced gap from 3xl for better flow */
        text-align: center;
    }
    .grid-text {
        align-items: center;
        margin: 0 auto; /* Ensures text blocks stay centered */
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
    .footer-grid > div:last-child {
        grid-column: span 2;
    }
}

/* Tablet / Large Phones */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0; /* Slightly tighter section spacing */
    }
    :root {
        --glass-scale: 18px; /* Scales down cocktail images */
    }
    .about-card {
        padding: var(--spacing-xl) var(--spacing-md);
    }
}

/* Mobile Phones */
@media (max-width: 600px) {
    /* Layout & Spacing */
    section {
        padding: var(--spacing-xl) 0; /* Optimize screen real estate */
    }
    .hero {
        padding: 0 0 var(--spacing-xl) 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md); /* Tighter footer for mobile */
    }
    .footer-grid > div:last-child {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    .header {
        flex-direction: column;
        text-align: center;
        padding-top: var(--spacing-sm);
    }


    .logo svg {
        height: 85px;
    }


    h1 {
        line-height: 1.15;
    }
    h2 {
        line-height: 1.2;
    }

    .cocktail-card {
        padding: var(--spacing-md) 0;
    }
    .card-header {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .modal-box {
        padding: var(--spacing-lg);
    }
    .modal-buttons .btn,
    .modal-buttons .btn-outline {
        width: 100%;
        padding: 1.2rem;
    }

    .footer .logo svg,
    .footer .logo img {
         margin: 0 auto;
    }
}
