/* ========================================================================== */
/* CHAPTER 1: GLOBAL SETTINGS & TYPOGRAPHY                                    */
/* ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f5e6c8; /* Light Cream Text */
    
    /* Robust Font Stack: Copperplate with strong serifs as fallback */
    font-family: 'Copperplate Gothic', 'Copperplate', 'Perpetua Titling MT', 'Times New Roman', serif;

    /* Deep speakeasy gradient with warm spotlight center */
    background: radial-gradient(circle at 39% 5%, #6a4210 0, #2b1505 36%, #050303 59%, #000 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================================================== */
/* CHAPTER 2: HOMEPAGE HERO SECTION                                           */
/* ========================================================================== */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align to top */
    padding: 30px 16px 96px;     /* Minimal top padding */
    text-align: center;
    overflow: hidden;
}

/* Glowing amber halo behind the main logo area */
.hero::before {
    content: "";
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 226, 166, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-tagline {
    margin: 0 auto 30px; 
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(248, 226, 166, 0.2); 
    color: #f5e6c8;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 650px;
    text-align: center;
}

/* ========================================================================== */
/* CHAPTER 3: MAIN NAVIGATION (THE 6-COLUMN MATRIX)                           */
/* ========================================================================== */

.spotlight-nav {
    max-width: 800px;
    margin: 0 auto 96px; 
    padding: 0 16px;
    position: relative;
    z-index: 5;
}

.compact-matrix-container {
    display: grid;
    /* 6 columns allow for 50/50 split (3 cols) and 33/33 split (2 cols) */
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr 1fr 1fr; 
    gap: 12px; 
    width: 100%;
    min-height: 550px; 

    /* Matrix Styling */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(248, 226, 166, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    position: relative;
    padding: 12px;
}

/* --- Navigation Links Styling --- */
.matrix-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px 10px;
    text-align: center;
    color: #d4c7a3;
    background: rgba(43, 21, 5, 0.3);
    border-radius: 8px;
    transition: all 0.25s ease;
    z-index: 20;
    border: 1px solid rgba(248, 226, 166, 0.1);
}

.plaque-title {
    font-size: 1.25rem;
    letter-spacing: 0.12em; 
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    color: #f8e2a6;
}

.plaque-subtext {
    font-size: 0.9rem;
    letter-spacing: 0.05em; 
    color: #a99c7a;
}

.matrix-item:hover {
    background: rgba(162, 92, 36, 0.5); 
    color: #f9e3aa; 
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(248, 226, 166, 0.4);
}
.matrix-item:hover .plaque-subtext {
    color: #f8e2a6;
}

/* --- Center Logo Styling --- */
.matrix-logo {
    /* Spans the center 2x2 area */
    grid-column: 3 / span 2;
    grid-row: 2 / span 2;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    width: 100%;
    height: 100%;
    position: relative; 
}

.matrix-logo img {
    width: 200px; 
    height: 200px; 
    object-fit: contain;
    border-radius: 50%;
    
    /* Soften the white logo to match the theme */
    filter: sepia(40%) hue-rotate(-10deg) brightness(0.95);
    
    /* Front-lit glow effect */
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.2), 
        0 0 40px rgba(248, 226, 166, 0.8), 
        0 0 80px rgba(248, 226, 166, 0.4); 
}

/* --- Specific Grid Positions --- */

/* Row 1: Split 50/50 */
.link-top-split-left { 
    grid-column: 1 / span 3;
    grid-row: 1;
}
.link-top-split-right { 
    grid-column: 4 / span 3;
    grid-row: 1;
}

/* Row 2: Middle Row Links */
.link-left-mid { 
    grid-column: 1 / span 2;
    grid-row: 2;
}
.link-right-mid { 
    grid-column: 5 / span 2;
    grid-row: 2;
}

/* Row 3: Lower Middle Links */
.link-left-bottom { 
    grid-column: 1 / span 2;
    grid-row: 3;
}
/* Note: R3 Right side is currently intentionally empty */

/* Row 4: Full Width Bottom Anchor */
.link-anchor-bottom { 
    grid-column: 1 / span 6; 
    grid-row: 4;
}

/* ========================================================================== */
/* CHAPTER 4: SUBPAGE LAYOUTS (Cocktail Book, Philosophy, etc)                */
/* ========================================================================== */

.subpage-hero {
    padding: 60px 16px 40px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 40px;
    position: relative;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 40px;
}

.subpage-back {
    display: block;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #a99c7a;
    transition: color 0.2s;
}
.subpage-back:hover {
    color: #f8e2a6;
}

.subpage-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: #f8e2a6;
    margin: 0 0 10px;
    font-weight: 600;
}

.subpage-lede {
    font-size: 1.2rem;
    color: #d4c7a3;
    margin: 0;
}

.section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 16px;
    line-height: 1.8;
}

footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px;
    text-align: center;
    font-size: 0.8rem;
    color: #a99c7a;
    border-top: 1px solid rgba(248, 226, 166, 0.05);
}

/* ===============================
   Cocktail Book – Editorial Note
   =============================== */

.cocktail-note{
    max-width: 1100px;
    margin: 0 auto 36px;
    padding: 22px 26px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(255,255,255,.06),
        rgba(255,255,255,.03)
    );
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

.cocktail-note-title{
    margin: 0 0 8px;
    font-size: 1.1rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,215,160,.95);
}

.cocktail-note-text{
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: rgba(255,255,255,.92);
}

.cocktail-note-subtext{
    margin: 0;
    font-size: .95rem;
    color: rgba(255,255,255,.75);
}


