/* ============================================
   CONCEPT 3: NORDIC SUSTAINABLE
   Scandinavian, muted sage/stone palette,
   geometric accents, modern grid layout
   ============================================ */

:root {
    --c-ink: #1e2a24;
    --c-forest: #2a3e30;
    --c-pine: #3a5a42;
    --c-sage: #7a9e82;
    --c-sage-light: #a8c4ae;
    --c-sage-pale: #dce8de;
    --c-stone: #8a8478;
    --c-sand: #c4b8a8;
    --c-linen: #f0ece4;
    --c-cream: #f7f5f0;
    --c-white: #fdfcfa;
    --c-warm: #9e8a7a;
    --c-accent: #c4724e;

    --f-display: 'Libre Baskerville', Georgia, serif;
    --f-body: 'Albert Sans', -apple-system, sans-serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius: 8px;
    --radius-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--f-body);
    color: var(--c-ink);
    background: var(--c-cream);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

/* Progress bar */
.progress {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--c-sage);
    z-index: 10000;
    transition: width 0.1s linear;
}

/* Typography */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
em { font-style: italic; color: var(--c-pine); }
a { color: inherit; text-decoration: none; }

.label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-sage);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--f-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    letter-spacing: 0.02em;
}
.btn--primary {
    background: var(--c-pine);
    color: var(--c-white);
}
.btn--primary:hover {
    background: var(--c-forest);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(42, 62, 48, 0.25);
}
.btn--outline {
    background: transparent;
    color: var(--c-ink);
    border: 1.5px solid var(--c-sand);
}
.btn--outline:hover {
    border-color: var(--c-pine);
    color: var(--c-pine);
}

/* ============ NAVIGATION ============ */
.nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    transition: all 0.4s var(--ease);
}
.nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav.scrolled {
    background: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.nav.scrolled .nav__inner { padding: 0.8rem 2rem; }

.nav__logo {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav__logo-img { height: 32px; width: auto; }
.nav__links {
    display: flex;
    gap: 2.5rem;
}
.nav__links a {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--c-stone);
    transition: color 0.3s;
    position: relative;
}
.nav__links a::before {
    content: attr(data-label);
    position: absolute;
    top: -12px; left: 0;
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--c-sage-light);
    opacity: 0;
    transition: opacity 0.3s;
}
.nav__links a:hover { color: var(--c-pine); }
.nav__links a:hover::before { opacity: 1; }

.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px; height: 24px;
    color: var(--c-ink);
}

/* ============ HERO ============ */
.hero {
    padding: 10rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--c-stone);
    margin-bottom: 2rem;
    background: var(--c-sage-pale);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}
.hero__badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--c-sage);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { color: var(--c-pine); }
.hero__col--text p {
    font-size: 1rem;
    color: var(--c-stone);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero__btns {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* Mosaic */
.hero__mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem;
    height: 480px;
}
.hero__tile {
    border-radius: var(--radius-lg);
    transition: transform 0.6s var(--ease);
}
.hero__tile:hover { transform: scale(1.03); }
.hero__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero__tile--1 { border-radius: var(--radius-lg) var(--radius-lg) var(--radius) var(--radius-lg); }
.hero__tile--2 { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius); }
.hero__tile--3 { border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.hero__tile--4 { border-radius: var(--radius-lg) var(--radius) var(--radius-lg) var(--radius-lg); }

.hero__stats {
    display: flex;
    gap: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--c-sage-pale);
}
.hero__stat strong {
    font-family: var(--f-display);
    font-size: 2rem;
    display: block;
    color: var(--c-pine);
}
.hero__stat span {
    font-size: 0.78rem;
    color: var(--c-stone);
    letter-spacing: 0.05em;
}

/* ============ SERVICES ============ */
.services {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.services__intro {
    max-width: 550px;
    margin-bottom: 4rem;
}
.services__intro h2 { margin-bottom: 1rem; }
.services__intro p {
    font-size: 0.95rem;
    color: var(--c-stone);
    line-height: 1.8;
}
.services__panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.panel {
    background: var(--c-white);
    border: 1px solid var(--c-sage-pale);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.5s var(--ease);
    position: relative;
    overflow: hidden;
}
.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--c-sage);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.panel:hover::before { transform: scaleX(1); }
.panel:hover {
    border-color: var(--c-sage);
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.panel__photo {
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}
.panel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.panel:hover .panel__photo img { transform: scale(1.05); }
.panel--house::before { background: var(--c-warm); }
.panel--house:hover { border-color: var(--c-warm); }

.panel__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.panel__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel--garden .panel__icon {
    background: var(--c-sage-pale);
    color: var(--c-pine);
}
.panel--house .panel__icon {
    background: var(--c-linen);
    color: var(--c-warm);
}
.panel__icon svg { width: 28px; height: 28px; }
.panel__label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-stone);
}
.panel h3 { margin-bottom: 1rem; }
.panel p {
    font-size: 0.9rem;
    color: var(--c-stone);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.panel__services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}
.panel__services span {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 400;
}
.panel--garden .panel__services span {
    background: var(--c-sage-pale);
    color: var(--c-forest);
}
.panel--house .panel__services span {
    background: var(--c-linen);
    color: var(--c-warm);
}
.panel__cta {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}
.panel--garden .panel__cta { color: var(--c-pine); }
.panel--house .panel__cta { color: var(--c-warm); }
.panel__cta:hover { opacity: 0.7; }

