/* ============================================
   Pinky's Snowball's Chance — Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-terracotta-50: #fef7f5;
    --color-terracotta-100: #fdeee8;
    --color-terracotta-200: #fad5c8;
    --color-terracotta-300: #f5b4a0;
    --color-terracotta-400: #ee8a70;
    --color-terracotta-500: #e06045;
    --color-terracotta-600: #cc4a2e;
    --color-terracotta-700: #a83a24;
    --color-terracotta-800: #852e1d;
    --color-terracotta-900: #6e2618;

    --color-sand-50: #fefdfb;
    --color-sand-100: #fdf8f0;
    --color-sand-200: #faf0e0;
    --color-sand-300: #f4e0c8;
    --color-sand-400: #e8c8a0;
    --color-sand-500: #d4a872;
    --color-sand-600: #c08a50;
    --color-sand-700: #9a6a3a;
    --color-sand-800: #7a5230;
    --color-sand-900: #5e3f25;

    --color-warm-dark: #3d2218;
    --color-warm-medium: #6b3f2e;
    --color-warm-light: #f9f0eb;
    --color-white: #ffffff;
    --color-text: #2d1a12;
    --color-text-light: #7a5c50;
    --color-text-muted: #a08078;

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --shadow-sm: 0 2px 8px rgba(61, 34, 24, 0.06);
    --shadow-md: 0 4px 20px rgba(61, 34, 24, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 34, 24, 0.12);
    --shadow-xl: 0 16px 60px rgba(61, 34, 24, 0.15);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --radius-full: 9999px;

    --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;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-sand-50);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Section Label --- */
.section-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-terracotta-600);
    display: inline-block;
    margin-bottom: 12px;
    background: var(--color-terracotta-100);
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
}

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

.btn-primary {
    background: var(--color-terracotta-600);
    color: var(--color-white);
    border-color: var(--color-terracotta-600);
    box-shadow: 0 4px 16px rgba(204, 74, 46, 0.3);
}

.btn-primary:hover {
    background: var(--color-terracotta-700);
    border-color: var(--color-terracotta-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(204, 74, 46, 0.4);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-terracotta-600);
    border-color: var(--color-white);
    box-shadow: var(--shadow-md);
}

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

.btn-full {
    width: 100%;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 251, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 114, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-warm-dark);
}

.logo-icon {
    font-size: 1.75rem;
}

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

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-terracotta-600);
    background: var(--color-terracotta-100);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-warm-dark);
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* --- 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-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        var(--color-terracotta-500) 0%,
        var(--color-terracotta-700) 30%,
        var(--color-warm-dark) 70%,
        #1a0e08 100%
    );
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(61, 34, 24, 0.3) 0%,
        rgba(61, 34, 24, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sand-200);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.hero-scroll span {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 18px; opacity: 0.4; }
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background: var(--color-sand-50);
}

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

.about-images {
    position: relative;
}

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

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

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid var(--color-sand-50);
}

.about-img-secondary img {
    width: 240px;
    height: 240px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    top: -20px;
    right: 40px;
    background: var(--color-terracotta-600);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.about-badge .badge-number {
    display: block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.about-badge .badge-text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.about-content .section-label {
    margin-bottom: 12px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-terracotta-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta-600);
    flex-shrink: 0;
}

.feature-item span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--color-warm-dark);
}

/* --- Menu Section --- */
.menu {
    padding: 120px 0;
    background: var(--color-terracotta-50);
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.menu-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

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

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

.menu-card-content {
    padding: 32px;
}

.menu-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.menu-card-content h3 {
    margin-bottom: 12px;
    color: var(--color-warm-dark);
}

.menu-card-content > p {
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.menu-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-terracotta-400);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Visit Section --- */
.visit {
    padding: 120px 0;
    background: var(--color-sand-50);
}

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

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

.visit-info .section-label {
    margin-bottom: 12px;
}

.visit-info h2 {
    margin-bottom: 16px;
}

.visit-info > p {
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    flex: 1;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-detail-icon {
    width: 48px;
    height: 48px;
    background: var(--color-terracotta-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta-600);
    flex-shrink: 0;
}

.visit-detail strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-warm-dark);
    margin-bottom: 4px;
}

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

.visit-detail a {
    color: var(--color-terracotta-600);
}

.visit-detail a:hover {
    color: var(--color-terracotta-700);
    text-decoration: underline;
}

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

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

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background: linear-gradient(
        135deg,
        var(--color-terracotta-600) 0%,
        var(--color-terracotta-800) 100%
    );
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-label {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.contact-info h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-method-label {
    display: block;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.contact-method-value {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--color-white);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-warm-dark);
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 14px 18px;
    border: 2px solid var(--color-sand-300);
    border-radius: var(--radius-sm);
    background: var(--color-sand-50);
    color: var(--color-text);
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta-500);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(224, 96, 69, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 32px;
}

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

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-terracotta-100);
    color: var(--color-terracotta-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.form-success p {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-warm-dark);
    font-size: 1.125rem;
}

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

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

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.0625rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--color-terracotta-300);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-terracotta-300);
}

.footer-contact a:hover {
    color: var(--color-terracotta-200);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }

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

    .contact-grid {
        gap: 48px;
    }

    .footer-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(254, 253, 251, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid rgba(212, 168, 114, 0.2);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

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

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

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

    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }

    .about-img-secondary {
        right: -20px;
        bottom: -20px;
    }

    .about-img-secondary img {
        width: 180px;
        height: 180px;
    }

    .menu-categories {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

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

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

    .visit-map iframe {
        min-height: 300px;
    }

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

    .contact-form-wrapper {
        padding: 28px;
    }

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

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

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

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

    .about,
    .menu,
    .visit,
    .contact {
        padding: 80px 0;
    }

    .about-img-secondary {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 16px;
        display: inline-block;
    }

    .about-img-secondary img {
        width: 100%;
        max-width: 280px;
        height: 200px;
    }

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

    .menu-card-content {
        padding: 24px;
    }
}

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

    html {
        scroll-behavior: auto;
    }

    .scroll-indicator::before {
        animation: none;
    }
}
