/* ============================================
   PEMSA Landing Page — Premium Warm Stylesheet
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
    /* Warm Palette */
    --color-black: #000000;
    --color-near-black: #0C0A08;
    --color-charcoal: #1C1917;
    --color-dark-gray: #292524;
    --color-mid-gray: #57534E;
    --color-gray: #78716C;
    --color-light-gray: #D6D3D1;
    --color-off-white: #F5F3F0;
    --color-near-white: #FAFAF9;
    --color-white: #FFFFFF;

    /* Semantic Mapping */
    --color-primary: var(--color-charcoal);
    --color-primary-light: var(--color-dark-gray);
    --color-primary-dark: var(--color-near-black);
    --color-bg-white: var(--color-white);
    --color-bg-gray: var(--color-off-white);
    --color-bg-warm: #FAF7F2;
    --color-text: var(--color-charcoal);
    --color-text-light: var(--color-mid-gray);
    --color-text-inverse: var(--color-white);
    --color-border: #E7E5E4;

    /* Warm accent — used generously */
    --color-gold: #B8956A;
    --color-gold-light: #D4BC9A;
    --color-gold-bg: rgba(184, 149, 106, 0.08);
    --color-gold-border: rgba(184, 149, 106, 0.2);

    /* Status */
    --color-error: #DC2626;
    --color-success: #16A34A;
    --color-whatsapp: #25D366;

    /* Typography */
    --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 1.75rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.5rem;
    --fs-hero: clamp(2.25rem, 5vw, 4rem);
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --lh-body: 1.6;
    --lh-heading: 1.1;

    /* Spacing (8px base) */
    --sp-xs: 0.25rem;
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2rem;
    --sp-2xl: 3rem;
    --sp-3xl: 4rem;
    --sp-4xl: 6rem;
    --sp-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 1.25rem;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows — warmer tones */
    --shadow-sm: 0 2px 8px rgba(28,25,23,0.05);
    --shadow-md: 0 4px 24px rgba(28,25,23,0.08);
    --shadow-lg: 0 12px 40px rgba(28,25,23,0.12);
    --shadow-xl: 0 24px 60px rgba(28,25,23,0.16);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 300ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --t-slow: 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --t-reveal: 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-body);
    color: var(--color-text);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

select {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-charcoal);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

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

.section-heading {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    text-align: center;
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-heading);
    letter-spacing: -0.02em;
}

.section-subheading {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-mid-gray);
    text-align: center;
    margin-bottom: var(--sp-3xl);
    max-width: 600px;
    margin-inline: auto;
    font-weight: var(--fw-regular);
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: var(--sp-sm) var(--sp-lg);
    z-index: 9999;
    transition: top var(--t-fast);
    font-weight: var(--fw-medium);
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   4. PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader__logo {
    animation: pulse-logo 1.5s ease-in-out infinite;
    width: 160px;
    height: auto;
}

@keyframes pulse-logo {
    0%, 100% { opacity: 0.3; transform: scale(0.97); }
    50% { opacity: 1; transform: scale(1); }
}

/* ============================================
   5. SCROLL REVEAL SYSTEM
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--t-reveal), transform var(--t-reveal);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal][data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal][data-reveal-delay="400"] { transition-delay: 400ms; }

/* Hero text line reveal */
.reveal-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero--loaded .reveal-line {
    opacity: 1;
    transform: translateY(0);
}

.hero--loaded .reveal-line:nth-child(1) { transition-delay: 0.3s; }
.hero--loaded .reveal-line:nth-child(2) { transition-delay: 0.5s; }
.hero--loaded .reveal-line:nth-child(3) { transition-delay: 0.7s; }

/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--t-base);
    text-align: center;
    cursor: pointer;
    position: relative;
}

.btn--primary {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border: 2px solid var(--color-charcoal);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--color-black);
    border-color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ============================================
   7. NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--sp-lg) 0;
    background-color: var(--color-white);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    transition: background-color var(--t-base), box-shadow var(--t-base), padding var(--t-base);
}

.nav--scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    padding: var(--sp-sm) 0;
}

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

.nav__logo {
    flex-shrink: 0;
    z-index: 101;
}

.nav__logo-img {
    height: 72px;
    width: auto;
    transition: opacity var(--t-base);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    z-index: 101;
}

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.nav__hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    position: relative;
    transition: background-color var(--t-fast);
}

.nav__hamburger::before,
.nav__hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    transition: transform var(--t-fast);
}

.nav__hamburger::before {
    top: -7px;
}

