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

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FBF7F5;
    --blush-mid: #EFE0DA;
    --cream: #FAF8F6;
    --white: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --text-muted: #A0A0A0;
    --line: rgba(123, 45, 59, 0.12);
    --line-strong: rgba(123, 45, 59, 0.25);
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --nav-height: 72px;
    --container-max: 1200px;
    --section-padding: clamp(80px, 12vw, 140px);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 56px);
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(250, 248, 246, 0.97);
    box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 56px);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--burgundy);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy);
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
    background: var(--burgundy);
    padding: 10px 20px;
    border-radius: 2px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: var(--burgundy-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(92, 31, 43, 0.88) 0%,
        rgba(123, 45, 59, 0.75) 50%,
        rgba(92, 31, 43, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 clamp(24px, 4vw, 56px);
}

.hero-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 auto 32px;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    font-weight: 300;
    font-style: italic;
    color: var(--blush);
}

.hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 44px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.9rem;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 clamp(24px, 4vw, 56px);
    max-width: var(--container-max);
    margin: 0 auto;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--line);
}

.divider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0.4;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-eyebrow {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* ========== SERVICES ========== */
.services {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

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

.service-card {
    background: var(--white);
    padding: clamp(32px, 4vw, 56px);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    background: var(--blush-light);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 24px;
}

.service-divider {
    width: 40px;
    height: 1px;
    background: var(--line-strong);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.service-list li {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
    padding-left: 14px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 4px;
    height: 1px;
    background: var(--burgundy);
}

/* ========== ABOUT ========== */
.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: clamp(400px, 50vw, 600px);
    object-fit: cover;
    border-radius: 2px;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--burgundy);
    opacity: 0.15;
    border-radius: 2px;
    z-index: -1;
}

.about-content {
    padding: clamp(16px, 2vw, 32px) 0;
}

.about-text {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 40px);
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--burgundy);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line-strong);
}

/* ========== PROJECTS ========== */
.projects {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(20px, 3vw, 32px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blush);
    margin-bottom: 6px;
}

.project-overlay h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
}

.project-card.large {
    grid-column: 1 / 8;
    grid-row: 1 / 2;
}

.project-card.large img {
    height: clamp(280px, 35vw, 420px);
}

.project-card:not(.large):not(.wide) {
    grid-column: span 6;
    grid-row: 2 / 3;
}

.project-card:not(.large):not(.wide) img {
    height: clamp(200px, 25vw, 300px);
}

.project-card.wide {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
}

.project-card.wide img {
    height: clamp(200px, 28vw, 360px);
}

/* ========== CTA ========== */
.cta {
    position: relative;
    padding: clamp(80px, 12vw, 140px) 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 31, 43, 0.92) 0%, rgba(123, 45, 59, 0.88) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-eyebrow {
    color: rgba(255, 255, 255, 0.6) !important;
}

.cta-title {
    color: var(--white) !important;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== CONTACT ========== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
}

.contact-info {
    padding: clamp(16px, 2vw, 32px) 0;
}

.contact-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 40px;
    margin-top: 16px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.5;
}

.contact-link {
    color: var(--burgundy);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--burgundy-dark);
    text-decoration: underline;
}

.contact-map {
    height: clamp(320px, 40vw, 480px);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-dark);
    padding: clamp(48px, 6vw, 72px) 0 clamp(24px, 3vw, 32px);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    max-width: 280px;
    line-height: 1.6;
}

.footer-nav {
    display: flex;
    gap: clamp(20px, 3vw, 36px);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--blush);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.78rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--blush);
}

/* ========== REVEAL ANIMATIONS ========== */
[data-reveal] {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
    }
    
    [data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(250, 248, 246, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: clamp(24px, 4vw, 40px);
        gap: 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .about-image {
        order: -1;
    }

    .about-image img {
        height: clamp(280px, 40vw, 400px);
    }

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

    .project-card.large,
    .project-card:not(.large):not(.wide),
    .project-card.wide {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .project-card img,
    .project-card.large img,
    .project-card:not(.large):not(.wide) img,
    .project-card.wide img {
        height: clamp(220px, 40vw, 320px);
    }

    .project-overlay {
        opacity: 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .about-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
