/*
Theme Name: Al Arabi
Theme URI: https://alarabi.com.br
Author: Rafael Melo
Description: Tema do Al Arabi — culinaria arabe sob encomenda e entrega, sofisticado e artesanal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: al-arabi
*/

/* ===========================
   TOKENS & RESET
   =========================== */
:root {
    --aa-green:        #1B5E4A;
    --aa-green-dark:   #123f32;
    --aa-green-soft:   rgba(27, 94, 74, 0.08);
    --aa-gold:         #C9A227;
    --aa-gold-light:   #e0c05f;
    --aa-gold-dim:     rgba(201, 162, 39, 0.16);
    --aa-cream:        #F5F0E6;
    --aa-cream-soft:   #faf7f0;
    --aa-terracotta:   #C65D3B;
    --aa-charcoal:     #2C2C2C;
    --aa-line:         rgba(44, 44, 44, 0.1);
    --aa-line-strong:  rgba(44, 44, 44, 0.18);
    --aa-shadow:       0 24px 60px rgba(27, 94, 74, 0.16);
    --aa-radius-lg:    28px;
    --aa-radius-md:    18px;
    --aa-radius-sm:    12px;
    --aa-container:    min(1200px, calc(100% - 40px));
    --aa-font-serif:   "Playfair Display", "Cormorant Garamond", serif;
    --aa-font-sans:    "Inter", "Montserrat", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--aa-font-sans);
    color: var(--aa-charcoal);
    background: var(--aa-cream);
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--aa-font-serif);
    font-weight: 700;
    color: var(--aa-green-dark);
    line-height: 1.15;
    margin: 0;
}

.aa-section-inner {
    width: var(--aa-container);
    margin: 0 auto;
}

.aa-section {
    padding: 96px 0;
}

.aa-section--sm { padding: 56px 0; }

.aa-kicker {
    display: inline-block;
    font-family: var(--aa-font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aa-terracotta);
    margin-bottom: 14px;
}

.aa-section-head {
    max-width: 720px;
    margin: 0 0 48px;
}

.aa-section-head h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 16px;
}

.aa-section-head p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a4a4a;
}

/* ===========================
   PATTERN DIVIDER (padrao geometrico)
   =========================== */
.aa-pattern-divider {
    height: 34px;
    background-image: url("assets/img/pattern-arabesco.svg");
    background-repeat: repeat-x;
    background-size: 68px 34px;
    background-position: center;
    opacity: 0.35;
}

.aa-pattern-divider--on-green {
    background-image: url("assets/img/pattern-arabesco-cream.svg");
    opacity: 0.18;
}

/* ===========================
   BUTTONS
   =========================== */
.aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.aa-btn-primary {
    background: var(--aa-gold);
    color: var(--aa-green-dark);
    box-shadow: 0 14px 30px rgba(201, 162, 39, 0.35);
}

.aa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(201, 162, 39, 0.45);
}

.aa-btn-outline {
    background: transparent;
    color: var(--aa-cream);
    border-color: rgba(245, 240, 230, 0.55);
}

.aa-btn-outline:hover {
    background: rgba(245, 240, 230, 0.12);
    border-color: var(--aa-cream);
    transform: translateY(-2px);
}

.aa-btn-whatsapp {
    background: var(--aa-terracotta);
    color: #fff;
}

.aa-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(198, 93, 59, 0.4);
}

/* ===========================
   HEADER
   =========================== */
.aa-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 0;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.aa-site-header.is-scrolled {
    background: rgba(27, 94, 74, 0.96);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 10px 0;
    backdrop-filter: blur(6px);
}

.aa-nav {
    width: var(--aa-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.aa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--aa-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--aa-cream);
    letter-spacing: 0.03em;
}

.aa-brand-logo {
    height: 46px;
    width: auto;
}

.aa-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.aa-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--aa-cream);
    border-radius: 2px;
}

.aa-nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.aa-nav-links a {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--aa-cream);
    opacity: 0.9;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.aa-nav-links a:hover { opacity: 1; color: var(--aa-gold-light); }

.aa-nav-cta {
    background: var(--aa-gold);
    color: var(--aa-green-dark) !important;
    padding: 10px 20px;
    border-radius: 999px;
    opacity: 1 !important;
}

.aa-nav-cta:hover { background: var(--aa-gold-light); }

