/* ============================================
   LUXURY SAND INDUSTRIES - ECO / NATURE THEME
   ============================================ */

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

:root {
    --green-dark: #2d3f28;
    --green: #4a6741;
    --green-mid: #6b8c5e;
    --green-light: #8fa889;
    --green-pale: #c5d4bf;
    --stone: #788b8a;
    --stone-light: #96a8a7;
    --bg: #f4f2ed;
    --bg-warm: #eae6de;
    --bg-card: #ffffff;
    --text: #2d3f28;
    --text-light: #5a6b55;
    --text-muted: #8a9485;
    --border: #d8d4cb;
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --shadow-sm: 0 1px 3px rgba(45,63,40,0.06);
    --shadow-md: 0 4px 20px rgba(45,63,40,0.08);
    --shadow-lg: 0 10px 40px rgba(45,63,40,0.1);
    --radius: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 103, 65, 0.3);
}

.btn-outline {
    background: rgba(255,255,255,0.85);
    color: var(--green-dark);
    border-color: var(--green-pale);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(244, 242, 237, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(45,63,40,0.06);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-svg { flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
    border-radius: 50px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green);
    background: rgba(74, 103, 65, 0.08);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-dark);
    transition: all var(--transition);
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===========================
   HERO - Layered Background
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #dddbd4 0%, #d5d3ca 30%, #c8c7be 60%, var(--bg) 100%);
}

/* Layer 1: SVG illustrated scene (base, always present) */
.hero-scene {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Layer 2: Real photo (on top of SVG scene, optional) */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Layer 3: Overlay gradient for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: linear-gradient(
        135deg,
        rgba(244, 242, 237, 0.88) 0%,
        rgba(244, 242, 237, 0.7) 35%,
        rgba(244, 242, 237, 0.2) 65%,
        rgba(244, 242, 237, 0.05) 100%
    );
}

/* Clouds */
.cloud {
    position: absolute;
    background: rgba(255,255,255,0.6);
    border-radius: 50px;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 120px; height: 36px;
    top: 12%; left: 15%;
    animation: float-cloud 25s ease-in-out infinite;
}
.cloud-1::before { width: 50px; height: 50px; top: -25px; left: 20px; }
.cloud-1::after { width: 40px; height: 40px; top: -18px; left: 55px; }

.cloud-2 {
    width: 90px; height: 28px;
    top: 18%; right: 20%;
    animation: float-cloud 30s ease-in-out infinite reverse;
}
.cloud-2::before { width: 36px; height: 36px; top: -18px; left: 15px; }
.cloud-2::after { width: 30px; height: 30px; top: -12px; left: 42px; }

.cloud-3 {
    width: 70px; height: 22px;
    top: 8%; left: 55%;
    animation: float-cloud 20s ease-in-out infinite;
    opacity: 0.5;
}
.cloud-3::before { width: 28px; height: 28px; top: -14px; left: 12px; }
.cloud-3::after { width: 24px; height: 24px; top: -10px; left: 32px; }

@keyframes float-cloud {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* Mountains */
.mountain-bg {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    height: 50%;
}

/* Rock formation */
.rock-formation {
    position: absolute;
    width: 320px;
    height: 320px;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* Trees */
.trees {
    position: absolute;
    bottom: 14%;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 3;
}

.tree { position: absolute; }
.tree-1 { width: 55px; bottom: 10px; left: 8%; }
.tree-2 { width: 45px; bottom: 20px; left: 18%; }
.tree-3 { width: 30px; bottom: 5px; left: 26%; }
.tree-4 { width: 60px; bottom: 15px; left: 68%; }
.tree-5 { width: 28px; bottom: 0; left: 76%; }
.tree-6 { width: 50px; bottom: 25px; left: 84%; }
.tree-7 { width: 26px; bottom: 8px; right: 6%; }
.tree-8 { width: 48px; bottom: 30px; left: 38%; opacity: 0.6; }

/* Ground */
.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 16%;
    background: linear-gradient(180deg, #5a6b55 0%, #4a5c45 100%);
    z-index: 4;
}

/* Layer 4: Hero Content (top of everything) */
.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 140px;
    padding-bottom: 40px;
    max-width: 550px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(74, 103, 65, 0.1);
    border: 1px solid rgba(74, 103, 65, 0.2);
    border-radius: 50px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
    width: fit-content;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    color: var(--green-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.text-accent {
    color: var(--green);
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Eco Bar */
.eco-bar {
    position: relative;
    z-index: 10;
    margin-top: auto;
    background: var(--green-dark);
    padding: 20px 0;
}

.eco-bar-inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.eco-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green-pale);
    font-size: 0.85rem;
    font-weight: 500;
}

.eco-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-icon svg {
    color: var(--green-pale);
}

/* --- Page Header (Sub-pages) --- */
.page-header {
    position: relative;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
    padding: 140px 0 60px;
    overflow: hidden;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--green-dark);
    margin-top: 12px;
    margin-bottom: 12px;
}

.page-header .hero-description {
    margin-bottom: 0;
}

/* --- Section Common --- */
.section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(74, 103, 65, 0.08);
    color: var(--green);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* --- About / Company Section --- */
.about-section {
    background: var(--bg-warm);
}

.about-section .section-subtitle {
    max-width: 650px;
    line-height: 1.8;
}

.cin-card {
    text-align: center;
    margin-top: 28px;
    padding: 16px 28px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 50%;
    transform: translateX(-50%);
    border: 1px solid var(--border);
}

.cin-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.cin-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.5px;
}

