/* ============================================
   RAFIKI HOUSE - Styles
   A warm, professional design for recovery housing
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Warm Gold Palette */
    --gold-50: #FEF9E7;
    --gold-100: #FCF0C8;
    --gold-200: #F9E18E;
    --gold-300: #F5CE4F;
    --gold-400: #E8B923;
    --gold-500: #D4A517;
    --gold-600: #B8850F;
    --gold-700: #92640D;
    --gold-800: #784F12;
    --gold-900: #654115;

    /* Neutral Colors */
    --black: #0D0D0D;
    --gray-900: #1A1A1A;
    --gray-800: #2D2D2D;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #A3A3A3;
    --gray-300: #D4D4D4;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;

    /* Accent Colors */
    --sage-100: #F0F4F0;
    --sage-200: #D8E4D8;
    --sage-500: #6B8E6B;
    --cream: #FDF8F3;
    --cream-dark: #F5EDE3;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 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-gold: 0 4px 20px rgba(232, 185, 35, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--gray-600);
}

strong {
    color: var(--gray-800);
    font-weight: 500;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-4xl) 0;
}

/* ============================================
   COMPONENTS - Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gold-400);
    color: var(--gray-900);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 185, 35, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-800);
    border: 1.5px solid var(--gray-300);
}

.btn-secondary:hover {
    border-color: var(--gold-400);
    color: var(--gold-600);
}

.btn-form {
    width: 100%;
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
}

.btn-form:hover {
    background: var(--black);
}

/* ============================================
   COMPONENTS - Section Labels
   ============================================ */

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-600);
    margin-bottom: var(--space-md);
}

.section-label.light {
    color: var(--gold-300);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-title.light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 243, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

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

.logo-box {
    width: 44px;
    height: 44px;
    background: var(--gold-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gray-900);
}

.nav-cta {
    background: var(--gray-900) !important;
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    border-radius: var(--radius-full);
}

.nav-cta:hover {
    background: var(--black) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gold-200);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--sage-200);
    bottom: -100px;
    left: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gold-100);
    top: 50%;
    left: 30%;
}

.dot-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gold-300) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.title-accent {
    color: var(--gold-500);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-logo-large {
    position: relative;
    width: 350px;
    height: 350px;
    animation: floatLogo 6s ease-in-out infinite;
}

.logo-large-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 20px 40px rgba(245, 206, 79, 0.4));
    border-radius: 12px;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

.floating-dots {
    position: absolute;
    inset: 0;
}

.floating-dots .dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold-400);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-dots .dot:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.floating-dots .dot:nth-child(2) { top: 30%; right: 10%; animation-delay: 1s; }
.floating-dots .dot:nth-child(3) { bottom: 20%; left: 10%; animation-delay: 2s; }
.floating-dots .dot:nth-child(4) { bottom: 40%; right: 20%; animation-delay: 3s; }
.floating-dots .dot:nth-child(5) { top: 60%; left: 30%; animation-delay: 4s; width: 8px; height: 8px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-400);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold-400);
    border-radius: 2px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    margin-bottom: var(--space-xl);
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-500);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    position: relative;
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    max-width: 350px;
}

.card-accent {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    background: var(--gold-400);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.visual-card blockquote {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.5;
}

/* ============================================
   CORE VALUES SECTION
   ============================================ */

.values-section {
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(245, 206, 79, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 206, 79, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.values-section .section-label {
    color: var(--gold-400);
}

.values-section .section-title {
    color: var(--white);
}

.values-meaning {
    font-family: var(--font-display);
    font-size: 1.5rem !important;
    font-style: italic;
    color: var(--gold-300) !important;
    margin-top: var(--space-sm);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.value-card {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold-500);
    transform: translateY(-5px);
}

.value-letter {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gold-400);
    color: var(--gray-900);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.value-content h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.value-content p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   DIFFERENCE SECTION
   ============================================ */

.difference-section {
    background: var(--cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gold-600);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   GOAL SECTION
   ============================================ */

.goal-section {
    background: var(--white);
}

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

.goal-card-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.goal-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--cream);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-400);
    transition: all var(--transition-base);
}

.goal-item:hover {
    transform: translateX(10px);
    background: var(--gold-50);
}

.goal-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gold-500);
}