.nav__hamburger::after {
    bottom: -7px;
}

/* Hamburger → X animation */
.nav__toggle[aria-expanded="true"] .nav__hamburger {
    background-color: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

/* Mobile menu */
.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-near-black);
    padding: 100px var(--sp-xl) var(--sp-xl);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    transition: right var(--t-base);
    z-index: 99;
}

.nav__menu--open {
    right: 0;
}

/* Mobile nav backdrop */
.nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}

.nav__backdrop--visible {
    opacity: 1;
    visibility: visible;
}

.nav__link {
    display: block;
    padding: var(--sp-md);
    color: var(--color-black);
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
    transition: background-color var(--t-fast), color var(--t-fast);
    letter-spacing: 0.02em;
}

.nav__link:hover,
.nav__link:focus-visible {
    color: var(--color-black);
    background-color: var(--color-off-white);
}

/* Mobile menu: override link colors back to white */
.nav__menu .nav__link {
    color: var(--color-white);
}

.nav__menu .nav__link:hover,
.nav__menu .nav__link:focus-visible {
    background-color: var(--color-dark-gray);
}

/* Social icons in nav: hidden on mobile */
.nav__social {
    display: none;
}

/* Language Toggle */
.nav__lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.06em;
    z-index: 101;
    transition: border-color var(--t-fast);
}

.nav__lang:hover {
    border-color: rgba(0, 0, 0, 0.6);
}

.nav__lang-opt {
    padding: 2px 4px;
    opacity: 0.35;
    transition: opacity var(--t-fast);
}

.nav__lang-opt--active {
    opacity: 1;
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-black);
    padding-top: 100px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(0.6);
    transform: scale(1.05);
    transition: transform 12s ease-out;
}

.hero--loaded .hero__bg-img {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 10, 8, 0.75) 0%,
        rgba(12, 10, 8, 0.35) 45%,
        rgba(12, 10, 8, 0.7) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--sp-xl) 0;
}

.hero__eyebrow {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--sp-md);
    padding-top: var(--sp-xl);
    opacity: 0;
    transition: opacity 0.8s ease 0.1s;
}

.hero--loaded .hero__eyebrow {
    opacity: 1;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    line-height: var(--lh-heading);
    margin-bottom: var(--sp-lg);
    max-width: 900px;
    margin-inline: auto;
}

.hero__title em {
    font-style: italic;
    color: var(--color-gold);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--sp-xl);
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--lh-body);
    font-weight: var(--fw-light);
    opacity: 0;
    transition: opacity 0.8s ease 0.9s;
}

.hero--loaded .hero__subtitle {
    opacity: 1;
}

.hero__cta {
    padding: 1.125rem 3rem;
    background-color: var(--color-gold);
    background-image: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-white) !important;
    border: 2px solid var(--color-gold);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: var(--fs-sm);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.8s ease 1.1s, background-color var(--t-fast), transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.hero--loaded .hero__cta {
    opacity: 1;
}

.hero__cta:hover {
    background-color: var(--color-gold-light);
    background-image: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    border-color: var(--color-gold-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(184, 149, 106, 0.35);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sp-2xl);
    margin-top: var(--sp-3xl);
    opacity: 0;
    transition: opacity 0.8s ease 1.3s;
}

.hero--loaded .hero__badges {
    opacity: 1;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
}

.badge__flag {
    font-size: 1.25rem;
}

.badge__number {
    font-weight: var(--fw-bold);
    font-size: var(--fs-xl);
    color: var(--color-white);
    font-family: var(--font-heading);
}

/* Hero scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.01% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   9. PAIN POINTS SECTION
   ============================================ */
.pain-points {
    background-color: var(--color-bg-warm);
    padding: var(--sp-5xl) 0;
    position: relative;
}

/* Subtle texture overlay */
.pain-points::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8956a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.pain-points .container {
    position: relative;
    z-index: 1;
}

.pain-points__grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-2xl) var(--sp-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    opacity: 0;
    transition: opacity var(--t-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--color-gold-border);
}

.card:hover::before {
    opacity: 1;
}

.card__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--color-gold-bg);
    border-radius: var(--radius);
    color: var(--color-gold);
    margin-bottom: var(--sp-lg);
    transition: background-color var(--t-base);
}

.card:hover .card__icon-wrap {
    background: rgba(184, 149, 106, 0.15);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--sp-sm);
}

.card__text {
    font-size: var(--fs-base);
    color: var(--color-mid-gray);
    line-height: var(--lh-body);
}

