/* ===================================
   CSS 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: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
    line-height: 1.6;
    color: oklch(0.20 0.014 145);
    background-color: oklch(0.98 0.004 145);
}

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

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

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

/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */

:root {
    /* Colors */
    --brand-primary: oklch(0.62 0.21 145);
    --brand-light: color-mix(in oklab, oklch(0.62 0.21 145) 20%, white);
    --brand-dark: color-mix(in oklab, oklch(0.62 0.21 145) 80%, black);
    --accent: oklch(0.70 0.18 85);
    --surface-1: oklch(0.98 0.004 145);
    --surface-2: oklch(0.94 0.008 145);
    --surface-3: oklch(0.25 0.018 145);
    --text-primary: oklch(0.20 0.014 145);
    --text-secondary: oklch(0.50 0.022 145);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-base: 16px;
    --space-lg: 20px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 60px;
    --space-4xl: 80px;

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 120ms ease-out;
    --transition-medium: 250ms ease-out;
    --transition-slow: 400ms ease-out;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.4414rem);
    margin-bottom: var(--space-base);
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5625rem);
    margin-bottom: var(--space-md);
}

p {
    margin-bottom: var(--space-base);
}

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

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-base);
}

.section-subtitle {
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: var(--space-base) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 8px;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 48px;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-full {
    width: 100%;
}

.btn:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary);
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link-cta {
    background-color: var(--brand-primary);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.nav-link-cta:hover {
    background-color: var(--brand-dark);
    transform: translateY(-2px);
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--brand-primary);
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: var(--space-lg) 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-medium);
    }

    .nav.active {
        max-height: 400px;
    }

    .nav-link {
        padding: var(--space-base) var(--space-lg);
        width: 100%;
        text-align: center;
    }

    .nav-link-cta {
        margin: var(--space-sm) var(--space-lg);
        width: calc(100% - 2 * var(--space-lg));
        text-align: center;
    }

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

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

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

/* ===================================
   HERO SECTION (SPLIT-SCREEN)
   =================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    margin-top: 72px;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroFadeIn 800ms ease-out;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-2xl);
    background-color: var(--surface-1);
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    animation: heroFadeIn 800ms ease-out 200ms both;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    animation: heroFadeIn 800ms ease-out 400ms both;
}

.hero-content .btn-primary {
    animation: heroFadeIn 800ms ease-out 600ms both;
}

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

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image {
        height: 50vh;
        min-height: 400px;
    }

    .hero-content {
        padding: var(--space-3xl) var(--space-lg);
    }
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: var(--space-4xl) 0;
    background-color: var(--surface-2);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.service-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium);
    border-bottom: 4px solid var(--brand-primary);
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

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

.service-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-base);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-price {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-size: 1.125rem;
}

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

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

.about {
    padding: var(--space-4xl) 0;
    background-color: var(--surface-1);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-content {
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.about-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
}

.about-text p {
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image {
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image {
        order: -1;
    }
}

/* ===================================
   STATS SECTION
   =================================== */

.stats {
    padding: var(--space-4xl) 0;
    background-color: var(--brand-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4xl);
    text-align: center;
}

.stat-item {
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 2.5rem + 2vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--space-sm);
    color: white;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-base);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

/* ===================================
   PROCESS SECTION
   =================================== */

.process {
    padding: var(--space-4xl) 0;
    background-color: var(--surface-1);
}

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

.process-step {
    text-align: center;
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.process-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.process-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-md);
}

.process-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

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

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.testimonials {
    padding: var(--space-4xl) 0;
    background-color: var(--surface-2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    background-color: white;
    padding: var(--space-xl);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.testimonial-text {
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    color: var(--brand-primary);
    font-size: 2rem;
    line-height: 0;
    margin-right: 4px;
}

.testimonial-author {
    border-top: 2px solid var(--surface-2);
    padding-top: var(--space-base);
}

.testimonial-name {
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===================================
   CTA SECTION
   =================================== */

.cta {
    position: relative;
    padding: var(--space-4xl) 0;
    background-image: url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    text-align: center;
    color: white;
    margin-bottom: var(--space-base);
}

.cta-subtitle {
    text-align: center;
    font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.cta-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: var(--space-2xl);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-base);
    border: 2px solid var(--surface-2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

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

@media (max-width: 768px) {
    .cta {
        background-attachment: scroll;
    }

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

    .cta-form {
        padding: var(--space-lg);
    }
}

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

.contact {
    padding: var(--space-4xl) 0;
    background-color: var(--surface-1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.contact-info {
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.contact-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    border-left: 4px solid var(--brand-primary);
    padding-left: var(--space-lg);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-value a {
    color: var(--brand-primary);
    transition: color var(--transition-fast);
}

.contact-value a:hover {
    color: var(--brand-dark);
}

.contact-form-wrapper {
    animation: fadeInUp both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

.contact-form-title {
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
}

.contact-form {
    background-color: var(--surface-2);
    padding: var(--space-xl);
    border-radius: 12px;
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

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

.footer {
    background-color: var(--surface-3);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-base);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-heading {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
}
