/* ─── 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 {
    min-height: 100vh;
}

img, svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: color-mix(in srgb, #065f46 80%, white);
    color: white;
}

/* ─── Skip Link ──────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #065f46;
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0 0 0.5rem 0.5rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ─── Typography ─────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ─── Header ─────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(253, 252, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: color-mix(in srgb, #065f46 10%, transparent);
    box-shadow: 0 1px 20px rgba(6, 95, 70, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #065f46;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ─── Mobile Menu ────────────────────────────────── */
.mobile-menu {
    z-index: 40;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    position: relative;
}

/* ─── Buttons ────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #065f46;
    color: #fdfcf7;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #0f3524;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #065f46;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid color-mix(in srgb, #065f46 40%, transparent);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-outline:hover {
    background: color-mix(in srgb, #065f46 8%, transparent);
    border-color: #065f46;
    transform: translateY(-2px);
}

/* ─── Section Shared ─────────────────────────────── */
.section-eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #065f46;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    color: #0f3524;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4a7c5f;
    line-height: 1.7;
}

/* ─── Hero ───────────────────────────────────────── */
.hero-section {
    position: relative;
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #0f3524;
}

.hero-subheadline {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

/* Hero entrance animations */
.hero-eyebrow,
.hero-headline,
.hero-subheadline,
.hero-ctas,
.hero-trust {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-eyebrow { transition-delay: 0.1s; }
.hero-headline { transition-delay: 0.2s; }
.hero-subheadline { transition-delay: 0.35s; }
.hero-ctas { transition-delay: 0.5s; }
.hero-trust { transition-delay: 0.65s; }

.hero-section.hero-visible .hero-eyebrow,
.hero-section.hero-visible .hero-headline,
.hero-section.hero-visible .hero-subheadline,
.hero-section.hero-visible .hero-ctas,
.hero-section.hero-visible .hero-trust {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator */
.scroll-indicator {
    opacity: 0.6;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ─── Services ───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: #fdfcf7;
    border: 1px solid color-mix(in srgb, #065f46 10%, transparent);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(6, 95, 70, 0.1);
    border-color: color-mix(in srgb, #065f46 25%, transparent);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: color-mix(in srgb, #065f46 10%, transparent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #065f46;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
}

.service-card:hover .service-icon {
    background: #065f46;
    color: #fdfcf7;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f3524;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9375rem;
    color: #4a7c5f;
    line-height: 1.7;
}

/* ─── About / Values ─────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid color-mix(in srgb, #065f46 8%, transparent);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.value-item:hover {
    border-color: color-mix(in srgb, #065f46 20%, transparent);
    background: color-mix(in srgb, #065f46 4%, transparent);
}

.value-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #065f46;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.25rem;
}

.value-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f3524;
    margin-bottom: 0.375rem;
}

.value-desc {
    font-size: 0.875rem;
    color: #4a7c5f;
    line-height: 1.6;
}

/* ─── Why Us / Features ──────────────────────────── */
.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, #065f46 15%, transparent);
    background: color-mix(in srgb, #065f46 8%, transparent);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    background: color-mix(in srgb, #065f46 14%, transparent);
    border-color: color-mix(in srgb, #065f46 30%, transparent);
    transform: translateY(-2px);
}

.feature-title {
    font-family: 'Playfair Display', serif;
}

/* ─── Testimonials ───────────────────────────────── */
.testimonial-card {
    background: #fdfcf7;
    border: 1px solid color-mix(in srgb, #065f46 10%, transparent);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(6, 95, 70, 0.08);
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: #1a5c3a;
}

.testimonial-author {
    border-top: 1px solid color-mix(in srgb, #065f46 12%, transparent);
    padding-top: 1.25rem;
    margin-top: auto;
}

.testimonial-author-name {
    font-size: 0.9375rem;
}

.testimonial-author-location {
    font-size: 0.8125rem;
}

/* ─── Service Area ───────────────────────────────── */
.area-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid color-mix(in srgb, #065f46 15%, transparent);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #065f46;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.area-tag:hover {
    background: color-mix(in srgb, #065f46 10%, transparent);
    border-color: #065f46;
    transform: translateY(-2px);
}

/* ─── Contact ────────────────────────────────────── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: color-mix(in srgb, #065f46 10%, transparent);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #065f46;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: #065f46;
    color: #fdfcf7;
}

.contact-info-label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ─── Form ───────────────────────────────────────── */
.contact-form-wrapper {
    border: 1px solid color-mix(in srgb, #065f46 10%, transparent);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1a5c3a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 0.8125rem 1rem;
    background: white;
    border: 1.5px solid color-mix(in srgb, #065f46 20%, transparent);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #0f3524;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #065f46;
    box-shadow: 0 0 0 3px color-mix(in srgb, #065f46 12%, transparent);
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px color-mix(in srgb, #dc2626 10%, transparent);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

.form-error {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.375rem;
    min-height: 1rem;
}

.form-success {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Links ──────────────────────────────────────── */
.link-underline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #065f46;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid color-mix(in srgb, #065f46 30%, transparent);
    padding-bottom: 0.125rem;
    transition: border-color 0.25s ease, gap 0.25s ease;
}

.link-underline:hover {
    border-color: #065f46;
    gap: 0.625rem;
}

/* ─── Footer ─────────────────────────────────────── */
.footer-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid color-mix(in srgb, #065f46 30%, transparent);
    border-radius: 0.5rem;
    color: #6ee7b7;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer-icon-link:hover {
    background: color-mix(in srgb, #065f46 20%, transparent);
    border-color: #065f46;
    color: #34d399;
    transform: translateY(-2px);
}

/* ─── Scroll Reveal ──────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── Focus Visible ──────────────────────────────── */
:focus-visible {
    outline: 2px solid #065f46;
    outline-offset: 2px;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
    .hero-ctas {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        justify-content: center;
        width: 100%;
    }

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

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

/* ─── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-ctas,
    .hero-trust {
        opacity: 1;
        transform: none;
    }
}
