:root {
    /* Earthy premium base — linen, sandstone, espresso (architecture-friendly) */
    --color-bg: #f0ebe3;
    --color-surface: #faf7f1;
    --color-surface-subtle: #e5dfd4;
    --color-text: #2a241e;
    --color-text-muted: #6b6258;
    --color-accent: #3d3229;
    --color-accent-hover: #322820;
    --color-border: #d0c7b9;
    --color-footer-bg: #231f1a;
    --color-footer-text: #f2ebe3;
    --color-terracotta: #9a6b4f;
    --font-heading: 'Syne', system-ui, sans-serif;
    --font-body: 'Outfit', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scroll-triggered section reveals (home & optional pages) */
.scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 1.5rem, 0);
    transition:
        opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.scroll-reveal.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.scroll-reveal--card {
    transform: translate3d(0, 2rem, 0);
}

.scroll-reveal--hero {
    transform: translate3d(0, 1.25rem, 0);
}

/* Hero lines stay opaque (no flash); only drift into place */
.hero-inner .scroll-reveal--onload.scroll-reveal--hero {
    opacity: 1;
}

.hero-inner .scroll-reveal--hero-sub {
    transition-delay: 0.2s;
}

.scroll-reveal--footer {
    transform: translate3d(0, 1rem, 0);
}

.scroll-reveal--loadmore {
    transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    font-feature-settings: 'kern' 1;
}

/* Header & Navigation (only top-level — not <header> inside main, e.g. project detail) */
body > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 247, 241, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

.logo:hover {
    color: var(--color-text);
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 36px;
    margin: 0;
    padding: 0;
}

ul.menu li a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
}

ul.menu li a:hover,
ul.menu li a.active {
    color: var(--color-text);
}

/* Main content */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Home - Hero */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow: hidden;
}

/* Hero Swiper */
.hero-swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

/* Swiper arrows - white for visibility on dark images */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 28px;
}

/* Swiper pagination bullets */
.hero-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    width: 10px;
    height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 24px 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Section titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding: 0 40px;
    letter-spacing: 0.03em;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 40px 0;
    padding: 0 40px;
}

.projects-section {
    padding: 80px 40px 100px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid rgba(208, 199, 185, 0.35);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(42, 36, 30, 0.1);
}

.project-card a {
    text-decoration: none;
    color: inherit;
}

.project-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 24px;
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text);
    letter-spacing: 0.04em;
}

.project-content .location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 8px 0 0 0;
    line-height: 1.5;
}

.load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.load-more a:hover {
    opacity: 0.7;
}

/* Projects page */
.projects-page {
    padding: 60px 40px 100px;
}

.projects-page .projects-grid {
    margin-top: 40px;
}

/* Project detail (gallery) */
.project-detail-page {
    padding: 60px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-detail-back {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.project-detail-back:hover {
    color: var(--color-text);
}

.project-detail-not-found .section-title {
    padding: 0;
}

.project-detail-not-found .section-subtitle {
    padding: 0;
    margin-bottom: 24px;
}

.project-detail-header {
    margin-bottom: 40px;
    max-width: 720px;
}

.project-detail-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.project-detail-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
}

.project-detail-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.project-gallery-item {
    margin: 0;
    overflow: hidden;
    background: var(--color-surface-subtle);
    border: 1px solid rgba(208, 199, 185, 0.25);
}

.project-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* About Us */
.about-page {
    padding: 60px 40px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 24px;
}

.about-page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--color-text);
}

.about-page-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.about-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.about-breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.about-breadcrumb a:hover {
    color: var(--color-text);
}

.breadcrumb-sep {
    color: var(--color-text-muted);
    margin: 0 8px;
}

.about-quick-contact {
    font-size: 0.95rem;
    margin-bottom: 40px;
}

.about-quick-contact a {
    color: var(--color-text);
    text-decoration: none;
}

.about-quick-contact a:hover {
    text-decoration: underline;
}

.quick-contact-sep {
    color: var(--color-text-muted);
    margin: 0 12px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

.about-portrait {
    margin: 0;
    overflow: hidden;
    background: var(--color-surface-subtle);
    border: 1px solid rgba(208, 199, 185, 0.35);
}

.about-portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-container--text {
    max-width: none;
    margin: 0;
    padding-top: 4px;
}

.about-inline-link {
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.2s, color 0.2s;
}

.about-inline-link:hover {
    border-bottom-color: var(--color-text);
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.about-container > p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.7;
}

.about-services {
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
}

.about-services p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.read-more-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
}

.read-more-link:hover {
    opacity: 0.8;
}

.about-experience {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 40px 0;
    padding: 24px 0;
}

.experience-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-text);
}

.experience-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}

.experience-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.about-what-we-do {
    margin: 48px 0;
}

.what-we-do-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: var(--color-text);
}

.what-we-do-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.what-we-do-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--color-surface-subtle);
    border-radius: 6px;
    border: 1px solid rgba(208, 199, 185, 0.35);
}

.what-we-do-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.what-we-do-num {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.about-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.team-member h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.team-member .role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.team-member .phone {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.team-member .phone a {
    color: var(--color-text);
    text-decoration: none;
}

/* Contact Us */
.contact-page {
    padding: 60px 40px 100px;
}

.contact-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-section h3,
.contact-info-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

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

.contact-form button {
    background: var(--color-accent);
    color: var(--color-surface);
    padding: 14px 28px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.contact-form button:hover {
    background: var(--color-accent-hover);
    opacity: 0.98;
}

.contact-info-section .info-block {
    margin-bottom: 28px;
}

.contact-info-section .info-block h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    margin: 0 0 12px 0;
}

.contact-info-section .info-block p,
.contact-info-section .info-block a {
    font-size: 1rem;
    color: var(--color-text);
    margin: 4px 0;
    text-decoration: none;
    display: block;
}

.contact-info-section .info-block a:hover {
    text-decoration: underline;
}

.success-message {
    color: #2d7a4a;
    font-size: 0.95rem;
}

.error-message {
    color: #c53030;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 40px 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 20px 0;
    opacity: 0.8;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin: 4px 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-footer-text);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(242, 235, 227, 0.15);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 16px 24px;
    }

    ul.menu {
        gap: 24px;
    }

    ul.menu li a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: 70vh;
        padding: 40px 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .projects-section,
    .projects-page,
    .about-page,
    .contact-page,
    .project-detail-page {
        padding: 40px 24px 60px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title,
    .section-subtitle {
        padding: 0 24px;
    }

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

    .what-we-do-grid {
        grid-template-columns: 1fr;
    }

    .about-experience {
        flex-wrap: wrap;
    }

    footer {
        padding: 40px 24px 32px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    ul.menu {
        flex-wrap: wrap;
        gap: 16px;
    }
}