/* ============ PROJECTS ============ */
.projects {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.projects__header {
    margin-bottom: 2rem;
}
.projects__header h2 { margin-bottom: 0; }
.projects__filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
}
.filter-btn {
    background: none;
    border: 1.5px solid var(--c-sage-pale);
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius);
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-stone);
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--c-pine);
    color: var(--c-white);
    border-color: var(--c-pine);
}

.projects__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.project {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--c-white);
    border: 1px solid var(--c-sage-pale);
    transition: all 0.5s var(--ease);
}
.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: var(--c-sage);
}
.project__img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.project__overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 36, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s var(--ease);
}
.project__overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s var(--ease);
}
.project:hover .project__overlay { background: rgba(30, 42, 36, 0.5); }
.project:hover .project__overlay span { opacity: 1; transform: translateY(0); }
.project__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.project:hover .project__img img { transform: scale(1.05); }

.project__info { padding: 1.2rem 1.5rem; }
.project__tag {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-sage);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}
.project__info h3 { margin-bottom: 0.3rem; }
.project__info p {
    font-size: 0.82rem;
    color: var(--c-stone);
    line-height: 1.5;
}
.project.hidden { display: none; }

/* ============ GALLERY ============ */
.gallery {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.gallery__header { margin-bottom: 3rem; }
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 0.8rem;
}
.gal-item {
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s var(--ease);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.gal-item:hover { transform: scale(1.03); z-index: 2; }
.gal-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gal-item--v { grid-row: span 2; }
.gal-item--h { grid-column: span 2; }
.gal-item span {
    color: white;
    font-size: 0.82rem;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.gal-item:hover span { opacity: 1; }

/* ============ ABOUT ============ */
.about {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.about__content h2 { margin-bottom: 1.5rem; }
.about__content p {
    font-size: 0.95rem;
    color: var(--c-stone);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.about__values {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}
.val {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.2rem;
    grid-template-rows: auto auto;
    padding: 1.5rem;
    background: var(--c-white);
    border: 1px solid var(--c-sage-pale);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease);
}
.val:hover {
    border-color: var(--c-sage);
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}
.val__num {
    grid-row: span 2;
    font-family: var(--f-display);
    font-size: 1.8rem;
    color: var(--c-sage-light);
    line-height: 1;
    align-self: center;
}
.val h4 {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.95rem;
}
.val p {
    font-size: 0.85rem;
    color: var(--c-stone);
    line-height: 1.6;
}

/* ============ CONTACT ============ */
.contact {
    padding: 6rem 2rem;
    background: var(--c-linen);
}
.contact__wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact__text h2 { margin-bottom: 1rem; }
.contact__text p {
    font-size: 0.95rem;
    color: var(--c-stone);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.contact__grid div {
    font-size: 0.88rem;
    color: var(--c-stone);
    line-height: 1.6;
}
.contact__grid strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-sage);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.contact__grid a:hover { color: var(--c-pine); }

.contact__form {
    background: var(--c-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-sage-pale);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--c-stone);
    margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--c-sage-pale);
    border-radius: var(--radius);
    font-family: var(--f-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--c-ink);
    background: var(--c-cream);
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-sage);
    box-shadow: 0 0 0 3px rgba(122, 158, 130, 0.12);
}
.form-group textarea { resize: vertical; }

/* ============ FOOTER ============ */
.footer {
    background: var(--c-forest);
    color: var(--c-sage-light);
}
.footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer__logo {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--c-sage-pale);
}
.footer__logo-img { height: 28px; width: auto; filter: brightness(0) invert(0.8); }
.footer__left p {
    font-size: 0.82rem;
    color: var(--c-sage);
    margin-top: 0.3rem;
    line-height: 1.5;
}
.footer__right {
    display: flex;
    gap: 2rem;
}
.footer__right a {
    font-size: 0.82rem;
    color: var(--c-sage);
    transition: color 0.3s;
}
.footer__right a:hover { color: var(--c-sage-pale); }
.footer__bar {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.footer__bar p {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

/* ============ ANIMATIONS ============ */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-anim].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero__mosaic { height: 360px; }
    .services__panels { grid-template-columns: 1fr; }
    .projects__list { grid-template-columns: repeat(2, 1fr); }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
    .about { grid-template-columns: 1fr; gap: 3rem; }
    .contact__wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; height: 100vh;
        background: var(--c-cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.5s var(--ease);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    .nav__links.open { right: 0; }
    .nav__burger { display: block; }

    .hero { padding: 7rem 1.5rem 3rem; }
    .hero__stats { flex-direction: column; gap: 1.5rem; }
    .hero__mosaic { height: 280px; }

    .services, .projects, .gallery, .about { padding: 4rem 1.5rem; }

    .projects__list { grid-template-columns: 1fr; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .gal-item--h { grid-column: span 2; }

    .contact { padding: 4rem 1.5rem; }
    .contact__form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer__right { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero__mosaic { height: 220px; gap: 0.5rem; }
    .gallery__grid { grid-template-columns: 1fr; }
    .gal-item--h, .gal-item--v { grid-column: span 1; grid-row: span 1; }
}
