:root {
    --ink: #17211d;
    --muted: #66736c;
    --green: #1f8f5f;
    --green-dark: #146344;
    --steel: #d9e1df;
    --surface: #f4f7f5;
    --orange: #d57a2a;
}

body {
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
}

a { text-decoration: none; }

.site-navbar {
    background: rgba(16, 25, 22, .9);
    backdrop-filter: blur(12px);
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-right: 8px;
    border-radius: 6px;
    background: var(--green);
    color: #fff;
    font-size: .85rem;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 17, 14, .86), rgba(9, 17, 14, .42), rgba(9, 17, 14, .2)),
        url('../img/hero-metal-recycling.png') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.page-hero h1,
.detail-hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: .96;
    font-weight: 800;
    letter-spacing: 0;
    max-width: 900px;
}

.hero-section .lead {
    max-width: 680px;
    color: rgba(255, 255, 255, .84);
    margin: 22px 0 30px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: #65d99b;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.section-pad { padding: 88px 0; }
.surface { background: var(--surface); }

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: 0;
}

.feature-box,
.contact-card,
.info-panel,
.empty-state {
    height: 100%;
    padding: 28px;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
    background: #fff;
}

.feature-box i,
.contact-card i {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 8px;
    background: rgba(31, 143, 95, .12);
    color: var(--green);
    font-size: 1.35rem;
}

.feature-box p,
.contact-card p,
.detail-text {
    color: var(--muted);
}

.product-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    border: 1px solid #dde6e2;
    box-shadow: 0 16px 34px rgba(18, 32, 26, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(18, 32, 26, .14);
}

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

.product-card-body { padding: 24px; }
.product-card-body span {
    color: var(--green);
    font-size: .82rem;
    font-weight: 800;
}
.product-card-body h3 {
    margin: 8px 0 10px;
    font-size: 1.45rem;
    font-weight: 800;
}
.product-card-body p {
    color: var(--muted);
    min-height: 54px;
}

.cta-band,
.footer-band {
    background: #101916;
}

.cta-band {
    padding: 70px 0;
    color: #fff;
}

.cta-band h2 {
    font-weight: 800;
}

.cta-band p {
    color: rgba(255, 255, 255, .68);
    margin: 0;
}

.page-hero {
    padding: 150px 0 85px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(16, 25, 22, .9), rgba(16, 25, 22, .66)),
        url('../img/hero-metal-recycling.png') center/cover no-repeat;
}

.page-hero p,
.detail-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.15rem;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-hero {
    padding: 145px 0 80px;
    background: var(--surface);
}

.detail-hero p { color: var(--muted); }

.detail-image {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(18, 32, 26, .16);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.feature-list li {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    color: var(--muted);
}

.feature-list i { color: var(--green); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stats-grid div {
    padding: 30px;
    border-radius: 8px;
    background: var(--surface);
}

.stats-grid strong {
    display: block;
    color: var(--green-dark);
    font-size: 2.2rem;
}

.stats-grid span { color: var(--muted); }

.footer-links a {
    display: inline-block;
    color: rgba(255, 255, 255, .64);
    padding: 4px 0;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    box-shadow: 0 14px 32px rgba(37, 211, 102, .4);
    font-size: 1.6rem;
}

.admin-card {
    border: 1px solid #e0e7e3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(18, 32, 26, .08);
}

.admin-shell {
    min-height: 100vh;
    background: #eef3f0;
    padding: 34px 0;
}

.admin-thumb {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: #eef3f0;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    color: #fff;
    background: #101916;
}

.admin-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .74);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.admin-nav i {
    width: 22px;
    color: #65d99b;
}

.admin-sidebar-footer {
    margin-top: auto;
}

.admin-main {
    padding: 34px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-stat {
    height: 100%;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dfe7e3;
    box-shadow: 0 12px 28px rgba(18, 32, 26, .06);
}

.admin-stat i {
    color: var(--green);
    font-size: 1.6rem;
}

.admin-stat strong {
    display: block;
    margin-top: 12px;
    font-size: 2.2rem;
}

.admin-stat span {
    color: var(--muted);
}

.admin-action-card {
    display: flex;
    gap: 18px;
    height: 100%;
    padding: 26px;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dfe7e3;
    box-shadow: 0 14px 34px rgba(18, 32, 26, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-action-card:hover {
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(18, 32, 26, .12);
}

.admin-action-card > i {
    flex: 0 0 auto;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--green);
    font-size: 1.4rem;
}

.admin-action-card h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-action-card p {
    color: var(--muted);
    margin: 0;
}

.admin-table thead th {
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f7faf8;
}

.page-body {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--muted);
}

.simple-admin {
    min-height: 100vh;
    background: #eef3f0;
}

.simple-admin-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 24px;
    color: #fff;
    background: #101916;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.simple-admin-brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 800;
}

.simple-admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.simple-admin-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
}

.simple-admin-nav a:hover,
.simple-admin-nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .11);
}

.simple-admin-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 110px;
}

.simple-admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.simple-admin-title h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
}

.simple-admin-title p {
    margin: 5px 0 0;
    color: var(--muted);
}

.simple-help {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e7f7ee;
    color: #155f40;
    border: 1px solid #bfe8cf;
}

