/* ==========================================================================
   GWPL Energy — site stylesheet (v2)
   Structure modeled on the WEBUILD template: sticky dark navbar, carousel
   hero with dark overlay caption, page-header banners on inner pages,
   offset service-icon circles, portfolio-style image hover boxes.
   Type:  Roboto (headings) / Open Sans (body) — the template's own pairing
   Color: Gold #C9A020 / Black #000000 / White #FFFFFF
   ========================================================================== */

:root {
    --gwpl-gold: #C9A020;
    --gwpl-gold-dark: #a3801a;
    --gwpl-black: #0b0b0b;
    --gwpl-white: #FFFFFF;
    --gwpl-ink: #222222;
    --gwpl-light: #F4F3EF;
    --gwpl-max-width: 1200px;
    --gwpl-heading-font: 'Roboto', 'Segoe UI', sans-serif;
    --gwpl-body-font: 'Open Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--gwpl-body-font);
    color: var(--gwpl-ink);
    background: var(--gwpl-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gwpl-black); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--gwpl-gold);
    outline-offset: 2px;
}
img { max-width: 100%; display: block; }

.container { max-width: var(--gwpl-max-width); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
    font-family: var(--gwpl-heading-font);
    font-weight: 700;
    margin: 0 0 0.6em;
    line-height: 1.25;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; text-align: justify; text-justify: inter-word; }
/* Justify only applies to left-aligned running text; short/UI text should stay left */
.eyebrow, .btn, .nav-links a, .gwpl-table th, .gwpl-table td, .footer-grid ul li, label, .hint,
.trust-item p, .portfolio-caption, .form-group .hint { text-align: left; }

.eyebrow {
    display: inline-block;
    font-family: var(--gwpl-heading-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gwpl-gold-dark);
    margin-bottom: 0.8em;
    position: relative;
    padding-left: 34px;
}
.eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 24px; height: 2px;
    background: var(--gwpl-gold);
}
.eyebrow.on-dark { color: var(--gwpl-gold); }

/* ---------- Topbar ---------- */
.topbar {
    background: var(--gwpl-black);
    color: #FFFFFF;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(201,160,32,0.25);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; padding: 8px 0; }
.topbar a { color: #FFFFFF; }
.topbar i { color: var(--gwpl-gold); margin-right: 8px; width: 14px; text-align: center; }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--gwpl-black);
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--gwpl-heading-font); color: var(--gwpl-white); font-size: 1.2rem; letter-spacing: 0.02em; }
.brand-text strong { color: var(--gwpl-gold); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    display: block;
    color: #FFFFFF;
    font-family: var(--gwpl-heading-font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 16px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gwpl-white); border-bottom-color: var(--gwpl-gold); }
