/* Agri Power & Water Ltd. Loaded by the XBase.Net.Web page shell (Page.Layout) via /site.css.
   The shell wraps every page in .wrap and renders a logo-only .site-header; both are restyled
   here so the brochure can run full-bleed. */

:root {
    --apw-navy: #0b1f44;
    --apw-blue: #1a5da0;
    --apw-blue-dark: #144a80;
    --apw-sage: #7d9a82;
    --apw-cream: #f7f4ec;
    --apw-mist: #e9efe6;
    --apw-text: #2b3440;
    --apw-radius: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
body {
    margin: 0;
    background: var(--apw-cream);
    color: var(--apw-text);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--apw-blue); }
h1, h2, h3 { margin: 0; }
p { margin: 0 0 1rem; }

/* ---- Shell overrides (.wrap / .site-header come from XBase.Net.Web.Page.Layout) ---- */
.wrap { max-width: none; margin: 0; padding: 0; }
.site-header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
    box-shadow: 0 1px 12px rgba(11, 31, 68, .08);
    padding-inline: var(--apw-gutter);
    height: var(--apw-header-h); display: flex; align-items: center;  /* fixed so .site-nav can dock exactly beneath */
}
.site-header a { display: inline-flex; align-items: center; text-decoration: none; color: var(--apw-navy); }
/* Logo hangs below the header: absolutely positioned against the (sticky) header so it overlaps the
   menu bar, and on wider screens the hero photo. The white disc backs the transparent logo so the
   navy lettering stays legible over the photo (invisible against the white header/menu). */
.site-header img {
    position: absolute; top: 6px; left: var(--apw-gutter);
    width: var(--apw-logo); height: var(--apw-logo);
    background: #fff; border-radius: 50%;
    box-shadow: 0 4px 16px rgba(11, 31, 68, .22);
}
.site-header a::after { content: "Agri Power & Water Ltd"; margin-left: calc(var(--apw-logo) + .75rem); font-weight: 600; letter-spacing: .01em; font-size: 1.4rem; white-space: nowrap; }
@media (max-width: 575px) { .site-header a::after { font-size: 1.15rem; } }
@media (max-width: 380px) { .site-header a::after { font-size: 1rem; } }
@media (max-width: 340px) { .site-header a::after { font-size: .9rem; } }

/* ---- Menu: in-body bar that docks under the (sticky) shell header ---- */
:root {
    --apw-header-h: 60px;  /* shell header height - .site-nav docks at this offset */
    --apw-logo: 112px;
    --apw-gutter: max(1rem, calc((100vw - 1140px) / 2 + 1rem));  /* left edge of .container content */
}
@media (max-width: 575px) { :root { --apw-logo: 80px; } }
.site-nav {
    position: sticky; top: var(--apw-header-h); z-index: 9;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
    border-top: 1px solid rgba(11, 31, 68, .06);
    border-bottom: 3px solid var(--apw-sage);
}
.site-nav-inner { display: flex; justify-content: center; gap: .25rem 1.75rem; flex-wrap: wrap; }
/* Narrow screens: the hanging logo overlaps the menu bar, so keep the links clear of it */
@media (max-width: 767px) { .site-nav .site-nav-inner { justify-content: flex-end; gap: .25rem .8rem; padding-left: calc(var(--apw-logo) + var(--apw-gutter) + .5rem); flex-wrap: nowrap; white-space: nowrap; } .site-nav a { font-size: .85rem; } }
@media (min-width: 768px) { .site-nav-inner { justify-content: flex-end; } }
.site-nav a { padding: .55rem .25rem; color: var(--apw-navy); text-decoration: none; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.site-nav a:hover, .site-nav a:focus { color: var(--apw-blue); border-bottom-color: var(--apw-blue); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: 1rem; }
.center { text-align: center; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 70vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11, 31, 68, .62) 0%, rgba(11, 31, 68, .25) 55%, rgba(11, 31, 68, .05) 100%);
}
.hero-content { position: relative; padding-block: 4rem; }
.hero h1 { font-weight: 300; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.hero .lead { font-size: 1.25rem; max-width: 34rem; margin: 1.25rem 0 2rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: .7rem 1.75rem; border: 2px solid var(--apw-blue); border-radius: 2rem; font-size: 1.1rem; text-decoration: none; text-align: center; }
.btn-apw { background: var(--apw-blue); color: #fff; }
.btn-apw:hover, .btn-apw:focus { background: var(--apw-blue-dark); border-color: var(--apw-blue-dark); color: #fff; }
.btn-outline-apw { background: transparent; color: var(--apw-blue); }
.btn-outline-apw:hover, .btn-outline-apw:focus { background: var(--apw-blue); color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; margin: 1.5rem 0; }
@media (min-width: 576px) { .btn-row { flex-direction: row; } }

/* ---- Sections ---- */
.section-pad { padding-block: 4rem; }
.section-title { color: var(--apw-navy); font-weight: 300; font-size: clamp(1.6rem, 3.5vw, 2.25rem); text-align: center; margin-bottom: 2.25rem; }
.section-title::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--apw-sage); border-radius: 2px; margin: .75rem auto 0; }
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }

.service-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card {
    background: #fff; border-radius: var(--apw-radius); padding: 1.75rem 1.5rem; min-height: 7rem;
    border-top: 4px solid var(--apw-sage); box-shadow: 0 6px 24px rgba(11, 31, 68, .06);
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.service-card h3 { font-size: 1.15rem; font-weight: 500; color: var(--apw-navy); }

.band-soft { background: var(--apw-mist); }
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; } }
.rounded { border-radius: 1.25rem; }
.shadow-soft { box-shadow: 0 10px 34px rgba(11, 31, 68, .14); }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--apw-sage); }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery-img { width: 100%; height: 100%; min-height: 11rem; max-height: 22rem; object-fit: cover; border-radius: var(--apw-radius); box-shadow: 0 6px 24px rgba(11, 31, 68, .1); }
.gallery .g-wide { grid-column: span 2; }
@media (min-width: 768px) {
    .gallery { grid-template-columns: repeat(12, 1fr); }
    .gallery .gallery-img { grid-column: span 4; }
    .gallery .g-wide { grid-column: span 8; }
}

.band-contact { background: #fff; border-top: 1px solid rgba(11, 31, 68, .06); }

.footer-apw { background: var(--apw-navy); color: rgba(255, 255, 255, .75); padding-block: 1.5rem; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; gap: .5rem; justify-content: space-between; }
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
