/* ==========================================================================
   IRON PULSE FITNESS — Premium Light Theme Design System
   Mobile-first. Light UI everywhere except the dramatic dark-maroon hero.
   --------------------------------------------------------------------------
   CASCADE NOTE:
   header.php injects an inline <style> :root block defining
   --primary-color / --secondary-color / --button-color from admin DB
   settings BEFORE this stylesheet loads. We therefore NEVER redeclare
   those three variables here — we only CONSUME them (with maroon
   fallbacks) so admin rebranding keeps working.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
    /* Maroon palette (raw scale — used to derive, prefer the semantic vars) */
    --maroon-deep: #4A0E18;
    --maroon: #7B1E2B;
    --maroon-accent: #A52234;
    --maroon-light: #C24B58;
    --maroon-soft-tint: #E8B4BA;

    /* Semantic colors — CONSUME admin vars with maroon fallbacks.
       Do NOT declare --primary-color / --secondary-color / --button-color here. */
    --primary: var(--primary-color, #22C55E);
    --btn: var(--button-color, #22C55E);
    --secondary: var(--secondary-color, #111827);

    --primary-dark: #16A34A;
    --primary-darker: #15803D;
    --primary-soft: color-mix(in srgb, var(--primary) 16%, var(--surface));
    --primary-soft-2: color-mix(in srgb, var(--primary) 30%, var(--surface));
    --btn-dark: #16A34A;

    /* Gradients */
    --grad: linear-gradient(135deg, var(--primary), #16A34A);
    --grad-deep: linear-gradient(135deg, #0B0F14, #1F2937);

    /* Surfaces & backgrounds (dark theme) */
    --bg: #0B0F14;
    --surface: #111827;
    --surface-2: #0E1622;
    --footer-bg: #090C11;

    /* Text */
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --border: #1F2937;

    /* States */
    --success: #1E9E5A;
    --info: #2D7FF9;
    --warning: #E5A100;
    --danger: #DC3545;
    --whatsapp: #25D366;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Shadows (soft, low alpha) */
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --sh-md: 0 8px 24px rgba(0, 0, 0, .45);
    --sh-lg: 0 22px 48px rgba(0, 0, 0, .6);

    /* Layout */
    --container: 1200px;
    --gutter: 16px;

    /* Typography */
    --font-head: 'Oswald', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

    /* Motion */
    --t: .2s ease;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--t);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
}

/* Accessible focus ring on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.main-content {
    min-height: 50vh;
}

.section {
    padding-block: clamp(48px, 8vw, 96px);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 14px auto 0;
    border-radius: var(--r-pill);
    background: var(--grad);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-cta {
    text-align: center;
    margin-top: clamp(28px, 4vw, 48px);
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 26px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.1;
    text-align: center;
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: var(--btn);
    background-image: var(--grad);
    color: #fff;
}

.btn-primary:hover {
    color: #fff;
    background-image: linear-gradient(135deg, var(--btn-dark), #15803D);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: color-mix(in srgb, var(--whatsapp) 85%, #000);
    color: #fff;
}

.btn-lg {
    min-height: 54px;
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 18px;
    font-size: .85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   5. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 20, .72);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-sm);
    transition: background var(--t), box-shadow var(--t), border-color var(--t);
}

.site-header.scrolled {
    background: rgba(11, 15, 20, .94);
    box-shadow: var(--sh-md);
}

.navbar {
    padding-block: 10px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-logo {
    max-height: 42px;
    width: auto;
}

.nav-brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .3px;
    color: var(--text);
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    position: relative;
    color: var(--text);
    font-weight: 500;
    padding: 6px 2px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--grad);
    border-radius: var(--r-pill);
    transition: width var(--t);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    flex-shrink: 0;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--r-sm);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: var(--r-pill);
    transition: transform var(--t), opacity var(--t);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1),
.nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2),
.nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3),
.nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay (JS creates/toggles .nav-overlay) */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .6);
}

.nav-overlay.is-active,
.nav-overlay.active {
    display: block;
}

body.nav-open {
    overflow: hidden;
}

/* ==========================================================================
   6. HERO (the only dark area — Option A)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0B0F14;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 15, 20, .8), rgba(17, 24, 39, .62));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin-inline: auto;
    padding: 40px var(--gutter);
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ==========================================================================
   7. TRUST BADGES
   ========================================================================== */
.trust-badges-section {
    padding-block: clamp(32px, 6vw, 64px);
    background: var(--surface);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 22px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    transition: transform var(--t), box-shadow var(--t);
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}

.trust-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
}

