/*
    MUM Coir Industry - Redesign
    UI/UX and Frontend Architecture by GitHub Copilot
    Date: 2026-06-10
*/

:root {
    /* Color Palette (Preserved) */
    --ink: #151515;
    --muted: #5f625f;
    --line: #e5e1d8;
    --paper: #fffdf8;
    --soft: #f5f1e8;
    --accent: #11624f;
    --accent-bg: rgba(17, 98, 79, 0.08);
    --accent-border: rgba(17, 98, 79, 0.18);
    --white: #ffffff;
    --shadow-color: rgba(20, 28, 22, 0.1);

    /* Layout & Spacing */
    --container-width: 1600px;
    --container-padding: 4%;
    /* Replaces calc(100% - 32px) for more fluid feel */
    --section-padding: clamp(4rem, 8vw, 8rem) 0;
    --grid-gap: clamp(1rem, 2vw, 2rem);
    --border-radius: 12px;

    /* Typography */
    --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-sm: 0.9rem;
    --line-height-base: 1.7;

    /* Transitions */
    --transition-fast: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 1. GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background: var(--paper);
    color: var(--ink);
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ink);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: var(--section-padding);
    border-top: 1px solid var(--line);
}

.kicker {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-head {
    max-width: 840px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-head p {
    font-size: var(--font-size-lg);
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

/* 2. HEADER & NAVIGATION */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    flex-shrink: 0;
}

.brand span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    gap: clamp(1rem, 3vw, 2.5rem);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    border: 2px solid var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    color: var(--ink);
}

.btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--white);
}

@media (hover: hover) {
    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .btn.secondary:hover {
        background: var(--ink);
        color: var(--white);
    }

    .btn.whatsapp:hover {
        background: #128C7E;
        border-color: #128C7E;
    }
}

/* 3. HERO SECTION */
.hero {
    padding: clamp(1rem, 2vw, 1.5rem) 0 var(--section-padding);
    border-top: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: var(--font-size-lg);
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--grid-gap);
}

.metric {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition-fast);
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px var(--shadow-color);
}

.metric strong {
    display: block;
    font-size: 1.75rem;
    color: var(--accent);
}

.metric span {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.hero-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    margin-top: -140px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 18px 45px var(--shadow-color);
    aspect-ratio: 1 / 1;
}

.hero-media img:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 3 / 4;
}

.hero-media img:nth-child(2) {
    aspect-ratio: 1 / 1;
}

.hero-media img:nth-child(3) {
    aspect-ratio: 1 / 1;
}

/* 4. ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--muted);
    max-width: 60ch;
}

.info-panel {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(20, 28, 22, 0.06);
}

.info-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.list {
    list-style: none;
}

.list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.list li:last-child {
    border-bottom: 0;
}

/* 5. GALLERY SECTION */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: var(--grid-gap);
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.gallery-item-1 {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 5 / 9;
    grid-row: 1 / 2;
}

.gallery-item-3 {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
}

.gallery-item-4 {
    grid-column: 5 / 13;
    grid-row: 2 / 3;
}


/* 6. PRODUCTS SECTION */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--grid-gap);
}

.product-card {
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(20, 28, 22, 0.06);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px var(--shadow-color);
    }
}

.product-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.product-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.product-card-content p {
    color: var(--muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.text-link {
    font-weight: 700;
    color: var(--accent);
    display: inline-block;
    margin-top: auto;
}

/* 7. SPECIFICATIONS SECTION */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

.spec-card {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    background: var(--white);
}

.spec-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.spec-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.spec-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
}

.spec-card ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

.spec-card ul li:last-child {
    border-bottom: none;
}

/* 8. FAQ SECTION */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    background: var(--white);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

/* 9. CONTACT SECTION */
.contact {
    background: var(--soft);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(250, 248, 242, 0.93),
            rgba(250, 248, 242, 0.93)),
        url('images/coconuts/pexels-tijana-drndarski-449691-4294738.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    pointer-events: none;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--grid-gap);
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px var(--shadow-color);
}

.contact-info {
    padding: clamp(1.5rem, 5vw, 4rem);
}

.contact-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--muted);
    max-width: 45ch;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-details p strong {
    display: inline;
    color: var(--ink);
}

