/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

:root {
    /* Colors (OKLCH) */
    --brand-primary: oklch(0.55 0.15 240);
    --brand-light: color-mix(in oklab, oklch(0.55 0.15 240) 25%, white);
    --brand-dark: color-mix(in oklab, oklch(0.55 0.15 240) 75%, black);
    --accent: oklch(0.68 0.19 30);
    --surface-1: oklch(0.99 0.003 240);
    --surface-2: oklch(0.96 0.006 240);
    --surface-3: oklch(0.22 0.015 240);
    --text-primary: oklch(0.18 0.012 240);
    --text-secondary: oklch(0.48 0.02 240);

    /* Spacing (4-point base unit system) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Typography */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Timing */
    --timing-fast: 150ms;
    --timing-medium: 300ms;
    --timing-slow: 500ms;
    --timing-reveal: 600ms;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-1);
}

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

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

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--timing-fast) ease-out;
}

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

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--timing-medium) ease;
}

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

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--timing-fast) ease-out;
    border: 2px solid transparent;
    min-height: 48px;
    line-height: 1.5;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

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

.btn-primary-small {
    background: var(--accent);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9375rem;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, oklch(0.22 0.015 240 / 0.85), oklch(0.55 0.15 240 / 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 2.5rem + 2.5vw, 5rem);
    margin-bottom: var(--space-lg);
    animation: hero-title-reveal var(--timing-reveal) var(--ease-out) forwards;
    clip-path: inset(0 100% 0 0);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), oklch(0.78 0.19 40));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: hero-subtitle-reveal var(--timing-reveal) var(--ease-out) 100ms forwards;
}

.hero-cta-group {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: hero-cta-reveal var(--timing-reveal) var(--ease-out) 200ms forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes hero-title-reveal {
    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes hero-subtitle-reveal {
    to {
        opacity: 1;
    }
}

@keyframes hero-cta-reveal {
    to {
        opacity: 1;
    }
}

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

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats-section {
    background: var(--surface-3);
    color: white;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    animation: stat-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 2.5rem + 2vw, 4rem);
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 2.5rem + 2vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    display: inline;
}

.stat-label {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

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

.section-title {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--brand-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-3xl);
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
}

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

.service-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--timing-medium) ease-out;
    animation: service-card-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

@keyframes service-card-reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.service-card:nth-child(2) {
    animation-delay: 150ms;
}

.service-card:nth-child(3) {
    animation-delay: 300ms;
}

.service-card:nth-child(4) {
    animation-delay: 450ms;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.service-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--brand-primary);
    transition: width var(--timing-medium) ease-out;
}

.service-card:hover .service-accent-bar {
    width: 100%;
}

.service-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--brand-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-lg) var(--space-lg) var(--space-md);
    color: var(--brand-primary);
}

.service-title {
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    margin: 0 var(--space-lg) var(--space-md);
    color: var(--brand-primary);
}

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

.service-price {
    margin: 0 var(--space-lg) var(--space-lg);
    font-weight: 700;
    color: var(--accent);
    font-size: 1.125rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */

.process-section {
    padding: var(--space-4xl) 0;
    background: var(--surface-1);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, oklch(0.55 0.15 240 / 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

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

@keyframes process-step-reveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

.process-description {
    color: var(--text-secondary);
}

/* ==========================================================================
   About Section
   ========================================================================== */

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

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-image {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

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

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

.testimonial-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--timing-medium) ease-out;
    animation: testimonial-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.testimonial-text {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--space-4xl) 0;
    background: var(--surface-3);
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/cta-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3xl);
    align-items: start;
}

.cta-title {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
    margin-bottom: var(--space-lg);
}

.cta-description {
    font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
    opacity: 0.9;
}

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

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cta-benefits svg {
    color: var(--accent);
    flex-shrink: 0;
}

.cta-form-card {
    background: white;
    padding: var(--space-xl);
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    animation: cta-form-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}

@keyframes cta-form-reveal {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    padding: var(--space-md);
    background: var(--surface-2);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--timing-fast) ease-out;
    min-height: 48px;
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(85, 107, 184, 0.1);
}

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

/* ==========================================================================
   Contact Section
   ========================================================================== */

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

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

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-primary);
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--brand-primary);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-item a {
    color: var(--brand-primary);
    transition: color var(--timing-fast) ease-out;
}

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

.contact-map {
    background: var(--surface-1);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.map-placeholder svg {
    margin: 0 auto var(--space-md);
    color: var(--brand-primary);
}

.map-placeholder p {
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--surface-3);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.footer-info p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

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

.footer-links a {
    opacity: 0.8;
    transition: opacity var(--timing-fast) ease-out;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-contact h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
}

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

.footer-contact a {
    color: inherit;
    transition: color var(--timing-fast) ease-out;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    opacity: 0.7;
}

/* ==========================================================================
   Focus Styles (Accessibility)
   ========================================================================== */

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

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--timing-medium) ease-out;
        pointer-events: none;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

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

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

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

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

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

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

    /* Reduce section padding on mobile */
    .services-section,
    .stats-section,
    .process-section,
    .about-section,
    .testimonials-section,
    .cta-section,
    .contact-section {
        padding: var(--space-2xl) 0;
    }
}

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

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

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

    @keyframes stat-reveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes service-card-reveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes process-step-reveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes testimonial-reveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes cta-form-reveal {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .header,
    .hamburger,
    .scroll-indicator,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}
