/* ============================================
   Loreli's Ice — Custom Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #6b21a8;
    color: #fff8e7;
    padding: 0.5rem 1rem;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.875rem;
}

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

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

/* --- Section Padding --- */
.section-padding {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9333ea;
    margin-bottom: 1rem;
}

/* --- Section Heading --- */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: #3C2415;
    margin-bottom: 1.5rem;
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6b3fa0;
    max-width: 560px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #6b21a8;
    color: #fff8e7;
    border: 1.5px solid #6b21a8;
}

.btn-primary:hover {
    background: #581c87;
    border-color: #581c87;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 33, 168, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #fff8e7;
    border: 1.5px solid rgba(255, 251, 240, 0.4);
}

.btn-ghost:hover {
    border-color: #fff8e7;
    background: rgba(255, 251, 240, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.nav-header.scrolled {
    background: rgba(26, 15, 8, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff8e7;
}

.nav-logo-icon {
    color: #fcd34d;
}

.nav-logo-text {
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255, 251, 240, 0.8);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fcd34d;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #fcd34d;
}

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

.nav-cta-btn {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 0.5rem 1.125rem;
    border-radius: 4px;
    color: #fcd34d;
    transition: all 0.3s ease;
}

.nav-cta-btn::after {
    display: none;
}

.nav-cta-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    border-color: #fbbf24;
    color: #fbbf24;
}

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

.nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff8e7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 15, 8, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.25rem;
    }
}

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

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

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

.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 7, 100, 0.88) 0%,
        rgba(107, 33, 168, 0.82) 40%,
        rgba(42, 26, 14, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-card {
    max-width: 600px;
}

.hero-eyebrow {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 1.25rem;
}

.hero-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff8e7;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 251, 240, 0.78);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 251, 240, 0.08);
    border: 1px solid rgba(255, 251, 240, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 251, 240, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateX(6px);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fcd34d;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 251, 240, 0.7);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 251, 240, 0.5);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.75rem;
    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); }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 7rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        min-width: auto;
    }
}

/* ============================================
   About Section
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(107, 33, 168, 0.15);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-image-frame:hover .about-img {
    transform: scale(1.03);
}

.about-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    border-radius: 50%;
    opacity: 0.15;
    z-index: -1;
}

.about-content {
    max-width: 520px;
}

.about-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #5a3a20;
    margin-bottom: 1.25rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: #3C2415;
}

.about-feature-icon {
    color: #9333ea;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-content {
        max-width: 100%;
    }
}

/* ============================================
   Treats Section
   ============================================ */
.treats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.treat-card {
    background: rgba(255, 251, 240, 0.06);
    border: 1px solid rgba(255, 251, 240, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.treat-card:hover {
    background: rgba(255, 251, 240, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.treat-card-img {
    height: 200px;
    overflow: hidden;
}

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

.treat-card:hover .treat-card-img img {
    transform: scale(1.08);
}

.treat-card-body {
    padding: 1.5rem;
}

.treat-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff8e7;
    margin-bottom: 0.5rem;
}

.treat-card-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 251, 240, 0.65);
}

.treats-note {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.03em;
}

@media (max-width: 900px) {
    .treats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ============================================
   Bakery Section
   ============================================ */
.bakery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bakery-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #5a3a20;
    margin-bottom: 2rem;
}

.bakery-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.bakery-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    color: #3C2415;
}

.bakery-check {
    color: #9333ea;
    flex-shrink: 0;
}

.bakery-images {
    position: relative;
    min-height: 550px;
}

.bakery-img-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(107, 33, 168, 0.15);
}

.bakery-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bakery-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(107, 33, 168, 0.2);
    border: 4px solid #fff8e7;
}

.bakery-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .bakery-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .bakery-images {
        min-height: 400px;
        order: -1;
    }

    .bakery-img-secondary {
        right: -15px;
        bottom: -15px;
    }
}

/* ============================================
   Visit Section
   ============================================ */
.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit-detail {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(107, 33, 168, 0.12);
}

.visit-detail:first-child {
    padding-top: 0;
}

.visit-detail:last-child {
    border-bottom: none;
}

.visit-icon {
    color: #9333ea;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9333ea;
    margin-bottom: 0.375rem;
}

.visit-detail-value {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #3C2415;
}

.visit-link {
    color: #7e22ce;
    transition: color 0.3s ease;
}

.visit-link:hover {
    color: #6b21a8;
    text-decoration: underline;
}

.visit-map {
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(107, 33, 168, 0.12);
}

@media (max-width: 900px) {
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .visit-map {
        height: 320px;
    }
}

/* ============================================
   CTA Section
   ============================================ */
.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: #fff8e7;
    margin-bottom: 1.25rem;
}

.cta-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 251, 240, 0.7);
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #1A0F08;
    color: rgba(255, 251, 240, 0.65);
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff8e7;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: #fcd34d;
}

.footer-tagline {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-nav-title,
.footer-contact .footer-nav-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fcd34d;
    margin-bottom: 1rem;
}

.footer-nav ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav a {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    color: rgba(255, 251, 240, 0.6);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fcd34d;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    color: rgba(255, 251, 240, 0.6);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fcd34d;
}

.footer-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: 'Lora', Georgia, serif;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-address svg {
    flex-shrink: 0;
    opacity: 0.6;
    margin-top: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.875rem;
    color: rgba(255, 251, 240, 0.35);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(24px);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .js-enabled .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-scroll svg {
        animation: none;
    }
}
