/*
 * Chookie's Beer Garden - page-specific stylesheet
 * ALL rules scoped to .cbg -- zero impact on other pages
 */

/* ═══════════════════════════════════════════
   CUSTOM PROPERTIES (declared inside .cbg)
═══════════════════════════════════════════ */
.cbg {
    --cbg-cream:       #FAF7F0;
    --cbg-red:         #8E0000;
    --cbg-red-hover:   #B01818;
    --cbg-amber:       #D99A2B;
    --cbg-amber-hover: #C08620;
    --cbg-text:        #2E2A24;
    --cbg-muted:       #5C5650;
    --cbg-border:      #E8DFD0;
    --cbg-radius:      8px;
    --cbg-t:           0.25s ease;
    --cbg-section-pad: 96px;

    background: var(--cbg-cream);
    color: var(--cbg-text);
    font-family: var(--font-body, 'Inter', 'Helvetica Neue', Arial, sans-serif);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

.cbg *,
.cbg *::before,
.cbg *::after { box-sizing: border-box; }
.cbg img  { display: block; max-width: 100%; }
.cbg a    { color: inherit; text-decoration: none; }
.cbg ul   { list-style: none; margin: 0; padding: 0; }
.cbg p    { margin: 0 0 1rem; }
.cbg p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════ */
.cbg-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.cbg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--cbg-t);
    border: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}

.cbg-btn--amber {
    background: var(--cbg-amber);
    color: var(--cbg-text);
    border-color: var(--cbg-amber);
}
.cbg-btn--amber:hover {
    background: var(--cbg-amber-hover);
    border-color: var(--cbg-amber-hover);
    color: var(--cbg-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,154,43,0.38);
}

.cbg-btn--outline {
    background: transparent;
    color: var(--cbg-cream);
    border-color: rgba(250,247,240,0.7);
}
.cbg-btn--outline:hover {
    background: var(--cbg-cream);
    border-color: var(--cbg-cream);
    color: var(--cbg-text);
    transform: translateY(-2px);
}

.cbg-btn--lg {
    padding: 16px 44px;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════
   HEADINGS (H2/H3 inside .cbg)
═══════════════════════════════════════════ */
.cbg h2,
.cbg h3 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 20px;
}

.cbg-heading {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--cbg-red);
    line-height: 1.25;
    margin: 0 0 20px;
}

.cbg-heading--center { text-align: center; }

.cbg-subheading {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 700;
    color: var(--cbg-text);
    line-height: 1.3;
    margin: 0 0 12px;
}

/* ═══════════════════════════════════════════
   IMAGE PLACEHOLDERS
═══════════════════════════════════════════ */
.cbg-img-placeholder {
    background: rgba(142,0,0,0.10);
    border-radius: var(--cbg-radius);
}
.cbg-img-placeholder--amber {
    background: rgba(217,154,43,0.16);
}

/* ═══════════════════════════════════════════
   1. HERO - full-width, nền đỏ
═══════════════════════════════════════════ */
.cbg-hero {
    position: relative;
    background-color: var(--cbg-red);
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /*
      Khi có ảnh nền thật, thêm inline style hoặc class:
      background-image: url('/wp-content/uploads/beer-garden-hero.jpg');
      background-size: cover;
      background-position: center;
    */
}

.cbg-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

.cbg-hero.has-image .cbg-hero-overlay {
    background: rgba(0,0,0,0.35);
}

.cbg-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 24px;
    max-width: 880px;
    width: 100%;
}

.cbg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cbg-amber);
    margin: 0 0 22px;
}
.cbg-eyebrow::before,
.cbg-eyebrow::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: rgba(217,154,43,0.55);
}

.cbg-hero-title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 700;
    color: var(--cbg-cream);
    line-height: 1.15;
    margin: 0 0 44px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.24);
    word-break: break-word;
    overflow-wrap: break-word;
}

.cbg-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   2. ACTION STRIP
═══════════════════════════════════════════ */
.cbg-action-strip {
    background: var(--cbg-cream);
    padding: 56px 0;
    border-bottom: 1px solid var(--cbg-border);
}

.cbg-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cbg-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 16px;
    border-radius: var(--cbg-radius);
    border: 1px solid var(--cbg-border);
    background: #fff;
    color: var(--cbg-text);
    text-decoration: none;
    transition: all var(--cbg-t);
    text-align: center;
    cursor: pointer;
}
.cbg-action-item:hover {
    border-color: var(--cbg-red);
    background: var(--cbg-red);
    color: var(--cbg-cream);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(142,0,0,0.18);
}

.cbg-action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cbg-action-icon svg {
    width: 28px;
    height: 28px;
}

.cbg-action-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   3. INTRO 2 COLUMNS
═══════════════════════════════════════════ */
.cbg-intro {
    background: var(--cbg-cream);
    padding: var(--cbg-section-pad) 0;
}

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

.cbg-intro-text p {
    font-size: 1.05rem;
    color: var(--cbg-muted);
    line-height: 1.85;
    margin-bottom: 24px;
}
.cbg-intro-text p:last-child { margin-bottom: 0; }