.contact-address-block {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-address-block strong {
    flex-shrink: 0;
}

.contact-address-block .address {
    margin: 0;
    color: var(--muted);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-detail-item p {
    margin-bottom: 0;
}

.phone-list {
    display: flex;
    flex-direction: column;
}

.phone-list a {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--muted);
}

.contact-form {
    padding: clamp(1.5rem, 5vw, 4rem);
    background: var(--paper);
}

form {
    display: grid;
    gap: 1rem;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font: inherit;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg);
}

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

/* 10. FOOTER */
.footer {
    padding: 4rem 0;
    background: var(--ink);
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--grid-gap);
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 40ch;
}

.footer-brand .brand {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted);
}

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

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
}

/* 11. RESPONSIVENESS */
/* 11. RESPONSIVENESS */
.mobile-contact-bar {
    display: none;
}

/* --- Tablets and Small Desktops --- */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-media {
        order: -1;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
    }

    .hero-media img:first-child {
        grid-row: auto;
    }

    .about-grid,
    .spec-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile Redesign (<=768px) --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }

    /* --- BRANDING --- */
    .brand {
        font-size: 1.1rem;
    }

    .brand span {
        font-size: 0.7rem;
    }

    /* --- NAVIGATION --- */
    .nav-links,
    .nav .btn.secondary {
        display: none;
    }

    /* --- HERO SECTION --- */
    .hero {
        padding: 1rem 0 2rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content h1 {
        font-size: clamp(1.75rem, 8vw, 2.75rem);
        margin-bottom: 0.75rem;
    }

    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 50px;
    }

    /* Restoring Trust Strip Mobile */
    .trust-strip {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .metric {
        flex: 1;
        padding: 0.75rem 0.5rem;
        text-align: center;
    }

    .metric strong {
        font-size: 1rem;
    }

    .metric span {
        font-size: 0.65rem;
        margin-top: 0.25rem;
    }

    /* Hero images - tight collage */
    .hero-media {
        order: 1;
        /* Below content */
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-top: 0;
    }

    .hero-media img {
        aspect-ratio: 1 / 1;
        border-radius: 8px;
    }

    .hero-media img:first-child {
        grid-column: 1 / 3;
        aspect-ratio: 16 / 9;
    }

    /* --- ABOUT SECTION --- */
    .about-image {
        display: none;
        /* Hide large image to save space */
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    .info-panel {
        padding: 1.5rem;
    }

    /* --- GALLERY SECTION --- */
    .section-head {
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .section-head h2 {
        font-size: 1.75rem;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-grid img {
        flex: 0 0 85%;
        height: 240px;
        scroll-snap-align: center;
        border-radius: 12px;
    }

    /* Disable grid positioning */
    .gallery-item-1,
    .gallery-item-2,
    .gallery-item-3,
    .gallery-item-4 {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* --- PRODUCTS SECTION --- */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        flex-direction: row;
        align-items: center;
        min-height: 120px;
    }

    .product-card img {
        width: 100px;
        height: 120px;
        flex-shrink: 0;
        border-radius: 12px 0 0 12px;
    }

    .product-card-content {
        padding: 1rem;
    }

    .product-card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .product-card-content p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* --- OTHER SECTIONS --- */
    .spec-card,
    .faq-item {
        padding: 1.25rem;
    }

    .contact-grid {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    /* --- FOOTER & CONTACT BAR --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-brand .brand {
        margin: 0;
    }

    .mobile-contact-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 253, 248, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
    }

    .mobile-contact-bar .btn {
        min-height: 48px;
        font-size: 0.9rem;
    }

    body {
        padding-bottom: 80px;
    }
}

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

    * {
        animation: none !important;
        transition: none !important;
    }
}