/* =============================================================
   PREMIERCHEM — STYLESHEET
   Sections:
    1.  Variables & Reset
    2.  Base & Utilities
    3.  Navbar
    4.  Hero
    5.  About
    6.  Services Slider
    7.  Division
    8.  Slider Card
    9.  Bio Energy
   10.  3F+ Concept
   11.  Contact
   12.  Map
   13.  Footer
   14.  Bio Conclusion
   15.  Hamburger
   16.  Social Media
   17.  Responsive — tablet  (max-width: 1024px)
   18.  Responsive — mobile  (max-width: 768px)
   19.  Responsive — small   (max-width: 480px)
============================================================= */


/* ===================== 1. VARIABLES & RESET ===================== */

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

:root {
    --primary:                #003366;
    --secondary:              #1e73be;
    --accent:                 #0b8c8f;
    --text-dark:              #333;
    --text-light:             #555;
    --section-padding:        120px;
    --section-padding-tablet: 90px;
    --section-padding-mobile: 60px;
    --container-padding:      60px;
    --container-padding-mobile: 20px;

    /* Typography scale */
    --text-xs:   11px;   /* label kecil, caption */
    --text-sm:   13px;   /* body kecil, card desc */
    --text-base: 15px;   /* body utama */
    --text-md:   17px;   /* subheading ringan */
    --text-lg:   22px;   /* section subheading */
    --text-xl:   28px;   /* section heading mobile */
    --text-2xl:  36px;   /* section heading desktop */
    --text-3xl:  48px;   /* hero heading */

    /* Line heights */
    --lh-tight:  1.25;
    --lh-normal: 1.6;
    --lh-loose:  1.85;

    /* Font weights */
    --fw-regular: 400;
    --fw-medium:  500;
    --fw-bold:    700;
}

html {
    color-scheme: light only;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* prevent iOS font inflation */
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-loose);
    background: #f4f7fb;
    color: #0e0e0e;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}


/* ===================== 2. BASE & UTILITIES ===================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

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

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}


/* ===================== 3. NAVBAR ===================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px var(--container-padding);
    transition: background 0.4s, box-shadow 0.4s;
    z-index: 1000;
    background: transparent;
}

.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo img {
    height: 65px;
    width: auto;
}

.navbar ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

.navbar.scrolled a {
    color: var(--text-dark);
}

.navbar a:hover {
    color: var(--secondary);
}

.navbar a.active {
    color: var(--secondary);
    font-weight: 700;
}


/* ===================== 4. HERO ===================== */

.hero-video {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    line-height: var(--lh-tight);
}

.hero-content p {
    font-size: clamp(13px, 2vw, 16px);
    opacity: 0.85;
    line-height: var(--lh-loose);
}

/* Contact page hero */
.hero-contact {
    padding: 150px var(--container-padding-mobile) 100px;
    text-align: center;
    background:
        linear-gradient(rgba(67,69,70,0.92), rgba(255,255,255,0.92)),
        url("contact-bg.jpg");
    background-size: cover;
    background-position: center;
}

.hero-contact h1 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.hero-contact p {
    font-size: var(--text-sm);
    color: #555;
}


/* ===================== 5. ABOUT ===================== */

.about {
    padding: var(--section-padding) var(--container-padding-mobile) 80px;
    background: #ffffff;
    display: flex;
    justify-content: center;
}

.about .container {
    max-width: 850px;
    background: #f7f9fc;
    padding: 40px 50px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.about h2 {
    text-align: center;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
    margin-bottom: 25px;
}

.about p {
    font-size: var(--text-base);
    line-height: var(--lh-loose);
    text-align: justify;
    color: #444;
    margin-bottom: 16px;
}

.about p:last-child {
    margin-bottom: 0;
}


/* ===================== 6. SERVICES SLIDER ===================== */

.services {
    padding: var(--section-padding) var(--container-padding) 100px;
    text-align: center;
    background: #f6f8fb;
}

.services h2 {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
    margin-bottom: 15px;
}

.division-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.8;
    color: var(--text-light);
}

