/* ===================================
   FLAVOO - Apple-Inspired Design System
   =================================== */

/* --- CSS Variables (Light Mode Default) --- */
:root {
    /* Brand Colors */
    --color-primary: #0c8296;
    --color-primary-dark: #096b7a;
    --color-primary-light: #10a3b8;

    /* Light Mode Palette */
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #6e6e73;
    --color-bg: #ffffff;
    --color-bg-elevated: #f5f5f7;
    --color-border: rgba(0, 0, 0, 0.08);
    --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.95) 100%);

    /* Semantic Colors */
    --color-whatsapp: #25d366;
    --color-success: #28a745;
    --color-error: #dc3545;

    /* Typography - SF Pro / System */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Font Sizes - Apple Scale */
    --text-hero: clamp(3rem, 8vw, 6rem);
    --text-headline: clamp(2rem, 5vw, 4rem);
    --text-title: clamp(1.5rem, 3vw, 2.5rem);
    --text-subhead: clamp(1.125rem, 2vw, 1.5rem);
    --text-body: 1.0625rem;
    --text-callout: 0.9375rem;
    --text-small: 0.8125rem;
    --text-caption: 0.6875rem;

    /* Spacing - Apple Scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --space-3xl: 140px;

    /* Layout */
    --container-max: 980px;
    --container-wide: 1200px;
    --container-padding: 20px;
    --header-height: 52px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0c8296 0%, #0a6680 100%);
}

/* --- Dark Mode: System Preference --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-text: #f5f5f7;
        --color-text-secondary: #a1a1a6;
        --color-text-tertiary: #86868b;
        --color-bg: #000000;
        --color-bg-elevated: #1d1d1f;
        --color-border: rgba(255, 255, 255, 0.08);
        --gradient-glass: linear-gradient(180deg, rgba(29,29,31,0.8) 0%, rgba(29,29,31,0.95) 100%);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
        --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05);
    }
}

/* --- Dark Mode: Manual Override --- */
[data-theme="dark"] {
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-tertiary: #86868b;
    --color-bg: #000000;
    --color-bg-elevated: #1d1d1f;
    --color-border: rgba(255, 255, 255, 0.08);
    --gradient-glass: linear-gradient(180deg, rgba(29,29,31,0.8) 0%, rgba(29,29,31,0.95) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .hero {
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%230c8296' fill-opacity='0.4'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] .hero--small {
    background-color: #000000;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%230c8296' fill-opacity='0.4'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* --- Light Mode: Manual Override --- */
[data-theme="light"] {
    --color-text: #1d1d1f;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #6e6e73;
    --color-bg: #ffffff;
    --color-bg-elevated: #f5f5f7;
    --color-border: rgba(0, 0, 0, 0.08);
    --gradient-glass: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.95) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    touch-action: pan-y;
}

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

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

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

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container--wide {
    max-width: var(--container-wide);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--color-text);
}

h1 {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-headline);
    font-weight: 600;
}

h3 {
    font-size: var(--text-title);
    font-weight: 600;
}

.section-eyebrow {
    display: block;
    font-size: var(--text-subhead);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: 0;
}

.section-headline {
    font-size: var(--text-headline);
    font-weight: 600;
    line-height: 1.09;
    margin-bottom: var(--space-md);
}

.section-subhead {
    font-size: var(--text-subhead);
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.47;
    max-width: 600px;
}

.section-subhead--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Apple-Style Links --- */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-primary);
    transition: gap var(--transition-fast);
}

.link-arrow::after {
    content: '›';
    font-size: 1.2em;
    transition: transform var(--transition-fast);
}

.link-arrow:hover {
    gap: 8px;
}

.link-arrow::after {
    transform: translateX(0);
}

.link-arrow:hover::after {
    transform: translateX(2px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--text-body);
    font-weight: 400;
    font-family: inherit;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    gap: 6px;
    letter-spacing: inherit;
}

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

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

.btn--secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
}

.btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

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

.btn--whatsapp:hover {
    background-color: #20ba5a;
    color: #fff;
}

.btn--large {
    padding: 16px 32px;
    font-size: 1.0625rem;
}

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

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--gradient-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: background var(--transition-normal);
}

.header--scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.header__logo img {
    height: 28px;
    width: auto;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__cta {
    display: none;
}

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--color-text);
}

.theme-toggle:hover {
    background: rgba(128, 128, 128, 0.15);
}

.theme-toggle__icon {
    width: 18px;
    height: 18px;
}

/* Show sun icon in dark mode (to switch to light) */
.theme-toggle__icon--sun {
    display: none;
}

/* Show moon icon in light mode (to switch to dark) */
.theme-toggle__icon--moon {
    display: block;
}

