/* ==========================================================================
   MAGlass Theme — Brand CSS
   Mirrors the original React app's `src/index.css` (Tailwind v4 @theme block)
   plus a handful of custom utility classes referenced by the converted markup.
   ========================================================================== */

:root {
    /* Brand palette (synced 1:1 with React app theme tokens) */
    --color-brand-teal: #95C11F;
    --color-brand-dark-teal: #1B3A5C;
    --color-off-white: #F3F5F5;
    --color-text-primary: #737373;
    --color-text-dark: #212121;
    --color-overlay-dark: rgba(0, 0, 0, 0.45);

    --font-sans: "Open Sans", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography helpers from src/index.css ---------- */
.text-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.text-hero {
    font-size: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .text-hero { font-size: 32px; }
}

.text-h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: normal;
}

.text-h3-card {
    font-size: 28px;
    font-weight: 400;
}

.text-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8em;
}

.text-nav {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- Brand buttons ---------- */
.btn-primary {
    background-color: var(--color-brand-teal);
    color: var(--color-brand-dark-teal);
    border: 2px solid var(--color-brand-teal);
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--color-brand-teal);
}

.btn-outline {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.btn-outline:hover {
    background-color: #FFFFFF;
    color: var(--color-brand-teal);
}

/* ---------- WordPress admin bar offset ---------- */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar #site-header { top: 46px; }
}

/* ---------- Header transitions (used by main.js) ---------- */
#site-header.scrolled {
    background-color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
#site-header.scrolled #header-logo-text,
#site-header.scrolled .nav-link {
    color: var(--color-brand-dark-teal);
}
#site-header.scrolled #header-logo-box { border-color: var(--color-brand-dark-teal); }
#site-header.scrolled #header-logo-triangle { border-bottom-color: var(--color-brand-dark-teal); }
#site-header.scrolled #menu-toggle { color: var(--color-brand-dark-teal); }

/* ---------- Mobile menu open state ---------- */
#mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#mobile-services-dropdown.is-open {
    height: auto;
    opacity: 1;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* ---------- Form step transitions ---------- */
.form-step {
    animation: fadeStepIn 0.3s ease-in-out;
}
@keyframes fadeStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-step input[type="radio"]:checked + span,
.form-step label.is-selected {
    border-color: var(--color-brand-teal);
}

/* ---------- Marquee animation for [dc_marquee] shortcode ---------- */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* ---------- Form success / error states ---------- */
.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.form-feedback.is-success {
    background-color: #F0FDF4;
    color: #14532D;
    border: 1px solid #BBF7D0;
}
.form-feedback.is-error {
    background-color: #FEF2F2;
    color: #7F1D1D;
    border: 1px solid #FECACA;
}

/* ---------- WordPress core block / page content fallbacks ---------- */
.wp-block-image img { max-width: 100%; height: auto; }
.wp-caption { max-width: 100%; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
