/* ========================================================================
   CHUVA DE ARROZ - Global Styles
   Design System & Shared Components
   ======================================================================== */

/* ── Custom Properties (Design Tokens) ─────────────────────────────────── */
:root {
    --color-primary: #f23665;
    --color-primary-dark: #d42d57;
    --color-primary-light: rgba(242, 54, 101, 0.1);
    --color-primary-glow: rgba(242, 54, 101, 0.3);
    --color-bg-light: #f8f6f6;
    --color-bg-dark: #221015;
    --color-text-dark: #0f172a;
    --color-text-light: #f1f5f9;
    --color-text-muted: #64748b;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --section-padding: 3.5rem 0;
    --section-padding-lg: 7rem 0;
    --container-max: 960px;
    --container-wide: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 8px 24px rgba(242, 54, 101, 0.25);
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

/* ── Layout Container ──────────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ── Header / Navbar ───────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(18, 8, 12, 0.95) 0%, rgba(18, 8, 12, 0.5) 75%, rgba(18, 8, 12, 0) 100%);
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 0;
}

.site-header.scrolled {
    background: rgba(18, 8, 12, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 0.625rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    transition: all 0.5s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.logo-icon .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

/* Desktop Nav */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.35rem;
    border-radius: var(--radius-full);
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    position: relative;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #fff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(242, 54, 101, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(242, 54, 101, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(242, 54, 101, 0.3);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-full);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: inline-flex;
    }
}

/* ── Mobile Menu ───────────────────────────────────────────────────────── */
/* ── Mobile Menu ───────────────────────────────────────────────────────── */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    z-index: 200;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

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

.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-line + .hamburger-line {
    margin-top: 4px;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(18, 8, 12, 0.95);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    padding: 0.75rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-full);
    transition: all 0.4s ease;
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav.open .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-primary);
    background: rgba(242, 54, 101, 0.1);
    transform: scale(1.05);
}

/* Stagger calculation for mobile links */
.mobile-nav.open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav.open .btn-cta { transition-delay: 0.35s; }

.mobile-nav .btn-cta {
    margin-top: 2rem;
    font-size: 0.875rem;
    padding: 1rem 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-nav.open .btn-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    margin-top: auto;
    background: rgba(18, 8, 12, 0.95);
    border-top: 1px solid rgba(242, 54, 101, 0.08);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo .material-symbols-outlined {
    color: var(--color-primary);
    font-variation-settings: 'FILL' 1;
}

.footer-logo span:last-child {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    letter-spacing: 0.06em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Section Spacing & Titles ──────────────────────────────────────────── */
.section {
    padding: var(--section-padding);
}

@media (min-width: 768px) {
    .section {
        padding: var(--section-padding-lg);
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.section-label .material-symbols-outlined {
    font-size: 0.875rem;
    font-variation-settings: 'FILL' 1;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title-lg {
    font-size: 2.5rem;
    font-family: var(--font-serif);
}

@media (min-width: 768px) {
    .section-title-lg {
        font-size: 3.5rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .section-subtitle {
        font-size: 1.125rem;
    }
}

.section-divider {
    width: 5rem;
    height: 3px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    margin-top: 1.5rem;
}

.text-primary {
    color: var(--color-primary);
}

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

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 1.2s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.8s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-600 { animation-delay: 600ms; }

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

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

/* ── Image Hover ───────────────────────────────────────────────────────── */
.image-hover {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.image-hover:hover {
    transform: scale(1.05);
    filter: brightness(1.08);
}

/* ── Material Icons Filled ─────────────────────────────────────────────── */
.icon-filled {
    font-variation-settings: 'FILL' 1;
}

/* ── Utility ───────────────────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Grid Helpers ──────────────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Form Styles ───────────────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-display);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

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

/* ── Star Rating ───────────────────────────────────────────────────────── */
.star-rating {
    display: flex;
    gap: 0.125rem;
    color: var(--color-primary);
}

.star-rating .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 1;
}
