/* ============================================
   BOBA BEE — Custom Styles
   Vibrant modern bakery & grocer in Provo
   Palette: Teal (#0D9488) + Slate Grey (#1E293B)
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #0D9488;
    --teal-dark: #0F766E;
    --teal-light: #14B8A6;
    --teal-pale: #CCFBF1;
    --slate: #1E293B;
    --slate-mid: #334155;
    --slate-light: #64748B;
    --slate-pale: #F1F5F9;
    --gold: #FBBF24;
    --gold-dark: #F59E0B;
    --white: #FFFFFF;
    --off-white: #FAFAF9;
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(30,41,59,0.08);
    --shadow-md: 0 4px 20px rgba(30,41,59,0.10);
    --shadow-lg: 0 12px 40px rgba(30,41,59,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--slate);
    background: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--teal);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn--primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--slate);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--slate);
    margin-bottom: 20px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(30,41,59,0.06);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate);
}

.logo--light { color: var(--white); }
.logo--light span { color: var(--gold); }

.logo-icon {
    flex-shrink: 0;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--slate-mid);
    transition: var(--transition);
}
.primary-nav a:hover {
    color: var(--teal);
    background: var(--teal-pale);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--slate);
    position: relative;
    transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--slate);
    transition: var(--transition);
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,148,136,0.82) 0%,
        rgba(30,41,59,0.78) 50%,
        rgba(13,148,136,0.65) 100%
    );
    z-index: 1;
}

.hero-shape {
    position: absolute;
    z-index: 2;
    opacity: 0.12;
}

.hero-shape--1 {
    width: 500px;
    height: 500px;
    background: var(--gold);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.hero-shape--2 {
    width: 300px;
    height: 300px;
    background: var(--white);
    border-radius: var(--radius-lg);
    bottom: 10%;
    right: 15%;
    transform: rotate(25deg);
}

.hero-shape--3 {
    width: 180px;
    height: 180px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 18%;
    left: 5%;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 72px;
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.1875rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   FEATURES STRIP
   ============================================ */
.features-strip {
    background: var(--slate);
    padding: 0;
    position: relative;
    z-index: 5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    padding: 48px 32px;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}
.feature-card:last-child { border-right: none; }
.feature-card:hover {
    background: rgba(255,255,255,0.04);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products {
    padding: 100px 0;
    background: var(--off-white);
    position: relative;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--teal) 0px,
        var(--teal) 40px,
        var(--gold) 40px,
        var(--gold) 80px
    );
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 28px 28px 32px;
}

.product-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--slate);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.9375rem;
    color: var(--slate-light);
    line-height: 1.7;
}

/* ============================================
   STORY
   ============================================ */
.story {
    padding: 100px 0;
    background: var(--slate-pale);
    position: relative;
    overflow: hidden;
}

.story::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--teal);
    opacity: 0.04;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-visual {
    position: relative;
}

.story-img-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.story-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-img-accent {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.story-img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    width: 64px;
    height: 64px;
    background: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.story-content {
    position: relative;
    z-index: 2;
}

.story-content .section-title {
    margin-bottom: 24px;
}

.story-content p {
    font-size: 1.0625rem;
    color: var(--slate-mid);
    line-height: 1.8;
    margin-bottom: 18px;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(30,41,59,0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--teal);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--gold);
    opacity: 0.06;
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.testimonials::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--white);
    opacity: 0.05;
    border-radius: var(--radius-lg);
    bottom: -60px;
    right: 5%;
    transform: rotate(30deg);
}

.testimonials .section-header {
    position: relative;
    z-index: 2;
}

.testimonials .section-eyebrow {
    color: var(--gold);
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}
.testimonial-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: -8px;
}

.testimonial-card p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.75;
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
    padding: 100px 0;
    background: var(--off-white);
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.visit-info {
    padding-right: 24px;
}

.visit-details {
    font-style: normal;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visit-details p {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.0625rem;
    color: var(--slate-mid);
    line-height: 1.6;
}

.visit-details svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-details a {
    color: var(--teal);
    transition: var(--transition);
}
.visit-details a:hover {
    color: var(--teal-dark);
    text-decoration: underline;
}

.visit-city {
    display: block;
    color: var(--slate-light);
    font-size: 0.9375rem;
}

.hours h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--slate);
    margin-bottom: 16px;
}

.hours ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(30,41,59,0.08);
    font-size: 0.9375rem;
}

.hours li span:first-child {
    color: var(--slate-mid);
    font-weight: 500;
}

.hours li span:last-child {
    color: var(--teal);
    font-weight: 500;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}
.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--slate);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--teal);
    opacity: 0.08;
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-content .section-title {
    color: var(--white);
    margin-bottom: 20px;
}

.contact-content p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
}

.contact-form-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-light);
    background: rgba(255,255,255,0.1);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--slate);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(13,148,136,0.2);
    border: 1px solid rgba(13,148,136,0.4);
    border-radius: var(--radius-md);
    color: var(--teal-light);
    font-size: 0.9375rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0F172A;
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 240px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--teal-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--teal-light);
    transition: var(--transition);
}
.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-card {
        padding: 36px 28px;
    }
    .feature-card:nth-child(2) { border-right: none; }
    .feature-card:nth-child(1),
    .feature-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }

    .story-layout {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 96px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    .primary-nav.open {
        transform: translateX(0);
    }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .primary-nav a {
        padding: 14px 16px;
        font-size: 1.0625rem;
        border-radius: var(--radius-md);
    }
    .primary-nav .btn--primary {
        text-align: center;
        justify-content: center;
        margin-top: 12px;
    }

    .hero-headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }
    .hero-shape--1 { width: 280px; height: 280px; }
    .hero-shape--2 { width: 160px; height: 160px; }
    .hero-shape--3 { width: 100px; height: 100px; }

    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .feature-card:last-child { border-bottom: none; }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .story-layout {
        grid-template-columns: 1fr;
    }
    .story-img-accent {
        right: 10px;
        bottom: -20px;
    }
    .story-stats {
        gap: 24px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .visit-layout {
        grid-template-columns: 1fr;
    }
    .visit-info {
        padding-right: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-form-wrap {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .products {
        padding: 64px 0;
    }

    .story, .testimonials, .visit, .contact {
        padding: 64px 0;
    }
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.nav-overlay.active {
    display: block;
}