/* --- Products Section --- */
.products-section {
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--border);
    padding: 32px 28px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-pale);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.product-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(74, 103, 65, 0.06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-header h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--green-dark);
}

.product-info p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Aggregate size tags */
.product-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.size-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(74, 103, 65, 0.08);
    color: var(--green);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Product uses list */
.product-uses {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-uses li {
    font-size: 0.82rem;
    color: var(--text-light);
    padding-left: 18px;
    position: relative;
}

.product-uses li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--green-light);
    border-radius: 50%;
}

/* --- Licence Cards --- */
.licence-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 850px;
    margin: 0 auto;
}

.licence-card {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    align-items: flex-start;
}

.licence-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-pale);
}

.licence-icon {
    width: 52px;
    height: 52px;
    background: rgba(74, 103, 65, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.licence-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 6px;
}

.licence-content p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

.licence-content strong {
    color: var(--text);
}

/* --- Compliance Section --- */
.compliance-section {
    background: var(--bg-warm);
}

.compliance-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.compliance-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.compliance-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-card);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--green-dark);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.compliance-link svg {
    flex-shrink: 0;
    color: var(--green-mid);
}

.compliance-link:hover {
    border-color: var(--green-mid);
    color: var(--green);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.compliance-link:hover svg {
    color: var(--green);
}

/* --- Footer --- */
.footer {
    background: var(--green-dark);
    color: var(--green-pale);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(197, 212, 191, 0.6);
}

.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: rgba(197, 212, 191, 0.5); }

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.footer-links a,
.footer-links li {
    font-size: 0.88rem;
    color: rgba(197, 212, 191, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--green-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.78rem;
    color: rgba(197, 212, 191, 0.35);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 28px 28px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -5px 0 30px rgba(45,63,40,0.1);
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

    .mobile-menu-btn { display: flex; }

    /* Hero mobile */
    .hero {
        min-height: 100svh;
    }

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

    .hero-content {
        padding-top: 100px;
        padding-bottom: 20px;
        max-width: 100%;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Overlay on mobile - readable text on top, scene visible at bottom */
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(244, 242, 237, 0.92) 0%,
            rgba(244, 242, 237, 0.75) 35%,
            rgba(244, 242, 237, 0.25) 65%,
            rgba(244, 242, 237, 0.05) 100%
        );
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    /* Scene elements smaller on mobile */
    .rock-formation {
        width: 150px;
        height: 150px;
        bottom: 22%;
    }

    .tree-1, .tree-6, .tree-8 { display: none; }
    .tree-2, .tree-7 { opacity: 0.5; }

    .trees { bottom: 16%; height: 120px; }
    .tree { transform: scale(0.7); }

    .ground { height: 14%; }

    /* Eco bar - horizontal scroll on mobile */
    .eco-bar {
        padding: 14px 0;
    }

    .eco-bar-inner {
        gap: 16px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0 8px;
        -webkit-overflow-scrolling: touch;
    }

    .eco-bar-inner::-webkit-scrollbar {
        display: none;
    }

    .eco-item {
        flex-shrink: 0;
        font-size: 0.75rem;
        gap: 8px;
    }

    .eco-icon {
        width: 34px;
        height: 34px;
    }

    .eco-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Sections */
    .section { padding: 50px 0; }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    /* Products */
    .products-grid {
        gap: 16px;
    }

    .product-card {
        padding: 24px 20px;
    }

    .product-header h3 {
        font-size: 1.05rem;
    }

    .product-info p {
        font-size: 0.84rem;
    }

    /* Page header (licences) */
    .page-header {
        padding: 110px 0 36px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    /* Licence cards */
    .licence-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .licence-content h3 {
        font-size: 0.92rem;
    }

    .licence-content p {
        font-size: 0.82rem;
    }

    /* Compliance */
    .compliance-grid {
        flex-direction: column;
        gap: 8px;
    }

    .compliance-column {
        min-width: unset;
    }

    .compliance-link {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    /* Footer */
    .footer {
        padding: 40px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand p {
        font-size: 0.82rem;
    }

    .footer-links h4 {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .footer-links a,
    .footer-links li {
        font-size: 0.82rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .hero h1 { font-size: 1.7rem; }
    .hero-content { padding-top: 90px; }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(244, 242, 237, 0.93) 0%,
            rgba(244, 242, 237, 0.7) 40%,
            rgba(244, 242, 237, 0.15) 70%,
            rgba(244, 242, 237, 0) 100%
        );
    }

    .rock-formation { width: 120px; height: 120px; bottom: 22%; }

    .logo-name { font-size: 0.95rem; }
    .logo-svg { width: 30px; height: 30px; }

    .product-card { padding: 20px 16px; }

    .section { padding: 40px 0; }
}