/* Base service card */
.service-card {
    position: relative;
    background: white;
    padding: 40px 30px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: transform 0.35s, box-shadow 0.35s;
    cursor: pointer;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* Base image layer — slide-up animation */
.service-image {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: bottom 0.5s;
}

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

.service-card:hover .service-image { bottom: 0; }
.service-card:hover .service-text  { opacity: 0; }

/* Services slider — side-by-side layout, no slide-up */
.services .slider {
    padding: 20px 0;
}

.services .slider .service-card {
    min-width: calc(50% - 18px);
    max-width: calc(50% - 18px);
    height: 270px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.services .service-text {
    width: 55%;
    padding: 25px;
    z-index: 2;
    text-align: left;
}

.services .service-text h3 {
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
}

.services .service-text p {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    text-align: justify;
    text-justify: inter-word;
    color: #444;
}

/* Image is static in services layout — always visible */
.services .service-image {
    position: relative;
    width: 45%;
    height: 100%;
    bottom: 0;
}

/* Text stays visible on hover */
.services .service-card:hover .service-text { opacity: 1; }

/* Read more toggle */
.services .full-text { display: none; }

.services .service-card.active .full-text  { display: inline; }
.services .service-card.active .short-text { display: none; }

/* When expanded, allow card height to grow */
.services .slider .service-card.active {
    height: auto;
    align-items: flex-start;
}

.read-more {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-weight: var(--fw-medium);
    font-size: var(--text-xs);
    letter-spacing: 0.3px;
    padding: 0;
    display: inline-block;
}


/* ===================== 7. DIVISION ===================== */

.division {
    padding: var(--section-padding) 0;
    background: #f6f8fb;
}

.primary-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 70px;
    padding: 0 var(--container-padding-mobile);
}

.primary-header h2 {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
    margin-bottom: 15px;
}

.primary-header p {
    font-size: var(--text-sm);
    line-height: var(--lh-loose);
    color: var(--text-light);
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.division-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.division-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.division-content {
    padding: 30px;
    max-width: 500px;
    margin: auto;
}

.division-content h3 {
    color: var(--primary);
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    letter-spacing: -0.1px;
    margin-bottom: 10px;
    text-align: center;
}

.division-content p {
    color: var(--text-light);
    line-height: 1.7;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}


/* ===================== 8. SLIDER CARD ===================== */

.slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
}

.slider::-webkit-scrollbar { display: none; }

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 16px;
    transition: background 0.2s;
}

.slide-btn:hover { background: var(--secondary); }

.prev { left: -20px; }
.next { right: -20px; }

.slider .division-card {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.slider .division-card img  { height: 200px; }

.slider .division-content   { padding: 15px; text-align: center; }

.slider .division-content h3 {
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    margin-bottom: 5px;
    color: #1e293b;
}

.slider .division-content p {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    color: var(--text-light);
}


/* ===================== 9. BIO ENERGY ===================== */

.bio-energy {
    padding: var(--section-padding) 0;
    background: #eef3f9;
}

.bio-energy .division-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: auto;
    align-items: stretch;
}

