/* ============================================
   Sweet Treat Candy Store — Stylesheet
   Classic & Elegant | Teal + Slate Grey
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lato', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2D3748;
    background-color: #FAFAF8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- UTILITY ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0F4C5C;
    color: #F7F5F0;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 9999;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 500;
    line-height: 1.2;
    color: #0F4C5C;
}

.section-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A574;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #5A6B7C;
    max-width: 560px;
    line-height: 1.7;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #3D4F5F;
    margin-bottom: 1.25rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: #D4A574;
    color: #0F4C5C;
    border: 1.5px solid #D4A574;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #C49464;
    border-color: #C49464;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.35);
}

.btn-outline {
    background-color: transparent;
    color: #F7F5F0;
    border: 1.5px solid rgba(247, 245, 240, 0.6);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: rgba(247, 245, 240, 0.1);
    border-color: #F7F5F0;
    transform: translateY(-1px);
}

.link-arrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D4A574;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 0.625rem;
}

/* ---------- HEADER ---------- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 76, 92, 0.0);
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(15, 76, 92, 0.97);
    border-bottom-color: rgba(212, 165, 116, 0.2);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

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

/* Logo */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: #F7F5F0;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: opacity 0.3s;
}

.logo:hover { opacity: 0.85; }

.logo-icon {
    color: #D4A574;
    flex-shrink: 0;
}

.logo--light { color: #F7F5F0; }

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-list a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.85);
    border-radius: 2px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: #F7F5F0;
    background-color: rgba(247, 245, 240, 0.08);
}

.nav-cta {
    margin-left: 0.75rem;
    color: #D4A574 !important;
    border: 1px solid rgba(212, 165, 116, 0.5) !important;
    border-radius: 2px;
    padding: 0.5rem 1.125rem !important;
    transition: background-color 0.3s, border-color 0.3s !important;
}

.nav-cta:hover {
    background-color: rgba(212, 165, 116, 0.15) !important;
    border-color: #D4A574 !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: #F7F5F0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #0F4C5C;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(8, 42, 52, 0.88) 0%,
        rgba(15, 76, 92, 0.75) 40%,
        rgba(20, 60, 72, 0.70) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-top: 80px;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #D4A574;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 500;
    color: #F7F5F0;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-headline em {
    font-style: italic;
    color: #D4A574;
}

.hero-subheadline {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: rgba(247, 245, 240, 0.8);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(247, 245, 240, 0.5);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---------- INTRO STRIP ---------- */
.intro-strip {
    background-color: #0F4C5C;
    border-bottom: 1px solid rgba(212, 165, 116, 0.15);
    padding: 0;
}

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

.intro-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.75rem 1.5rem;
    border-right: 1px solid rgba(212, 165, 116, 0.12);
    transition: background-color 0.3s;
}

.intro-item:last-child { border-right: none; }

.intro-item:hover {
    background-color: rgba(212, 165, 116, 0.06);
}

.intro-icon {
    color: #D4A574;
    flex-shrink: 0;
}

.intro-item span {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(247, 245, 240, 0.85);
}

/* ---------- COLLECTIONS ---------- */
.collections {
    padding: 6rem 0;
    background-color: #FAFAF8;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header:not(.section-header--centered) {
    max-width: 560px;
}

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

.collection-card {
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 76, 92, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 76, 92, 0.12);
}

.collection-card-img {
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.collection-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-card:hover .collection-card-img img {
    transform: scale(1.04);
}

.collection-card-body {
    padding: 1.75rem;
}

.collection-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    color: #0F4C5C;
}

