/* --- General Styles & Variables --- */
:root {
    --slate-blue: #3D5A80;
    --golden-yellow: #EEA236;
    --dark-gunmetal: #293241;
    --white: #FFFFFF;
    --light-grey: #f9f9f9;
    --text-dark: #333333;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--dark-gunmetal);
    line-height: 1.2;
}

section {
    padding: 60px 0;
}

p {
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-headings);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--golden-yellow);
    color: var(--white);
    border: 2px solid var(--golden-yellow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-dark {
    background-color: var(--slate-blue);
    color: var(--white);
    border: 2px solid var(--slate-blue);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--golden-yellow);
    border: 2px solid var(--golden-yellow);
}

.btn-primary-outline:hover {
    background-color: var(--golden-yellow);
    color: var(--white);
}

.btn-dark-outline {
    background-color: transparent;
    color: var(--slate-blue);
    border: 2px solid var(--slate-blue);
}

.btn-dark-outline:hover {
    background-color: var(--slate-blue);
    color: var(--white);
}


/* --- Header & Navigation --- */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav a {
    color: var(--dark-gunmetal);
    text-decoration: none;
    margin: 0 15px;
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 6px 12px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: var(--slate-blue);
    border-color: var(--slate-blue);
}

/* Add some space between the nav links and the outer buttons */
.main-header .btn-dark-outline {
    margin-right: 15px;
}

.main-header .btn-primary-outline {
    margin-left: 15px;
}


/* --- Hero Section --- */
#hero {
    background-image: url('../images/nateimage1.jpg');
    background-size: cover;
    background-position: center top;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 40px;
}

.hero-content .btn {
    margin: 0 10px;
}

/* --- Market Banner --- */
#market-banner {
    background-color: var(--slate-blue);
    color: var(--white);
    padding: 25px 0;
    text-align: center;
}

#market-banner h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--golden-yellow);
    margin: 0;
    line-height: 1.4;
}

/* --- Featured Bakes Section --- */
#featured-bakes {
    padding-bottom: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.bakes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.bake-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bake-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.bake-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.bake-card-content {
    padding: 20px;
}

.bake-card-content h3 {
    margin-bottom: 10px;
}

.featured-bakes-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- About Section (Homepage) --- */
#about {
    background-color: #fdfdfd;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--slate-blue);
    color: var(--white);
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo-text {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden-yellow);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-grid h4 {
    font-family: var(--font-headings);
    margin-bottom: 15px;
    color: var(--golden-yellow);
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 8px;
}

.footer-grid ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-grid ul li a:hover {
    color: var(--golden-yellow);
}

.footer-grid ul li a i {
    margin-right: 8px;
    font-size: 1.2rem;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* --- Page Intro Section --- */
.page-intro {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 50px;
}

.page-intro h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-intro p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Bakes Page --- */
.bakes-grid-section {
    padding-top: 0;
}

/* --- About Me Page --- */
#about-page {
    padding: 140px 0 60px 0;
    background-color: var(--light-grey);
}
.about-page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}
.about-page-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 30px;
    border: 5px solid var(--golden-yellow);
}
.about-page-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}
.about-page-content p {
    font-size: 1.1rem;
    color: #555;
    text-align: left;
    margin-bottom: 1.2em;
}
.about-page-content .signature {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-gunmetal);
    text-align: left;
    margin-top: 30px;
}

/* --- Find Me Page Specific Styles --- */
#find-me-page .page-intro p {
    max-width: 700px;
}

