/* CSS Variables */
:root {
    --white: #ffffff;
    --off-white: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-300: #d1d5db;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-800: #1f2937;
    --grey-900: #111827;
    --black: #0a0a0a;

    --accent: #d96b3f;
    --accent-hover: #c45a30;
    --accent-light: #fdf0ea;
    --accent-muted: #e8976e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: pageFadeIn 0.4s ease forwards;
}

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

::selection {
    background: var(--accent);
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--black);
}

h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
}

h4 {
    font-size: 1.15rem;
}

.text-muted {
    color: var(--grey-400);
}

/* Section shared */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--grey-500);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(217, 107, 63, 0.35);
}

.btn-secondary {
    padding: 14px 32px;
    background: var(--white);
    color: var(--grey-800);
    border: 1px solid var(--grey-200);
}

.btn-secondary:hover {
    background: var(--grey-100);
    border-color: var(--grey-300);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 16px 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--grey-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--grey-500);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--black);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 32px;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards;
    animation-delay: 0.05s;
}

/* Hero text reveal */
.hero-line {
    display: block;
    overflow: hidden;
}

.hero-line-inner {
    display: block;
    transform: translateY(110%);
    animation: heroLineReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) .hero-line-inner {
    animation-delay: 0.15s;
}

.hero-line:nth-child(2) .hero-line-inner {
    animation-delay: 0.28s;
}

.hero-line:nth-child(3) .hero-line-inner {
    animation-delay: 0.41s;
}

@keyframes heroLineReveal {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

.hero-description {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--grey-500);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards;
    animation-delay: 0.55s;
}

.hero h1 {
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeIn 0.6s ease forwards;
    animation-delay: 0.7s;
}

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

/* Capabilities Strip */
.capabilities-strip {
    padding: 32px 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.capabilities-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.capabilities-inner span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--grey-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border: 1px solid var(--grey-200);
    border-radius: 50px;
    white-space: nowrap;
}

/* Services Section */
.services {
    padding: 140px 0;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    padding: 36px;
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.service-card:hover {
    border-color: var(--grey-300);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.service-card:hover .service-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.service-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--grey-500);
    font-size: 0.9rem;
    line-height: 1.65;
    flex: 1;
}

.service-arrow {
    font-size: 1.25rem;
    color: var(--grey-300);
    margin-top: 24px;
    transition: all 0.2s ease;
    align-self: flex-end;
}

/* About Section */
.about {
    padding: 140px 0;
    background: var(--off-white);
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.stat {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.stat:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--black);
}

.stat-label {
    color: var(--grey-500);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-item {
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.value-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.value-item h4 {
    margin-bottom: 12px;
    color: var(--black);
}

.value-item p {
    color: var(--grey-500);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* Contact Section */
.contact {
    padding: 140px 0;
}

.contact .section-header {
    margin-bottom: 60px;
}

.contact-grid {
    max-width: 720px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.contact-link {
    font-weight: 600;
    color: var(--accent);
    font-size: 1rem;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-location {
    color: var(--grey-400);
    font-size: 0.9rem;
}

/* Honeypot */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Contact Form */
.contact-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 16px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--grey-600);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--off-white);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--black);
    transition: all 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(217, 107, 63, 0.15);
}

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

/* Form validation states */
.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: #22c55e;
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 4px;
    display: none;
}

.form-error.visible {
    display: block;
}

.contact-form .btn {
    margin-top: 8px;
}

/* Footer */
.footer {
    padding: 64px 0;
    background: var(--grey-900);
}

.footer .logo {
    color: var(--white);
}

.footer .logo span {
    color: var(--accent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

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

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links,
    .btn-nav {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--grey-200);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        transform: rotate(-45deg) translate(3px, -3px);
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

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

    .capabilities-inner {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }

    .capabilities-inner::-webkit-scrollbar {
        display: none;
    }

    .services,
    .about,
    .contact {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

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

    .service-card {
        padding: 28px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 48px;
    }

    .stat {
        padding: 32px 20px;
    }

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

    .contact-form {
        padding: 24px;
    }

    .contact-details {
        flex-direction: column;
        gap: 8px;
    }

    .footer {
        padding: 48px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
