/* ============================================
   Carolina's Snow Cones — Custom Styles
   Classic & Elegant | Navy + Warm Gold
   ============================================ */

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

:root {
    --navy-900: #0a1628;
    --navy-800: #1a2d4a;
    --navy-700: #1a3a5c;
    --navy-600: #234b73;
    --navy-500: #2c5f8e;
    --gold-600: #a8842a;
    --gold-500: #c9a84c;
    --gold-400: #d4af57;
    --gold-300: #e0c078;
    --gold-200: #f0db9a;
    --gold-100: #faf0d0;
    --cream-50: #fdfbf7;
    --cream-100: #f8f3e9;
    --cream-200: #f0e8d8;
    --warm-gray-50: #faf9f7;
    --warm-gray-100: #f5f2ec;
    --warm-gray-200: #e8e3d8;
    --warm-gray-300: #d4cfc4;
    --warm-gray-400: #a89f90;
    --warm-gray-500: #7a7064;
    --warm-gray-600: #5c5449;
    --warm-gray-700: #3d3730;
    --warm-gray-800: #2a2520;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', 'Segoe UI', system-ui, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: var(--font-sans);
    color: var(--warm-gray-700);
    background-color: var(--cream-50);
    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 {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--navy-800);
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray-500);
    max-width: 560px;
    line-height: 1.75;
}

/* ---------- 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.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-900);
    border: 2px solid var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--navy-700);
    border: 2px solid var(--navy-700);
}

.btn-secondary:hover {
    background: var(--navy-700);
    color: #fff;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--warm-gray-200);
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(10, 22, 40, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-800);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: var(--gold-500);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-gray-600);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy-800);
    border: 1.5px solid var(--navy-700);
    border-radius: 4px;
    transition: all var(--transition-fast);
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    background: var(--navy-700);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy-800);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 72px 2rem 4rem;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 560px;
}

.hero-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--navy-800);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--gold-500);
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--warm-gray-500);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-700);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray-400);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--warm-gray-200);
}

.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(10, 22, 40, 0.15);
}

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

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--gold-200);
    border-radius: 8px;
    z-index: -1;
}

/* ---------- About Section ---------- */
.about {
    padding: 8rem 2rem;
    background: var(--cream-100);
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

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

.about-text {
    font-size: 1.05rem;
    color: var(--warm-gray-500);
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.about-value {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 2px;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 0.35rem;
}

.value-desc {
    font-size: 0.95rem;
    color: var(--warm-gray-500);
    line-height: 1.7;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.12);
}

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

/* ---------- Flavors Section ---------- */
.flavors {
    padding: 8rem 2rem;
    background: var(--cream-50);
}

.flavors-container {
    max-width: 1280px;
    margin: 0 auto;
}

.flavors-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.flavor-card {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--warm-gray-200);
    transition: all var(--transition-medium);
}

.flavor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.1);
    border-color: var(--gold-200);
}

.flavor-card-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.flavor-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 0.75rem;
}

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

.flavors-note {
    text-align: center;
}

.flavors-note p {
    font-size: 0.95rem;
    color: var(--warm-gray-400);
    font-style: italic;
}

/* ---------- Experience Section ---------- */
.experience {
    padding: 8rem 2rem;
    background: var(--navy-800);
    color: #fff;
}

.experience-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.experience-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

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

.experience-content .section-label {
    color: var(--gold-400);
}

.experience-content .section-title {
    color: #fff;
    margin-bottom: 1.5rem;
}

.experience-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin-bottom: 3rem;
}

.experience-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-500);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.experience-feature h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.experience-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* ---------- Visit Section ---------- */
.visit {
    padding: 8rem 2rem;
    background: var(--cream-100);
}

.visit-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

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

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.visit-detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.detail-icon {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 2px;
}

.detail-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 0.3rem;
}

.visit-detail p {
    font-size: 0.95rem;
    color: var(--warm-gray-500);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--navy-600);
    transition: color var(--transition-fast);
}

.visit-detail a:hover {
    color: var(--gold-500);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(10, 22, 40, 0.1);
    min-height: 400px;
}

.map-placeholder iframe {
    border-radius: 8px;
}

/* ---------- Contact Section ---------- */
.contact {
    padding: 8rem 2rem;
    background: var(--cream-50);
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--gold-500);
    margin-top: 2px;
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy-800);
    margin-bottom: 0.3rem;
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--warm-gray-500);
}

.contact-item a {
    color: var(--navy-600);
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--gold-500);
}

.contact-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--warm-gray-200);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray-600);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--warm-gray-700);
    background: var(--cream-50);
    border: 1.5px solid var(--warm-gray-200);
    border-radius: 4px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

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

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

.form-success {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold-200);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--navy-700);
    margin-top: 0.5rem;
}

.form-success.show {
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.6);
    padding: 5rem 2rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: var(--gold-400);
}

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

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

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

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-hours p {
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--gold-400);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .experience-container,
    .visit-container {
        gap: 3rem;
    }

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

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subheadline {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .hero-image {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

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

    .about-image {
        max-width: 560px;
        margin: 0 auto;
    }

    .experience-container {
        grid-template-columns: 1fr;
    }

    .experience-image {
        max-width: 580px;
    }

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

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

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--warm-gray-200);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-medium);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 1.5rem 3rem;
        min-height: auto;
    }

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

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

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

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

    .footer-top {
        grid-template-columns: 1fr;
    }

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

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

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

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

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

    html {
        scroll-behavior: auto;
    }

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