.bio-energy .division-card {
    border-radius: 22px;
    padding: 0;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bio-energy .division-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.bio-energy .division-content {
    padding: 28px 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bio-energy .division-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    color: #fff;
    text-align: left;
}

.bio-energy .division-content p {
    font-size: var(--text-sm);
    line-height: var(--lh-loose);
    color: rgba(255,255,255,0.92);
    text-align: left;
    flex: 1;
}

.bio-energy .division-card:nth-child(1) { background: #0b5fa5; }
.bio-energy .division-card:nth-child(2) { background: #0b8c8f; }

.bio-energy .bio-read-more {
    display: none;
}


/* ===================== 10. 3F+ CONCEPT ===================== */

.concept-3f {
    padding: var(--section-padding) 0;
    background: #f5f7fa;
}

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

.concept-header h2 {
    font-size: clamp(20px, 4vw, 30px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.3px;
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* --- Card hover-reveal style (Danantara) --- */
.concept-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.concept-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.concept-card:hover img {
    transform: scale(1.06);
}

/* Icon badge — selalu tampil */
.concept-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 3;
    transition: opacity 0.3s ease;
}

.concept-card:hover .concept-icon {
    opacity: 0;
}

/* Overlay default: gradient tipis di bawah untuk judul */
.concept-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    /* default: gelap di bawah aja buat judul */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 40%,
        rgba(0,0,0,0.72) 100%
    );
    transition: background 0.4s ease;
}

/* Hover: full hitam cover seluruh card */
.concept-card:hover .concept-overlay {
    background: rgba(0, 0, 0, 0.82);
}

/* Judul — default di bawah, hover naik ke atas */
.concept-overlay h3 {
    color: #fff;
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    letter-spacing: -0.1px;
    margin: 0;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.concept-card:hover .concept-overlay h3 {
    transform: translateY(-12px);
}

/* Deskripsi — default tersembunyi di bawah, hover slide-up muncul */
.concept-overlay-desc {
    color: rgba(255,255,255,0.88);
    font-size: var(--text-sm);
    line-height: var(--lh-loose);
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: max-height 0.45s ease, opacity 0.4s ease 0.05s, transform 0.4s ease 0.05s;
}

.concept-card:hover .concept-overlay-desc {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

/* --- Modal (hanya aktif di mobile, via JS) --- */
.concept-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
}

.concept-modal-backdrop.open {
    display: flex;
}

.concept-modal {
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 36px 28px 48px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.concept-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
}

.concept-modal-close:hover {
    background: #e0e0e0;
}

.concept-modal-icon {
    width: 56px;
    height: 56px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.concept-modal-title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    letter-spacing: -0.3px;
    color: var(--primary);
    margin-bottom: 16px;
}

.concept-modal-desc {
    font-size: var(--text-sm);
    line-height: var(--lh-loose);
    color: var(--text-light);
}


/* ===================== 11. CONTACT ===================== */

.contact {
    padding: 80px 0;
    background: #f9f9f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info { max-width: 500px; }

.contact-info h3 {
    margin-top: 25px;
    margin-bottom: 8px;
    font-size: var(--text-base);
    color: #111;
    font-weight: var(--fw-bold);
    letter-spacing: -0.1px;
}

.contact-info p {
    line-height: var(--lh-loose);
    color: #444;
    margin-bottom: 10px;
    font-size: var(--text-sm);
}

.contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.contact-form h2 {
    margin-bottom: 24px;
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
    color: var(--primary);
}

.form-group { margin-bottom: 18px; }

.form-group label {
    font-weight: var(--fw-medium);
    display: block;
    margin-bottom: 6px;
    font-size: var(--text-xs);
    letter-spacing: 0.2px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
}

.form-group textarea { height: 130px; resize: vertical; }

.contact-form button {
    margin-top: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover { background: var(--secondary); }


/* ===================== 12. MAP ===================== */

.map {
    padding: 80px 20px;
    text-align: center;
}

.map h2 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
    margin-bottom: 30px;
}

.map-container iframe {
    width: 100%;
    max-width: 900px;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}


/* ===================== 13. FOOTER ===================== */

.footer {
    background: linear-gradient(180deg, #002a55 0%, #001a38 60%, #000f22 100%);
    color: #b8cfe8;
    padding: 50px 30px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    margin-bottom: 15px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-col p {
    font-size: var(--text-xs);
    line-height: var(--lh-loose);
    color: #90b4d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #7aa0c0;
}


/* ===================== 14. BIO CONCLUSION ===================== */

.bio-conclusion {
    padding: var(--section-padding) var(--container-padding-mobile);
    background: linear-gradient(135deg, #4B5A0B, #136c11);
    color: #A7D129;
    text-align: center;
}

.bio-conclusion .container {
    max-width: 900px;
    margin: auto;
}

.bio-conclusion h2 {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 15px;
}

.bio-conclusion p {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.9;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
}

.conclusion-line {
    width: 60px;
    height: 4px;
    background: #A7D129;
    margin: 20px auto 40px;
    border-radius: 3px;
}


/* ===================== 15. HAMBURGER ===================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    display: block;
}

/* On hero pages navbar starts transparent — make hamburger visible over dark bg */
.hero-video + * ~ header .menu-toggle span,
.navbar:not(.scrolled) .menu-toggle span {
    background: white;
}

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


/* ===================== 16. SOCIAL MEDIA ===================== */

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0 10px;
    flex-wrap: wrap;
}

.social-title {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #90b4d4;
    margin-bottom: 4px;
}

.social-media a {
    color: white;
    font-size: 22px;
    transition: color 0.3s, transform 0.3s;
}

.social-media a:hover {
    color: #00bfff;
    transform: translateY(-4px);
}


/* ===================== 17. RESPONSIVE — TABLET (max-width: 1024px) ===================== */

@media (max-width: 1024px) {

    :root {
        --section-padding:      var(--section-padding-tablet);
        --container-padding:    40px;
    }

    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services .slider .service-card {
        min-width: calc(60% - 10px);
        max-width: calc(60% - 10px);
    }
}


/* ===================== 18. RESPONSIVE — MOBILE (max-width: 768px) ===================== */

@media (max-width: 768px) {

    :root {
        --section-padding:   var(--section-padding-mobile);
        --container-padding: var(--container-padding-mobile);
    }

    /* --- Navbar --- */
    .navbar {
        padding: 14px 20px;
    }

    .logo img {
        height: 48px;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar ul {
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .navbar ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .navbar ul li a {
        display: block;
        padding: 16px 20px;
        color: #333;
        font-size: 15px;
    }

    .navbar ul.active {
        display: flex;
    }

    /* --- Hero --- */
    .hero-contact {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    /* --- About --- */
    .about .container {
        padding: 30px 24px;
    }

    /* --- Services --- */
    .services {
        padding: var(--section-padding-mobile) var(--container-padding-mobile) 60px;
    }

    .services .slider .service-card {
        flex-direction: column;
        height: auto;
        min-width: 85vw;
        max-width: 85vw;
        align-items: stretch;
    }

    .services .service-text {
        width: 100%;
        padding: 20px;
    }

    .services .service-image {
        position: relative;
        width: 100%;
        height: 180px;
        bottom: 0;
    }

    /* Read more visible on mobile */
    .services .read-more {
        display: inline-block;
        margin-top: 12px;
        color: var(--secondary);
        font-size: var(--text-xs);
        font-weight: var(--fw-medium);
        letter-spacing: 0.4px;
        text-decoration: underline;
        text-decoration-color: rgba(0,0,0,0.25);
        text-underline-offset: 3px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    /* Card height auto when expanded on mobile */
    .services .slider .service-card.active {
        height: auto;
    }

    /* --- Division grids --- */
    .division-grid {
        grid-template-columns: 1fr;
    }

    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .bio-energy .division-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bio-energy .division-card img {
        height: 220px;
    }

    .bio-energy .division-content {
        padding: 22px 22px 26px;
    }

    .bio-energy .division-content h3 {
        font-size: var(--text-lg);
    }

    /* Truncate long text on mobile */
    .bio-energy .division-content p {
        font-size: var(--text-sm);
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bio-energy .division-card.expanded .division-content p {
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .bio-energy .bio-read-more {
        display: inline-block;
        margin-top: 14px;
        color: rgba(255,255,255,0.85);
        font-size: var(--text-xs);
        font-weight: var(--fw-medium);
        letter-spacing: 0.4px;
        text-decoration: underline;
        text-decoration-color: rgba(255,255,255,0.4);
        text-underline-offset: 3px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    /* --- Slider --- */
    .slider {
        padding: 16px 4px;
    }

    .slider .division-card {
        min-width: 80vw;
        max-width: 80vw;
    }

    .division-content p {
        text-align: left;
        hyphens: none;
    }

    /* --- Contact --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px 20px;
    }

    .contact-info {
        max-width: 100%;
    }

    /* --- Map --- */
    .map-container iframe {
        height: 300px;
    }

    /* --- Footer --- */
    .footer {
        padding: 40px 20px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 15px;
    }

    /* --- Social --- */
    .social-media {
        gap: 16px;
    }

    .social-media a {
        font-size: 20px;
    }
}


/* ===================== 19. RESPONSIVE — SMALL (max-width: 480px) ===================== */

@media (max-width: 480px) {

    .services .slider .service-card {
        min-width: 92vw;
        max-width: 92vw;
    }

    .slider .division-card {
        min-width: 88vw;
        max-width: 88vw;
    }

    .about .container {
        padding: 24px 16px;
    }

    .contact-form {
        padding: 20px 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    .map-container iframe {
        height: 250px;
    }
}
