/**
 * Moema Odontologia theme — overrides and additions on top of the compiled Tailwind bundle.
 * Defines CSS variables, button styles, custom animations and reveal/mobile-menu states
 * used by template partials and the front-end JS.
 */

:root {
        --bg-color: #070707;
        --bg-card: rgba(20, 20, 20, 0.6);
        --bg-soft: #343434;
        --text-color: #ffffff;
        --muted-color: rgba(255, 255, 255, 0.7);
        --primary-color: #343434;
        --primary-2: #ffffff;
        --border-color: rgba(255, 255, 255, 0.12);
        --radius: 24px;
        --shadow-custom: 0 30px 80px rgba(0, 0, 0, 0.6);
        --container: 1200px;
}

html, body {
        background-color: var(--bg-color);
        color: var(--text-color);
        font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}

/* Buttons */
.btn-primary-gradient {
        background: linear-gradient(135deg, #ffffff 0%, #cfcfcf 100%);
        color: #0b0b0b !important;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.08);
}
.btn-primary-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.18);
        filter: brightness(1.05);
}
.btn-secondary-custom {
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary-custom:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
}

/* Reveal animation */
.sm-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
        will-change: opacity, transform;
}
.sm-reveal-visible {
        opacity: 1;
        transform: translateY(0);
}

/* Tilt cards baseline (so the inline transform reset still animates smoothly) */
.sm-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
[data-sm-tilt] {
        transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Mobile menu */
.sm-mobile-menu {
        position: fixed;
        inset: 0;
        z-index: 100;
        background: rgba(7, 7, 7, 0.97);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        opacity: 0;
        pointer-events: none;
        transform: scale(0.98);
        transition: opacity 0.25s ease, transform 0.25s ease;
}
.sm-mobile-menu-open {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
}
.sm-mobile-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 1.6rem;
        font-weight: 800;
        letter-spacing: -0.02em;
}
.sm-no-scroll {
        overflow: hidden;
}

/* Keyframes referenced by inline styles */
@keyframes pulseAnim {
        0%, 100% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15); }
        50%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05); }
}
@keyframes scanMove {
        0%   { transform: translateY(0); }
        100% { transform: translateY(120vh); }
}
@keyframes float {
        0%, 100% { transform: translateY(0) translateX(0); }
        50%      { transform: translateY(-20px) translateX(10px); }
}
@keyframes dashboardFloat {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-10px); }
}
@keyframes badgePulse {
        0%, 100% { transform: scale(1); box-shadow: var(--shadow-custom); }
        50%      { transform: scale(1.02); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
}
@keyframes techPulse {
        0%, 100% { opacity: 0.4; }
        50%      { opacity: 0.7; }
}
@keyframes premiumGlow {
        0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
        50%      { transform: translate(40px, -40px) scale(1.15); opacity: 0.18; }
}

/* Tech background */
.sm-tech-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
                linear-gradient(rgba(156, 154, 154, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(156, 154, 154, 0.04) 1px, transparent 1px);
        background-size: 60px 60px;
        animation: techPulse 8s ease-in-out infinite;
}

/* Rich-text blocks rendered from ACF rich-text fields */
.sm-rich p { margin: 0 0 20px; }
.sm-rich p:last-child { margin-bottom: 0; }
.sm-rich strong { color: #fff; }
.sm-rich a { color: #fff; text-decoration: underline; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
        }
        .sm-reveal {
                opacity: 1 !important;
                transform: none !important;
        }
}

/* ============================================================
   Moema Odontologia — quiet luxury light palette override
   Layered at the end so it wins over the original dark vars
   inherited from the Social MAD source theme.
   ============================================================ */
:root {
        --bg-color: #f7f5ee;        /* pearl / cream */
        --bg-card: #ffffff;
        --bg-soft: #efeae0;         /* warm sand */
        --bg-accent: #e9efed;       /* whisper sage */
        --text-color: #1f3a3f;      /* deep teal-graphite */
        --muted-color: #6c7c7d;
        --primary-color: #4f7d76;   /* dusty teal */
        --primary-2: #2f5e57;
        --accent-color: #c9a86a;    /* champagne */
        --border-color: rgba(31, 58, 63, 0.12);
        --radius: 28px;
        --shadow-custom: 0 30px 80px rgba(31, 58, 63, 0.08);
}

html, body {
        background-color: var(--bg-color);
        color: var(--text-color);
        font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
        font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
        color: var(--text-color);
        letter-spacing: -0.01em;
}

/* Buttons — quiet, muted teal */
.btn-primary-gradient,
.sm-btn-primary {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-2) 100%);
        color: #ffffff !important;
        border: 1px solid rgba(47, 94, 87, 0.6);
        box-shadow: 0 12px 28px rgba(47, 94, 87, 0.18);
}
.btn-primary-gradient:hover,
.sm-btn-primary:hover {
        transform: translateY(-2px);
        filter: brightness(1.05);
        box-shadow: 0 18px 36px rgba(47, 94, 87, 0.28);
}
.btn-secondary-custom,
.sm-btn-ghost {
        background: rgba(31, 58, 63, 0.04);
        color: var(--text-color) !important;
        border: 1px solid rgba(31, 58, 63, 0.18);
}
.btn-secondary-custom:hover,
.sm-btn-ghost:hover {
        transform: translateY(-2px);
        background: rgba(31, 58, 63, 0.08);
        border-color: rgba(31, 58, 63, 0.4);
}

/* Mobile menu */
.sm-mobile-menu {
        background: rgba(247, 245, 238, 0.97);
        color: var(--text-color);
}
.sm-mobile-menu a { color: var(--text-color); }

/* Header & navigation */
.sm-site-header,
.sm-site-header * { color: var(--text-color); }
.sm-site-header { background-color: rgba(247, 245, 238, 0.92); border-bottom: 1px solid var(--border-color); }

/* Footer */
.sm-site-footer { background-color: #1f3a3f; color: rgba(255,255,255,0.85); }
.sm-site-footer a { color: rgba(255,255,255,0.85); }
.sm-site-footer a:hover { color: var(--accent-color); }

/* Cards */
.sm-card,
.sm-flex-stat-card,
.sm-flex-service,
.sm-flex-diff,
.sm-flex-blog-card,
.sm-flex-faq-item,
.sm-flex-testimonial {
        background: var(--bg-card);
        color: var(--text-color);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        box-shadow: 0 8px 24px rgba(31, 58, 63, 0.04);
}

/* Section backgrounds */
.sm-flex-bg--default { background: var(--bg-color); color: var(--text-color); }
.sm-flex-bg--soft    { background: var(--bg-soft);  color: var(--text-color); }
.sm-flex-bg--accent  { background: var(--bg-accent); color: var(--text-color); }

/* Eyebrows & kickers */
.sm-flex-kicker,
.sm-flex-hero-eyebrow {
        color: var(--primary-2);
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.75rem;
        font-weight: 600;
}

/* Hero gradient text */
.sm-flex-hero-title-grad {
        background: linear-gradient(120deg, var(--accent-color) 0%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}