/* ============================================
   10. PROCESS / HOW IT WORKS SECTION
   ============================================ */
.process {
    background-color: var(--color-white);
    padding: var(--sp-5xl) 0;
}

.process__timeline {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
    max-width: 700px;
    margin-inline: auto;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold-light), var(--color-border));
}

.process__step {
    display: flex;
    gap: var(--sp-lg);
    align-items: flex-start;
    position: relative;
}

.process__number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    border-radius: var(--radius);
    position: relative;
    z-index: 1;
}

.process__content {
    padding-top: var(--sp-sm);
}

.process__title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--sp-xs);
}

.process__text {
    font-size: var(--fs-base);
    color: var(--color-mid-gray);
    line-height: var(--lh-body);
}

.process__cta-wrap {
    text-align: center;
    margin-top: var(--sp-2xl);
}

/* ============================================
   11. SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--color-charcoal);
    padding: var(--sp-5xl) 0;
    position: relative;
    overflow: hidden;
}

/* Warm texture on dark services */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.services .section-heading {
    color: var(--color-white);
}

.services .section-subheading {
    color: rgba(255,255,255,0.6);
}

.services__carousel {
    display: flex;
    gap: var(--sp-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--sp-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.services__carousel::-webkit-scrollbar {
    display: none;
}

.service-card {
    flex: 0 0 78%;
    scroll-snap-align: center;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--sp-2xl);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base), background var(--t-base);
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    border-color: var(--color-gold-border);
    transform: translateY(-6px);
    background: rgba(255,255,255,0.1);
}

.service-card__icon {
    color: var(--color-gold);
    margin-bottom: var(--sp-lg);
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--color-white);
    margin-bottom: var(--sp-sm);
}

.service-card__description {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--sp-lg);
}

.service-card__list {
    margin-bottom: var(--sp-xl);
    flex-grow: 1;
}

.service-card__list li {
    padding: var(--sp-sm) 0;
    padding-left: var(--sp-lg);
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
}

.service-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-white);
}

.service-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

/* White outline button on dark service cards */
.service-card .btn--outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.service-card .btn--outline:hover,
.service-card .btn--outline:focus-visible {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

/* ============================================
   12. AUTHORITY SECTION
   ============================================ */
.authority {
    background-color: var(--color-bg-warm);
    padding: var(--sp-5xl) 0;
}

.authority__layout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

.authority__photo {
    display: flex;
    justify-content: center;
}

.authority__img-wrap {
    width: 280px;
    height: 360px;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.authority__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--t-slow);
}

.authority__img-wrap:hover .authority__img {
    transform: scale(1.03);
}

.authority__title {
    text-align: left;
}

.authority__role {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: var(--color-gold);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--sp-lg);
}

.authority__bio {
    font-size: var(--fs-base);
    color: var(--color-mid-gray);
    margin-bottom: var(--sp-lg);
    line-height: var(--lh-body);
}

.authority__credentials {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.authority__credentials li {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

.authority__credentials li svg {
    flex-shrink: 0;
    color: var(--color-gold);
}

/* ============================================
   13. PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background-color: var(--color-white);
    padding: var(--sp-5xl) 0;
}

.portfolio__tabs {
    display: flex;
    justify-content: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-xl);
}

.portfolio__tab {
    padding: var(--sp-sm) var(--sp-lg);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-mid-gray);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    transition: all var(--t-fast);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portfolio__tab:hover {
    border-color: var(--color-gold);
    color: var(--color-charcoal);
}

.portfolio__tab--active {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
}

.portfolio__panel {
    display: none;
}

.portfolio__panel--active {
    display: block;
}

.portfolio__comparison {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.portfolio__figure {
    margin: 0;
}

.portfolio__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.portfolio__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.portfolio__img--crop {
    object-position: center center;
    transform: scale(1.4);
}

.portfolio__img-wrap:hover .portfolio__img {
    transform: scale(1.03);
}

.portfolio__img-wrap:hover .portfolio__img--crop {
    transform: scale(1.45);
}

.portfolio__label {
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-top: var(--sp-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.portfolio__caption {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    margin-top: var(--sp-lg);
    font-style: italic;
}

/* ============================================
   13B. TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background-color: var(--color-bg-warm);
    padding: var(--sp-5xl) 0;
}

.section-disclaimer {
    font-size: var(--fs-xs);
    color: var(--color-gray);
    text-align: center;
    margin-top: calc(-1 * var(--sp-2xl));
    margin-bottom: var(--sp-2xl);
    font-style: italic;
}

.testimonials__grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.testimonial {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-gold);
    border-radius: var(--radius);
    padding: var(--sp-2xl);
    transition: box-shadow var(--t-base), transform var(--t-base);
}

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

.testimonial__stars {
    display: flex;
    gap: 2px;
    color: var(--color-gold);
    margin-bottom: var(--sp-md);
}

.testimonial__text {
    font-size: var(--fs-base);
    color: var(--color-text);
    line-height: var(--lh-body);
    margin-bottom: var(--sp-lg);
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.testimonial__name {
    font-style: normal;
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    font-size: var(--fs-sm);
}

.testimonial__location {
    font-size: var(--fs-sm);
    color: var(--color-gray);
}

.testimonial__location::before {
    content: '—';
    margin-right: var(--sp-xs);
}

/* ============================================
   14. LEAD MAGNET / CONTACT SECTION
   ============================================ */
.lead-magnet {
    position: relative;
    background-color: var(--color-near-black);
    padding: var(--sp-5xl) 0;
    color: var(--color-white);
    overflow: hidden;
}

.lead-magnet__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.lead-magnet__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.15) saturate(0);
    opacity: 0.6;
}

