:root {
    --bg: #f4f6f1;
    --fg: #15281d;
    --muted: #607467;
    --border: #dfe8df;
    --card: #ffffff;
    --primary: #3f7d5a;
    --primary-hover: #2f6448;
    --primary-light: #eaf3ec;
    --accent: #1f3c2d;
    --logo-green: #3a7453;
    --soft: #f8f1e8;
    --shadow: 0 14px 32px -22px rgba(17, 40, 31, 0.25);
    --shadow-hover: 0 18px 40px -22px rgba(17, 40, 31, 0.30);
    --gradient: linear-gradient(135deg, #3f7d5a 0%, #254d3b 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--fg);
    background:
        radial-gradient(circle at top, rgba(101, 156, 122, 0.12), transparent 30%),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.5rem;
    border-radius: .5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color .3s ease;
    position: relative;
    padding: .25rem 0;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
    transform: scaleX(1);
}

.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: .5rem;
    box-shadow: 0 6px 18px rgba(20, 40, 29, .12);
    background: #fff;
    padding: .2rem;
}

.logo h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

header .logo p {
    font-size: .75rem;
    color: var(--muted);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--muted);
    font-weight: 500;
    transition: color .3s;
}

nav a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language switcher styles */
.lang-switch {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-left: .5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(20,40,29,.08);
    padding: .4rem .6rem;
    border-radius: .45rem;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    color: var(--accent);
    transition: all .18s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.lang-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
}

@media(max-width:900px) {
    .lang-switch {
        display: none; /* hide in compact mobile nav */
    }
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--fg);
}

@media(max-width:900px) {
    nav ul,
    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    nav.open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
}

/* mobile language group inside nav */
.lang-mobile {
    display: none;
    gap: .5rem;
    margin-top: .75rem;
}

@media(max-width:900px) {
    .lang-mobile { display:flex; justify-content:flex-start; }
    /* ensure desktop lang-switch is hidden on mobile */
    .lang-switch { display: none; }
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 78px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(28, 56, 42, 0.9), rgba(58, 116, 83, 0.96)),
        linear-gradient(120deg, var(--logo-green) 0%, #5d9a73 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 25%);
    pointer-events: none;
}

.hero-bg {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
    max-width: 760px;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    padding: .5rem 1rem;
    border-radius: 99px;
    font-size: .85rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.badge::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    50% {
        opacity: .4;
    }
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .12);
    padding: .65rem 1rem;
    border-radius: .5rem;
    backdrop-filter: blur(6px);
    font-weight: 500;
}

section {
    padding: 5rem 0;
}

#about,
#products,
#contact {
    position: relative;
}

#about {
    background: linear-gradient(180deg, #f8f9f7 0%, #eef3ee 100%);
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.eyebrow {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    margin-bottom: .75rem;
    display: block;
}

.section-head h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
}

#products {
    background: #ffffff;
}

.grid {
    display: grid;
    gap: 1.75rem;
}

.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.cards-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

