/* ============================================
   The Candyman — Styles
   ============================================ */

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

:root {
    --green-900: #1a3a25;
    --green-800: #2d5a3d;
    --green-700: #3d7a52;
    --green-600: #4a9462;
    --green-500: #5aad74;
    --green-100: #d4eddf;
    --green-50:  #eef7f1;
    
    --cream-50:  #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede6d8;
    --cream-300: #e0d5c0;
    
    --text-dark:  #1a1f1c;
    --text-mid:   #3d4540;
    --text-light: #6b7a70;
    --white:      #ffffff;
    
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    
    --shadow-sm:  0 2px 8px rgba(26, 58, 37, 0.06);
    --shadow-md:  0 4px 20px rgba(26, 58, 37, 0.10);
    --shadow-lg:  0 8px 40px rgba(26, 58, 37, 0.14);
    --shadow-xl:  0 16px 60px rgba(26, 58, 37, 0.18);
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Nunito', 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream-50);
    line-height: 1.7;
    -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 ---------- */
.section-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.text-accent {
    color: var(--green-700);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.section {
    padding: 96px 0;
}

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

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

.btn-primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

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

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.08);
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(250, 248, 244, 0.96);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    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-size: 1.3rem;
    font-weight: 700;
    color: var(--green-800);
}

.logo-light {
    color: var(--white);
}

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

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

.main-nav a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--green-800);
    background: var(--green-50);
}

/* ---------- Mobile Menu Button ---------- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Mobile Menu Overlay ---------- */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--green-800);
    padding: 8px;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.mobile-nav-link:hover {
    color: var(--green-800);
    background: var(--green-50);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 58, 37, 0.88) 0%,
        rgba(45, 90, 61, 0.80) 50%,
        rgba(26, 58, 37, 0.85) 100%
    );
}

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

.hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-100);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-accent {
    color: var(--green-100);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 240, 232, 0.85);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

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

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-100);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- About ---------- */
.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-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    width: 55%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--cream-50);
}

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

.about-accent-shape {
    position: absolute;
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    background: var(--green-100);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
}

.about-content p {
    color: var(--text-mid);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--cream-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-800);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ---------- Menu ---------- */
.menu {
    background: var(--white);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-mid);
    background: var(--cream-100);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: 12px 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.menu-cat-btn:hover {
    color: var(--green-800);
    background: var(--green-50);
    border-color: var(--green-100);
}

.menu-cat-btn.active {
    color: var(--white);
    background: var(--green-800);
    border-color: var(--green-800);
}

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

.menu-item {
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--cream-200);
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-100);
}

.menu-item-img {
    overflow: hidden;
    height: 200px;
}

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

.menu-item:hover .menu-item-img img {
    transform: scale(1.05);
}

.menu-item-body {
    padding: 20px;
}

.menu-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.menu-item-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-100);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

.menu-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* ---------- Gallery ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 37, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item--tall {
    grid-row: span 2;
}

/* ---------- Visit ---------- */
.visit {
    background: var(--white);
}

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

.visit-info {
    padding: 8px 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 36px 0;
}

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

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border-radius: var(--radius-md);
    color: var(--green-800);
}

.visit-detail strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-700);
    margin-bottom: 4px;
}

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

.visit-detail a {
    color: var(--green-800);
    font-weight: 600;
    transition: color var(--transition);
}

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

.hours-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.hours-table div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.95rem;
    color: var(--text-mid);
    padding: 4px 0;
    border-bottom: 1px solid var(--cream-200);
}

.hours-table div:last-child {
    border-bottom: none;
}

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

/* ---------- Contact ---------- */
.contact {
    background: var(--green-900);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 153, 98, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 153, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact .section-eyebrow {
    color: var(--green-100);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(245, 240, 232, 0.75);
}

.contact-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 56px;
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-content {
    padding-top: 8px;
}

.contact-content .section-subtitle {
    margin: 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-100);
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: all var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(74, 153, 98, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a70' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Epolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-800);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.form-success p {
    color: rgba(245, 240, 232, 0.75);
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--green-900);
    color: rgba(245, 240, 232, 0.7);
    padding: 64px 0 0;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 300px;
}

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

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

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

.footer-links a:hover {
    color: var(--green-100);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--green-500);
}

.footer-contact a {
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 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) {
    .about-grid {
        gap: 48px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 220px);
    }
    
    .gallery-item--tall {
        grid-row: span 1;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content {
        padding: 100px 20px 60px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .menu-categories {
        gap: 8px;
    }
    
    .menu-cat-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge-hero {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .about-img-secondary {
        right: -12px;
        bottom: -20px;
        width: 60%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 200px);
    }
}