.collection-card-body p {
    font-size: 0.9375rem;
    color: #5A6B7C;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 6rem 0;
    background-color: #F0EDE6;
    overflow: hidden;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 60%;
    height: 40%;
    border: 2px solid #D4A574;
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.about-content {
    padding: 1rem 0;
}

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

.about-content p {
    color: #4A5B6B;
    margin-bottom: 1.25rem;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(15, 76, 92, 0.12);
    color: #0F4C5C;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
}

.about-signature svg {
    color: #D4A574;
    opacity: 0.7;
}

/* ---------- CRAFT ---------- */
.craft {
    padding: 6rem 0;
    background-color: #0F4C5C;
}

.craft .section-eyebrow { color: #D4A574; }
.craft .section-title { color: #F7F5F0; }
.craft .section-subtitle { color: rgba(247, 245, 240, 0.65); }

.craft-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.craft-step {
    position: relative;
    padding: 2rem;
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 4px;
    background-color: rgba(247, 245, 240, 0.03);
    transition: background-color 0.3s, border-color 0.3s;
}

.craft-step:hover {
    background-color: rgba(247, 245, 240, 0.06);
    border-color: rgba(212, 165, 116, 0.4);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    color: #D4A574;
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 1rem;
}

.craft-step h3 {
    font-size: 1.25rem;
    color: #F7F5F0;
    margin-bottom: 0.75rem;
}

.craft-step p {
    font-size: 0.9375rem;
    color: rgba(247, 245, 240, 0.65);
    line-height: 1.75;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    padding: 6rem 0;
    background-color: #FAFAF8;
}

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

.testimonial-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: 4px;
    border-top: 3px solid #D4A574;
    box-shadow: 0 2px 12px rgba(15, 76, 92, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(15, 76, 92, 0.1);
}

.testimonial-quote {
    color: #D4A574;
    opacity: 0.4;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #4A5B6B;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card footer {
    font-size: 0.8125rem;
    font-style: normal;
    color: #0F4C5C;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.testimonial-card footer cite {
    font-style: normal;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 6rem 0;
    background-color: #F0EDE6;
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.visit-info {
    padding: 2.5rem;
    background-color: #0F4C5C;
    border-radius: 4px;
    color: #F7F5F0;
}

.visit-info .section-eyebrow { color: #D4A574; }
.visit-info .section-title { color: #F7F5F0; margin-bottom: 2rem; }

.visit-address {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(247, 245, 240, 0.85);
}

.visit-phone {
    margin-bottom: 2rem;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #D4A574;
    transition: color 0.3s, gap 0.3s;
}

.phone-link:hover {
    color: #E4B88A;
    gap: 0.875rem;
}

.visit-hours h3 {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A574;
    margin-bottom: 1rem;
}

.visit-hours ul li {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(247, 245, 240, 0.1);
    font-size: 0.9375rem;
    color: rgba(247, 245, 240, 0.8);
}

.visit-hours ul li span:last-child {
    color: #D4A574;
    font-weight: 500;
}

.visit-map {
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
    box-shadow: 0 4px 24px rgba(15, 76, 92, 0.1);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: block;
}

/* ---------- FOOTER ---------- */
#site-footer {
    background-color: #082A34;
    color: rgba(247, 245, 240, 0.6);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 1.5rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 260px;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(247, 245, 240, 0.6);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
    color: #D4A574;
    padding-left: 0.375rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-contact a {
    color: #D4A574;
    transition: color 0.3s;
}

.footer-contact a:hover { color: #E4B88A; }

.footer-bottom {
    border-top: 1px solid rgba(247, 245, 240, 0.08);
}

.footer-bottom-inner {
    padding: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(247, 245, 240, 0.35);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .craft-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .craft-step:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .header-inner { height: 70px; }

    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background-color: rgba(8, 42, 52, 0.98);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0.25rem;
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav-list.open {
        transform: translateX(0);
    }

    .nav-list a {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        text-align: center;
    }

    .nav-cta {
        margin-left: 0 !important;
        margin-top: 0.75rem;
    }

    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .intro-item {
        border-bottom: 1px solid rgba(212, 165, 116, 0.12);
    }

    .intro-item:nth-child(2) { border-right: none; }

    .collection-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image-accent {
        display: none;
    }

    .craft-steps {
        grid-template-columns: 1fr;
    }

    .craft-step:last-child {
        max-width: 100%;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .visit-map iframe {
        min-height: 300px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .intro-item {
        border-right: none;
    }

    .hero-actions {
        flex-direction: column;
    }

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