/* ========================================
   Terabit Media LLC — Styles
   Clean Minimalist | Emerald + Cream
   ======================================== */

/* CSS Custom Properties */
:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    
    --cream-50: #faf9f7;
    --cream-100: #f5f0e8;
    --cream-200: #ede5d5;
    --cream-300: #e0d5c0;
    
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #7a7a7a;
    --text-light: #9a9a9a;
    
    --white: #ffffff;
    --black: #000000;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--cream-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--cream-200);
    background: rgba(250, 249, 247, 0.97);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--emerald-900);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    color: var(--emerald-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald-700);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--emerald-800);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    color: var(--emerald-800) !important;
    border: 1px solid var(--emerald-200, #a7f3d0);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all var(--transition-fast) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--emerald-50, #ecfdf5) !important;
    border-color: var(--emerald-600) !important;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.nav-toggle:hover {
    color: var(--emerald-800);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--cream-50) 0%, var(--cream-100) 50%, var(--cream-200) 100%);
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--emerald-900) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, var(--emerald-900) 1px, transparent 1px),
        radial-gradient(circle at 60% 80%, var(--emerald-900) 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 100px 100px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--emerald-700);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-headline br {
    display: block;
}

.hero-subheadline {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 480px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--emerald-900);
    color: var(--cream-50);
    border: 1px solid var(--emerald-900);
}

.btn-primary:hover {
    background: var(--emerald-800);
    border-color: var(--emerald-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--cream-300);
}

.btn-ghost:hover {
    border-color: var(--emerald-700);
    color: var(--emerald-800);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Floating Stat Cards */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--emerald-700);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--cream-300);
}

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

.stat-card--accent {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    color: var(--cream-50);
}

.stat-card--accent::before {
    background: var(--cream-300);
}

.stat-card--accent .stat-number {
    color: var(--cream-100);
}

.stat-card--accent .stat-label {
    color: rgba(250, 249, 247, 0.7);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--emerald-900);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Hero decorative line */
.hero-line {
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: var(--cream-300);
}

.hero-line-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 1px;
    background: var(--emerald-700);
}

/* ========================================
   Section Shared Styles
   ======================================== */
.section-header {
    margin-bottom: 64px;
}

.section-header.text-center {
    text-align: center;
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-line {
    width: 48px;
    height: 1px;
    background: var(--emerald-700);
}

.section-line--center {
    margin: 0 auto;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 120px 0;
    background: var(--white);
}

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

.service-card {
    padding: 40px;
    border: 1px solid var(--cream-200);
    border-radius: 8px;
    transition: all var(--transition-base);
    position: relative;
    background: var(--cream-50);
}

.service-card:hover {
    border-color: var(--emerald-200, #a7f3d0);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    background: var(--white);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-300);
    border-radius: 8px;
    margin-bottom: 24px;
    color: var(--emerald-800);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--emerald-900);
    border-color: var(--emerald-900);
    color: var(--cream-50);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 300;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--emerald-800);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 10px;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

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

.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--emerald-200, #a7f3d0);
    border-radius: 8px;
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.value-item svg {
    color: var(--emerald-700);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ========================================
   Approach Section
   ======================================== */
.approach {
    padding: 120px 0;
    background: var(--emerald-900);
    color: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.approach::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 30% 40%, var(--cream) 1px, transparent 1px),
        radial-gradient(circle at 70% 60%, var(--cream) 1px, transparent 1px);
    background-size: 48px 48px, 72px 72px;
}

.approach .section-eyebrow {
    color: rgba(250, 249, 247, 0.6);
}

.approach .section-title {
    color: var(--cream-50);
}

.approach .section-line {
    background: rgba(250, 249, 247, 0.4);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}

.approach-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(250, 249, 247, 0.15);
}

.approach-step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(250, 249, 247, 0.12);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cream-50);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step-description {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(250, 249, 247, 0.6);
    font-weight: 300;
}

/* ========================================
   CTA / Contact Section
   ======================================== */
.cta {
    padding: 120px 0;
    background: var(--cream-100);
    position: relative;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.cta-eyebrow {
    margin-bottom: 16px;
}

.cta-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 300;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 8px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--emerald-200, #a7f3d0);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-200);
    border-radius: 8px;
    color: var(--emerald-800);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-detail {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 400;
}

.contact-link:hover {
    color: var(--emerald-800);
    text-decoration: underline;
    text-decoration-color: var(--emerald-300, #6ee7b7);
    text-underline-offset: 3px;
}

/* Form */
.cta-form-wrapper {
    position: relative;
}

.cta-form {
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-primary);
    background: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: 4px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:focus {
    border-color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08);
}

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

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
    font-weight: 300;
}

/* Success State */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border: 1px solid var(--cream-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-success.active {
    display: flex;
}

.form-success svg {
    color: var(--emerald-700);
    margin-bottom: 20px;
}

.form-success h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 64px 0 40px;
    background: var(--text-primary);
    color: var(--cream-100);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--cream-50);
}

.footer-logo svg {
    color: var(--cream-100);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(250, 249, 247, 0.5);
    margin-top: 8px;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: rgba(250, 249, 247, 0.6);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--cream-50);
}

.footer-divider {
    height: 1px;
    background: rgba(250, 249, 247, 0.1);
    margin-bottom: 32px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(250, 249, 247, 0.4);
    font-weight: 300;
}

.footer-bottom a {
    color: rgba(250, 249, 247, 0.5);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--cream-50);
}

/* ========================================
   Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 160px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 48px;
    }
    
    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .approach-steps::before {
        display: none;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid var(--cream-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: unset;
    }
    
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 32px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-accent {
        display: none;
    }
    
    .approach {
        padding: 80px 0;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-form {
        padding: 28px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 90px 16px 48px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
}