.lead-magnet .container {
    position: relative;
    z-index: 1;
}

.lead-magnet__layout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2xl);
}

.lead-magnet__title {
    font-family: var(--font-heading);
    color: var(--color-white);
    text-align: left;
}

.lead-magnet__description {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-lg);
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-light);
}

.lead-magnet__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.lead-magnet__benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.lead-magnet__benefits li svg {
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

/* Form */
.lead-magnet__form {
    background-color: var(--color-white);
    padding: var(--sp-2xl);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--sp-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--sp-xs);
}

.form-input {
    width: 100%;
    padding: 0.875rem var(--sp-md);
    font-size: var(--fs-base);
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-near-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--color-charcoal);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
    outline: none;
    background-color: var(--color-white);
}

.form-input--error {
    border-color: var(--color-error);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23555555'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-error {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-error);
    margin-top: var(--sp-xs);
    min-height: 1.25em;
}

.form-group--checkbox {
    margin-bottom: var(--sp-md);
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    line-height: 1.4;
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-checkbox-label a:hover {
    color: var(--color-charcoal);
}

.form-urgency {
    font-size: var(--fs-sm);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: var(--sp-md);
    font-weight: var(--fw-medium);
    font-style: italic;
}

.form-disclaimer {
    font-size: var(--fs-sm);
    color: var(--color-mid-gray);
    text-align: center;
    margin-top: var(--sp-md);
    line-height: 1.4;
}

/* ============================================
   15. FOOTER
   ============================================ */
.footer {
    background-color: var(--color-white);
    padding: var(--sp-3xl) 0;
    color: var(--color-mid-gray);
    border-top: 1px solid var(--color-border);
}

.footer__layout {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2xl);
}

.footer__logo {
    margin-bottom: var(--sp-md);
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: var(--color-gray);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.05em;
}

.footer__address {
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin-bottom: var(--sp-lg);
}

.footer__social {
    display: flex;
    gap: var(--sp-md);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: background-color var(--t-fast), transform var(--t-fast);
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon--footer {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--color-charcoal);
}

.social-icon--footer:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--sp-lg);
}