.live-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.live-page-tabs a {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #dfe7e3;
    font-weight: 700;
}

.live-page-tabs a.active,
.live-page-tabs a:hover {
    color: #fff;
    background: var(--green);
    border-color: var(--green);
}

.live-page {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #dfe7e3;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 32, 26, .07);
}

.live-label {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 8px;
    color: #fff;
    background: rgba(16, 25, 22, .78);
    font-size: .78rem;
    font-weight: 800;
}

.editable-text {
    display: block;
    width: fit-content;
    max-width: 100%;
    min-width: 70px;
    margin-bottom: 10px;
    padding: 4px 7px;
    border: 2px dashed rgba(31, 143, 95, .65);
    border-radius: 8px;
    outline: none;
    cursor: text;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.editable-text:hover,
.editable-text:focus {
    background: rgba(31, 143, 95, .08);
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 143, 95, .1);
}

.small-edit {
    display: inline-grid;
    min-width: 44px;
    margin: 0;
    place-items: center;
    color: #fff;
    background: var(--green);
    font-weight: 800;
}

.brand-edit {
    display: inline-block;
    margin: 0;
    font-weight: 800;
}

.eyebrow-edit {
    color: #65d99b;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
}

.eyebrow-edit.dark {
    color: var(--green);
}

.title-edit {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 800;
}

.title-edit.dark {
    color: var(--ink);
}

.lead-edit {
    color: rgba(255, 255, 255, .84);
    font-size: 1.15rem;
    line-height: 1.55;
}

.lead-edit.dark {
    color: var(--muted);
}

.heading-edit {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 800;
}

.body-edit {
    width: 100%;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.body-edit.light {
    color: rgba(255, 255, 255, .72);
}

.contact-edit {
    width: 100%;
    min-height: 76px;
    padding: 18px;
    color: var(--ink);
    background: #f7faf8;
    font-weight: 700;
}

.map-frame {
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #dfe7e3;
    background: #e7ece9;
    aspect-ratio: 16 / 6;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-url-edit {
    width: 100%;
    color: var(--ink);
    background: #f7faf8;
    font-family: Consolas, Monaco, monospace;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.live-navbar-preview {
    padding: 18px 24px;
}

.live-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.live-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-menu-note {
    color: var(--muted);
}

.live-fixed-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.whatsapp-pill {
    padding: 7px 10px;
    border-radius: 8px;
    color: #fff;
    background: #25d366;
}

.live-hero-preview {
    min-height: 520px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(9, 17, 14, .86), rgba(9, 17, 14, .38)),
        url('../img/hero-metal-recycling.png') center/cover no-repeat;
}

.live-hero-content {
    width: min(780px, 100%);
    padding: 96px 42px 70px;
}

.live-page-preview {
    padding: 72px 42px 44px;
}

.live-inner-hero-preview {
    min-height: 360px;
    padding: 120px 42px 70px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(16, 25, 22, .9), rgba(16, 25, 22, .66)),
        url('../img/hero-metal-recycling.png') center/cover no-repeat;
}

.simple-product-note {
    margin-top: 18px;
    padding: 18px;
    border-radius: 8px;
    background: #f4f7f5;
    color: var(--muted);
}

.live-footer-preview {
    padding: 58px 42px;
    color: #fff;
    background: #101916;
}

.button-edit {
    display: inline-block;
    width: fit-content;
    min-width: 120px;
    margin-right: 8px;
    padding: 10px 14px;
    color: #fff;
    background: var(--green);
    font-weight: 800;
}

.outline-button {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .72);
}

.light-button {
    color: var(--ink);
    background: #fff;
}

.dark-button {
    color: #fff;
    background: var(--ink);
}

.compact-title {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.card-title-edit {
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.card-text-edit {
    width: 100%;
    color: var(--muted);
    line-height: 1.55;
}

.stat-value-edit {
    color: var(--green-dark);
    font-size: 2.1rem;
    font-weight: 800;
}

.stat-label-edit {
    color: var(--muted);
}

.footer-preview-title {
    margin-bottom: 12px;
    font-weight: 800;
}

.footer-preview-links {
    color: rgba(255, 255, 255, .64);
    line-height: 1.8;
}

.footer-line-edit {
    color: rgba(255, 255, 255, .78);
}

.page-pick-card span {
    display: inline-block;
    margin-top: 12px;
    color: var(--green-dark);
    font-weight: 800;
}

.save-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 70;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dfe7e3;
    box-shadow: 0 18px 46px rgba(18, 32, 26, .18);
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    .section-pad { padding: 62px 0; }
    .hero-section h1,
    .page-hero h1,
    .detail-hero h1 {
        font-size: 2.65rem;
    }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static;
        height: auto;
    }
    .admin-main { padding: 22px; }
    .admin-topbar { align-items: flex-start; flex-direction: column; }
    .simple-admin-bar,
    .simple-admin-title,
    .live-navbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .simple-admin-main {
        width: min(100% - 20px, 1180px);
    }
    .live-hero-content,
    .live-page-preview,
    .live-footer-preview,
    .live-inner-hero-preview {
        padding: 70px 20px 34px;
    }
    .save-dock {
        width: calc(100% - 24px);
        justify-content: space-between;
    }
}
