/* ============================================
   Carousel Ice Cream — Custom Styles
   ============================================ */

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

:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --cream-50:  #fefdf8;
    --cream-100: #fdfbf0;
    --cream-200: #faf5e8;
    --cream-300: #f5edd6;
    --cream-400: #e8dbb8;
    --cream-500: #d4c4a0;

    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    color: var(--stone-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-md);
}

/* --- Section Title --- */
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--stone-900);
    margin-bottom: var(--space-lg);
}

.text-emerald {
    color: var(--emerald-600);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--emerald-700);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
}

.btn-ghost {
    background-color: transparent;
    color: var(--stone-700);
    border: 1px solid var(--stone-300);
}

.btn-ghost:hover {
    border-color: var(--emerald-400);
    color: var(--emerald-700);
}

.btn-map {
    margin-top: var(--space-lg);
    background-color: var(--cream-200);
    color: var(--emerald-800);
    border: 1px solid var(--emerald-200);
}

.btn-map:hover {
    background-color: var(--emerald-50);
    border-color: var(--emerald-400);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-300);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 0 var(--cream-300);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--stone-800);
    letter-spacing: -0.01em;
}

.nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--emerald-700);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--stone-600);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--emerald-500);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--emerald-700);
}

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-300);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--emerald-50);
    border-color: var(--emerald-500);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--stone-700);
    transition: var(--transition);
}

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

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

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background-color: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--stone-800);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--emerald-600);
}

.mobile-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--emerald-700);
    border: 1px solid var(--emerald-300);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-top: var(--space-lg);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    background-color: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--stone-900);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--stone-600);
    max-width: 440px;
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 600 / 750;
    background-color: var(--cream-200);
}

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

.hero-accent-line {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--stone-400);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--stone-300), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Section Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
    color: var(--stone-300);
}

.section-divider svg {
    opacity: 0.5;
}

/* --- About --- */
.about {
    padding: var(--space-4xl) 0;
    background-color: var(--cream-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    aspect-ratio: 560 / 640;
}

.about-text-col {
    padding: var(--space-xl) 0;
}

.about-text-col p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--stone-600);
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--cream-300);
}

.stat {
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--emerald-700);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--stone-500);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    background-color: var(--cream-300);
    align-self: stretch;
}

/* --- Flavors --- */
.flavors {
    padding: var(--space-4xl) 0;
    background-color: var(--cream-100);
}

.flavors-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.flavors-intro {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--stone-500);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.flavor-card {
    background-color: var(--cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--cream-200);
}

.flavor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: var(--emerald-200);
}

.flavor-card-image {
    aspect-ratio: 400 / 320;
    overflow: hidden;
    background-color: var(--cream-200);
}

.flavor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.flavor-card-body {
    padding: var(--space-lg);
}

.flavor-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--stone-900);
    margin-bottom: var(--space-sm);
}

.flavor-desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--stone-500);
    margin-bottom: var(--space-md);
}

.flavor-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-700);
    background-color: var(--emerald-50);
    padding: 0.3125rem 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--emerald-200);
}

.flavors-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--stone-400);
    font-style: italic;
}

/* --- Visit --- */
.visit {
    padding: var(--space-4xl) 0;
    background-color: var(--cream-50);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.visit-detail {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.visit-detail svg {
    color: var(--emerald-600);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.visit-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone-400);
    margin-bottom: var(--space-xs);
}

.visit-detail-value {
    display: block;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--stone-700);
}

.visit-detail-value a {
    color: var(--emerald-700);
    transition: var(--transition);
}

.visit-detail-value a:hover {
    color: var(--emerald-500);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--cream-200);
    border: 1px solid var(--cream-300);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* --- Contact --- */
.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--cream-100);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.contact-left p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--stone-500);
    margin-bottom: var(--space-xl);
}

.contact-direct-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--emerald-700);
    transition: var(--transition);
}

.contact-direct-link:hover {
    color: var(--emerald-500);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--stone-500);
}

.form-input {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--stone-800);
    background-color: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-input::placeholder {
    color: var(--stone-400);
}

.form-input:focus {
    border-color: var(--emerald-400);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.btn-submit {
    align-self: flex-start;
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-sm);
    color: var(--emerald-800);
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.form-success.visible {
    display: flex;
}

/* --- Footer --- */
.footer {
    background-color: var(--stone-900);
    color: var(--stone-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-3xl);
    align-items: start;
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--stone-800);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-brand .nav-logo-mark {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.footer-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--stone-200);
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--stone-500);
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--stone-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: right;
}

.footer-phone {
    font-size: 1rem;
    color: var(--emerald-400);
    transition: var(--transition);
}

.footer-phone:hover {
    color: var(--emerald-300);
}

.footer-address {
    font-size: 0.875rem;
    color: var(--stone-500);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.75rem;
    color: var(--stone-600);
}

/* --- Scroll Reveal (progressive enhancement) --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: var(--space-2xl);
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: var(--space-3xl) var(--space-lg);
        gap: var(--space-2xl);
    }

    .hero-right {
        order: -1;
    }

    .hero-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .hero-accent-line {
        display: none;
    }

    .hero-scroll {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-col img {
        aspect-ratio: 4 / 3;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

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

    .visit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-contact {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

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

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

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-line {
        animation: none;
        opacity: 0.5;
    }

    .flavor-card:hover {
        transform: none;
    }

    .flavor-card-image img {
        transition: none;
    }
}
