:root {
    --navy: #073f5c;
    --navy-2: #0b526f;
    --blue: #087db8;
    --cyan: #26c6da;
    --ink: #102c3c;
    --muted: #607481;
    --light: #f4f8fa;
    --line: #dce8ed;
    --white: #ffffff;
    --success: #1b7f5d;
    --warning: #b77812;
    --danger: #b83a3a;
    --shadow-sm: 0 8px 28px rgba(8, 58, 84, .08);
    --shadow-md: 0 18px 50px rgba(8, 58, 84, .14);
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1180px;
    --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 1rem; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); }
h1 { font-size: clamp(2.75rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2.05rem, 4.3vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.74); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.align-center { align-items: center; }
.text-center { text-align: center; }
.max-copy { max-width: 720px; }
.max-copy.center { margin-inline: auto; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--cyan); }
.eyebrow-light { color: rgba(255,255,255,.82); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-head p { max-width: 560px; margin-bottom: 4px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    font-size: .92rem;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.button:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { color: var(--white); }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.button-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.button-small { min-height: 42px; padding-inline: 16px; font-size: .82rem; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-success { background: var(--success); border-color: var(--success); }

.skip-link { position: fixed; z-index: 9999; left: 16px; top: -100px; padding: 10px 16px; background: var(--white); border: 2px solid var(--navy); }
.skip-link:focus { top: 12px; }
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .76rem; }
.topbar-inner { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar-contact, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--cyan); }
.social-mini { display: flex; gap: 7px; }
.social-mini a { width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; justify-content: center; font-weight: 800; }
.navbar-wrap { background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(7,63,92,.08); }
.site-header { position: sticky; top: 0; z-index: 1000; transition: box-shadow var(--transition); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(7,63,92,.12); }
.navbar { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 78px; height: 78px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: .91rem; font-weight: 750; }
.primary-nav > a:not(.button) { position: relative; padding: 30px 0 27px; }
.primary-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: 21px; width: 0; height: 2px; background: var(--cyan); transition: width var(--transition); }
.primary-nav > a:not(.button):hover::after, .primary-nav > a.active::after { width: 100%; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--light); border-radius: 8px; color: var(--navy); }
.nav-toggle .close-icon { display: none; }
.nav-toggle.open .menu-icon { display: none; }
.nav-toggle.open .close-icon { display: block; }

