/* ========================================
   CSS Custom Properties
======================================== */
:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;
    --teal-950: #042f2e;

    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

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

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-800);
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--slate-900);
}

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

/* ========================================
   Navigation
======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
    transition: box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--slate-900);
}

.nav-logo-icon {
    color: var(--teal-600);
}

.nav-logo-accent {
    color: var(--teal-600);
    font-weight: 400;
    font-style: italic;
}

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

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color 0.2s ease;
    position: relative;
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--teal-700);
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal-600);
    transition: width 0.2s ease;
}

.nav-menu a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--teal-700);
    color: #fff !important;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
    background: var(--teal-800);
    transform: translateY(-1px);
}

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

.nav-toggle {
    display: none;
    padding: 8px;
    color: var(--slate-700);
}

/* ========================================
   Hero
======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 35%, var(--teal-600) 60%, var(--slate-700) 100%);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(20, 184, 166, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(15, 118, 110, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(30, 41, 59, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-200);
    margin-bottom: var(--space-lg);
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.02em;
}

.hero-sub {
    font-family: var(--sans);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--teal-100);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--teal-200);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal-600);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
    background: var(--teal-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

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

.btn-ghost-light {
    background: transparent;
    color: var(--teal-700);
    border: 1.5px solid var(--teal-200);
}

.btn-ghost-light:hover {
    background: var(--teal-50);
    border-color: var(--teal-400);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

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

/* ========================================
   Section Shared
======================================== */
.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 560px;
    line-height: 1.7;
}

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

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

/* ========================================
   Services
======================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

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

.service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--slate-100);
    transition: all 0.3s ease;
}

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

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-100) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: var(--space-sm);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ========================================
   About
======================================== */
.about {
    padding: var(--space-4xl) 0;
    background: #ffffff;
}

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

.about-image-wrap {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--teal-100);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-values {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-value {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.95rem;
    color: var(--slate-700);
    font-weight: 500;
}

.about-value svg {
    color: var(--teal-600);
    flex-shrink: 0;
}

/* ========================================
   Why Us
======================================== */
.why-us {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
}

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

.section-eyebrow-light {
    color: var(--teal-300);
}

.section-title-light {
    color: #ffffff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(45, 212, 191, 0.3);
    transform: translateY(-2px);
}

.why-number {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal-600);
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.why-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}

.why-desc {
    font-size: 0.95rem;
    color: var(--slate-400);
    line-height: 1.7;
}

/* ========================================
   CTA Banner
======================================== */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 50%, var(--teal-500) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--teal-100);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Contact
======================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--slate-50);
}

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

.contact-desc {
    font-size: 1.05rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: grid;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--teal-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-700);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    color: var(--slate-700);
    font-weight: 500;
}

.contact-item a {
    color: var(--teal-700);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: var(--teal-500);
}

.contact-map {
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

/* ========================================
   Contact Form
======================================== */
.contact-form-wrap {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
}

.form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: var(--space-xl);
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: var(--slate-50);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--slate-400);
}

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

.form-privacy {
    font-size: 0.8rem;
    color: var(--slate-400);
    text-align: center;
    margin-top: var(--space-md);
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

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

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--teal-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--teal-600);
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--slate-500);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--slate-900);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.footer-logo-icon {
    color: var(--teal-400);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--slate-400);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-300);
    margin-bottom: var(--space-lg);
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--slate-400);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--teal-300);
}

.footer-contact p {
    font-size: 0.9rem;
    color: var(--slate-400);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.footer-contact a {
    color: var(--teal-300);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--teal-200);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    font-size: 0.8rem;
    color: var(--slate-500);
}

/* ========================================
   Scroll Reveal (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-lg);
        gap: var(--space-sm);
        border-bottom: 1px solid var(--slate-100);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        padding: var(--space-sm) 0;
        font-size: 1rem;
    }

    .nav-menu a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        text-align: center;
        margin-top: var(--space-sm);
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero {
        min-height: 100svh;
        padding: var(--space-3xl) var(--space-lg);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

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

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

    .about-image-wrap {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

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

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