/* ==========================================================================
   EcoBotRec – theme.css
   Palet baru: #F6F1EC (teks), #0C3F31 (bg), #FD8D14 (ikon/aksen)
   + Dark Mode support via [data-theme="dark"]
   ========================================================================== */

/* ── CSS Variables ── */
:root {
    /* Brand Palette */
    --clr-bg:        #0C3F31;
    --clr-bg-alt:    #0f4d3c;
    --clr-bg-card:   #134a3a;
    --clr-bg-card2:  #1a5c49;
    --clr-text:      #F6F1EC;
    --clr-text-muted:#b8c9c1;
    --clr-accent:    #FD8D14;
    --clr-accent2:   #e07b0e;
    --clr-green:     #2ecc71;
    --clr-green-dark:#22a85c;
    --clr-border:    rgba(246,241,236,0.12);
    --clr-shadow:    rgba(0,0,0,0.35);

    /* Surfaces */
    --surface-nav:   rgba(12,63,49,0.97);
    --surface-card:  #134a3a;
    --surface-input: #0f4d3c;
    --surface-footer:#071f18;

    /* Transitions & radius */
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  32px;
    --radius-full:9999px;
}

/* Light mode override (no [data-theme="dark"]) */
[data-theme="light"] {
    --clr-bg:        #F0F9F4;
    --clr-bg-alt:    #E8F5EE;
    --clr-bg-card:   #FFFFFF;
    --clr-bg-card2:  #F6FFF9;
    --clr-text:      #0C3F31;
    --clr-text-muted:#4a7a65;
    --clr-border:    rgba(12,63,49,0.12);
    --clr-shadow:    rgba(0,0,0,0.08);
    --surface-nav:   rgba(255,255,255,0.97);
    --surface-card:  #FFFFFF;
    --surface-input: #F6FFF9;
    --surface-footer:#0C3F31;
}

/* ── Base Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--clr-text); }
p { margin-bottom: 1rem; color: var(--clr-text-muted); }
a { color: var(--clr-accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--clr-accent2); }

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ══════════════════════════════════════════
   HEADER  (unified across all pages)
══════════════════════════════════════════ */
.ecob-header {
    background: var(--surface-nav);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--clr-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 24px var(--clr-shadow);
    transition: background 0.4s;
}
.ecob-header .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ecob-header-content {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.ecob-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--clr-text);
    letter-spacing: -0.3px;
}
.ecob-logo span { color: var(--clr-accent); }

/* Desktop Nav */
.ecob-nav { display: flex; gap: 28px; align-items: center; }
.ecob-nav-link {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}
.ecob-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--clr-accent);
    transition: var(--transition);
    border-radius: 2px;
}
.ecob-nav-link:hover,
.ecob-nav-link.active { color: var(--clr-text); }
.ecob-nav-link:hover::after,
.ecob-nav-link.active::after { width: 100%; }

/* Header right area */
.ecob-header-right { display: flex; align-items: center; gap: 12px; }

/* Dark mode toggle button */
.dark-mode-toggle {
    background: none;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-full);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--clr-text);
    font-size: 1rem;
    transition: var(--transition);
}
.dark-mode-toggle:hover { background: var(--clr-bg-card2); border-color: var(--clr-accent); }

/* Hamburger */
.ecob-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1101;
}
.ecob-hamburger span {
    display: block;
    width: 24px; height: 2.5px;
    background: var(--clr-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.ecob-hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ecob-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ecob-hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Mobile Menu ── */
.ecob-mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background: var(--clr-bg);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 1100;
    overflow-y: auto;
}
.ecob-mobile-menu.open { right: 0; }
.ecob-mobile-menu-content {
    padding: 88px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Dark mode toggle inside mobile menu */
.mobile-dm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--clr-border);
    margin-bottom: 8px;
}
.mobile-dm-toggle span { color: var(--clr-text); font-weight: 500; font-size: 0.95rem; }
.dm-switch {
    position: relative;
    width: 44px; height: 24px;
}
.dm-switch input { opacity: 0; width: 0; height: 0; }
.dm-slider {
    position: absolute;
    inset: 0;
    background: var(--clr-bg-card2);
    border-radius: 34px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--clr-border);
}
.dm-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: var(--clr-text);
    border-radius: 50%;
    transition: 0.3s;
}
.dm-switch input:checked + .dm-slider { background: var(--clr-accent); }
.dm-switch input:checked + .dm-slider::before { transform: translateX(20px); }