/* When user has dark mode active (manual or system), show sun and hide moon */
[data-theme="dark"] .theme-toggle__icon--sun,
.is-dark .theme-toggle__icon--sun {
    display: block;
}

[data-theme="dark"] .theme-toggle__icon--moon,
.is-dark .theme-toggle__icon--moon {
    display: none;
}

/* --- Hamburger --- */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.header__hamburger:hover {
    background: rgba(128, 128, 128, 0.15);
}

.header__hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Navigation --- */
.nav__list {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-size: var(--text-small);
    font-weight: 400;
    color: var(--color-text);
    padding: 4px 0;
    position: relative;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
    opacity: 1;
    color: var(--color-text);
}

/* --- Hero --- */
.hero {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
    text-align: center;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%230c8296' fill-opacity='0.4'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    margin-bottom: var(--space-md);
}

/* --- Typewriter --- */
.typewriter {
    display: inline;
}

.typewriter__cursor {
    display: inline-block;
    width: 3px;
    margin-left: 2px;
    background-color: var(--color-accent);
    animation: blink 0.7s step-end infinite;
    vertical-align: baseline;
}

.typewriter--static .typewriter__cursor {
    display: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__text {
    font-size: var(--text-subhead);
    color: var(--color-text-secondary);
    line-height: 1.47;
    margin-bottom: var(--space-lg);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__image {
    margin-top: var(--space-xl);
    position: relative;
}

.hero__image img {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.hero__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(12, 130, 150, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Section Base --- */
.section {
    padding: var(--space-3xl) 0;
}

.section--bg {
    background-color: var(--color-bg-elevated);
}

.section--dark {
    background: var(--gradient-dark);
    color: #fff;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section--dark .section-subhead {
    color: var(--color-text-secondary);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* --- Services Grid --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--color-bg-elevated);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
}

.service-card__title {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.service-card__text {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.service-card__link {
    font-size: var(--text-small);
    font-weight: 400;
}

/* --- Featured Section (Apple Style) --- */
.featured {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.featured__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.featured--reverse .featured__inner {
    direction: rtl;
}

.featured--reverse .featured__inner > * {
    direction: ltr;
}

.featured__content {
    max-width: 480px;
}

.featured--reverse .featured__content {
    margin-left: auto;
}

.featured__eyebrow {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.featured__title {
    font-size: var(--text-title);
    margin-bottom: var(--space-md);
}

.featured__text {
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.53;
}

.featured__buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.featured__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.featured__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: var(--text-body);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.featured__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

.featured__image {
    position: relative;
}

.featured__image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.featured__image::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at center, rgba(12, 130, 150, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* --- Video Embed (YouTube) --- */
.featured__video {
    position: relative;
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-wrapper {
        border-radius: var(--radius-md);
    }
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg) var(--space-sm);
}

.stat-item__number {
    font-size: var(--text-headline);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-item__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    padding: 16px;
}

.stat-item__icon svg {
    width: 100%;
    height: 100%;
    color: #fff;
}

.stat-item__label {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
}

/* --- Allies --- */
.allies__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
    align-items: center;
    justify-items: center;
}

.allies__grid img {
    width: 100%;
    max-width: 100px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 8px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.allies__grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: var(--space-md);
}

.form__label {
    display: block;
    font-size: var(--text-small);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-size: var(--text-body);
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    color: var(--color-text);
    letter-spacing: inherit;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(12, 130, 150, 0.12);
}

.form__input::placeholder {
    color: var(--color-text-tertiary);
}

.form__textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Row */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .form__row {
        grid-template-columns: 1fr;
    }
}

/* Select */
.form__select {
    appearance: none;
    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 fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Radio Buttons */
.form__radio-group {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: 8px;
}

.form__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: var(--text-body);
    color: var(--color-text);
}

.form__radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.form__radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.form__radio-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    transform: scale(0);
    transition: transform var(--transition-fast);
}

.form__radio input:checked ~ .form__radio-mark {
    border-color: var(--color-primary);
}

.form__radio input:checked ~ .form__radio-mark::after {
    transform: scale(1);
}

.form__radio input:focus ~ .form__radio-mark {
    box-shadow: 0 0 0 3px rgba(12, 130, 150, 0.12);
}

/* Input Error State */
.form__input--error {
    border-color: var(--color-error) !important;
}

.form__input--error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
}

/* Group Error State (for radio buttons) */
.form__group--error .form__radio-mark {
    border-color: var(--color-error) !important;
}

.form__group--error .form__label {
    color: var(--color-error);
}

/* Button Spinner */
.btn__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disclaimer */
.form__disclaimer {
    text-align: center;
    font-size: var(--text-small);
    color: var(--color-text-tertiary);
    margin-top: var(--space-md);
}

.form__disclaimer a {
    color: var(--color-primary);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-elevated);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.footer__logo {
    height: 28px;
    margin-bottom: var(--space-sm);
    opacity: 0.8;
}

.footer__tagline {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    line-height: 1.5;
    max-width: 260px;
}

.footer__heading {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__links a {
    font-size: var(--text-small);
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.footer__social-links {
    display: flex;
    gap: 12px;
}

.footer__social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.12);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.footer__social-links a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.05);
}

.footer__bottom {
    padding-top: var(--space-md);
    text-align: center;
    font-size: var(--text-caption);
    color: var(--color-text-tertiary);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Scale on scroll */
.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Bottom Navigation --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--color-border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--color-text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
    flex: 1;
}

.bottom-nav__item:hover,
.bottom-nav__item--active {
    color: var(--color-primary);
}

.bottom-nav__icon {
    width: 20px;
    height: 20px;
}

.bottom-nav__label {
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* --- Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --header-height: 48px;
        --space-3xl: 80px;
        --space-2xl: 60px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--color-bg);
        padding: calc(var(--header-height) + 20px) 24px 24px;
        transition: right var(--transition-normal);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
    }

    .nav__link {
        display: block;
        padding: 14px 0;
        font-size: var(--text-body);
        border-bottom: 1px solid var(--color-border);
        opacity: 1;
    }

    .header__hamburger {
        display: flex;
    }

    .header__cta {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 80px;
    }

    .featured__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }

    .featured--reverse .featured__inner {
        direction: ltr;
    }

    .featured__content {
        max-width: 100%;
    }

    .featured--reverse .featured__content {
        margin-left: 0;
    }

    .featured__buttons {
        justify-content: center;
    }

    .services__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .stat-item {
        padding: var(--space-md) var(--space-sm);
    }

    .allies__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .allies__grid img {
        max-width: 80px;
        padding: 6px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer__tagline {
        max-width: 100%;
    }

    .section-headline {
        font-size: var(--text-title);
    }
}

