/* ============================================
   Karina's Churros — Custom Styles
   Classic & Elegant · Terracotta + Sand
   ============================================ */

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

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

body {
    line-height: 1.7;
    color: #3c2415;
    background-color: #fdfcfa;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c97052;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: #3c2415;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 1.125rem;
    color: #765f43;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

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

.mb-16 {
    margin-bottom: 64px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #c97052;
    color: #ffffff;
    border-color: #c97052;
}

.btn-primary:hover {
    background-color: #a2462d;
    border-color: #a2462d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(162, 70, 45, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #3c2415;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 237, 218, 0.5);
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    box-shadow: 0 2px 20px rgba(60, 36, 21, 0.08);
}

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

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #3c2415;
    letter-spacing: 0.02em;
}

.nav-logo:hover {
    color: #c97052;
}

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

.nav-link {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #765f43;
    letter-spacing: 0.04em;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c97052;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #c97052;
}

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

.nav-cta {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #c97052;
    border: 1.5px solid #c97052;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: #c97052;
    color: #ffffff;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #3c2415;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('https://images.pexels.com/photos/5864548/pexels-photo-5864548.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(60, 36, 21, 0.82) 0%,
        rgba(108, 48, 33, 0.75) 50%,
        rgba(60, 36, 21, 0.82) 100%
    );
}

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

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #f0d4c8;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: #f0d4c8;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f4ecda;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #f4ecda;
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- About --- */
.about {
    background-color: #fdfcfa;
}

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

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(60, 36, 21, 0.15);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid #f0d4c8;
    border-radius: 8px;
    z-index: -1;
}

.about-content {
    padding: 20px 0;
}

.about-text {
    font-size: 1.0625rem;
    color: #765f43;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

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

.feature-icon {
    color: #c97052;
    flex-shrink: 0;
}

.feature-item span {
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #3c2415;
}

/* --- Menu --- */
.menu {
    background-color: #faf6ef;
}

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

.menu-card {
    background: #fdfcfa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60, 36, 21, 0.06);
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(60, 36, 21, 0.12);
}

.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.05);
}

.menu-card-body {
    padding: 28px;
}

.menu-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: #3c2415;
    margin-bottom: 12px;
}

.menu-card-desc {
    font-size: 0.9375rem;
    color: #765f43;
    line-height: 1.7;
}

/* --- Gallery --- */
.gallery {
    background-color: #fdfcfa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 5/4;
}

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

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

/* --- Visit --- */
.visit {
    background-color: #faf6ef;
}

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

.visit-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
}

.visit-icon {
    color: #c97052;
    flex-shrink: 0;
    margin-top: 2px;
}

.visit-detail-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #3c2415;
    margin-bottom: 4px;
}

.visit-detail-text {
    font-size: 0.9375rem;
    color: #765f43;
    line-height: 1.7;
}

.visit-detail-text a {
    color: #c97052;
    transition: color 0.3s ease;
}

.visit-detail-text a:hover {
    color: #a2462d;
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(60, 36, 21, 0.1);
    min-height: 450px;
}

/* --- Contact --- */
.contact {
    background-color: #3c2415;
    padding: 100px 0;
}

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

.contact .section-label {
    color: #f0d4c8;
}

.contact .section-title {
    color: #ffffff;
}

.contact-desc {
    font-size: 1.0625rem;
    color: #eaddc0;
    line-height: 1.8;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(240, 212, 168, 0.2);
    border-radius: 8px;
    padding: 40px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #eaddc0;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
    color: #fdfcfa;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(240, 212, 168, 0.25);
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #937752;
}

.form-input:focus {
    border-color: #c97052;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(201, 112, 82, 0.15);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    background: rgba(201, 112, 82, 0.15);
    border: 1px solid rgba(201, 112, 82, 0.3);
    border-radius: 4px;
    color: #f0d4c8;
    font-family: 'Lato', sans-serif;
    font-size: 0.9375rem;
}

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

.form-success svg {
    color: #c97052;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer {
    background-color: #2a1a0e;
    padding: 64px 0 0;
}

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

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: #937752;
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #f0d4c8;
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: #937752;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #c97052;
}

.footer-contact li:not(:last-child) {
    color: #937752;
    font-size: 0.9375rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: #614e39;
}

.footer-made {
    font-size: 0.8125rem;
    color: #614e39;
}

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

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

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-grid,
    .visit-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fdfcfa;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        box-shadow: -10px 0 40px rgba(60, 36, 21, 0.15);
        transition: right 0.3s ease;
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