.flash { position: relative; z-index: 900; border-bottom: 1px solid var(--line); background: #edf7fb; }
.flash-success { background: #e7f7f0; }
.flash-warning { background: #fff5df; }
.flash-error { background: #ffecec; }
.flash-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .9rem; }
.flash button { border: 0; background: transparent; font-size: 1.35rem; }

.hero { position: relative; min-height: 790px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::after { content: ""; position: absolute; z-index: 1; right: -110px; bottom: -180px; width: 480px; height: 480px; border: 80px solid rgba(38,198,218,.13); border-radius: 50%; pointer-events: none; }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { z-index: 0; background: var(--navy); }
.hero-slide { background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transform: scale(1.035); transition: opacity 1.1s ease, transform 7s ease; will-change: opacity, transform; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay { z-index: 1; background: linear-gradient(90deg, rgba(4,37,55,.97) 0%, rgba(5,50,73,.86) 47%, rgba(5,50,73,.18) 100%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 800px; padding: 82px 0 156px; }
.hero h1 { color: var(--white); max-width: 740px; }
.hero h1 span { color: var(--cyan); display: block; }
.hero-lead { max-width: 690px; color: rgba(255,255,255,.86); font-size: clamp(1.03rem, 1.7vw, 1.22rem); }
.hero-content > p:not(.hero-lead) { max-width: 700px; color: rgba(255,255,255,.65); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-slider-controls { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hero-slider-arrow { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; background: rgba(5,50,73,.42); color: var(--white); font-size: 1.1rem; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.hero-slider-arrow:hover, .hero-slider-arrow:focus-visible { background: var(--cyan); border-color: var(--cyan); color: var(--navy); transform: translateY(-2px); }
.hero-slider-dots { display: flex; align-items: center; gap: 8px; }
.hero-slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.42); transition: width var(--transition), border-radius var(--transition), background var(--transition); }
.hero-slider-dots button.is-active { width: 30px; border-radius: 999px; background: var(--cyan); }
.hero-slider-status { min-width: 58px; color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.hero-slider-status strong { color: var(--white); }
.hero-metrics { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.hero-metrics .container { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.97); color: var(--ink); box-shadow: var(--shadow-md); }
.hero-metric { padding: 26px 30px; border-right: 1px solid var(--line); }
.hero-metric:last-child { border: 0; }
.hero-metric strong { display: block; color: var(--navy); font-size: 1.15rem; }
.hero-metric span { color: var(--muted); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity .25s ease; transform: none; }
}

.page-hero { position: relative; overflow: hidden; padding: 106px 0 86px; background: var(--navy); color: var(--white); }
.page-hero::after { content: ""; position: absolute; right: -70px; top: -150px; width: 430px; height: 430px; border: 72px solid rgba(38,198,218,.13); border-radius: 50%; }
.page-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4.6rem); max-width: 820px; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 720px; font-size: 1.1rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: .8rem; color: rgba(255,255,255,.66); }
.breadcrumbs a:hover { color: var(--cyan); }

.intro-layout { grid-template-columns: 1.05fr .95fr; }
.media-frame { position: relative; }
.media-frame img { width: 100%; min-height: 500px; object-fit: cover; border-radius: var(--radius-lg); }
.media-frame::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 42%; height: 42%; border-right: 7px solid var(--cyan); border-bottom: 7px solid var(--cyan); border-radius: 0 0 30px 0; pointer-events: none; }
.content-card { padding: 44px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.inline-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0; }
.inline-fact { padding: 16px 18px; background: var(--light); border-left: 3px solid var(--cyan); }
.inline-fact strong { display: block; color: var(--navy); }
.inline-fact span { font-size: .82rem; color: var(--muted); }

.service-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card-image { height: 220px; overflow: hidden; background: var(--light); }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms ease; }
.service-card:hover img { transform: scale(1.045); }
.service-card-body { padding: 28px; }
.service-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-top: -54px; margin-bottom: 20px; position: relative; z-index: 2; background: var(--cyan); color: var(--navy); border: 5px solid var(--white); border-radius: 12px; font-size: 1.35rem; }
.service-card h3 { margin-bottom: 10px; }
.service-category { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; font-size: .88rem; }
.text-link:hover { color: var(--blue); gap: 12px; }

.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-list li { display: flex; gap: 12px; color: var(--ink); }
.feature-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(38,198,218,.18); color: var(--navy); margin-top: 2px; }
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 54px; align-items: center; }
.why-panel { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--radius-lg); background: url('../images/fiber-coverage.webp') center/cover; }
.why-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,63,92,.05), rgba(7,63,92,.88)); }
.why-panel-content { position: absolute; z-index: 2; left: 34px; right: 34px; bottom: 34px; color: var(--white); }
.why-panel-content h3 { color: var(--white); font-size: 1.9rem; }
.why-panel-content p { color: rgba(255,255,255,.76); }
.why-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.why-item .icon { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; }
.why-item h3 { font-size: 1.05rem; margin-bottom: 7px; }
.why-item p { font-size: .88rem; margin: 0; }