@media (max-width: 480px) {
    .allies__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .allies__grid img {
        max-width: 90px;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero__buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* --- Bottom Nav Mobile --- */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 72px;
    }

    .whatsapp-float {
        bottom: 84px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
}

/* --- Print --- */
@media print {
    .header,
    .bottom-nav,
    .whatsapp-float {
        display: none !important;
    }

    body {
        padding: 0;
    }
}

/* --- FAQ Accordion --- */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-text);
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq__item--active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item--active .faq__answer {
    max-height: 500px;
    padding-bottom: var(--space-md);
}

.faq__answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* --- Hero Small (for inner pages) --- */
.hero--small {
    padding: var(--space-3xl) 0 var(--space-xl);
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='152' height='152' viewBox='0 0 152 152'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='temple' fill='%230c8296' fill-opacity='0.4'%3E%3Cpath d='M152 150v2H0v-2h28v-8H8v-20H0v-2h8V80h42v20h20v42H30v8h90v-8H80v-42h20V80h42v40h8V30h-8v40h-42V50H80V8h40V0h2v8h20v20h8V0h2v150zm-2 0v-28h-8v20h-20v8h28zM82 30v18h18V30H82zm20 18h20v20h18V30h-20V10H82v18h20v20zm0 2v18h18V50h-18zm20-22h18V10h-18v18zm-54 92v-18H50v18h18zm-20-18H28V82H10v38h20v20h38v-18H48v-20zm0-2V82H30v18h18zm-20 22H10v18h18v-18zm54 0v18h38v-20h20V82h-18v20h-20v20H82zm18-20H82v18h18v-18zm2-2h18V82h-18v18zm20 40v-18h18v18h-18zM30 0h-2v8H8v20H0v2h8v40h42V50h20V8H30V0zm20 48h18V30H50v18zm18-20H48v20H28v20H10V30h20V10h38v18zM30 50h18v18H30V50zm-2-40H10v18h18V10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content--center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-block;
    font-size: var(--text-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* --- Services Grid 4 cols --- */
@media (min-width: 769px) {
    .services__grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Legal Content --- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: var(--text-subhead);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content h3 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-md) 0 var(--space-xs);
}

.legal-content h4 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-text);
    margin: var(--space-sm) 0 var(--space-xs);
}

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.legal-content ul {
    list-style: disc;
    padding-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.legal-content li {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

.legal-content strong {
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* --- Press Contact --- */
.press-contact {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-elevated);
    border-radius: var(--radius-lg);
    text-align: center;
}

.press-contact h3 {
    margin-bottom: var(--space-sm);
}

.press-contact p {
    margin-bottom: var(--space-xs);
}
