/* ═══════════════════════════════════════════
   OBSIDIAN & CHALK — Design System
   ═══════════════════════════════════════════ */

:root {
    --powder-chalk: #f4f1ea;
    --obsidian: #121212;
    --pastel-mint: #d8e6df;
    --pastel-peach: #f9e4d4;
    --pastel-lavender: #e2e1f0;
    --pastel-blue: #d6e2e9;
    --transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── Reset ─────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--powder-chalk);
    color: var(--obsidian);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.4;
}

/* ── Chalk Grain Overlay ───────────────── */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ── Utility Classes ───────────────────── */
.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── Navigation ────────────────────────── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(18, 18, 18, 0.06);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-socials {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-socials a {
    color: var(--obsidian);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-socials a:hover {
    opacity: 1;
}

/* ── Hero ──────────────────────────────── */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 4%;
    gap: 2rem;
}

.hero-image {
    height: 80vh;
    background: var(--pastel-mint);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    filter: contrast(1.1);
}

.hero-content {
    padding-left: 2rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.tagline {
    font-size: 1.2rem;
    max-width: 450px;
    margin-bottom: 2.5rem;
    color: rgba(18, 18, 18, 0.7);
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary {
    background: var(--obsidian);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    border: 1px solid var(--obsidian);
    color: var(--obsidian);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--obsidian);
    color: white;
}

/* ── Portfolio / Case Studies ──────────── */
.portfolio {
    padding: 10rem 4%;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: var(--powder-chalk);
    padding: 3rem;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--obsidian);
}

.card:nth-child(1) { background: var(--pastel-blue); }
.card:nth-child(2) { background: var(--pastel-peach); }
.card:nth-child(3) { background: var(--pastel-lavender); }
.card:nth-child(4) { background: var(--pastel-mint); }

.card:hover {
    border-color: var(--obsidian);
    transform: scale(0.98);
}

.card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

.card-meta {
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
}

.read-more {
    margin-top: auto;
    text-decoration: none;
    color: var(--obsidian);
    font-weight: 800;
    border-bottom: 2px solid var(--obsidian);
    align-self: flex-start;
    padding-bottom: 4px;
}

/* ── About ─────────────────────────────── */
.about {
    padding: 10rem 4%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
}

.about-title {
    font-size: 3rem;
    font-weight: 800;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.about-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ── Methodology ───────────────────────── */
.methodology {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.method-item {
    padding: 2rem;
    border-left: 1px solid var(--obsidian);
}

.method-item h4 {
    margin-bottom: 1rem;
    font-weight: 800;
}

.method-item p:first-child {
    margin-bottom: 0.5rem;
}

/* ── Testimonials ──────────────────────── */
.testimonials {
    padding: 8rem 4%;
    background: var(--obsidian);
    color: var(--powder-chalk);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 2rem 0;
}

.quote {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    font-style: italic;
    line-height: 1.5;
}

.testimonial-role {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

/* ── Contact ───────────────────────────── */
.contact {
    padding: 10rem 4%;
    text-align: center;
    background: var(--powder-chalk);
}

.contact h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.book-btn {
    font-size: 1.5rem;
    padding: 1.8rem 4rem;
    background: var(--obsidian);
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid var(--obsidian);
    font-family: inherit;
}

.book-btn:hover {
    padding: 1.8rem 5.5rem;
    background: transparent;
    color: var(--obsidian);
}

.whatsapp-btn {
    font-size: 1.2rem;
    padding: 1.8rem 3rem;
    background: transparent;
    color: var(--obsidian);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    border: 1px solid rgba(18, 18, 18, 0.2);
    font-family: inherit;
}

.whatsapp-btn:hover {
    border-color: var(--obsidian);
    background: var(--obsidian);
    color: white;
}

/* ── Contact Socials ───────────────────── */
.contact-socials {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    list-style: none;
}

.contact-socials a {
    color: var(--obsidian);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.contact-socials a:hover {
    opacity: 1;
}

/* ── Footer ────────────────────────────── */
footer {
    padding: 4rem 4%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(18, 18, 18, 0.1);
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    color: var(--obsidian);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* ── Calendar Modal ────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    height: 85vh;
    max-height: 700px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--obsidian);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Scroll Reveal Animation ───────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 900px) {
    .hero,
    .grid,
    .about {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 40vh;
    }

    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding-left: 0;
    }

    .card {
        height: 400px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .methodology {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .about-title {
        position: static;
        font-size: 2rem;
    }

    .nav-right .mono {
        display: none;
    }

    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .book-btn:hover {
        padding: 1.8rem 4rem;
    }
}

/* ── Reduced Motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
