/* ============================================
   Zigg's Ice Cream — Styles
   Palette: Forest Green + Off-White
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
    --green-900: #0d2818;
    --green-800: #1a4d2e;
    --green-700: #246b3f;
    --green-600: #2d8a54;
    --green-500: #3d8b5f;
    --green-400: #6db88a;
    --green-300: #a3d4b5;
    --green-200: #d0e8dc;
    --green-100: #e8f3ed;
    --green-50:  #f2f8f4;

    --off-white: #f5f2eb;
    --off-white-light: #faf8f4;
    --cream: #ede8dd;
    --warm-gray: #8a8478;
    --warm-gray-light: #b5afa4;
    --dark: #1a1916;
    --dark-soft: #2e2c27;

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

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--dark);
    background-color: var(--off-white);
    line-height: 1.7;
    -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;
}

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

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

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--green-800);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 480px;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-800);
    color: var(--off-white);
    border: 1.5px solid var(--green-800);
}

.btn--primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 77, 46, 0.2);
}

.btn--ghost {
    background: transparent;
    color: var(--off-white);
    border: 1.5px solid rgba(245, 242, 235, 0.5);
}

.btn--ghost:hover {
    background: rgba(245, 242, 235, 0.1);
    border-color: var(--off-white);
}

.btn--full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 77, 46, 0.08);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--off-white);
    transition: color 0.4s var(--ease-out);
}

.nav.scrolled .nav-logo {
    color: var(--green-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.8);
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover {
    color: var(--off-white);
}

.nav.scrolled .nav-links a {
    color: var(--warm-gray);
}

.nav.scrolled .nav-links a:hover {
    color: var(--green-800);
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    border: 1.5px solid rgba(245, 242, 235, 0.4);
    border-radius: 100px;
    transition: all 0.3s var(--ease-smooth) !important;
}

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

.nav-cta:hover {
    background: rgba(245, 242, 235, 0.1);
    border-color: rgba(245, 242, 235, 0.8);
}

.nav.scrolled .nav-cta {
    border-color: var(--green-800);
    color: var(--green-800) !important;
}

.nav.scrolled .nav-cta:hover {
    background: var(--green-800);
    color: var(--off-white) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--off-white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav.scrolled .nav-toggle-line {
    background: var(--green-800);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--green-900);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--off-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
}

.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu-link--phone {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, 
            #0d2818 0%, 
            #1a4d2e 25%, 
            #246b3f 50%, 
            #3d8b5f 75%, 
            #6db88a 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 40, 24, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(61, 139, 95, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(26, 77, 46, 0.3) 0%, transparent 70%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    max-width: 800px;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.6);
    margin-bottom: 2rem;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
    color: var(--off-white);
    margin-bottom: 1.75rem;
    line-height: 1.1;
}

.hero-headline-accent {
    font-style: italic;
    font-weight: 300;
    opacity: 0.85;
}

.hero-subheadline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(245, 242, 235, 0.75);
    max-width: 520px;
    margin: 0 auto 3rem;
    line-height: 1.9;
}

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

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245, 242, 235, 0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

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

/* ---------- Divider ---------- */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--green-300), transparent);
}

/* ---------- Flavors ---------- */
.flavors {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.flavor-card {
    background: var(--off-white-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    border: 1px solid rgba(26, 77, 46, 0.06);
}

.flavor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(26, 77, 46, 0.1);
}

.flavor-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.flavor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

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

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

.flavor-card-name {
    font-size: 1.4rem;
    color: var(--green-800);
    margin-bottom: 0.75rem;
}

.flavor-card-desc {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.75;
}

.flavors-note {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--green-50);
    border-radius: 12px;
    border: 1px solid var(--green-200);
}

.flavors-note p {
    font-size: 0.88rem;
    color: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.flavors-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--green-600);
    flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
    padding: 8rem 0;
}

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

.about-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

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

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

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green-800);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.about-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--green-200);
    display: flex;
    gap: 2rem;
}

.about-signature span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--green-700);
}

.about-signature span:last-child {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
    align-self: flex-end;
}

/* ---------- Visit ---------- */
.visit {
    padding: 8rem 0;
    background: var(--green-50);
}

.visit .section-header {
    margin-bottom: 4rem;
}

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

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

.visit-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--green-200);
}

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

.visit-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.visit-block-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 0.75rem;
}

.visit-block-text {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.8;
}

.visit-block-text a {
    color: var(--green-700);
    transition: color 0.3s var(--ease-smooth);
}

.visit-block-text a:hover {
    color: var(--green-500);
}

/* Contact Form */
.visit-contact-form {
    margin-top: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--dark);
    background: var(--off-white);
    border: 1.5px solid var(--green-200);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s var(--ease-smooth);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--warm-gray-light);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--green-500);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

.form-success {
    font-size: 0.9rem;
    color: var(--green-700);
    margin-top: 1rem;
    padding: 1rem;
    background: var(--green-100);
    border-radius: 10px;
    text-align: center;
}

/* Map */
.visit-map-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 6 / 5;
}

.visit-map-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 40, 24, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.visit-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--off-white);
    padding: 0.75rem 1.5rem;
    border: 1.5px solid rgba(245, 242, 235, 0.4);
    border-radius: 100px;
    transition: all 0.3s var(--ease-smooth);
}

.visit-map-link:hover {
    background: rgba(245, 242, 235, 0.15);
    border-color: rgba(245, 242, 235, 0.8);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--green-900);
    padding: 4rem 0 3rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--off-white);
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(245, 242, 235, 0.5);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 242, 235, 0.5);
    transition: color 0.3s var(--ease-smooth);
}

.footer-links a:hover {
    color: var(--off-white);
}

.footer-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.footer-copy p {
    font-size: 0.78rem;
    color: rgba(245, 242, 235, 0.3);
}

.footer-copy a {
    color: rgba(245, 242, 235, 0.4);
    transition: color 0.3s var(--ease-smooth);
}

.footer-copy a:hover {
    color: var(--off-white);
}

/* ---------- Scroll Reveal ---------- */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-reveal].reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
}

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

    .about-layout {
        gap: 3rem;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .flavors {
        padding: 5rem 0;
    }

    .about {
        padding: 5rem 0;
    }

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

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

    .visit {
        padding: 5rem 0;
    }

    .visit-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-inner {
        gap: 2rem;
    }
}

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

    .nav-inner {
        padding: 0;
    }

    .hero-scroll {
        bottom: 2rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    [data-reveal].reveal-hidden {
        opacity: 1;
        transform: none;
    }
}