/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.services-grid,
.services-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card,
.service-card-detailed {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 28px 24px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.service-card:hover,
.service-card-detailed:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
    border-color: var(--primary-soft-2);
}

.service-icon,
.service-icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: var(--grad);
    color: #fff;
    margin-bottom: 18px;
}

.service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.service-icon-large {
    width: 76px;
    height: 76px;
    font-size: 2rem;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-description {
    color: var(--text-muted);
}

/* ==========================================================================
   9. PLANS / PRICING
   ========================================================================== */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 32px 26px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}

.plan-highlighted {
    border: 2px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        var(--grad) border-box;
    box-shadow: var(--sh-lg);
}

.plan-highlighted::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: var(--grad);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--r-pill);
    box-shadow: var(--sh-sm);
    white-space: nowrap;
}

.plan-name {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.plan-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    margin-bottom: 18px;
    color: var(--primary);
}

.price-currency {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 8px;
}

.price-amount {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 7vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
}

.price-period {
    align-self: flex-end;
    font-size: .95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.plan-prices-alt {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 16px;
}

.plan-features {
    margin: 18px 0 24px;
    flex: 1;
}

.plan-features li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 11px;
    color: var(--primary);
    font-size: .85rem;
}

/* Plans detail page */
.plans-detail-section .plan-pricing-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 22px;
}

.pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.pricing-label {
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-value {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.pricing-save {
    font-size: .75rem;
    font-weight: 700;
    color: var(--success);
    background: color-mix(in srgb, var(--success) 12%, var(--surface));
    padding: 3px 10px;
    border-radius: var(--r-pill);
}

.plan-cta {
    margin-top: auto;
}

.plans-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: clamp(32px, 5vw, 56px);
}

.plans-info-card {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    padding: 28px 22px;
}

.plans-info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 14px;
}

/* ==========================================================================
   10. TRAINERS
   ========================================================================== */
.trainers-grid,
.trainers-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.trainer-card,
.trainer-card-detailed {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.trainer-card:hover,
.trainer-card-detailed:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}

.trainer-photo,
.trainer-photo-placeholder {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    overflow: hidden;
}

/* Inner image fills the fixed-ratio wrapper */
.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.trainer-card:hover .trainer-photo img,
.trainer-card-detailed:hover .trainer-photo img {
    transform: scale(1.05);
}

.trainer-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 3rem;
}

.trainer-info {
    padding: 22px 20px;
}

.trainer-name {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.trainer-specialty {
    color: var(--primary);
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 8px;
}

.trainer-experience {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 14px;
}

.trainer-bio {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.trainer-social {
    display: flex;
    gap: 10px;
}

.trainer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    transition: background var(--t), color var(--t), transform var(--t);
}

.trainer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   11. CLASSES
   ========================================================================== */
.classes-grid,
.classes-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.class-card,
.class-card-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.class-card:hover,
.class-card-full:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}

.class-image {
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class-info {
    padding: 22px 20px;
}

.class-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.class-trainer {
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 12px;
}

.class-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.class-time,
.class-days,
.class-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: .9rem;
}

.class-time i,
.class-days i,
.class-duration i,
.class-meta i {
    color: var(--primary);
    width: 18px;
    text-align: center;
}

.class-description {
    color: var(--text-muted);
    margin-top: 12px;
}

/* ==========================================================================
   12. GALLERY
   ========================================================================== */
.gallery-grid,
.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    box-shadow: var(--sh-sm);
    transition: opacity .3s ease, transform .3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

/* Image is wrapped in an <a class="gallery-lightbox"> — make it fill the square */
.gallery-item > a,
.gallery-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(11, 15, 20, .82), rgba(34, 197, 94, .5));
    opacity: 0;
    transition: opacity var(--t);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: #fff;
}

.gallery-category {
    font-size: .8rem;
    color: rgba(255, 255, 255, .85);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gallery-zoom-icon {
    font-size: 1.6rem;
    color: #fff;
}

/* Gallery filters */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.filter-btn {
    min-height: 40px;
    padding: 8px 20px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

/* Lightbox modal */
.lightbox-modal,
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 8, 9, .92);
}

