/* ============================================
   WELDY CAKE CO. — STYLES
   Warm, welcoming bakery aesthetic
   ============================================ */

/* ============ VARIABLES ============ */
:root {
    /* Colors */
    --cream: #FAF6F0;
    --cream-dark: #F0E9DC;
    --brown: #3D2817;
    --brown-soft: #5C4433;
    --brown-light: #8B7355;
    --rose: #D4A5A5;
    --rose-dark: #B88585;
    --rose-light: #F5E6E6;
    --white: #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-max: 1200px;
}

/* ============ RESET & BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--brown);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--rose-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brown);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--brown);
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rose-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--brown-soft);
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ============ NAVIGATION ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown);
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: var(--rose-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--brown-soft);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
}

.nav-menu a:hover {
    color: var(--brown);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--rose-dark);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-instagram {
    color: var(--brown-soft);
    display: flex;
    align-items: center;
}

.nav-instagram::after {
    display: none;
}

.nav-instagram:hover {
    color: var(--rose-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brown);
    transition: all 0.3s ease;
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--cream);
}

.hero-image {
    height: 100vh;
    overflow: hidden;
}

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

.hero-content {
    padding: 3rem 4rem;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--rose-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: var(--brown);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--brown-soft);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--brown);
    color: var(--cream);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid var(--brown);
    transition: all 0.3s ease;
}

.hero-button:hover {
    background: transparent;
    color: var(--brown);
}

/* ============ ABOUT ============ */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    left: -20px;
    bottom: -20px;
    border: 2px solid var(--rose);
    z-index: -1;
    border-radius: 4px;
}

.about-content .section-title {
    margin-bottom: 2rem;
}

.about-content p {
    color: var(--brown-soft);
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* ============ GALLERY ============ */
.gallery {
    padding: var(--section-padding);
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--cream-dark);
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(61, 40, 23, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(61, 40, 23, 0.1);
}

/* ============ INSTAGRAM CALLOUT ============ */
.instagram-callout {
    padding: var(--section-padding);
    background: var(--rose-light);
    text-align: center;
}

.instagram-callout .section-subtitle {
    margin-bottom: 2.5rem;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--brown);
    color: var(--cream);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid var(--brown);
    transition: all 0.3s ease;
}

.instagram-button:hover {
    background: transparent;
    color: var(--brown);
}

/* ============ REVIEWS ============ */
.reviews {
    padding: var(--section-padding);
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--cream);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(61, 40, 23, 0.08);
}

.review-stars {
    color: var(--rose-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
}

.review-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--brown-soft);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rose-dark);
    font-weight: 700;
}

.reviews-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--cream);
    border-radius: 4px;
    max-width: 700px;
    margin: 0 auto;
}

.reviews-empty-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--brown);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.reviews-empty-subtext {
    color: var(--brown-soft);
    font-size: 1rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============ CONTACT ============ */
.contact {
    padding: var(--section-padding);
    background: var(--cream);
    text-align: center;
}

.form-embed {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(61, 40, 23, 0.06);
}

.form-embed iframe {
    display: block;
    width: 100%;
    height: 1200px;
    border: 0;
    background: var(--white);
}

.contact-alt {
    margin-top: 2.5rem;
    font-size: 1rem;
    color: var(--brown-soft);
}

.contact-alt a {
    color: var(--rose-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-alt a:hover {
    color: var(--brown);
}

/* Buttons (used for reviews CTA and any other button links) */
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid var(--brown);
    transition: all 0.3s ease;
    min-width: 260px;
    justify-content: center;
}

.contact-button.primary {
    background: var(--brown);
    color: var(--cream);
}

.contact-button.primary:hover {
    background: transparent;
    color: var(--brown);
}

.contact-button.secondary {
    background: transparent;
    color: var(--brown);
}

.contact-button.secondary:hover {
    background: var(--brown);
    color: var(--cream);
}

.contact-note {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--brown-soft);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--brown);
    color: var(--cream);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--cream);
}

.footer-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--rose);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--cream);
    display: inline-block;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--rose);
}

.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 246, 240, 0.15);
    font-size: 0.85rem;
    color: rgba(250, 246, 240, 0.6);
    width: 100%;
    max-width: 400px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 40, 23, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

/* ============ RESPONSIVE (TABLETS) ============ */
@media (max-width: 968px) {
    :root {
        --section-padding: 4.5rem 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 80px;
    }
    
    .hero-image {
        height: 60vh;
        order: -1;
    }
    
    .hero-content {
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image::before {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-button {
        min-width: 240px;
    }
}

/* ============ RESPONSIVE (MOBILE) ============ */
@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .nav-container {
        padding: 0 1.25rem;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(139, 115, 85, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hero-content {
        padding: 2rem 1.25rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-button {
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }
    
    .form-embed iframe {
        height: 1400px;
    }
    
    .reviews-empty {
        padding: 3rem 1.5rem;
    }
    
    .reviews-empty-text {
        font-size: 1.4rem;
    }
}