/* ========================================================================== */
/* CHAPTER 5: COCKTAIL FAMILIES (The Cards on the Cocktail Book Page)         */
/* ========================================================================== */

/* The grid container for the families */
.cocktail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

/* Individual Family Card */
.family-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: rgba(43, 21, 5, 0.4);
    border: 1px solid rgba(248, 226, 166, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 180px;
}

.family-card:hover {
    background: rgba(162, 92, 36, 0.5); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 0 0 10px rgba(248, 226, 166, 0.4);
}

.family-card-title {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f8e2a6;
    margin: 0 0 10px;
}

.family-card-text {
    font-size: 1rem;
    color: #d4c7a3;
    margin-bottom: 0;
}

.family-card-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #a99c7a;
    transition: color 0.2s;
    text-align: right;
    width: 100%;
    margin-bottom: 5px;
}
.family-card-link:hover {
    color: #f8e2a6;
}

/* ========================================================================== */
/* CHAPTER 6: COCKTAIL DETAIL MODAL (Popup)                                   */
/* ========================================================================== */

.cocktail-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.cocktail-modal.open {
    display: flex;
}

.cocktail-modal-dialog {
    max-width: 960px;
    width: 95%;
    max-height: 90vh;
    background: #090807;
    border: 1px solid rgba(248, 226, 166, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cocktail-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #f8e2a6;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

/* --- Modal Header (Image Left, Text Right) --- */
.cocktail-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(248, 226, 166, 0.1);
    flex-shrink: 0;
}

.modal-header-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(248, 226, 166, 0.3);
    box-shadow: 0 0 20px rgba(248, 226, 166, 0.2);
}

.modal-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-header-text {
    flex-grow: 1;
    padding-top: 10px;
}

.modal-title {
    font-size: 2.2rem;
    margin: 0 0 10px;
    color: #f9e3aa;
    line-height: 1;
}

.modal-family-description {
    font-size: 1rem;
    color: #d4c7a3;
    line-height: 1.5;
}

/* --- Modal Body (Content Grid) --- */
.cocktail-modal-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.modal-grid-heading {
    color: #f8e2a6;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 15px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Scrollable Container for Drinks */
.modal-cocktail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #a25c24 #111;
}

.modal-footer-note {
    font-size: 0.85rem;
    color: #a99c7a;
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.cocktail-modal-back {
    align-self: flex-start;
    background: #a25c24;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    flex-shrink: 0;
}
.cocktail-modal-back:hover {
    background: #c57129;
}

/* ========================================================================== */
/* CHAPTER 7: INDIVIDUAL DRINK CARDS (Inside the Modal)                       */
/* ========================================================================== */

.modal-cocktail-card {
    background-color: #000; /* Pure Black Background */
    border: 1px solid rgba(248, 226, 166, 0.2);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.modal-cocktail-card:hover {
    border-color: rgba(248, 226, 166, 0.6);
    transform: translateY(-2px);
}

.cocktail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.cocktail-name {
    font-family: 'Copperplate Gothic', 'Copperplate', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #f8e2a6; /* Gold Title */
    text-transform: capitalize;
}

.cocktail-price {
    font-family: 'Copperplate Gothic', 'Copperplate', serif;
    font-size: 1.1rem;
    color: #fff; /* White Price */
    font-weight: normal;
}

.cocktail-card-body {
    font-family: sans-serif; /* Readable sans-serif for ingredients */
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
}

.cocktail-ingredients {
    margin: 0;
}

/* ========================================================================== */
/* CHAPTER 8: MOBILE RESPONSIVENESS (Global Overrides)                        */
/* ========================================================================== */

@media (max-width: 700px) {
    /* 1. Reset Homepage Matrix to Stack */
    .spotlight-nav { max-width: 100%; }
    
    .compact-matrix-container {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding: 0;
        box-shadow: none;
        border: none;
        background: none;
    }

    .matrix-logo { display: none; }
    
    .matrix-item {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        border: none;
        border-bottom: 1px solid rgba(248, 226, 166, 0.1);
        padding: 15px 10px;
    }
    .matrix-item:last-child { border-bottom: none; }
    
    .plaque-title { font-size: 1.1rem; }
    .plaque-subtext { font-size: 0.75rem; }

    /* 2. Reset Modal to Stack */
    .cocktail-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .modal-cocktail-grid {
        grid-template-columns: 1fr; /* Stack drinks vertically */
    }
}

/* ===============================
   FEATURED: Help Shape Us (DARK MAROON)
   =============================== */

a.matrix-item.featured-feedback {
    background: linear-gradient(
        180deg,
        #3a0f16 0%,
        #1f070b 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.32);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.10),
        0 12px 34px rgba(0,0,0,.6);

    z-index: 30;
}

a.matrix-item.featured-feedback .plaque-title {
    color: #ffffff;
    letter-spacing: .14em;
}

a.matrix-item.featured-feedback .plaque-subtext {
    color: rgba(255,255,255,.88);
}

a.matrix-item.featured-feedback:hover {
    background: linear-gradient(
        180deg,
        #4a141c 0%,
        #26090e 100%
    );
    transform: scale(1.035);
}




/* ========================================================================== */
/* REVIEW START -- POSSIBLE NOT NEEDED                                        */
/* ========================================================================== */

/* The 'right-bottom' link class is defined in the grid system but unused
   in the HTML because 'Behind the Curtain' spans the full bottom row. */
.link-right-bottom { 
    /* This rule is technically unused in current layout */
    grid-column: 5 / span 2;
    grid-row: 3;
}

/* REVIEW END */