.cbg-intro-img-wrap { position: relative; }

.cbg-intro-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--cbg-radius);
    display: block;
}

/* ═══════════════════════════════════════════
   4. ALTERNATING FEATURE BLOCKS
═══════════════════════════════════════════ */
.cbg-features {
    background: var(--cbg-cream);
    padding: 0 0 var(--cbg-section-pad);
}

.cbg-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 72px 0;
    border-top: 1px solid var(--cbg-border);
}

.cbg-feature-img-wrap { position: relative; }

.cbg-feature-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--cbg-radius);
    display: block;
}

.cbg-feature-text p {
    font-size: 1.05rem;
    color: var(--cbg-muted);
    line-height: 1.85;
}

/* ═══════════════════════════════════════════
   5. GALLERY
═══════════════════════════════════════════ */
.cbg-gallery-section {
    background: var(--cbg-cream);
    padding: var(--cbg-section-pad) 0;
    border-top: 1px solid var(--cbg-border);
}

.cbg-gallery-section .cbg-heading--center {
    margin-bottom: 48px;
}

.cbg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cbg-gallery-item {
    aspect-ratio: 1/1;
    border-radius: var(--cbg-radius);
    overflow: hidden;
}

.cbg-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.cbg-gallery-item:hover .cbg-gallery-img {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════
   6. FIND US
═══════════════════════════════════════════ */
.cbg-find-us {
    background: var(--cbg-cream);
    padding: var(--cbg-section-pad) 0;
    border-top: 1px solid var(--cbg-border);
}

.cbg-find-us-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 72px;
    align-items: start;
}

.cbg-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.cbg-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--cbg-text);
}
.cbg-contact-item a {
    color: var(--cbg-text);
    transition: color var(--cbg-t);
    text-decoration: none;
}
.cbg-contact-item a:hover { color: var(--cbg-red); }

.cbg-contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cbg-amber);
}

.cbg-map-placeholder {
    background: rgba(142,0,0,0.06);
    border: 2px dashed rgba(142,0,0,0.22);
    border-radius: var(--cbg-radius);
    height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--cbg-muted);
    text-align: center;
    padding: 24px;
}
.cbg-map-placeholder svg {
    width: 52px;
    height: 52px;
    color: var(--cbg-red);
    opacity: 0.45;
}
.cbg-map-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cbg-text);
    margin: 0 0 4px;
}
.cbg-map-placeholder small {
    font-size: 0.82rem;
    color: var(--cbg-muted);
}

.cbg-map-iframe {
    border-radius: var(--cbg-radius);
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

/* ═══════════════════════════════════════════
   7. CTA BAND - full-width, nền đỏ
═══════════════════════════════════════════ */
.cbg-cta-band {
    background: var(--cbg-red);
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cbg-cta-band::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.cbg-cta-band::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    pointer-events: none;
}

.cbg-cta-body {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cbg-cta-heading {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--cbg-cream);
    margin: 0 0 40px;
    line-height: 1.2;
}

/* ═══════════════════════════════════════════
   RESPONSIVE - 1024px (tablet landscape)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .cbg-container      { padding: 0 32px; }
    .cbg-intro-inner    { gap: 48px; }
    .cbg-feature-block  { gap: 48px; padding: 56px 0; }
    .cbg-find-us-inner  { gap: 48px; }
    .cbg-action-grid    { gap: 12px; }
    .cbg-gallery-grid   { gap: 12px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE - 768px (tablet portrait)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .cbg { --cbg-section-pad: 64px; }
    .cbg-container { padding: 0 20px; }

    .cbg-hero     { min-height: 75vh; }
    .cbg-hero-content { padding: 72px 20px; }

    .cbg-action-strip { padding: 44px 0; }
    .cbg-action-grid  { grid-template-columns: repeat(2, 1fr); }

    .cbg-intro-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cbg-feature-block {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0;
    }
    /* Image always comes first on mobile for visual clarity */
    .cbg-feature-block--img-right .cbg-feature-img-wrap { order: -1; }

    .cbg-gallery-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .cbg-find-us-inner  { grid-template-columns: 1fr; gap: 40px; }
    .cbg-map-placeholder { height: 300px; }
    .cbg-map-iframe      { height: 300px; }

    .cbg-cta-band { padding: 72px 20px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE - 480px (mobile portrait, covers 360px+)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .cbg { --cbg-section-pad: 48px; }
    .cbg-container { padding: 0 16px; }

    .cbg-hero         { min-height: 65vh; }
    .cbg-hero-content { padding: 56px 16px; }
    .cbg-hero-actions { flex-direction: column; align-items: center; }

    .cbg-action-strip { padding: 32px 0; }
    .cbg-action-item  {
        padding: 12px;
        min-height: 80px;
    }
    .cbg-action-label { font-size: 13px; }
    .cbg-action-icon svg { width: 24px; height: 24px; }

    .cbg-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

    .cbg-cta-band    { padding: 56px 16px; }
    .cbg-cta-heading { margin-bottom: 28px; }
    .cbg-btn--amber  { min-width: 200px; }
}