.lightbox-modal.active,
.lightbox-modal.is-open,
.lightbox.active,
.lightbox.is-open {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#lightboxImage,
.lightbox-image,
.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 1.4rem;
    transition: background var(--t);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, .28);
}

.lightbox-close {
    top: -8px;
    right: -8px;
}

.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lightbox-prev {
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: .95rem;
}

/* ==========================================================================
   13. TRANSFORMATIONS
   ========================================================================== */
.transformations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.transformation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.transformation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}

.transformation-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.transformation-before,
.transformation-after {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.transformation-before img,
.transformation-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transformation-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    color: #fff;
}

.transformation-before .transformation-label {
    background: rgba(43, 45, 49, .85);
}

.transformation-after .transformation-label {
    background: var(--grad);
}

.transformation-info {
    padding: 20px;
}

.transformation-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 8px;
}

.transformation-desc {
    color: var(--text-muted);
}

/* ==========================================================================
   14. TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 30px 26px;
    transition: transform var(--t), box-shadow var(--t);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    right: 22px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-soft-2);
}

.testimonial-rating {
    color: var(--warning);
    margin-bottom: 12px;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-photo,
.testimonial-photo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

/* ==========================================================================
   15. FORMS
   ========================================================================== */
.form,
.free-trial-form,
.contact-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full {
    grid-column: 1 / -1;
}

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

.form-control,
input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    transition: border-color var(--t), box-shadow var(--t);
}

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

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft-2);
}

.form-control.is-invalid,
.form-control.error,
input.is-invalid,
input:user-invalid,
select:user-invalid,
textarea:user-invalid {
    border-color: var(--danger);
}

.required {
    color: var(--danger);
}

.field-error,
.form-error {
    color: var(--danger);
    font-size: .82rem;
    margin-top: 2px;
}

.form-submit {
    margin-top: 6px;
}

.free-trial-form-wrapper,
.contact-form-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: clamp(24px, 4vw, 40px);
}

/* ==========================================================================
   16. CTA BANDS
   ========================================================================== */
.final-cta-section,
.cta-section {
    background: radial-gradient(900px 380px at 50% 0%, color-mix(in srgb, var(--primary) 16%, #0B0F14), #0B0F14);
    color: #fff;
    text-align: center;
    padding-block: clamp(48px, 8vw, 96px);
    border-block: 1px solid var(--border);
}

.final-cta-content,
.cta-content {
    max-width: 720px;
    margin-inline: auto;
}

.final-cta-section h1,
.final-cta-section h2,
.final-cta-section h3,
.cta-section h1,
.cta-section h2,
.cta-section h3 {
    color: #fff;
}

.final-cta-content p,
.cta-content p {
    color: rgba(255, 255, 255, .9);
    margin-block: 14px 28px;
}

.final-cta-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* On a dark CTA band, the primary button keeps its green identity */
.final-cta-section .btn-primary,
.cta-section .btn-primary {
    background: var(--btn);
    background-image: var(--grad);
    color: #fff;
}

.final-cta-section .btn-primary:hover,
.cta-section .btn-primary:hover {
    background: var(--btn-dark);
    background-image: linear-gradient(135deg, var(--btn-dark), #15803D);
    color: #fff;
}

.final-cta-section .btn-outline,
.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, .8);
    color: #fff;
}

.final-cta-section .btn-outline:hover,
.cta-section .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.free-trial-section {
    background: var(--bg);
    padding-block: clamp(48px, 8vw, 96px);
}

/* ==========================================================================
   17. FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
    max-width: 820px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 18px 22px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    background: var(--surface);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--primary);
    transition: transform var(--t);
}

.faq-question[aria-expanded="true"] .faq-icon,
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer > * {
    padding-inline: 22px;
}

.faq-answer p:first-child {
    padding-top: 4px;
}

.faq-answer p:last-child,
.faq-answer > *:last-child {
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-muted);
}

/* ==========================================================================
   18. PAGE HEADER BAND
   ========================================================================== */
.page-header {
    background: var(--grad-deep);
    color: #fff;
    text-align: center;
    padding-block: clamp(40px, 6vw, 72px);
}

.page-title {
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, .8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span,
.breadcrumb li + li::before {
    color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   19. ABOUT
   ========================================================================== */
.about-detail-section {
    padding-block: clamp(48px, 8vw, 96px);
}

.about-detail-content {
    max-width: 820px;
    margin-inline: auto;
    color: var(--text);
}

.about-detail-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.mission-grid,
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: clamp(28px, 4vw, 48px);
}

.mission-card,
.why-choose-card {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 30px 24px;
    transition: transform var(--t), box-shadow var(--t);
}

.mission-card:hover,
.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sh-md);
}