/* Map */
.map-container {
    width: 100%;
    height: 200px;
    background-color: var(--color-off-white);
    overflow: hidden;
    border-radius: var(--radius);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    color: var(--color-gray);
    font-size: var(--fs-sm);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer Links */
.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.footer__links a {
    font-size: var(--fs-sm);
    padding: var(--sp-xs) 0;
    transition: color var(--t-fast);
}

.footer__links a:hover {
    color: var(--color-charcoal);
}

/* Footer Bottom */
.footer__bottom {
    border-top: 1px solid var(--color-border);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
    font-size: var(--fs-sm);
    text-align: center;
}

.footer__privacy {
    color: var(--color-gray);
    transition: color var(--t-fast);
}

.footer__privacy:hover {
    color: var(--color-charcoal);
}

/* ============================================
   16. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    opacity: 0;
    transform: scale(0) translateY(20px);
    animation: whatsapp-enter 0.5s ease forwards 2.5s, whatsapp-pulse 2s ease-in-out 3s 3;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-float__badge {
    position: absolute;
    right: calc(100% + 12px);
    background: var(--color-white);
    color: var(--color-text);
    padding: var(--sp-sm) var(--sp-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base);
}

.whatsapp-float:hover .whatsapp-float__badge,
.whatsapp-float:focus .whatsapp-float__badge {
    opacity: 1;
}

@keyframes whatsapp-enter {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================
   17. RESPONSIVE — TABLET (768px)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --container-pad: 2rem;
    }

    .section-heading {
        font-size: var(--fs-3xl);
    }

    .hero__subtitle {
        font-size: var(--fs-lg);
    }

    /* Pain points: 3-column */
    .pain-points__grid {
        flex-direction: row;
        gap: var(--sp-lg);
    }

    .card {
        flex: 1;
    }

    /* Authority: side-by-side */
    .authority__layout {
        flex-direction: row;
        align-items: center;
        gap: var(--sp-2xl);
    }

    .authority__photo {
        flex-shrink: 0;
    }

    .authority__img-wrap {
        width: 350px;
        height: 440px;
    }

    /* Portfolio: side-by-side comparison */
    .portfolio__comparison {
        flex-direction: row;
        gap: var(--sp-lg);
    }

    .portfolio__figure {
        flex: 1;
    }

    /* Testimonials: 3 columns */
    .testimonials__grid {
        flex-direction: row;
        gap: var(--sp-lg);
    }

    .testimonial {
        flex: 1;
    }

    /* Lead magnet: side-by-side */
    .lead-magnet__layout {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--sp-2xl);
    }

    .lead-magnet__info {
        flex: 1;
    }

    .lead-magnet__form {
        flex: 1;
        max-width: 440px;
    }

    /* Footer: grid */
    .footer__layout {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: var(--sp-xl);
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================
   18. RESPONSIVE — DESKTOP (1024px)
   ============================================ */
@media (min-width: 1024px) {
    .section-heading {
        font-size: var(--fs-4xl);
    }

    /* Navigation: show full menu, hide hamburger */
    .nav__actions {
        order: 3;
    }

    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        padding: 0;
        flex-direction: row;
        gap: var(--sp-xs);
    }

    .nav__link {
        font-size: var(--fs-sm);
        padding: var(--sp-sm) var(--sp-md);
        letter-spacing: 0.05em;
    }

    .nav__menu .nav__link {
        color: var(--color-black);
    }

    .nav__menu .nav__link:hover,
    .nav__menu .nav__link:focus-visible {
        color: var(--color-black);
        background-color: var(--color-off-white);
    }

    /* Show social icons in nav */
    .nav__social {
        display: flex;
        gap: var(--sp-sm);
    }

    .nav__social .social-icon {
        width: 32px;
        height: 32px;
        color: var(--color-black);
        opacity: 0.6;
        transition: opacity var(--t-fast);
    }

    .nav__social .social-icon:hover {
        opacity: 1;
    }

    /* Services: 3-column grid instead of carousel */
    .services__carousel {
        overflow-x: visible;
        scroll-snap-type: none;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card {
        flex: none;
    }

    /* Map: taller */
    .map-container {
        height: 250px;
    }
}

/* ============================================
   19. RESPONSIVE — LARGE DESKTOP (1440px)
   ============================================ */
@media (min-width: 1440px) {
    :root {
        --container-max: 1320px;
    }
}

/* ============================================
   20. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .reveal-line {
        opacity: 1;
        transform: none;
    }

    .hero__eyebrow,
    .hero__subtitle,
    .hero__cta,
    .hero__badges {
        opacity: 1;
    }

    .hero__bg-img {
        transform: none;
        transition: none;
    }

    .whatsapp-float {
        opacity: 1;
        transform: none;
    }
}


/* ============================================
   FORM SUCCESS PANEL
   Shown in place of the form after submit, so a failed WhatsApp hand-off still
   leaves the visitor with a clickable link instead of an unchanged form.
   ============================================ */
.form-success {
    background: var(--color-white, #fff);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.form-success__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.form-success__text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-success__link {
    display: inline-block;
}


/* ============================================
   NO-JS FALLBACK
   These entrance styles are only ever undone by main.js. If that file fails to load —
   a network stall inside the Facebook/Instagram in-app browser, a JS error — the visitor
   would be left staring at a blank white page. main.js sets html.js as its first act, so
   its absence is the signal. Scoped to :not(.js) so the normal path is untouched.
   ============================================ */
html:not(.js) .page-loader {
    display: none;
}

html:not(.js) [data-reveal],
html:not(.js) .reveal-line,
html:not(.js) .hero__eyebrow,
html:not(.js) .hero__subtitle,
html:not(.js) .hero__cta,
html:not(.js) .hero__badges {
    opacity: 1;
    transform: none;
}