.nav-cta { background: var(--gwpl-gold); color: var(--gwpl-black) !important; border-radius: 2px; margin-left: 8px; }
.nav-cta:hover { background: var(--gwpl-white) !important; border-bottom-color: transparent !important; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 1.1rem; padding: 6px 12px; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; }
.hero-slide {
    position: relative;
    height: 78vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,11,11,0.88) 0%, rgba(11,11,11,0.55) 55%, rgba(11,11,11,0.35) 100%);
}
.hero-slide .container { position: relative; z-index: 2; }
.hero-slide-inner { max-width: 640px; color: #fff; }
.hero-slide-inner h1 { color: #fff; }
.hero-slide-inner p.lead { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

.owl-theme .owl-dots { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; z-index: 3; }
.owl-theme .owl-dots .owl-dot span { background: rgba(255,255,255,0.4); width: 10px; height: 10px; }
.owl-theme .owl-dots .owl-dot.active span { background: var(--gwpl-gold); }
.owl-theme .owl-nav { display: none; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    height: 280px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    background-size: cover; background-position: center;
    position: relative;
}
.page-header::before { content: ""; position: absolute; inset: 0; background: rgba(11,11,11,0.72); }
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; margin-bottom: 0.3em; }
.page-header p { color: #FFFFFF; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--gwpl-heading-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 13px 30px;
    border: 1px solid var(--gwpl-gold);
    border-radius: 2px;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--gwpl-gold); color: var(--gwpl-black); }
.btn-primary:hover { background: var(--gwpl-gold-dark); border-color: var(--gwpl-gold-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--gwpl-black); border-color: var(--gwpl-black); }
.btn-outline-dark:hover { background: var(--gwpl-black); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.75rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--gwpl-light); }
.section-dark { background: var(--gwpl-black); color: rgba(255,255,255,0.8); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-narrow { max-width: 760px; margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Service items (offset icon circle) ---------- */
.service-item {
    background: #fff;
    border: 1px solid #eae6da;
    text-align: center;
    padding: 0 26px 30px;
    margin-top: 50px;
}
.service-icon {
    width: 90px; height: 90px;
    margin: -45px auto 20px;
    background: var(--gwpl-black);
    border: 3px solid var(--gwpl-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gwpl-gold);
    font-size: 1.8rem;
}

/* ---------- Cards ---------- */
.card { border-top: 3px solid var(--gwpl-gold); padding: 1.6rem 0 0; }

/* Numbered process — real 5-stage sequence only */
.process { display: flex; flex-direction: column; counter-reset: step; }
.process-step { counter-increment: step; display: grid; grid-template-columns: 60px 1fr; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid rgba(201,160,32,0.3); }
.process-step:last-child { border-bottom: 1px solid rgba(201,160,32,0.3); }
.process-step::before { content: counter(step, decimal-leading-zero); font-family: var(--gwpl-heading-font); font-size: 1.5rem; font-weight: 700; color: var(--gwpl-gold); }
.stage-list { list-style: none; margin: 0.8em 0 0; padding: 0; }
.stage-list li { position: relative; padding-left: 22px; margin-bottom: 12px; text-align: justify; }
.stage-list li::before { content: "\2022"; color: var(--gwpl-gold); font-weight: 700; position: absolute; left: 0; font-size: 1.1em; }


/* ---------- Portfolio-style image boxes (Products/Solar previews) ---------- */
.portfolio-box { position: relative; overflow: hidden; }
.portfolio-box img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.portfolio-box:hover img { transform: scale(1.08); }
.portfolio-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(11,11,11,0.9), transparent);
    color: #fff; padding: 30px 20px 16px;
}
.portfolio-caption h3 { color: #fff; margin: 0; font-size: 1.05rem; }
.portfolio-caption span { color: var(--gwpl-gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Trust markers strip (no fabricated stats — qualitative only) ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(201,160,32,0.3); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
.trust-item { background: var(--gwpl-black); color: #fff; padding: 2rem 1.5rem; text-align: center; }
.trust-item .eyebrow { padding-left: 0; }
.trust-item .eyebrow::before { display: none; }
.trust-item h4 { color: var(--gwpl-gold); font-family: var(--gwpl-heading-font); font-size: 1rem; margin-bottom: 0.4em; }
.trust-item p { color: #FFFFFF; font-size: 0.9rem; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: linear-gradient(rgba(11,11,11,0.85), rgba(11,11,11,0.85)), url('/assets/img/photos/terminal-storage-1.jpeg') center/cover;
    color: #fff; text-align: center; padding: 4.5rem 0;
}
.cta-banner h2 { color: #fff; }

/* ---------- Tables ---------- */
.gwpl-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gwpl-table th, .gwpl-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid #eae6da; vertical-align: top; }
.gwpl-table th { font-family: var(--gwpl-heading-font); color: var(--gwpl-gold-dark); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; border-bottom: 2px solid var(--gwpl-gold); }
.gwpl-table tr:hover td { background: rgba(201,160,32,0.05); }
.gwpl-table-striped tbody tr:nth-child(odd) td { background: #ffffff; }
.gwpl-table-striped tbody tr:nth-child(even) td { background: #f4efe1; }
.gwpl-table-striped tbody tr:hover td { background: rgba(201,160,32,0.16); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-family: var(--gwpl-heading-font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 6px; }
.form-group .hint { font-size: 0.78rem; color: #666; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], textarea, select {
    width: 100%; font-family: var(--gwpl-body-font); font-size: 1rem; padding: 11px 13px;
    border: 1px solid #ccc; background: #fff; color: var(--gwpl-ink); border-radius: 2px;
}
textarea { resize: vertical; min-height: 100px; }
.form-card { background: #fff; border: 1px solid #eae6da; border-top: 3px solid var(--gwpl-gold); padding: 2.2rem; max-width: 480px; margin: 0 auto; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 5px; }

.alert { padding: 12px 16px; border-left: 3px solid var(--gwpl-gold); background: rgba(201,160,32,0.08); font-size: 0.92rem; margin-bottom: 1.5rem; }
.alert-error { border-left-color: #a33; background: rgba(170,51,51,0.07); }
.alert-success { border-left-color: #2a7; background: rgba(34,170,119,0.07); }

/* ---------- Map ---------- */
.map-embed { width: 100%; height: 360px; border: 0; filter: grayscale(15%); }

/* ---------- Service area infographic (Contact page) ---------- */
.service-area {
    margin-top: 2rem; padding: 2rem 1.5rem; text-align: center;
    background: var(--gwpl-black); border-top: 3px solid var(--gwpl-gold);
}
.service-area > i.fa-globe-africa { font-size: 2.6rem; color: var(--gwpl-gold); margin-bottom: 0.6rem; }
.service-area h4 { color: #fff; font-family: var(--gwpl-heading-font); margin-bottom: 0.5em; }
.service-area p { color: rgba(255,255,255,0.7); font-size: 0.92rem; max-width: 380px; margin: 0 auto 1.4em; }
.service-area-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.service-area-stats > div { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.85); font-size: 0.85rem; text-align: left; }
.service-area-stats i { color: var(--gwpl-gold); font-size: 1.3rem; }
.service-area-stats strong { color: #fff; font-family: var(--gwpl-heading-font); }

/* ---------- Footer ---------- */
.site-footer { background: var(--gwpl-black); color: #FFFFFF; padding: 4rem 0 2rem; font-size: 0.9rem; position: relative; }
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--gwpl-gold); }
.site-footer h4 { font-family: var(--gwpl-heading-font); color: var(--gwpl-gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid ul li { margin-bottom: 0.6em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid #C9A020; margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-block; }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--gwpl-black); flex-direction: column; align-items: flex-start; padding: 10px 24px 20px; display: none; }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; }
    .grid-2 { gap: 1.5rem; }
}
