/*
 * SAMi CASA - Modern Scientific Website
 * Procreative Diagnostics Ltd
 * 2025 Design System
 */

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    --primary-900: #0a1628;
    --primary-800: #0f2744;
    --primary-700: #143a5c;
    --primary-600: #1a4f7a;
    --primary-500: #2563eb;
    --primary-400: #3b82f6;
    --primary-300: #60a5fa;
    --primary-200: #93c5fd;
    --primary-100: #dbeafe;
    --primary-50: #eff6ff;

    --secondary-600: #0d9488;
    --secondary-500: #14b8a6;
    --secondary-400: #2dd4bf;
    --secondary-300: #5eead4;
    --secondary-200: #99f6e4;
    --secondary-100: #ccfbf1;
    --secondary-50: #f0fdfa;

    --accent-coral: #e07a5f;

    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    --gradient-primary: linear-gradient(135deg, #1a4f7a 0%, #0d9488 100%);
    --gradient-hero: linear-gradient(135deg, #0a1628 0%, #143a5c 50%, #0d9488 100%);
    --gradient-dark: linear-gradient(180deg, #0a1628 0%, #1f2937 100%);

    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1280px;
    --container-padding: 24px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

/* =====================================================
   GLOBAL SVG CONSTRAINT - PREVENTS OVERSIZED ICONS
   ===================================================== */
svg {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

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

.section--gray {
    background: var(--gray-50);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

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

.btn--accent {
    background: linear-gradient(135deg, var(--accent-coral) 0%, #d45d3a 100%);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

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

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn--dark {
    background: var(--gray-900);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--gray-800);
}

.btn--sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn--lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #0a1628 0%, #143a5c 50%, #0d9488 100%);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: linear-gradient(135deg, #0a1628 0%, #143a5c 100%);
    box-shadow: var(--shadow-lg);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-img {
    height: 45px;
    width: auto;
    border-radius: 4px;
}

.header__logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    position: relative;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav__dropdown-trigger svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav__dropdown:hover .nav__dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-radius: var(--radius-md);
}

.nav__dropdown-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav__cta {
    margin-left: 16px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.nav-toggle.active {
    background: rgba(255,255,255,0.2);
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-toggle__bar {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: var(--gradient-hero);
}

.hero__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(45, 212, 191, 0.4);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.hero__particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero__particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; }
.hero__particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 4s; }
.hero__particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 6s; }
.hero__particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 8s; }
.hero__particle:nth-child(6) { left: 30%; top: 40%; animation-delay: 1s; }
.hero__particle:nth-child(7) { left: 90%; top: 50%; animation-delay: 3s; }
.hero__particle:nth-child(8) { left: 5%; top: 85%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.8; }
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--secondary-300);
    margin-bottom: 24px;
}

.hero__badge svg {
    width: 16px;
    height: 16px;
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero__title span {
    color: var(--secondary-400);
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero__stat {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-400);
    line-height: 1;
    margin-bottom: 8px;
}

.hero__stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__visual {
    position: relative;
}

.hero__glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero__glow--1 { top: -50px; right: -50px; }
.hero__glow--2 { bottom: -50px; left: -50px; }

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero__image {
    width: 100%;
    display: block;
}

/* =====================================================
   FEATURES SECTION
   ===================================================== */
.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.features__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--secondary-100);
    color: var(--secondary-600);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.features__label svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.features__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.features__description {
    font-size: 17px;
    color: var(--gray-500);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.feature-card__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* =====================================================
   WHY CASA SECTION
   ===================================================== */
.why-casa {
    background: var(--white);
}

.why-casa__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-casa__label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-coral);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.why-casa__title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.why-casa__description {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.why-casa__list {
    margin-bottom: 32px;
}

.why-casa__list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.why-casa__list-item:last-child {
    border-bottom: none;
}

.why-casa__list-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-100);
    color: var(--secondary-600);
    border-radius: 50%;
    flex-shrink: 0;
}

.why-casa__list-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--secondary-600);
}

.why-casa__list-text h4 {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.why-casa__list-text p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.why-casa__visual {
    position: relative;
}

.why-casa__image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.why-casa__floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
}

.why-casa__floating-card--1 {
    top: 20px;
    right: -20px;
}

.why-casa__floating-card--2 {
    bottom: 40px;
    left: -20px;
}

.why-casa__floating-card-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-600);
}

.why-casa__floating-card-label {
    font-size: 12px;
    color: var(--gray-500);
}

/* =====================================================
   PARAMETERS SECTION
   ===================================================== */
.parameters {
    background: var(--gradient-dark);
    color: var(--white);
}

.parameters__bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.parameters__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    position: relative;
}

.parameters__label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    color: var(--secondary-300);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.parameters__title {
    font-size: clamp(28px, 4vw, 40px);
    color: var(--white);
    margin-bottom: 16px;
}

.parameters__description {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

.parameters__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.param-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-base);
}