.mission-icon,
.why-choose-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   20. BLOG
   ========================================================================== */
.blog-section,
.blog-post-section {
    padding-block: clamp(48px, 8vw, 96px);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.blog-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-lg);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px;
    flex: 1;
}

.blog-card-category,
.blog-post-category {
    align-self: flex-start;
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: var(--r-pill);
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-meta,
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--text-muted);
    font-size: .85rem;
}

.blog-card-meta i,
.blog-post-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.blog-card-excerpt {
    color: var(--text-muted);
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 4px;
}

.blog-card-link i {
    transition: transform var(--t);
}

.blog-card-link:hover i {
    transform: translateX(4px);
}

/* Single blog post */
.blog-post {
    max-width: 820px;
    margin-inline: auto;
}

.blog-post-author,
.blog-post-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-post-image {
    width: 100%;
    border-radius: var(--r-lg);
    margin-block: 22px;
    box-shadow: var(--sh-sm);
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    display: block;
    border-radius: var(--r-lg);
}

.blog-post-content {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
}

.blog-post-content h2 {
    font-size: 1.7rem;
    margin: 32px 0 14px;
}

.blog-post-content h3 {
    font-size: 1.35rem;
    margin: 26px 0 12px;
}

.blog-post-content p {
    margin-bottom: 18px;
    color: var(--text);
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 0 0 18px 22px;
}

.blog-post-content ul {
    list-style: disc;
}

.blog-post-content ol {
    list-style: decimal;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.blog-post-content img {
    border-radius: var(--r-md);
    margin-block: 18px;
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    padding: 16px 20px;
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin: 0 0 18px;
    font-style: italic;
    color: var(--text);
}

.related-posts {
    margin-top: clamp(40px, 6vw, 64px);
}

.related-posts-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
    text-align: center;
}

/* ==========================================================================
   21. CONTACT
   ========================================================================== */
.contact-section {
    padding-block: clamp(48px, 8vw, 96px);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.map-section {
    padding-bottom: clamp(48px, 8vw, 96px);
}

.map-wrapper {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-md);
}

.map-wrapper iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

/* ==========================================================================
   22. THANK YOU
   ========================================================================== */
.thank-you-section {
    padding-block: clamp(56px, 10vw, 120px);
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin-inline: auto;
}

.thank-you-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
    font-size: 3rem;
    margin-bottom: 24px;
}

.thank-you-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
}

/* ==========================================================================
   23. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, .72);
    padding-top: clamp(48px, 7vw, 80px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-title {
    position: relative;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: var(--r-pill);
    background: var(--grad);
}

.footer-text {
    color: rgba(255, 255, 255, .6);
    margin-bottom: 16px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, .68);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 4px;
    width: 18px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255, 255, 255, .68);
}

.footer-contact a:hover {
    color: #fff;
}

.footer-hours {
    margin-top: 18px;
}

.footer-hours h4 {
    color: #fff;
    font-size: .95rem;
    margin-bottom: 6px;
}

.footer-hours p {
    color: rgba(255, 255, 255, .6);
    font-size: .9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background var(--t), transform var(--t);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
    font-size: .88rem;
}

/* ==========================================================================
   24. STICKY ACTION BUTTONS
   ========================================================================== */
.sticky-whatsapp,
.sticky-call,
.scroll-top {
    position: fixed;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: var(--sh-md);
    transition: transform var(--t), box-shadow var(--t), opacity var(--t), visibility var(--t);
}

.sticky-whatsapp {
    right: 20px;
    bottom: 20px;
    background: var(--whatsapp);
    animation: pulse 2.4s infinite;
}

.sticky-whatsapp:hover {
    color: #fff;
    transform: scale(1.08);
}

.sticky-call {
    right: 20px;
    bottom: 88px;
    background: var(--primary);
    background-image: var(--grad);
}

.sticky-call:hover {
    color: #fff;
    transform: scale(1.08);
}