/* --- Find Me Page - Combined Layout --- */
.find-me-combined-layout {
    padding-top: 0;
    padding-bottom: 40px;
}
.find-me-combined-layout .tabs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
}
.find-me-combined-layout .tab-link {
    background: none;
    border: none;
    font-family: var(--font-headings);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    cursor: pointer;
    color: #999;
    position: relative;
    top: 2px;
    transition: color 0.2s ease;
}
.find-me-combined-layout .tab-link:hover {
    color: var(--dark-gunmetal);
}
.find-me-combined-layout .tab-link.active {
    color: var(--dark-gunmetal);
    border-bottom: 3px solid var(--slate-blue);
}
.find-me-combined-layout .tab-link i {
    margin-right: 8px;
    color: var(--golden-yellow);
}
.find-me-combined-layout .tab-pane {
    display: none;
}
.find-me-combined-layout .tab-pane.active {
    display: block;
}
/* Styles for Market Tab */
.market-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.market-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.market-info .highlight {
    font-weight: bold;
    color: var(--slate-blue);
    font-size: 1.2rem;
    margin: 20px 0;
    display: block;
}
.market-info .address {
    font-style: italic;
    color: #666;
}
/* RESIZE MAP ON DESKTOP */
.market-map img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}
/* Styles for Personal Orders Tab */
.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 350px;
    display: block;
    margin: 0 auto;
}
.story-content {
    text-align: left;
}
.story-content h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}


/* --- New Contact Page Styles --- */
#contact-page-new .page-intro {
    background-color: var(--light-grey);
    padding-bottom: 20px;
}

.contact-options-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.contact-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}

.contact-option-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.contact-option-icon {
    font-size: 2.5rem;
    color: var(--golden-yellow);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-option-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-option-card p {
    flex-grow: 1;
    max-width: 350px;
    margin-bottom: 25px;
}

/* --- Google Form Embed --- */
#order-form-page .page-intro {
    padding-bottom: 20px;
}

.form-embed-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px 20px; /* Top, Right, Bottom, Left */
}

.form-embed-container iframe {
    width: 100%;
    min-height: 1200px; /* Adjust height as needed for your form */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .bakes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* --- Adjust hero background for mobile --- */
    #hero {
        background-position: center 30% !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .main-header .container {
        display: flex;
        justify-content: space-between;
    }
    .main-header .btn-dark-outline,
    .main-header .btn-primary-outline {
        display: none;
    }
    .bakes-grid, .about-grid, .market-details-grid, .story-row, .contact-options-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        text-align: center;
    }

    /* --- Adjust banner for mobile --- */
    #market-banner h3 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    #market-banner h3 span {
        font-size: 1.2rem;
    }
    
    #market-banner .banner-link {
        display: inline-block;
        background-color: var(--golden-yellow);
        color: var(--white);
        padding: 8px 16px;
        border-radius: 5px;
        text-decoration: none;
        margin-top: 10px;
        font-weight: bold;
    }

    /* UPDATED FIND ME PAGE TABS */
    .find-me-combined-layout .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .find-me-combined-layout .tab-link {
        border: 1px solid #eee;
        margin-bottom: 5px;
        border-radius: 5px;
    }

    .find-me-combined-layout .tab-link.active {
        background-color: #fff;
        border-color: #ddd;
        border-left: 5px solid var(--golden-yellow);
        color: var(--dark-gunmetal);
    }
    
    /* HIDE IMAGE AND CENTER CONTENT ON MOBILE 'ORDERS' TAB */
    .story-row .story-content {
        text-align: center;
    }
    .story-row .story-image {
        display: none;
    }
    
    /* HIDE MAP ON MOBILE */
    .market-map {
        display: none;
    }
    
    /* REMOVE EXTRA TOP PADDING FROM CTA ON MOBILE */
    .featured-bakes-cta {
        margin-top: 0;
    }

    /* ADJUST PADDING FOR SUB-PAGES ON MOBILE */
    .page-intro {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    .page-intro p {
        max-width: none;
    }
    #about-page {
        padding-top: 80px;
    }
    .contact-options-section {
        padding-top: 10px;
    }
    .about-page-content {
        padding-left: 25px;
        padding-right: 25px;
    }


    /* --- FOOTER STYLES FOR MOBILE (SUPER COMPACT) --- */
    .main-footer {
        padding: 20px 0 15px;
    }
    .footer-grid {
        display: block;
        text-align: center;
        margin-bottom: 15px;
    }
    .footer-about {
        margin-bottom: 20px;
    }
    .footer-about .footer-logo-text {
        margin-bottom: 5px;
    }
    .footer-grid h4 {
        margin-bottom: 10px;
    }
    .footer-grid ul li {
        margin-bottom: 4px;
    }
    .footer-grid div:not(.footer-about) {
       display: inline-block;
       width: 48%;
       text-align: left;
       vertical-align: top;
    }
    .footer-bottom {
        padding-top: 15px;
    }
    
    /* NEW: Mobile specific height for the embedded Google Form */
    .form-embed-container iframe {
        min-height: 1800px;
    }
}