.param-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.param-card__abbr {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.param-card__name {
    font-size: 17px;
    color: var(--white);
    margin-bottom: 10px;
}

.param-card__description {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* =====================================================
   VALIDATION SECTION
   ===================================================== */
.validation__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.validation__visual {
    position: relative;
}

.validation__image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.validation__badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.validation__badge-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.validation__badge-label {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.validation__text h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.validation__text > p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
}

.validation__points {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.validation__point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.validation__point-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.validation__point-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--secondary-600);
}

.validation__point h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.validation__point p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* =====================================================
   PRODUCTS SECTION
   ===================================================== */
.products__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.product-card__image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__content {
    padding: 24px;
}

.product-card__title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-card__text {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta {
    padding: 100px 0;
    background: var(--gradient-hero);
}

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

.cta__title {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--white);
    margin-bottom: 20px;
}

.cta__text {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}

.contact__info {
    background: var(--gradient-hero);
    padding: 40px;
    border-radius: var(--radius-2xl);
    color: var(--white);
}

.contact__info-title {
    font-size: 24px;
    color: var(--white);
    margin-bottom: 16px;
}

.contact__info-text {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact__info-items {
    display: grid;
    gap: 20px;
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact__info-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.contact__info-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--secondary-300);
}

.contact__info-item h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.7);
}

.contact__info-item p,
.contact__info-item a {
    font-size: 15px;
    color: var(--white);
}

.contact__form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.contact__form-title {
    font-size: 24px;
    margin-bottom: 28px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--gray-700);
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--secondary-500);
}

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

.form__submit {
    width: 100%;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.faq__header h2 {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

.faq__header p {
    color: var(--gray-500);
}

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

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item.active {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-300);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    text-align: left;
    cursor: pointer;
}

.faq-item__icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-item.active .faq-item__icon {
    background: var(--secondary-500);
    transform: rotate(180deg);
}

.faq-item__icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--gray-600);
}

.faq-item.active .faq-item__icon svg {
    stroke: var(--white);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer-inner {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 280px;
}

.footer__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer__links li {
    margin-bottom: 12px;
}

.footer__links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

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

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copyright {
    font-size: 13px;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    font-size: 13px;
    color: var(--gray-500);
}

/* =====================================================
   PAGE HEADERS (Inner Pages)
   ===================================================== */
.page-hero {
    padding: 96px 0 48px;
    background: var(--gradient-hero);
}

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

.page-hero__title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--white);
    margin-bottom: 16px;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.page-hero__breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* =====================================================
   CONTENT PAGES
   ===================================================== */
.content-section {
    padding: 60px 0;
}

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

.content-wrapper h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    font-size: 20px;
    margin-top: 28px;
    margin-bottom: 12px;
}

.content-wrapper p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 20px;
    padding-left: 24px;
    list-style: disc;
}

.content-wrapper li {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-wrapper img {
    border-radius: var(--radius-xl);
    margin: 28px 0;
    box-shadow: var(--shadow-lg);
}

.content-wrapper blockquote {
    background: var(--secondary-50);
    border-left: 4px solid var(--secondary-500);
    padding: 20px 28px;
    margin: 28px 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.content-wrapper blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--gray-700);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__stats {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero__visual {
        max-width: 600px;
        margin: 0 auto;
        order: -1;
        margin-bottom: 40px;
    }

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

    .why-casa__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .validation__content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .section {
        padding: 60px 0;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 300px;
        background: var(--gray-900);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 80px 20px 40px;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1001;
        visibility: hidden;
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
    }

    .nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .nav__link {
        display: block;
        padding: 14px 16px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-radius: 0;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        color: rgba(255,255,255,0.9);
    }
    
    .nav__dropdown {
        display: block;
        width: 100%;
        position: relative;
        box-sizing: border-box;
    }
    
    .nav__dropdown-trigger {
        display: flex;
        width: 100%;
        justify-content: flex-start;
    }
    
    .nav__cta {
        display: block;
        width: 100%;
    }
    
    .nav__dropdown.open .nav__dropdown-trigger svg {
        transform: rotate(180deg);
    }

    .nav__dropdown-menu {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        background: rgba(255,255,255,0.05);
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        width: 100% !important;
        margin: 0 !important;
        min-width: unset !important;
        border-radius: 0;
        box-sizing: border-box;
    }

    .nav__dropdown.open .nav__dropdown-menu {
        max-height: 400px;
        padding: 8px 0;
    }

    .nav__dropdown-link {
        display: block !important;
        width: 100% !important;
        color: rgba(255,255,255,0.7) !important;
        padding: 10px 16px 10px 40px !important;
        text-align: left !important;
        font-size: 14px;
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        border-radius: 0 !important;
        background: transparent;
        box-sizing: border-box;
    }
    
    .nav__dropdown-link:hover {
        color: var(--white) !important;
        background: rgba(255,255,255,0.1) !important;
    }

    .nav__cta {
        margin: 20px 0 0;
    }

    .nav__cta .btn {
        width: 100%;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 70px 0 60px;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero__stat {
        padding: 16px;
    }

    /* Features */
    .features__grid {
        grid-template-columns: 1fr;
    }

    /* Parameters */
    .parameters__grid {
        grid-template-columns: 1fr;
    }

    /* Products */
    .products__grid {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .form__row {
        grid-template-columns: 1fr;
    }

    .contact__info,
    .contact__form-wrapper {
        padding: 28px;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer__brand-text {
        max-width: none;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Floating Cards */
    .why-casa__floating-card {
        display: none;
    }

    .validation__badge {
        width: 80px;
        height: 80px;
        right: 10px;
        bottom: -10px;
    }

    .validation__badge-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

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

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

    .page-hero {
        padding: 72px 0 36px;
    }
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::selection {
    background: var(--secondary-200);
    color: var(--gray-900);
}
