/* =========================================
   CSS Variables & Globals
========================================= */
:root {
    /* Color Palette - Industrial / Construct */
    --clr-forest-dark: #122133;
    /* Deep Industrial Blue/Navy */
    --clr-forest-light: #2C435E;
    /* Mid Steel Blue */
    --clr-wood-dark: #333333;
    /* Dark Grey/Carbon */
    --clr-wood-primary: #C38D4F;
    /* Subtle Gold/Brass Accent */
    --clr-wood-light: #DFB17B;
    /* Lighter Gold Accent */
    --clr-cream: #F5F7FA;
    /* Crisp Off-white background */
    --clr-white: #ffffff;
    --clr-text-main: #333333;
    --clr-text-light: #666666;
    --clr-whatsapp: #25D366;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-main: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hard: 0 20px 40px rgba(18, 33, 51, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-white);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--clr-cream);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--clr-wood-light);
}

/* Typography elements */
h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--clr-forest-dark);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--clr-forest-dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-light);
}

.section-subtitle {
    display: inline-block;
    color: var(--clr-wood-primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
}

/* =========================================
   Buttons
========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-wood-primary);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-forest-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hard);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--clr-white);
    color: var(--clr-white);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-forest-dark);
    transform: translateY(-3px);
}

.btn-text {
    color: var(--clr-wood-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    color: var(--clr-forest-dark);
}

.btn-whatsapp-large {
    background-color: var(--clr-whatsapp);
    color: white;
    font-size: 1.1rem;
    border-radius: 50px;
    padding: 1.2rem 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-whatsapp-large:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-main);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    /* Increased logo text size */
    font-weight: 700;
    color: var(--clr-white);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-bg-wrapper {
    background-color: #ffffff !important;
    padding: 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar.scrolled .logo-img {
    /* Filters removed to maintain white background */
}

.logo i {
    display: none;
    /* Hiding old icon */
}

.navbar.scrolled .logo {
    color: var(--clr-forest-dark);
}

.navbar.scrolled .logo-accent {
    color: var(--clr-wood-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--clr-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.navbar.scrolled .nav-links li a {
    color: var(--clr-text-main);
}

.nav-links li a:not(.btn):hover {
    color: var(--clr-wood-light);
}

.navbar.scrolled .nav-links li a:not(.btn):hover {
    color: var(--clr-wood-primary);
}

.nav-btn {
    padding: 0.6rem 1.5rem;
}

/* =========================================
   Language Dropdown Styles
========================================= */
.nav-lang-dropdown {
    position: relative;
    /* ensure li inherits flex alignment */
    display: flex;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--clr-white);
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    padding: 0;
}

.lang-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.lang-btn:hover {
    color: var(--clr-wood-light);
}

.lang-menu {
    position: absolute;
    top: 150%;
    right: 0;
    background-color: var(--clr-white);
    min-width: 150px;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
}

.nav-lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-dropdown.active .lang-btn i {
    transform: rotate(180deg);
}

.lang-menu li {
    margin: 0;
}

.nav-container .nav-links .lang-menu li a {
    color: var(--clr-text-main) !important;
    padding: 0.7rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-container .nav-links .lang-menu li a:hover {
    background-color: rgba(220, 150, 90, 0.1);
    /* light wood tint */
    color: var(--clr-wood-primary) !important;
}

.navbar.scrolled .lang-btn {
    color: var(--clr-text-main);
}

.navbar.scrolled .lang-btn:hover {
    color: var(--clr-wood-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-white);
    transition: var(--transition-fast);
}

.navbar.scrolled .menu-toggle .bar {
    background-color: var(--clr-forest-dark);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    background: url('assets/hero_construction.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

/* If local image isn't available, fallback to a nice solid color gradient */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--clr-forest-dark) 0%, transparent 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--clr-white);
    max-width: 800px;
}

.hero-content .subtitle {
    color: var(--clr-wood-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.hero-content p {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* =========================================
   About Section
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.about-brand-header .section-subtitle {
    margin-bottom: 0;
}

.about-logo-wrapper {
    display: flex;
    margin-bottom: 1rem;
    padding: 12px;
}

.about-large-logo {
    display: block;
    height: 120px;
    width: auto;
    opacity: 1;
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--clr-forest-dark);
}

.about-features i {
    color: var(--clr-wood-primary);
    font-size: 1.2rem;
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    padding-bottom: 100%;
    /* Use a placeholder background */
    background: linear-gradient(135deg, var(--clr-forest-light), var(--clr-forest-dark));
    overflow: hidden;
    box-shadow: var(--shadow-hard);
}

.about-img-bg {
    position: absolute;
    inset: 0;
    background: url('assets/about_us.png') center/cover;
    opacity: 0.8;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--clr-wood-primary);
    color: var(--clr-white);
    padding: 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 8px solid var(--clr-white);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Products Section & Tabs
========================================= */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--clr-wood-primary);
    color: var(--clr-forest-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
}

.tab-btn:hover {
    background-color: rgba(195, 141, 79, 0.1);
}

.tab-btn.active {
    background-color: var(--clr-wood-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-soft);
}

.tab-desc {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--clr-text-light);
}

.tab-pane {
    transition: opacity 0.4s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--clr-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-main);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hard);
}

.product-img {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Fallback / Mockup Backgrounds for new image classes */
.struct-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/pine_wood.png') center/cover, #b68b60;
}

.planed-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/pine_wood.png') center/cover, #cda77d;
}