@media (max-width: 900px) {
    .aa-menu-toggle { display: flex; }

    .aa-nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--aa-green-dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 22px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
    }

    .aa-nav-links.is-open { transform: translateX(0); }
}

/* ===========================
   HERO
   =========================== */
.aa-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--aa-green-dark);
}

.aa-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.aa-hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.aa-hero-bg-image.is-active { opacity: 1; }

.aa-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(18, 63, 50, 0.75) 0%, rgba(18, 63, 50, 0.55) 45%, rgba(18, 63, 50, 0.92) 100%);
}

.aa-hero-shell {
    position: relative;
    z-index: 1;
    width: var(--aa-container);
    margin: 0 auto;
    padding-top: 90px;
}

.aa-hero-copy {
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
}

.aa-hero-emblem {
    width: 128px;
    height: 128px;
    margin: 0 auto 26px;
}

.aa-hero-copy .aa-kicker { color: var(--aa-gold-light); }

.aa-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--aa-cream);
    margin-bottom: 14px;
}

.aa-hero-title span { color: var(--aa-gold); }

.aa-hero-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(245, 240, 230, 0.88);
    margin: 0 auto 34px;
    max-width: 520px;
}

.aa-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.aa-hero-scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--aa-gold-light);
    font-size: 1.4rem;
    animation: aa-bounce 2s infinite;
    z-index: 1;
}

@keyframes aa-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ===========================
   SOBRE + TIMELINE
   =========================== */
.aa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.aa-about-grid p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin: 0 0 18px;
}

.aa-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 12px;
}

.aa-timeline-item {
    border-left: 3px solid var(--aa-gold);
    padding: 4px 0 4px 20px;
}

.aa-timeline-item h3 {
    font-size: 1.3rem;
    color: var(--aa-terracotta);
    margin-bottom: 6px;
}

.aa-timeline-item p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* ===========================
   DIFERENCIAIS
   =========================== */
.aa-diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.aa-diff-card {
    background: #fff;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius-md);
    padding: 34px 28px;
    text-align: left;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.aa-diff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aa-shadow);
}

.aa-diff-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--aa-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.aa-diff-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.aa-diff-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4a4a4a;
    margin: 0;
}

/* ===========================
   CARDAPIO
   =========================== */
.aa-menu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.aa-menu-tab {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--aa-line-strong);
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--aa-charcoal);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.aa-menu-tab:hover { border-color: var(--aa-gold); }

.aa-menu-tab.is-active {
    background: var(--aa-green);
    border-color: var(--aa-green);
    color: var(--aa-cream);
}

.aa-menu-category {
    display: none;
    margin-bottom: 20px;
}

.aa-menu-category.is-active { display: block; }

.aa-menu-category-title {
    font-size: 1.4rem;
    color: var(--aa-green-dark);
    margin-bottom: 24px;
}

.aa-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.aa-dish-card {
    position: relative;
    background: #fff;
    border-radius: var(--aa-radius-md);
    overflow: hidden;
    border: 1px solid var(--aa-line);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.aa-dish-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--aa-shadow);
}

.aa-dish-photo {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--aa-green-soft);
    position: relative;
    cursor: pointer;
}

.aa-dish-zoom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(44, 44, 44, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.aa-dish-card:hover .aa-dish-zoom,
.aa-dish-photo:focus-visible .aa-dish-zoom {
    opacity: 1;
    transform: scale(1);
}

.aa-dish-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--aa-terracotta);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.aa-dish-body {
    padding: 20px 22px 24px;
}

.aa-dish-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.aa-dish-top h4 {
    font-size: 1.08rem;
    color: var(--aa-green-dark);
}

.aa-dish-price {
    font-family: var(--aa-font-serif);
    font-weight: 700;
    color: var(--aa-terracotta);
    white-space: nowrap;
}

.aa-dish-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #565656;
    margin: 0;
}

/* ===========================
   GALERIA (masonry)
   =========================== */
.aa-gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.aa-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--aa-radius-md);
    overflow: hidden;
    position: relative;
}

.aa-gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.aa-gallery-item:hover img { transform: scale(1.06); }

.aa-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 94, 74, 0) 60%, rgba(27, 94, 74, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.aa-gallery-item:hover::after { opacity: 1; }

/* ===========================
   DEPOIMENTOS
   =========================== */
.aa-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.aa-testimonial-card {
    background: var(--aa-cream-soft);
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius-md);
    padding: 32px 28px;
}

