/* A&M Tributos - General Styles & Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Space+Mono&display=swap');

:root {
    /* Color Palette from Logo */
    --primary: #8daaa8;       /* Sage Green */
    --primary-rgb: 141, 170, 168;
    --secondary: #e6b8bb;     /* Rose Pink */
    --secondary-rgb: 230, 184, 187;
    --neutral-dark: #1b1918;
    --neutral-dark-rgb: 27, 25, 24;

    /* Layout Tokens */
    --gx-1: 6%;
    --gx-2: 28%;
    --gx-3: 62%;
    --gx-4: 94%;
    --gy-1: 100px;

    --grid-color: rgba(27, 25, 24, 0.04);
    --beam-color: var(--primary);
}

/* ============================================================
   BASE
============================================================ */
body {
    font-family: 'Inter', sans-serif;
    color: var(--neutral-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ============================================================
   GRID SYSTEM (decorative, desktop only)
============================================================ */
.grid-line-v {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--grid-color);
    z-index: 0;
}

.grid-line-h {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grid-color);
    z-index: 0;
}

.marker {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: var(--neutral-dark);
    z-index: 30;
    opacity: 0;
    animation: fade-in 0.5s ease-out 1s forwards;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes reveal-up {
    0%   { clip-path: inset(100% 0 0 0); transform: translateY(20px); opacity: 0; }
    100% { clip-path: inset(0 0 0 0);    transform: translateY(0);    opacity: 1; }
}

@keyframes fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes beam-h {
    0%   { left: -200px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%;  opacity: 0; }
}

@keyframes beam-v {
    0%   { top: -200px; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%;   opacity: 0; }
}

/* Slow pulse — used by floating WhatsApp button */
@keyframes pulse-slow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

.animate-pulse-slow {
    animation: pulse-slow 2.5s ease-in-out infinite;
}

/* Hero / page-load reveal */
.animate-reveal {
    opacity: 0;
    animation: reveal-up 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll-triggered reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays (animation + transition) */
.delay-100 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; transition-delay: 0.5s; }

/* Beams */
.beam-h {
    position: absolute;
    height: 1px;
    width: 200px;
    background: linear-gradient(90deg, transparent, var(--beam-color), transparent);
    z-index: 10;
    opacity: 0;
}

.beam-v {
    position: absolute;
    width: 1px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--beam-color), transparent);
    z-index: 10;
    opacity: 0;
}

/* ============================================================
   UTILITIES
============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.text-secondary { color: var(--secondary); }
.bg-secondary   { background-color: var(--secondary); }

/* ============================================================
   FORM STYLES
============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    border: 1px solid rgba(141, 170, 168, 0.25);
    border-radius: 4px; /* alinhado com rounded-sm do Tailwind */
    padding: 12px 16px;
    width: 100%;
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--neutral-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(141, 170, 168, 0.12);
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

/* ============================================================
   MOBILE MENU — full-screen overlay (premium style)
============================================================ */
#mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--neutral-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;

    /* hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

#mobile-overlay nav a {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    text-align: center;
    line-height: 1.1;
    transition: color 0.2s ease;
    transform: translateY(20px);
    opacity: 0;
    transition: color 0.2s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-overlay.is-open nav a {
    transform: translateY(0);
    opacity: 1;
}

#mobile-overlay.is-open nav a:nth-child(1) { transition-delay: 0.05s; }
#mobile-overlay.is-open nav a:nth-child(2) { transition-delay: 0.10s; }
#mobile-overlay.is-open nav a:nth-child(3) { transition-delay: 0.15s; }
#mobile-overlay.is-open nav a:nth-child(4) { transition-delay: 0.20s; }
#mobile-overlay.is-open nav a:nth-child(5) { transition-delay: 0.25s; }

#mobile-overlay nav a:hover {
    color: var(--primary);
}

/* CTA inside overlay */
#mobile-overlay .overlay-cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: white;
    color: var(--neutral-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: 2px;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: color 0.2s ease,
                background 0.2s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-overlay.is-open .overlay-cta {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.32s;
}

#mobile-overlay .overlay-cta:hover {
    background: var(--primary);
    color: white;
}

/* Hamburger / Close button */
#menu-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 250; /* above overlay */
    transition: color 0.3s ease;
}

/* lines */
#menu-toggle .bar {
    position: absolute;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity   0.2s ease;
}

#menu-toggle .bar-1 { transform: translateY(-5px); }
#menu-toggle .bar-2 { transform: translateY(0); }
#menu-toggle .bar-3 { transform: translateY(5px); }

/* Morphing into X when open */
body.menu-open #menu-toggle .bar-1 { transform: rotate(45deg); }
body.menu-open #menu-toggle .bar-2 { opacity: 0; transform: scaleX(0); }
body.menu-open #menu-toggle .bar-3 { transform: rotate(-45deg); }

/* When menu is open, make toggle white (visible on dark overlay) */
body.menu-open #menu-toggle { color: white; }

/* Overlay footer area */
#mobile-overlay .overlay-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
}
