/* ==========================================================================
   canberra.beer Website - Custom Styles
   ========================================================================== */

/* CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Brand Colors */
    /* --primary-color: #d4a574;      Beer/golden color */
    --primary-color: #c7600a;       /* Burnt orange — logo primary */
    --primary-hover: #a34f08;      /* Darker burnt orange for hover */
    --secondary-color: #2c3e50;    /* Dark blue-grey */
    --accent-color: #e67e22;       /* Warm orange accent */
    
    /* UI Colors */
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --border-light: rgba(199, 96, 10, 0.2);
    --brewerylogotile-bg: #ee9043;

    /* Spacing & Layout */
    --border-radius: 0.5rem;
    --footer-height: 50px;
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-focus: 0 0 0 0.2rem rgba(199, 96, 10, 0.25);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
}

/* Base Styles
   ========================================================================== */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    color: #333;
    overflow-x: hidden;
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Layout: Viewport-Constrained Coming Soon Page
   ========================================================================== */
.viewport-constrained {
    height: 100vh;
    overflow: hidden;
}

.viewport-constrained main {
    overflow-y: auto;
}

/* Components: Coming Soon Page
   ========================================================================== */

/* Container */
.coming-soon-container {
    padding: 1rem;
}

.coming-soon-container .mb-4 {
    margin-bottom: 1rem !important;
}

.coming-soon-container .mt-5 {
    margin-top: 2rem !important;
}

/* Title */
.coming-soon-title {
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Logo/Image */
.coming-soon-image {
    max-width: 100%;
    max-height: 25vh;
    width: auto;
    height: auto;
    /*border: 3px solid var(--primary-color); */
    /*border-radius: var(--border-radius); */
    /*box-shadow: var(--shadow-soft);*/
    /*transition: transform 0.3s ease;*/
    object-fit: contain;
}

/*.coming-soon-image:hover {
    transform: scale(1.02); 
}*/

/* Tagline */
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem !important;
}

/* Email Signup Section */
.email-signup {
    margin-top: 1.5rem !important;
}

.email-signup p {
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

.input-group .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid var(--primary-color);
    border-right: none;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}

.input-group .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

/* Footer
   ========================================================================== */
footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 0 !important;
    flex-shrink: 0;
}

/* On index page, this element is a wrapper that JS populates. Keep it neutral to avoid a visual gap. */
#minimal-footer {
    background: transparent;
    backdrop-filter: none;
    border-top: 0;
    padding: 0 !important;
}

#minimal-footer .minimal-footer-content {
    border-top: 1px solid var(--border-light);
}

footer p {
    font-size: 0.9rem;
    margin: 0 !important;
}

/* Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Map Component Styles
   ========================================================================== */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-preview {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.map-loading {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* About Page Feature Carousel
   ========================================================================== */
.feature-carousel {
    --feature-card-width: 320px;
    position: relative;
    overflow: hidden;
}

.feature-carousel::before,
.feature-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2rem, 8vw, 5rem);
    z-index: 2;
    pointer-events: none;
}

.feature-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 max(1rem, calc(50% - (var(--feature-card-width) / 2)));
}

.feature-carousel-track::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 min(var(--feature-card-width), 78vw);
    scroll-snap-align: center;
    cursor: pointer;
    outline: none;
    transition: opacity 0.3s ease;
}

.feature-card .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:not(.is-centered) {
    opacity: 0.88;
}

.feature-card.is-edge {
    opacity: 0.72;
}

.feature-card.is-centered {
    opacity: 1;
}