.project-card { position: relative; overflow: hidden; min-height: 380px; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow-sm); }
.project-card img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; transition: transform 500ms ease; }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(3,30,45,.9) 100%); }
.project-card:hover img { transform: scale(1.05); }
.project-card-content { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 25px; color: var(--white); }
.project-card-content h3 { color: var(--white); margin-bottom: 8px; }
.project-card-content p { color: rgba(255,255,255,.72); font-size: .86rem; margin-bottom: 15px; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .69rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.16); color: var(--white); backdrop-filter: blur(8px); }
.status-success { background: #e8f7ef; color: #196e53; }
.status-warning { background: #fff2d8; color: #8c5a09; }
.status-info { background: #e3f3fb; color: #0b628e; }
.status-muted { background: #edf1f3; color: #62727b; }
.project-card .status-badge { background: rgba(255,255,255,.16); color: var(--white); }

.process-grid { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.process-item { counter-increment: process; padding: 34px 28px; background: var(--navy); }
.process-item::before { content: counter(process, decimal-leading-zero); display: block; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .15em; margin-bottom: 35px; }
.process-item h3 { font-size: 1.1rem; color: var(--white); }
.process-item p { font-size: .86rem; margin: 0; }

.hsse-banner { display: grid; grid-template-columns: 1fr 1fr; min-height: 610px; background: var(--navy); }
.hsse-image { background: url('../images/hsse.webp') center/cover; min-height: 520px; }
.hsse-content { padding: 72px clamp(32px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.hsse-content h2 { color: var(--white); }
.hsse-content p { color: rgba(255,255,255,.72); }
.hsse-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 30px; }
.hsse-points span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: .88rem; }
.hsse-points .icon { color: var(--cyan); }

.coverage-card { padding: 52px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.coverage-map { min-height: 430px; position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, var(--navy), var(--blue)); }
.coverage-map::before, .coverage-map::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.coverage-map::before { width: 430px; height: 430px; left: -110px; top: -80px; box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); }
.coverage-map::after { width: 260px; height: 260px; right: -90px; bottom: -70px; }
.coverage-map-content { position: absolute; z-index: 2; inset: 0; padding: 50px; color: var(--white); display: flex; flex-direction: column; justify-content: end; }
.coverage-map-content .icon { width: 70px; height: 70px; color: var(--cyan); margin-bottom: auto; }
.coverage-map-content h3 { color: var(--white); font-size: 2rem; }
.coverage-map-content p { color: rgba(255,255,255,.75); max-width: 450px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat-item { padding: 34px; border-right: 1px solid var(--line); background: var(--white); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.7rem); line-height: 1; margin-bottom: 10px; }
.stat-item span { color: var(--muted); font-size: .84rem; }

.footer-cta { background: var(--blue); color: var(--white); }
.footer-cta-inner { min-height: 300px; display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.footer-cta h2 { color: var(--white); max-width: 720px; }
.footer-cta p { color: rgba(255,255,255,.78); max-width: 700px; }
.site-footer { background: #062f45; color: rgba(255,255,255,.72); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.55fr .8fr 1fr 1.25fr; gap: 48px; padding-bottom: 55px; }
.footer-grid h3 { color: var(--white); font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.footer-grid > div:not(.footer-brand) > a { display: block; margin-bottom: 10px; font-size: .88rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand img { width: 110px; height: 90px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.65); max-width: 390px; font-size: .9rem; }
.registration-chip { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.17); border-radius: 6px; font-size: .72rem; }
.footer-contact a, .footer-contact > span { display: flex !important; align-items: flex-start; gap: 10px; margin-bottom: 13px; }
.footer-contact .icon { color: var(--cyan); margin-top: 3px; }
.footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.footer-bottom div { display: flex; gap: 20px; }
.whatsapp-button { position: fixed; z-index: 800; right: 22px; bottom: 22px; width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: #1fa866; color: var(--white); font-weight: 900; box-shadow: var(--shadow-md); }
.scroll-top { position: fixed; z-index: 790; right: 24px; bottom: 88px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all var(--transition); }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: none; }

/* Internal content */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 48px; align-items: start; }
.detail-main img.hero-detail { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius); margin-bottom: 34px; }
.detail-main h2 { font-size: 2rem; margin-top: 36px; }
.detail-sidebar { position: sticky; top: 130px; }
.sidebar-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--light); margin-bottom: 22px; }
.sidebar-card h3 { font-size: 1.05rem; }
.detail-list { display: grid; gap: 12px; }
.detail-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: .88rem; }
.detail-list li:last-child { border: 0; padding: 0; }
.detail-list span { color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 15px; background: var(--light); border-radius: 8px; }
.check-item .icon { color: var(--blue); margin-top: 3px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius-sm); }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-pill { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .8rem; font-weight: 750; }
.filter-pill:hover, .filter-pill.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.empty-state { padding: 70px 25px; text-align: center; border: 1px dashed #b9cbd3; border-radius: var(--radius); background: var(--light); }

/* Forms */
.form-card { padding: clamp(26px, 5vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 800; color: var(--ink); }
.field label .required { color: var(--danger); }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cbd9df;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,125,184,.1); }
.field-hint { color: var(--muted); font-size: .74rem; }
.field-error { color: var(--danger); font-size: .76rem; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; }
.checkbox-row input { margin-top: 4px; }
.honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; }
.contact-panel { padding: 38px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.contact-panel h2, .contact-panel h3 { color: var(--white); }
.contact-panel p { color: rgba(255,255,255,.7); }
.contact-item { display: flex; gap: 14px; margin-top: 24px; }
.contact-item .icon { width: 24px; height: 24px; color: var(--cyan); }
.contact-item strong { display: block; }
.contact-item span, .contact-item a { color: rgba(255,255,255,.72); font-size: .88rem; }

/* Policy pages */
.prose { max-width: 850px; }
.prose h2 { font-size: 1.65rem; margin-top: 38px; }
.prose h3 { margin-top: 28px; }
.prose ul { list-style: disc; padding-left: 22px; color: var(--muted); margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }

/* Admin */
.admin-body { background: #edf3f6; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--navy); color: rgba(255,255,255,.72); padding: 24px 18px; }
.admin-logo { display: flex; align-items: center; gap: 12px; color: var(--white); margin-bottom: 30px; }
.admin-logo img { width: 48px; height: 48px; object-fit: contain; }
.admin-logo strong { display: block; }
.admin-logo span { display: block; font-size: .68rem; color: rgba(255,255,255,.58); }
.admin-nav { display: grid; gap: 6px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 8px; font-size: .86rem; font-weight: 700; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.11); color: var(--white); }
.admin-nav .icon { color: var(--cyan); }
.admin-main { min-width: 0; }
.admin-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.admin-topbar-actions { display: flex; align-items: center; gap: 16px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--light); color: var(--navy); font-weight: 900; }
.admin-content { padding: 30px; }
.admin-page-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.admin-page-head h1 { font-size: 2rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.admin-stat { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.admin-stat .icon { width: 28px; height: 28px; color: var(--blue); margin-bottom: 22px; }
.admin-stat strong { display: block; font-size: 1.8rem; color: var(--navy); }
.admin-stat span { color: var(--muted); font-size: .8rem; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px rgba(7,63,92,.04); overflow: hidden; margin-bottom: 24px; }
.admin-card-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.admin-card-head h2 { font-size: 1.05rem; margin: 0; }
.admin-card-body { padding: 22px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.data-table th { padding: 13px 14px; text-align: left; background: var(--light); color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-thumb { width: 65px; height: 46px; object-fit: cover; border-radius: 6px; }
.table-actions { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--navy); }
.icon-button:hover { background: var(--light); border-color: var(--blue); }
.icon-button.danger { color: var(--danger); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 22px; }
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, #052f45, #087db8); }
.admin-login-card { width: min(100%, 460px); padding: 42px; border-radius: 18px; background: var(--white); box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.admin-login-card img { width: 100px; height: 90px; object-fit: contain; margin: 0 auto 12px; }
.admin-login-card h1 { font-size: 1.8rem; text-align: center; }
.admin-login-card > p { text-align: center; }
.setup-notice { padding: 15px; background: #fff5df; border: 1px solid #efd6a3; border-radius: 8px; color: #76500f; font-size: .82rem; margin-bottom: 18px; }

/* Setup */
.setup-page { min-height: 100vh; padding: 60px 20px; background: var(--light); }
.setup-shell { width: min(100%, 860px); margin: auto; }
.setup-brand { text-align: center; margin-bottom: 28px; }
.setup-brand img { width: 110px; height: 100px; object-fit: contain; margin: auto; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.setup-step { padding: 13px; text-align: center; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }

@media (max-width: 1050px) {
    .topbar-right { display: none; }
    .primary-nav { gap: 18px; }
    .primary-nav .button { display: none; }
    .hero-metrics .container { grid-template-columns: repeat(2, 1fr); }
    .hero-metric:nth-child(2) { border-right: 0; }
    .hero-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .section { padding: 72px 0; }
    .topbar { display: none; }
    .navbar { min-height: 72px; }
    .brand img { width: 66px; height: 66px; }
    .nav-toggle { display: grid; place-items: center; }
    .primary-nav { position: absolute; left: 20px; right: 20px; top: 72px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); }
    .primary-nav.open { display: flex; }
    .primary-nav > a:not(.button) { padding: 12px; border-radius: 7px; }
    .primary-nav > a:not(.button)::after { display: none; }
    .primary-nav > a.active, .primary-nav > a:hover { background: var(--light); color: var(--blue); }
    .primary-nav .button { display: inline-flex; margin-top: 9px; }
    .hero { min-height: 820px; }
    .hero-overlay { background: linear-gradient(90deg, rgba(4,37,55,.96), rgba(5,50,73,.82)); }
    .hero-content { padding-top: 80px; }
    .intro-layout, .grid-2, .why-grid, .hsse-banner, .contact-layout, .detail-layout { grid-template-columns: 1fr; }
    .media-frame img { min-height: 380px; }
    .section-head { display: block; }
    .section-head p { margin-top: 15px; }
    .why-panel { min-height: 480px; }
    .hsse-content { padding: 58px 28px; }
    .detail-sidebar { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; z-index: 1300; left: -280px; width: 260px; transition: left var(--transition); }
    .admin-sidebar.open { left: 0; }
    .admin-content { padding: 22px 16px; }
    .admin-topbar { padding: 0 16px; }
    .admin-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
    .hero { min-height: 0; display: block; }
    .hero-content { padding: 62px 0 54px; }
    .hero-slider-controls { margin-top: 22px; }
    .hero-actions .button { width: 100%; }
    .hero-metrics .container { grid-template-columns: 1fr; }
    .hero-metric { border-right: 0; border-bottom: 1px solid var(--line) !important; padding: 16px 20px; }
    .hero-metric:last-child { border-bottom: 0 !important; }
    .hero-metrics { position: relative; }
    .grid-3, .grid-4, .why-items, .process-grid, .stat-grid, .form-grid, .check-grid, .gallery-grid, .hsse-points, .inline-facts { grid-template-columns: 1fr; }
    .project-card, .project-card img { min-height: 340px; }
    .process-grid { gap: 1px; }
    .coverage-card { padding: 24px; }
    .coverage-map-content { padding: 28px; }
    .footer-cta-inner { min-height: 390px; display: block; padding: 58px 0; }
    .footer-cta .button { margin-top: 15px; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px 0; }
    .admin-stats { grid-template-columns: 1fr; }
    .admin-page-head { align-items: flex-start; flex-direction: column; }
    .admin-login-card { padding: 28px 22px; }
    .setup-steps { grid-template-columns: 1fr; }
}