@media(max-width:900px) {
    .cards-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid rgba(31, 60, 45, 0.08);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

    .card-img {
        min-height: 360px;
        background: transparent;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: .75rem;
        color: var(--accent);
        font-weight: 700;
        letter-spacing: .02em;
        text-transform: uppercase;
        padding: 0;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .card-img img {
        width: 100%;
        height: 100%;
        min-height: 270px;
        object-fit: cover;
        object-position: center;
        border-radius: .8rem;
        cursor: zoom-in;
        background: transparent;
        display: block;
        box-shadow: none;
        flex: 1 1 100%;
    }

    .card-img.multiple {
        min-height: 330px;
    }

    .card-img.multiple img {
        flex: 1 1 calc(50% - .375rem);
        max-width: calc(50% - .375rem);
        min-height: 270px;
    }

    .card-img.stacked {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .card-img.stacked img {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 180px;
    }

    .card-img.plywood-slider {
        min-height: 360px;
        display: block;
    }

    .card-img.plywood-slider img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 360px;
        max-width: 100%;
        opacity: 0;
        transition: opacity .6s ease;
    }

    .card-img.plywood-slider img.active {
        opacity: 1;
    }

    .card-img.multiple img:first-child {
        min-height: 260px;
    }

    .card-img.multiple img:last-child {
        min-height: 260px;
    }

    .card-img.product-slider {
        height: 420px;
        display: block;
        overflow: hidden;
        position: relative;
    }

    .product-slider {
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .product-slider .slide {
        min-width: 100%;
        height: 100%;
        scroll-snap-align: start;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: .85rem;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
        background: #fff;
        padding: 0;
        box-sizing: border-box;
        position: relative;
    }

    .product-slider .slide img {
        width: 100%;
        height: 100%;
        min-height: 270px;
        object-fit: cover;
        object-position: center;
        transition: transform .25s ease;
        display: block;
        border-radius: .85rem;
    }

    .product-slider .slide img:hover {
        transform: scale(1.02);
    }

    .product-slider::-webkit-scrollbar {
        display: none;
    }

    .about-img {
        border-radius: 1rem;
        box-shadow: var(--shadow-hover);
        padding: 0;
        overflow: hidden;
        background: #fff;
    }

    .about-img img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
        cursor: zoom-in;
        display: block;
        transition: transform .25s ease;
    }

    .about-slider img:hover {
        transform: scale(1.01);
    }

    .about-slider::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        width: 100%;
        display: block;
    }

    .card-body h3,
    .card-body p,
    .tags {
        position: relative;
        z-index: 1;
    }

    .card-body h3 {
        font-size: 1.6rem; /* larger product titles */
        margin-bottom: .5rem;
    }

    .card-body p {
        font-size: 1.05rem;
        color: var(--muted);
    }

    .about-copy,
    .feature,
    .stat {
        position: relative;
        z-index: 1;
        color: var(--muted);
        margin-bottom: 1rem;
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .tag {
    background: var(--primary-light);
    color: var(--accent);
    padding: .25rem .65rem;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 500;
}

#about {
    background: linear-gradient(180deg, var(--bg) 0%, #eef3ed 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Center about content and prevent stacked letters */
.about-grid {
    justify-items: center;
}

.about-grid .reveal {
    text-align: center;
}

.about-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img img { margin: 0 auto; display: block; }

.features { justify-items: center; }
.feature span { white-space: normal; }

@media(max-width:900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
    margin: 1.5rem 0;
}

@media(max-width:520px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
}

.feature .check {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: .85rem;
    color: var(--muted);
}

#contact {
    background: linear-gradient(180deg, var(--bg) 0%, #eef3ed 100%);
}
.contact-grid {
    display: block;
}

.contact-grid > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* center contact cards content */
.contact-grid > div {
    justify-items: center;
}

@media(max-width:900px) {
    .contact-grid > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media(max-width:600px) {
    .contact-grid > div {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

@media(max-width:600px) {
    .contact-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media(max-width:900px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        min-height: calc(100vh - 78px);
    }

    .hero-content {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .pill {
        font-size: .9rem;
        padding: .55rem .95rem;
    }

    .card-img {
        min-height: auto;
    }

    .card-img.plywood-slider,
    .card-img.plywood-slider img {
        min-height: 360px;
    }

    .card-img img {
        min-height: 240px;
    }

    .card-img.multiple img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card-img.multiple {
        min-height: auto;
    }

    .card-body h3 {
        font-size: 1.4rem;
    }

    .card-body p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .foot-bottom {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }
}

@media(max-width:600px) {
    .hero-content {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    nav ul,
    .nav-cta {
        display: none;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    header .logo p {
        font-size: .7rem;
    }

    .menu-btn {
        display: block;
    }

    .nav {
        height: auto;
        padding: .75rem 0;
    }
}

.info-card {
    background: #fff;
    width: 100%;
    padding: 2rem 1rem;
    border-radius: 1.25rem;
    border: 2px solid transparent;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    transition: all .3s ease;
    box-shadow: var(--shadow);
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}


.info-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(74, 138, 99, 0.25);
}


.info-card h4 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    font-weight: 600;
    color: var(--fg);
}

.info-card p {
    color: var(--muted);
    font-size: .95rem;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-align: center;
    white-space: normal;
}

.contact-link-btn,
.footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .75rem;
    padding: .7rem 1rem;
    border-radius: .7rem;
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    box-shadow: 0 10px 20px -14px rgba(17, 40, 31, 0.35);
}

.contact-link-btn:hover,
.footer-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -14px rgba(17, 40, 31, 0.45);
}

.map-btn {
    background: #fff;
    color: var(--accent);
    border-color: rgba(31, 60, 45, 0.12);
}

.footer-action {
    margin-top: 0;
    padding: .55rem .85rem;
    font-size: .9rem;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.footer-action:hover {
    background: rgba(255,255,255,.18);
}

footer {
    background: linear-gradient(180deg, var(--logo-green) 0%, #2d5945 100%);
    color: #cfdcd3;
    padding: 3rem 0 1.5rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media(max-width:760px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

footer h5 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    font-size: 1rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: .5rem;
}

footer a {
    color: #94ece1;
    transition: color .3s;
}

footer a:hover {
    color: #fff;
}

footer .logo h1 {
    color: #fff;
}

footer .logo p {
    color: #9fb3a7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.footer-logo-img,
.footer-bottom-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: .5rem;
    background: #fff;
    padding: .25rem;
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: .9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    color: #e8f3eb;
    transform: none;
}

    .lightbox {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.85);
        z-index: 2000;
        padding: 2rem;
    }

    .lightbox.open {
        display: flex;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 100%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        border-radius: .5rem;
    }

    .lightbox .close-hint {
        position: absolute;
        top: 1rem;
        right: 1.25rem;
        color: #fff;
        font-size: .95rem;
        opacity: .9;
    }

    .lightbox button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,.12);
        border: none;
        color: #fff;
        font-size: 2.5rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: .9;
    }

    .lightbox button:hover {
        opacity: 1;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.8);
        z-index: 2000;
        padding: 2rem;
    }

    .lightbox.open {
        display: flex;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 100%;
        box-shadow: 0 20px 60px rgba(0,0,0,0.6);
        border-radius: .5rem;
    }

    .lightbox .close-hint {
        position: absolute;
        top: 1rem;
        right: 1.25rem;
        color: #fff;
        font-size: .9rem;
        opacity: .9;
    }
