/* ========================================
   Doozie's Ice Cream Place — Styles
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta: #C65D3E;
    --color-terracotta-dark: #A84A2E;
    --color-terracotta-light: #E8A88A;
    --color-sand: #F5E6D3;
    --color-sand-light: #FDF6EE;
    --color-sand-dark: #D4B896;
    --color-warm-white: #FFFAF5;
    --color-text-dark: #3D2B1F;
    --color-text-medium: #6B4C3B;
    --color-text-light: #9B7B6B;
    --color-accent-pink: #E8B4B8;
    --color-accent-gold: #D4A574;
    --color-accent-mint: #A8C5B8;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    
    --shadow-soft: 0 4px 20px rgba(61, 43, 31, 0.08);
    --shadow-medium: 0 8px 40px rgba(61, 43, 31, 0.12);
    --shadow-hover: 0 12px 48px rgba(61, 43, 31, 0.16);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-warm-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header.light {
    color: #fff;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(198, 93, 62, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-tag.light {
    color: var(--color-sand);
    background: rgba(255, 255, 255, 0.15);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.section-header.light h2 {
    color: #fff;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-medium);
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta);
    color: #fff;
    border-color: var(--color-terracotta);
}

.btn-primary:hover {
    background: var(--color-terracotta-dark);
    border-color: var(--color-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(198, 93, 62, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--color-terracotta);
    border-color: #fff;
}

.btn-white:hover {
    background: var(--color-sand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 246, 238, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(198, 93, 62, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 246, 238, 0.95);
    box-shadow: var(--shadow-soft);
}

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

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

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

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-medium);
    padding: 8px 16px;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-terracotta);
    background: rgba(198, 93, 62, 0.08);
}

.nav-cta {
    background: var(--color-terracotta) !important;
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--color-terracotta-dark) !important;
    color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(61, 43, 31, 0.72) 0%,
        rgba(107, 76, 59, 0.55) 50%,
        rgba(198, 93, 62, 0.45) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
    padding-top: 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-sand);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-headline {
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
    font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 36px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    animation: float 2.5s ease-in-out infinite;
}

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

/* --- Flavors --- */
.flavors {
    padding: 100px 0;
    background: var(--color-warm-white);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.flavor-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.flavor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.flavor-card-img {
    height: 220px;
    overflow: hidden;
}

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

.flavor-card:hover .flavor-card-img img {
    transform: scale(1.06);
}

.flavor-card-body {
    padding: 24px;
}

.flavor-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(198, 93, 62, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.flavor-card-body h3 {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.flavor-card-body p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.flavors-note {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    color: var(--color-text-medium);
    font-weight: 500;
}

.flavors-note::before,
.flavors-note::after {
    content: '🍦';
    margin: 0 8px;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--color-sand-light);
}

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-img-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-img-stack {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--color-sand-light);
}

.about-img-stack img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-floating-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--color-terracotta);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(198, 93, 62, 0.35);
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.125rem;
    color: var(--color-text-medium);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-content > p {
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-features {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(198, 93, 62, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
}

.about-feature strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-dark);
    margin-bottom: 2px;
}

.about-feature span {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* --- Visit --- */
.visit {
    padding: 100px 0;
    background: var(--color-terracotta);
}

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

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visit-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.visit-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.visit-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.visit-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.visit-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.visit-card a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.visit-card a:hover {
    color: #fff;
}

.visit-cta {
    align-self: flex-start;
    margin-top: 8px;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 380px;
    box-shadow: var(--shadow-medium);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: var(--color-sand);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 1.0625rem;
    color: var(--color-text-medium);
}

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

/* --- Footer --- */
.footer {
    background: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

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

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

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-sand-light);
        flex-direction: column;
        align-items: stretch;
        padding: 96px 24px 32px;
        gap: 4px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    .nav-links a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        font-size: 1.0625rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 8px;
    }

    .hero-headline {
        font-size: clamp(1.875rem, 7vw, 2.75rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-img-main img {
        height: 360px;
    }

    .about-img-stack {
        width: 60%;
        bottom: -24px;
        right: -8px;
    }

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

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

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }

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

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

    .flavors, .about, .visit {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .flavor-card-img {
        height: 180px;
    }
}