.aa-stars {
    color: var(--aa-gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.aa-testimonial-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--aa-charcoal);
    margin: 0 0 18px;
    font-style: italic;
}

.aa-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.aa-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--aa-green);
    color: var(--aa-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--aa-font-serif);
    font-weight: 700;
    flex-shrink: 0;
}

.aa-testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--aa-green-dark);
}

.aa-testimonial-author span {
    font-size: 0.8rem;
    color: #6a6a6a;
}

/* ===========================
   CONTATO
   =========================== */
.aa-contact-section {
    background: var(--aa-green-dark);
    color: var(--aa-cream);
}

.aa-contact-section .aa-kicker { color: var(--aa-gold-light); }
.aa-contact-section h2 { color: var(--aa-cream); }
.aa-contact-section .aa-section-head p { color: rgba(245, 240, 230, 0.82); }

.aa-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.aa-contact-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.aa-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.aa-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aa-gold-light);
    flex-shrink: 0;
}

.aa-contact-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.aa-contact-item span,
.aa-contact-item a {
    font-size: 0.9rem;
    color: rgba(245, 240, 230, 0.78);
    line-height: 1.6;
}

.aa-contact-item a:hover { color: var(--aa-gold-light); }

.aa-contact-actions {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.aa-contact-map {
    border-radius: var(--aa-radius-md);
    overflow: hidden;
    min-height: 340px;
    border: 1px solid rgba(245, 240, 230, 0.16);
}

.aa-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

/* ===========================
   FOOTER
   =========================== */
.aa-site-footer {
    background: var(--aa-green-dark);
    border-top: 1px solid rgba(245, 240, 230, 0.12);
    padding: 50px 0 30px;
}

.aa-footer-inner {
    width: var(--aa-container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.aa-footer-emblem { height: 64px; width: auto; }

.aa-footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.aa-footer-links a {
    font-size: 0.88rem;
    color: rgba(245, 240, 230, 0.82);
}

.aa-footer-links a:hover { color: var(--aa-gold-light); }

.aa-footer-social {
    display: flex;
    gap: 16px;
}

.aa-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aa-cream);
    transition: background 0.2s ease, color 0.2s ease;
}

.aa-footer-social a:hover {
    background: var(--aa-gold);
    color: var(--aa-green-dark);
}

.aa-footer-copy {
    font-size: 0.8rem;
    color: rgba(245, 240, 230, 0.55);
}

.aa-footer-copy a { color: rgba(245, 240, 230, 0.75); }
.aa-footer-copy a:hover { color: var(--aa-gold-light); }

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.aa-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    z-index: 90;
    transition: transform 0.25s ease;
}

.aa-whatsapp-float:hover { transform: scale(1.08); }

/* ===========================
   LIGHTBOX
   =========================== */
.aa-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(18, 63, 50, 0.92);
}

.aa-lightbox[hidden] { display: none; }

.aa-lightbox-figure {
    margin: 0;
    max-width: min(900px, 100%);
    max-height: 100%;
    text-align: center;
}

.aa-lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: var(--aa-radius-md);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
}

.aa-lightbox-figure figcaption {
    margin-top: 18px;
    font-family: var(--aa-font-serif);
    font-size: 1.2rem;
    color: var(--aa-cream);
}

.aa-lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(245, 240, 230, 0.14);
    color: var(--aa-cream);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.aa-lightbox-close:hover { background: rgba(245, 240, 230, 0.28); }

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .aa-about-grid,
    .aa-contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .aa-diff-grid,
    .aa-menu-grid,
    .aa-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .aa-gallery-grid { column-count: 2; }
    .aa-timeline { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .aa-section { padding: 64px 0; }
    .aa-diff-grid,
    .aa-menu-grid,
    .aa-testimonials-grid { grid-template-columns: 1fr; }
    .aa-gallery-grid { column-count: 1; }
    .aa-hero {
        min-height: auto;
        padding: 92px 0 62px;
    }

    .aa-hero-shell { padding-top: 0; }

    .aa-hero-title {
        font-size: clamp(2rem, 10vw, 2.4rem);
        margin-bottom: 10px;
    }

    .aa-hero-lead {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 24px;
    }

    .aa-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .aa-hero-actions .aa-btn { padding: 13px 24px; }
    .aa-hero-actions .aa-btn { width: 100%; }
    .aa-hero-scroll { display: none; }
}
