/* ===================================
   Coffee Shop Template - Warm & Rustic
   =================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Georgia', 'Palatino', serif;
    line-height: 1.7;
    color: #3e2723;
    background-color: var(--background-colour, #faf8f5);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Palatino', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color, #5d4037);
}

a {
    text-decoration: none;
    color: var(--link-colour, #8d6e63);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color, #d4845d);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color, #5d4037);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color, #d4845d);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--secondary-color, #8d6e63);
    margin-bottom: 3rem;
    font-style: italic;
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color, #5d4037);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-brand .brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--accent-color, #d4845d);
    color: #fff;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg,
        var(--primary-color, #5d4037) 0%,
        var(--secondary-color, #8d6e63) 100%);
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--text-shadow-colour, rgba(0, 0, 0, 0.3));
    letter-spacing: 2px;
}

.hero-tagline {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--extra-colour-1, #f5e6d3);
}

.hero-hours {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color, #d4845d);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--button-hover-colour, #c17350);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* ===================================
   About Section
   =================================== */

.about-section {
    background: var(--background-colour, #faf8f5);
}

.about-content {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-color, #5d4037);
}

/* ===================================
   Menu Section
   =================================== */

.menu-section {
    background: var(--background-secondary-color, #f5f0eb);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: var(--background-colour, #faf8f5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color, #d4845d);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.menu-item-name {
    font-size: 1.4rem;
    color: var(--primary-color, #5d4037);
    flex: 1;
}

.menu-item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color, #d4845d);
    white-space: nowrap;
}

.menu-item-description {
    color: var(--secondary-color, #8d6e63);
    line-height: 1.6;
}

/* ===================================
   Gallery Section
   =================================== */

.gallery-section {
    background: var(--background-colour, #faf8f5);
}

.gallery-wrapper {
    margin-top: 2rem;
}

/* Gallery grid styling (generated by system) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    opacity: 0.9;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ===================================
   Hours Section
   =================================== */

.hours-section {
    background: var(--background-secondary-color, #f5f0eb);
}

.hours-grid {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--background-colour, #faf8f5);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0d5c7;
}

.hours-day:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color, #5d4037);
}

.day-hours {
    color: var(--secondary-color, #8d6e63);
    font-size: 1rem;
}

.hours-notes {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--secondary-color, #8d6e63);
    font-size: 0.95rem;
}

/* ===================================
   Contact Section
   =================================== */

.contact-section {
    background: var(--background-colour, #faf8f5);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color, #5d4037);
}

.contact-item p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.contact-link {
    color: var(--secondary-color, #d4845d);
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.map-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-color, #d4845d);
    font-weight: 600;
}

.social-links-inline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links-inline .social-link {
    color: var(--accent-color, #d4845d);
    font-weight: 600;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: var(--background-secondary-color, #f5f0eb);
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color, #5d4037);
    transition: all 0.3s ease;
    border-radius: 10px;
}

.map-placeholder:hover {
    background-color: #e8ddd3;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color, #5d4037);
}

.address-display {
    font-size: 1rem;
    color: var(--secondary-color, #8d6e63);
    line-height: 1.6;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--primary-color, #5d4037);
    color: #f5e6d3;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.8;
    color: #f5e6d3;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #f5e6d3;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #d4845d);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: #f5e6d3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent-color, #d4845d);
}

.social-icon {
    font-size: 1.2rem;
}

.footer-contact a {
    color: #f5e6d3;
}

.footer-contact a:hover {
    color: var(--accent-color, #d4845d);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 230, 211, 0.2);
    color: #f5e6d3;
}

/* ===================================
   Responsive Design - Mobile
   =================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-brand .logo {
        height: 40px;
    }

    .nav-brand .brand-name {
        font-size: 1.2rem;
    }

    .nav-toggle-label {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color, #5d4037);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-toggle:checked ~ .nav-menu {
        max-height: 400px;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        display: block;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.3rem;
    }

    .hero-hours {
        font-size: 1rem;
    }

    /* Sections */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }

    .map-placeholder {
        min-height: 300px;
        padding: 2rem 1rem;
    }

    .map-icon {
        font-size: 3rem;
    }

    .map-text {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}