.scroll-top {
    left: 20px;
    bottom: 20px;
    background: var(--primary);
    background-image: var(--grad);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hide floating action buttons while the mobile menu is open */
body.nav-open .sticky-whatsapp,
body.nav-open .sticky-call,
body.nav-open .scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-top.visible,
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scroll-top:hover {
    color: #fff;
    transform: translateY(-3px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   25. ALERTS
   ========================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--r-sm);
    border-left: 4px solid var(--text-muted);
    background: var(--surface-2);
    color: var(--text);
    margin-bottom: 16px;
    transition: opacity .3s ease, transform .3s ease;
}

.alert-success {
    border-left-color: var(--success);
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
}

.alert-error,
.alert-danger {
    border-left-color: var(--danger);
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
}

.alert-info {
    border-left-color: var(--info);
    background: color-mix(in srgb, var(--info) 10%, var(--surface));
}

.alert-warning {
    border-left-color: var(--warning);
    background: color-mix(in srgb, var(--warning) 12%, var(--surface));
}

/* ==========================================================================
   26. EMPTY STATE
   ========================================================================== */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: clamp(40px, 8vw, 80px) 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 18px;
    display: block;
}

/* ==========================================================================
   27. TOASTS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100vw - 40px);
}

.toast {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r-md);
    border-left: 4px solid var(--text-muted);
    box-shadow: var(--sh-lg);
    padding: 14px 18px;
    min-width: 260px;
    animation: toast-in .3s ease;
    transition: opacity .3s ease, transform .3s ease;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-info { border-left-color: var(--info); }

.toast.hide {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   28. SKELETONS
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg, #161F2E 25%, #1F2937 37%, #161F2E 63%);
    background-size: 400% 100%;
    border-radius: var(--r-sm);
    animation: shimmer 1.4s ease infinite;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, #161F2E 25%, #1F2937 37%, #161F2E 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

.skeleton-card {
    height: 200px;
    border-radius: var(--r-lg);
    background: linear-gradient(90deg, #161F2E 25%, #1F2937 37%, #161F2E 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ==========================================================================
   29. SCROLL ANIMATIONS — content visible by default (fail-safe)
   ========================================================================== */
[data-animate] {
    opacity: 1;
}

[data-animate].in-view,
[data-animate].animated {
    animation: rise-in .6s ease both;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   30. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* >= 480px */
@media (min-width: 480px) {
    .gallery-grid,
    .gallery-grid-full {
        gap: 18px;
    }
}

/* >= 768px */
@media (min-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(3, 1fr);
    }

    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        gap: 22px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* >= 992px — desktop nav restored, mobile drawer hidden */
@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }

    .nav-overlay {
        display: none !important;
    }

    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-highlighted {
        transform: scale(1.04);
    }

    .plan-highlighted:hover {
        transform: scale(1.04) translateY(-6px);
    }

    .gallery-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .trust-badges-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .sticky-call {
        display: none;
    }

    .scroll-top {
        left: auto;
        right: 20px;
        bottom: 88px;
    }
}

/* < 992px — mobile navigation drawer */
@media (max-width: 991.98px) {
    .nav-toggle {
        display: flex;
    }

    /* Hide inline desktop links/cta; drawer manages its own */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1050;
        height: 100%;
        height: 100dvh;
        width: 80vw;
        max-width: 320px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 24px 32px;
        background: var(--surface);
        border-left: 1px solid var(--border);
        box-shadow: var(--sh-lg);
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s ease;
    }

    .nav-menu.is-open,
    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        margin-bottom: 20px;
    }

    .nav-link {
        display: block;
        padding: 14px 8px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: flex;
        width: 100%;
    }
}

/* < 768px — single-column adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .transformation-images {
        grid-template-columns: 1fr 1fr;
    }

    .final-cta-buttons,
    .cta-buttons,
    .thank-you-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .final-cta-buttons .btn,
    .cta-buttons .btn,
    .thank-you-buttons .btn {
        width: 100%;
    }
}

/* < 480px — extra small phones */
@media (max-width: 479.98px) {
    .nav-brand-text {
        font-size: 1.1rem;
    }

    .gallery-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   31. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .btn:hover,
    .service-card:hover,
    .plan-card:hover,
    .trainer-card:hover,
    .class-card:hover,
    .blog-card:hover,
    .gallery-item:hover img,
    .trainer-card:hover .trainer-photo,
    .sticky-whatsapp:hover,
    .sticky-call:hover,
    .scroll-top:hover {
        transform: none;
    }

    .sticky-whatsapp {
        animation: none;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   32. UTILITIES
   ========================================================================== */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none !important; }