.ecob-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.97rem;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--clr-border);
    transition: all 0.25s ease;
}
.ecob-mobile-link:hover { background: var(--clr-bg-card2); color: var(--clr-text); }
.ecob-mobile-link.active { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }
.ecob-mobile-link svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   FOOTER  (unified)
══════════════════════════════════════════ */
.ecob-footer {
    background: var(--surface-footer);
    padding: 72px 0 36px;
    color: var(--clr-text-muted);
    border-top: 1px solid var(--clr-border);
}
.ecob-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ecob-footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 52px;
}
.ecob-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--clr-text);
    margin-bottom: 14px;
}
.ecob-footer-logo span { color: var(--clr-accent); }
.ecob-footer-desc { font-size: 0.88rem; line-height: 1.75; margin-bottom: 22px; }
.ecob-footer-social { display: flex; gap: 10px; }
.ecob-social-link {
    width: 38px; height: 38px;
    background: rgba(246,241,236,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    color: var(--clr-text);
}
.ecob-social-link:hover { background: var(--clr-accent); transform: translateY(-3px); }
.ecob-footer-title {
    color: var(--clr-text);
    font-weight: 700;
    margin-bottom: 22px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}
.ecob-footer-title::after {
    content: '';
    position: absolute;
    bottom: -7px; left: 0;
    width: 36px; height: 2.5px;
    background: var(--clr-accent);
    border-radius: 2px;
}
.ecob-footer-links { list-style: none; }
.ecob-footer-links li { margin-bottom: 10px; }
.ecob-footer-links a { color: var(--clr-text-muted); font-size: 0.88rem; transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.ecob-footer-links a:hover { color: var(--clr-accent); padding-left: 5px; }
.ecob-footer-contact { list-style: none; }
.ecob-footer-contact li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.ecob-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid var(--clr-border);
    font-size: 0.82rem;
    text-align: center;
}
.ecob-footer-bottom-links { display: flex; gap: 20px; }
.ecob-footer-bottom-links a { color: var(--clr-text-muted); font-size: 0.8rem; transition: 0.3s; }
.ecob-footer-bottom-links a:hover { color: var(--clr-accent); }

/* ══════════════════════════════════════════
   SHARED BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.2px;
}
.btn-primary { background: var(--clr-accent); color: #fff; }
.btn-primary:hover { background: var(--clr-accent2); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(253,141,20,0.35); color: #fff; }
.btn-secondary { background: transparent; color: var(--clr-text); border: 1.5px solid var(--clr-border); }
.btn-secondary:hover { background: var(--clr-bg-card2); color: var(--clr-text); }
.btn-white { background: #fff; color: var(--clr-accent); }
.btn-white:hover { background: var(--clr-accent); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ══════════════════════════════════════════
   SECTION HEADER SHARED
══════════════════════════════════════════ */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(253,141,20,0.15);
    color: var(--clr-accent);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--clr-text);
}
.section-description { color: var(--clr-text-muted); max-width: 680px; margin: 0 auto; line-height: 1.75; }

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════ */
@media (max-width: 992px) {
    .ecob-nav { display: none; }
    .ecob-hamburger { display: flex; }
    .ecob-footer-content { grid-template-columns: 1fr; gap: 40px; }
    .ecob-footer-bottom { flex-direction: column; }
}
@media (max-width: 576px) {
    .ecob-logo { font-size: 1.2rem; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 1rem; }
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-bg-card2); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--clr-accent); }

::selection { background: var(--clr-accent); color: #fff; }