.goal-item span {
    font-weight: 500;
    color: var(--gray-800);
}

.goal-intro {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.goal-mission {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--black) 100%);
    padding: var(--space-4xl) 0;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-card-centered {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content-full {
    text-align: center;
}

.contact-intro {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.screening-info {
    margin-bottom: var(--space-xl);
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.info-box h4 {
    color: var(--gold-400);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    text-align: center;
}

.expect-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.expect-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.expect-list li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--gold-400);
}

.btn-screening {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    background: var(--gold-400);
    color: var(--gray-900);
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.btn-screening:hover {
    background: var(--gold-300);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 185, 35, 0.4);
}

.btn-screening svg {
    width: 22px;
    height: 22px;
}

.contact-divider {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.contact-divider span {
    color: var(--gray-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-content-full .contact-methods {
    justify-content: center;
}

.contact-content {
    color: var(--white);
}

.contact-content p {
    color: var(--gray-400);
    font-size: 1.0625rem;
    margin-bottom: var(--space-xl);
}

.contact-methods {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-400);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-400);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--gray-900);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.contact-form h3 {
    margin-bottom: var(--space-lg);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--cream-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
    color: var(--gray-900);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-600);
}

.footer-contact p {
    margin-bottom: var(--space-sm);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto var(--space-xl);
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid,
    .goal-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

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

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

    .contact-card {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .value-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .values-meaning {
        font-size: 1.25rem !important;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .visual-card {
        padding: var(--space-lg);
    }

    .visual-card blockquote {
        font-size: 1.25rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-content-full .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .btn-screening {
        width: 100%;
        padding: var(--space-md) var(--space-lg);
    }
}

/* ============================================
   CAPTCHA MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-lg);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    width: 100%;
    text-align: center;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
}

.captcha-modal {
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

.captcha-header {
    margin-bottom: var(--space-xl);
}

.captcha-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 15px rgba(232, 185, 35, 0.3);
}

.captcha-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.captcha-header h3 {
    font-size: 1.375rem;
    margin-bottom: var(--space-xs);
    color: var(--gray-900);
}

.captcha-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* CAPTCHA Challenge Box */
.captcha-challenge {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.captcha-math {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.captcha-question {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.05em;
    background: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.captcha-equals {
    font-size: 1.5rem;
    color: var(--gray-400);
    font-weight: 500;
}

.captcha-input {
    width: 70px;
    height: 50px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition-fast);
}

.captcha-input:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.2);
}

.captcha-input.error {
    border-color: #DC2626;
    background: #FEF2F2;
}

.captcha-input.success {
    border-color: #059669;
    background: #ECFDF5;
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.captcha-refresh:hover {
    background: var(--gold-100);
    border-color: var(--gold-300);
    transform: rotate(180deg);
}

.captcha-refresh svg {
    width: 18px;
    height: 18px;
    color: var(--gray-500);
}

.captcha-refresh:hover svg {
    color: var(--gold-600);
}

/* Error & Success Messages */
.captcha-error,
.captcha-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.captcha-error {
    background: #FEF2F2;
    color: #DC2626;
}

.captcha-error svg,
.captcha-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.captcha-success {
    background: #ECFDF5;
    color: #059669;
}

/* Submit Button */
.btn-captcha-submit {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--gold-400);
    color: var(--gray-900);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.btn-captcha-submit:hover:not(:disabled) {
    background: var(--gold-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 185, 35, 0.3);
}

.btn-captcha-submit:disabled {
    cursor: wait;
    opacity: 0.9;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-8px); }
    80% { transform: translateX(8px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* Note */
.captcha-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: 0.75rem;
    color: var(--gray-400);
}

.captcha-note svg {
    width: 14px;
    height: 14px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .captcha-modal {
        padding: var(--space-lg);
    }
    
    .captcha-challenge {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .captcha-math {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .captcha-question {
        font-size: 1.5rem;
    }
    
    .captcha-input {
        width: 60px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