.cladding-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/pine_wood.png') center/cover, #d2a46c;
}

.formwork-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/pine_wood.png') center/cover, #97785a;
}

.joinery-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/pine_wood.png') center/cover, #b98758;
}

.furniture-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/oak_wood.png') center/cover, #835c3b;
}

.panel-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/beech_wood.png') center/cover, #cbad8d;
}

.flooring-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/oak_wood.png') center/cover, #6e4c30;
}

.stairs-img {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('assets/beech_wood.png') center/cover, #8c5d33;
}

/* Quality Badges */
.quality-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--clr-forest-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.badge-premium {
    background-color: var(--clr-wood-primary);
    color: var(--clr-white);
}

.badge-economy {
    background-color: var(--clr-text-light);
    color: var(--clr-white);
}

.wood-species {
    font-size: 0.9rem;
    color: var(--clr-wood-primary);
    font-weight: 500;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.product-info p {
    flex: unset;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-examples {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    background-color: var(--clr-cream);
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid var(--clr-wood-primary);
    flex: 1;
}

.product-examples .example-title {
    font-weight: 600;
    color: var(--clr-forest-dark);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.product-examples .example-text {
    color: var(--clr-text-light);
    line-height: 1.4;
    display: block;
}

/* =========================================
   CTA Section
========================================= */
.cta {
    background-color: var(--clr-forest-dark);
    color: var(--clr-white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.cta h2 {
    color: var(--clr-white);
}

.cta p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* =========================================
   Footer
========================================= */
footer {
    background-color: #111;
    color: var(--clr-white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1.2rem;
    color: var(--clr-text-light);
    max-width: 300px;
}

.footer-brand .logo-bg-wrapper {
    display: inline-flex;
    margin-bottom: 1rem;
    background-color: #ffffff !important;
}

.footer-brand .logo-img {
    height: 60px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--clr-text-light);
}

.footer-links ul li a:hover {
    color: var(--clr-wood-light);
}

.footer-contact ul li {
    margin-bottom: 1rem;
    color: var(--clr-text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--clr-wood-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--clr-text-light);
    font-size: 0.9rem;
}

/* =========================================
   Floating WhatsApp
========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--clr-whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition-main);
    animation: bounce-subtle 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}

@keyframes bounce-subtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* =========================================
   Animations (Intersection Observer)
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.appear {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   Responsive Match
========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--clr-forest-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-main);
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links li a {
        color: var(--clr-white) !important;
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}