/* --- Animation Hover Effects --- */
/* Hero Section Buttons on dark background */
#hero .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--golden-yellow);
}
#hero .btn-dark:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--slate-blue);
}
/* Dark Buttons on light backgrounds */
#featured-bakes .btn-dark:hover,
#about .btn-dark:hover,
.story-content .btn-dark:hover,
.contact-option-card .btn-dark:hover {
    background-color: transparent;
    color: var(--dark-gunmetal);
    border-color: var(--slate-blue);
}

/* Contact Page Primary Button */
.contact-option-card .btn-primary:hover {
    background-color: transparent;
    color: var(--golden-yellow);
    border-color: var(--golden-yellow);
}

/*
 =========================================
 MOBILE NAVIGATION STYLES (BRANDED)
 =========================================
*/

/* Visually hide text, but keep it available for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Mobile Nav: Hidden by default on desktop --- */
.mobile-nav-toggle,
.mobile-nav {
    display: none;
}


/* --- Media Query for Mobile View --- */
@media (max-width: 992px) {
    /* Hide the original desktop navigation and buttons */
    .main-nav, 
    .main-header .btn-primary-outline,
    .main-header .btn-dark-outline {
        display: none;
    }

    /* Use flexbox to align the logo and menu button */
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding-top: 10px; 
        padding-bottom: 10px; 
    }
    
    .main-header .btn-dark-outline {
        display: none;
    }

    /* --- Hamburger Menu Button --- */
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        width: 32px; 
        height: 32px;
        z-index: 2000;
        
        background-color: transparent;
        background-image: url('../images/icon-hamburger.svg');
        background-repeat: no-repeat;
        background-position: center;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .mobile-nav-toggle.is-open {
        background-image: url('../images/icon-close.svg');
    }

    /* --- Mobile Navigation Panel --- */
    .mobile-nav {
        display: block; 
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1500; 
        
        width: 70%;
        max-width: 400px;
        
        background-color: hsla(215, 38%, 37%, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        padding: 100px 40px 40px;

        transform: translateX(100%);
        transition: transform 350ms ease-in-out;
    }

    .mobile-nav.is-open {
        transform: translateX(0);
    }
    
    /* --- Title inside the mobile menu --- */
    .mobile-nav-title {
        color: var(--golden-yellow);
        font-size: 1.5rem;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 2px solid var(--golden-yellow);
        opacity: 0;
        transition: opacity 300ms ease-in-out;
        transition-delay: 150ms;
    }

    .mobile-nav.is-open .mobile-nav-title {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* --- Links inside the mobile menu --- */
    .mobile-nav a {
        display: block;
        color: var(--white);
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: 600;
        padding: 15px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 300ms ease-in-out, transform 300ms ease-in-out, color 200ms ease-in-out;
    }
    
    .mobile-nav.is-open a {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-nav a:hover {
        color: var(--golden-yellow);
    }

    /* Animate the links staggering in one by one */
    .mobile-nav.is-open a:nth-child(2) { transition-delay: 250ms; }
    .mobile-nav.is-open a:nth-child(3) { transition-delay: 300ms; }
    .mobile-nav.is-open a:nth-child(4) { transition-delay: 350ms; }
    .mobile-nav.is-open a:nth-child(5) { transition-delay: 400ms; }
    .mobile-nav.is-open a:nth-child(6) { transition-delay: 450ms; }
}

/* --- NEW: Styles for extra-narrow screens like iPhone SE --- */
@media (max-width: 480px) {
    .hero-content .btn {
        display: block;
        margin: 10px auto;
        max-width: 250px;
    }
}