.feature-card.is-centered .card {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

.feature-card:focus-visible .card {
    box-shadow: var(--shadow-focus) !important;
}

@media (max-width: 768px) {
    .feature-carousel {
        --feature-card-width: 280px;
    }

    .feature-card {
        flex-basis: min(var(--feature-card-width), 84vw);
    }
}

/* Placeholder Map Styles */
.placeholder-map {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    max-width: 400px;
}

.brewery-item {
    background: rgba(199, 96, 10, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.brewery-sidebar-logo {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: 8rem;
    max-height: 5rem;
    object-fit: contain;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brewery-item a .brewery-sidebar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44,62,80,0.15);
}

.brewery-item:hover {
    background: rgba(199, 96, 10, 0.1);
    transform: translateY(-1px);
}

/* Brewery Tiles & Rotation Modal System
   ========================================================================== */

.brewery-tile {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.brewery-tile:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.brewery-tile:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Modal Animation States */
.brewery-tile.modal-animating {
    position: fixed !important;
    z-index: 2000;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.brewery-tile.modal-expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 800px !important;
    height: 650px !important;
    max-height: 70vh !important;
    z-index: 2000;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Modal Backdrop */
.brewery-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.brewery-modal-backdrop.show {
    opacity: 1;
}

/* Modal Content Overlay */
.brewery-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: calc(var(--border-radius) * 2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.brewery-modal-content.show {
    opacity: 1;
    transform: scale(1);
}

/* Modal Header */
.brewery-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1.5rem;
    padding-left: 12rem; /* Leave space for logo */
    padding-right: 4rem; /* Leave space for close button */
    text-align: center;
    position: relative;
    flex-shrink: 0;
    min-height: 10rem; /* Ensure enough height for logo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brewery-modal-header-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    background: var(--brewerylogotile-bg);
}

.brewery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 1;
}

.brewery-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.brewery-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: white;
    min-height: 0;
}

/* Modal Images */
.brewery-modal-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brewery-modal-brewers {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Social Media Section */
.brewery-social-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-bg);
}

.brewery-social-section h6 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .brewery-tile.modal-expanded {
        width: 95vw !important;
        max-width: 450px !important;
        height: 80vh !important;
        max-height: 500px !important;
    }
    
    .brewery-modal-body {
        padding: 1rem;
    }
    
    .brewery-modal-header {
        padding-left: 9rem; /* Adjust for smaller logo */
        padding-right: 3rem;
        min-height: 8rem;
    }
    
    .brewery-modal-header-logo {
        width: 7rem;
        height: 7rem;
    }
    
    .brewery-modal-brewers {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .brewery-modal-header {
        padding-left: 1.5rem;
        padding-right: 3rem;
        padding-top: 7rem; /* Move text below logo on very small screens */
        min-height: 8rem;
    }
    
    .brewery-modal-header-logo {
        width: 6rem;
        height: 6rem;
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.brewery-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}


.brewery-tile-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.brewery-tile-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.brewery-tile-back {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.brewery-tile.flipped .brewery-tile-front {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.brewery-tile.flipped .brewery-tile-back {
    opacity: 1;
}

.brewery-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.brewery-logo {
    max-width: 350px;
    max-height: 150px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    background-color: var(--brewerylogotile-bg);
    padding: 0.75rem;
}

.brewery-tile:hover .brewery-logo {
    transform: scale(1.05);
}

.brewery-name-overlay {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.brewery-name-overlay h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.25rem;
}

.brewery-suburb {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.brewery-story-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brewery-brewers-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.brewery-story-overlay {
    flex: 1;
    padding: 1rem;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.brewery-story {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.brewery-learn-more {
    align-self: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.brewery-learn-more:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Modal Enhancements for Brewery Details
   ========================================================================== */

.brewery-modal-logo {
    max-height: 200px;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.brewery-modal-brewers {
    max-height: 200px;
    object-fit: cover;
}

.brewery-full-story {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.brewery-links .btn {
    margin: 0.25rem;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.brewery-links .btn:hover {
    transform: translateY(-2px);
}

/* Responsive Brewery Tiles */
@media (max-width: 768px) {
    .brewery-tile {
        height: 280px;
    }
    
    .brewery-logo {
        max-width: 120px;
        max-height: 120px;
    }
    
    .brewery-name-overlay h3 {
        font-size: 1.1rem;
    }
    
    .brewery-story {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .brewery-tile {
        height: 250px;
    }
    
    .brewery-logo-container {
        padding: 1rem;
    }
    
    .brewery-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .brewery-links {
        flex-direction: column;
        align-items: center;
    }
    
    .brewery-links .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Media Queries: Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100% !important;
    }
    
    .input-group .form-control {
        border-radius: var(--border-radius);
        border-right: 2px solid var(--primary-color);
        width: 100% !important;
        flex: none !important;
    }
    
    .input-group .btn-primary {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .coming-soon-container {
        padding: 0.75rem;
    }
    
    .coming-soon-image {
        max-height: 20vh; /* Smaller on mobile */
    }
}

/* ==========================================================================
   Footer — Compact horizontal nav
   ========================================================================== */
.footer-nav-link:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   TimelineJS3 — Brand Colour Overrides
   These override the default Knight Lab palette to match canberra.beer.
   Only applies on pages that load timeline.css from the CDN.
   ========================================================================== */

/* Timeline embed container responsive height */
.timeline-embed-container {
    min-height: 400px;
}

@media (max-width: 768px) {
    .timeline-embed-container {
        height: 500px !important;
    }
}

/* Navigation bar (the scrubber at the bottom) */
.tl-timenav {
    background: var(--secondary-color) !important;
}

.tl-timenav-background {
    background: var(--secondary-color) !important;
}

/* Active / selected event marker */
.tl-marker.tl-marker-active .tl-marker-point,
.tl-marker:hover .tl-marker-point {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.tl-marker .tl-marker-point {
    border-color: var(--primary-color) !important;
}

/* Time axis tick accent */
.tl-timeaxis-tick-line {
    background: rgba(199, 96, 10, 0.3) !important;
}

/* Slide headline colour */
.tl-slide .tl-headline,
.tl-slide .tl-headline-date {
    color: var(--primary-color) !important;
}

/* Era labels on the navigation bar */
.tl-timegroup-message {
    color: #fff !important;
    font-weight: var(--font-weight-medium);
}

/* Navigation arrows */
.tl-slidenav-next,
.tl-slidenav-previous {
    color: var(--primary-color) !important;
}

.tl-slidenav-next:hover,
.tl-slidenav-previous:hover {
    color: var(--primary-hover) !important;
}

/* "Made with TimelineJS" attribution link */
.tl-attribution a {
    color: var(--primary-color) !important;
}

/* Events Page: Editorial Policy Card
   ========================================================================== */
.event-policy-card {
    max-width: 42rem;
    background: linear-gradient(145deg, #fff7ef 0%, #fff2df 100%);
    border: 1px solid rgba(199, 96, 10, 0.22);
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
}

.event-policy-kicker {
    color: #7d3a08;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-policy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.event-policy-chip {
    display: inline-block;
    border: 1px solid rgba(163, 79, 8, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: #7d3a08;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.74rem;
    line-height: 1.35;
}

.event-policy-toggle {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.event-policy-toggle:hover {
    text-decoration: underline;
}

.event-policy-details {
    border-top: 1px solid rgba(199, 96, 10, 0.18);
    padding-top: 0.55rem;
}

/* Event Card Image
   ========================================================================== */
.event-card-image {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: 4rem;
    max-height: 4rem;
    border-radius: 0.25rem;
    object-fit: contain;
}