:root {
    --bg-color: #FFFDF9;
    --text-color: #264653;
    --text-light: #526C77;
    --primary-color: #F4A261;
    --primary-dark: #E76F51;
    --secondary-color: #E9C46A;
    --accent-color: #2A9D8F;

    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(38, 70, 83, 0.08);
    --shadow-hover: 0 20px 40px rgba(231, 111, 81, 0.15);

    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Theme Variables */
:root[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #F8F9FA;
    --text-light: #ADB5BD;
    --primary-color: #E76F51;
    --primary-dark: #F4A261;
    --secondary-color: #2A9D8F;
    --accent-color: #E9C46A;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Force hide default cursor everywhere */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

/* --- Ambient Background --- */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
    transition: background 0.5s ease;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary-color);
    top: -10vw;
    left: -10vw;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: var(--secondary-color);
    bottom: -10vw;
    right: -10vw;
    animation-delay: -5s;
}

.orb-3 {
    width: 30vw;
    height: 30vw;
    background: var(--accent-color);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10vw, -10vh) scale(1.1);
    }

    66% {
        transform: translate(-10vw, 15vh) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

[data-theme="dark"] .ambient-orb {
    opacity: 0.15;
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hide custom cursor on smaller touch devices */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

button,
input,
select,
textarea,
label {
    cursor: none;
}

/* Base Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for children if needed */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* Decorative Background Elements */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: radial-gradient(var(--text-color) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

[data-theme="dark"] nav.scrolled {
    background: rgba(18, 18, 18, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.theme-toggle {
    position: relative;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    /* Essential for absolute children icons */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    z-index: 1001;
    /* To stay above mobile menu if needed */
}

.logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--text-color);
    white-space: nowrap;
    /* Prevent wrapping on small screens */
}

.logo-placeholder {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(231, 111, 81, 0.3);
    transition: var(--transition-bounce);
}

.logo:hover .logo-placeholder {
    transform: rotate(-10deg) scale(1.1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--primary-dark);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a.nav-cta::after {
    display: none;
    /* Remove yellow bar on hover for CTA */
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    /* Keep above mobile menu */
    position: relative;
}

.line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Layout Blocks */
section {
    padding: 6rem 5%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

/* Hero Section & Initial Animations */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Staggered Hero Elements */
.hero-stagger {
    opacity: 0;
    transform: translateY(50px);
}

.hero.reveal-active .hero-stagger {
    animation: slideUpFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero.reveal-active h1 {
    animation-delay: 0.1s;
}

.hero.reveal-active .slogan {
    animation-delay: 0.3s;
}

.hero.reveal-active .cta-button {
    animation-delay: 0.5s;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero h1 .highlight {
    color: var(--primary-dark);
    font-family: var(--font-serif);
    font-style: italic;
}

.slogan {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0;
    font-weight: 300;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* --- Magnetic Button wrapper --- */
.magnetic-wrap {
    display: inline-block;
    padding: 2rem;
    /* creates a pull radius around the button */
    margin: -2rem;
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-dark);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(231, 111, 81, 0.3);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 111, 81, 0.4);
    color: white;
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button:hover::after {
    transform: translateX(5px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    opacity: 0.3;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blobShape 8s ease-in-out infinite alternate;
    z-index: 1;
    transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
    transition: transform 0.1s linear;
}

.hero-image-card {
    position: relative;
    z-index: 2;
    width: 450px;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(38, 70, 83, 0.2);
    /* Initial state for hero reveal */
    opacity: 0;
    transform: scale(0.9) rotate(5deg);
}

.hero.reveal-active .hero-image-card {
    animation: scaleInTilt 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

@keyframes scaleInTilt {
    0% {
        opacity: 0;
        transform: scale(0.85) rotate(8deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(3deg);
    }
}

.hero-image-card:hover {
    transform: rotate(0deg) scale(1.02) !important;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: var(--primary-dark);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(231, 111, 81, 0.4);
    transform: rotate(-5deg);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes blobShape {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1);
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: scale(1.05);
    }
}

/* About Section */
.about {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .about {
    background-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-dark);
    font-family: var(--font-serif);
}

.company-info {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.company-info ul {
    list-style: none;
    margin-top: 1rem;
}

.company-info li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.company-info a {
    color: var(--primary-dark);
    font-weight: 600;
    transition: var(--transition);
}

.company-info a:hover {
    color: var(--primary-color);
}

.info-note {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.2rem;
}

.about-image {
    position: relative;
}

.decorative-box {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: translate(10px, -10px);
}

/* Food Selection (Menu) */
.menu {
    background-color: transparent;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid transparent;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-bounce);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(231, 111, 81, 0.2);
}

[data-theme="dark"] .filter-btn {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--primary-dark);
    color: white;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
    /* Needed for 3D Tilt */
}

.menu-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    /* 3D transformations applied via JS but initialized here */
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, filter 0.3s ease, background 0.3s ease;
    will-change: transform;
}

[data-theme="dark"] .menu-item {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 0.4s ease;
    z-index: 10;
    pointer-events: none;
}

.menu-item.hide {
    display: none;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(231, 111, 81, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .menu-item:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.menu-item:hover::before {
    box-shadow: inset 0 0 0 2px var(--primary-color);
}


/* Lucide Icons Global */
[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    vertical-align: middle;
}

.theme-toggle i,
.theme-toggle svg {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease;
    color: var(--text-color);
}

.theme-toggle:hover i,
.theme-toggle:hover svg {
    transform: scale(1.1);
}

.icon-moon {
    opacity: 0;
    transform: translateY(20px);
}

.icon-sun {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .icon-moon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .icon-sun {
    opacity: 0;
    transform: translateY(-20px);
}

.item-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    transform: translateZ(30px);
    /* Pop out effect on 3D rotation */
}

.item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover .item-image-wrapper img {
    transform: scale(1.08);
}

.item-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.item-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.menu-order-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.2);
    transition: var(--transition-bounce);
    margin-top: auto;
    width: fit-content;
}

.menu-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 162, 97, 0.3);
    background: var(--primary-dark);
}

/* Contact */
.contact {
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .contact {
    background-color: transparent;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(38, 70, 83, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-info-panel {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h2 {
    color: white;
    font-family: var(--font-serif);
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-details {
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item .icon,
.detail-item svg {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.detail-item p {
    margin: 0;
    font-weight: 600;
}

.contact-form-panel {
    padding: 3rem;
    background: rgba(255, 253, 249, 0.5);
    transition: background 0.3s ease;
}

[data-theme="dark"] .contact-card {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .contact-form-panel {
    background: transparent;
}

[data-theme="dark"] .contact-info-panel p,
[data-theme="dark"] .contact-info-panel h2 {
    color: white;
    /* Ensure visibility always */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    /* Crucial for preventing width overflow with padding */
    padding: 1rem 1.2rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: rgba(255, 253, 249, 0.8);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.2);
    transform: translateY(-2px);
}

/* Dark Theme Overrides for Inputs */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: rgba(40, 40, 40, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-group input:hover,
[data-theme="dark"] .form-group textarea:hover,
[data-theme="dark"] .form-group select:hover {
    background: #2a2a2a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    background: #2a2a2a;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.15);
}

[data-theme="dark"] .captcha-container {
    background: transparent !important;
    border-color: transparent !important;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--text-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition-bounce), background 0.3s ease;
    box-shadow: 0 10px 20px rgba(38, 70, 83, 0.2);
}

[data-theme="dark"] .submit-button {
    background: var(--primary-color);
    color: white;
}

.submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

[data-theme="dark"] .submit-button:hover {
    background: #d86241;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-status.success {
    color: var(--accent-color);
}

.form-status.error {
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 4rem 5% 2rem;
    transition: background 0.3s ease;
}

[data-theme="dark"] footer {
    background: #0a0a0a;
    color: var(--text-color);
}

.footer-logo {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 2rem;
    }

    .slogan {
        border-left: none;
        padding-left: 0;
        border-bottom: 4px solid var(--primary-color);
        padding-bottom: 1rem;
        display: inline-block;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .hero-image-card {
        width: 100%;
        max-width: 400px;
        height: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    [data-theme="dark"] .hamburger .line {
        background: var(--text-color);
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 2rem 0;
        gap: 2rem;
        z-index: 1000;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(18, 18, 18, 0.98);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- Modal Styles (Review Order) --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .modal-content {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 50px !important;
    height: 50px !important;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.modal-summary {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

[data-theme="dark"] .modal-summary {
    background: rgba(255, 255, 255, 0.05);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: var(--text-light);
}

.summary-value {
    font-weight: 400;
    color: var(--text-color);
    text-align: right;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    border: none;
    font-family: var(--font-main);
}

.modal-btn.primary {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 10px 20px rgba(231, 111, 81, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(231, 111, 81, 0.4);
}

.modal-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

[data-theme="dark"] .modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.modal-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Debug Mode Styles --- */
.debug-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 5000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.7rem;
    display: none;
    /* Controlled by JS */
    align-items: center;
    gap: 8px;
    transition: var(--transition-bounce);
    letter-spacing: 1px;
}

[data-theme="dark"] .debug-toggle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.debug-toggle:hover {
    transform: scale(1.05);
    background: var(--primary-color);
    color: white;
}

.debug-toggle.active {
    background: var(--accent-color);
    color: white;
    border-color: transparent;
    animation: debug-pulse 2s infinite;
}

@keyframes debug-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(42, 157, 143, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 157, 143, 0);
    }
}

[data-theme="dark"] .debug-toggle i {
    width: 14px !important;
    height: 14px !important;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .toast {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 0.95rem;
    display: block;
}

.toast-msg {
    font-size: 0.85rem;
    opacity: 0.8;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    width: 100%;
    transform-origin: left;
}

@keyframes toastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.toast.active .toast-progress {
    animation: toastProgress 4s linear forwards;
}

@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 7rem;
        left: 5%;
        right: 5%;
        width: 90%;
    }

    .toast {
        min-width: 0;
        transform: translateY(150%);
    }

    .toast.active {
        transform: translateY(0);
    }
}

/* --- Detailed Order Page Styles --- */
.order-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 5% 5rem;
}

.order-header {
    text-align: center;
    margin-bottom: 4rem;
}

.order-grid-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .order-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Tabs */
.order-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

[data-theme="dark"] .tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(244, 162, 97, 0.2);
}

/* Product Cards */
.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-order-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .product-order-card {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-order-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-img-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: crop;
}

.product-order-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-order-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-order-info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.qty-controls {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem;
    border-radius: 50px;
}

[data-theme="dark"] .qty-controls {
    background: rgba(255, 255, 255, 0.05);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .qty-btn {
    background: var(--bg-color);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-val {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Summary Sidebar */
.order-summary-card {
    position: sticky;
    top: 100px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .order-summary-card {
    background: rgba(25, 25, 25, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.order-summary-card h3 {
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.cart-items-list {
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
}

[data-theme="dark"] .cart-item-row {
    border-color: rgba(255, 255, 255, 0.05);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 2px dashed rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .summary-total {
    border-color: rgba(255, 255, 255, 0.1);
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: var(--transition-bounce);
    box-shadow: 0 15px 30px rgba(231, 111, 81, 0.3);
}

.checkout-btn:disabled {
    opacity: 0.5;
    background: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}

.checkout-btn:not(:disabled):hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(231, 111, 81, 0.4);
}

/* Checkout Section */
.checkout-section {
    margin-top: 5rem;
    display: block;
    animation: slideUpFade 0.8s ease forwards;
}

.checkout-section.hide {
    display: none;
}

.checkout-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

[data-theme="dark"] .checkout-card {
    background: rgba(30, 30, 30, 0.4);
}

.checkout-card h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-serif);
}

/* --- New Footer V2 --- */
.footer-v2 {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5rem 5% 3rem;
    margin-top: 5rem;
}

[data-theme="dark"] .footer-v2 {
    background: rgba(15, 15, 15, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-family: var(--font-serif);
}

.footer-info h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--text-light);
}

[data-theme="dark"] .footer-bottom {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Nav CTA */
.nav-cta {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 50px;
    font-weight: 800 !important;
    box-shadow: 0 5px 15px rgba(244, 162, 97, 0.3);
    transition: var(--transition-bounce) !important;
}

.nav-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4);
}

/* --- Mobile Specific Fixes --- */
@media (max-width: 768px) {
    .order-container {
        padding-top: 6rem;
    }

    .order-header h1 {
        font-size: 2.2rem;
    }

    .product-selection-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-order-card {
        flex-direction: row;
        height: 140px;
    }

    .product-img-box {
        width: 120px;
        height: 100%;
    }

    .product-order-info {
        padding: 1rem;
        justify-content: center;
    }

    .product-order-info p {
        display: none;
        /* Hide desc on small mobile to save space */
    }

    .qty-controls {
        padding: 0.3rem;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
    }

    /* Mobile Sticky Summary (Floating Bar) */
    .order-summary-card {
        position: fixed;
        top: auto;
        bottom: 2rem;
        left: 5%;
        right: 5%;
        width: 90%;
        padding: 1rem 1.5rem;
        z-index: 1000;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-radius: 100px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    }

    .order-summary-card h3,
    .cart-items-list,
    .order-summary-card .summary-total span {
        display: none;
    }

    .summary-content {
        display: contents;
    }

    .summary-total {
        margin-bottom: 0;
        padding-top: 0;
        border-top: none;
        order: 1;
    }

    .checkout-btn {
        width: auto;
        padding: 0.8rem 1.5rem;
        order: 2;
        font-size: 0.9rem;
    }

    .checkout-btn span {
        display: none;
        /* Hide text on ultra-small mobile */
    }

    .checkout-btn::after {
        content: "Pedir";
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-info p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .checkout-btn span {
        display: none;
    }

    .checkout-btn::after {
        content: "Pedir";
    }
}
