/* ===================================================================
   Vrystaat Solar Distributors — layout.css
   Containers, sections, hero, grids, dark bands, footer, responsive
   =================================================================== */

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .7rem 0 .8rem; }
.grid { display: grid; gap: 1.4rem; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; background: var(--grad-navy); color: #fff; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: -220px; background: radial-gradient(circle, rgba(245,166,35,.5), rgba(245,130,10,0) 62%); filter: blur(6px); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { background: var(--grad-solar); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: #ffd9a8; }
.hero .eyebrow::before { background: #FFB454; }
.hero-lead { color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.6vw, 1.22rem); margin: 1.1rem 0 1.8rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem 2.2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.14); }
.hero-trust .stat b { color: #fff; }
.hero-trust .stat span { color: rgba(255,255,255,.7); }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .glass { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 2rem; backdrop-filter: blur(10px); box-shadow: var(--sh-lg); width: min(100%, 420px); text-align: center; }
.hero-visual .glass img { margin-inline: auto; width: min(78%, 300px); filter: drop-shadow(0 16px 30px rgba(0,0,0,.4)); }
.hero-visual .badge-float { position: absolute; display: flex; align-items: center; gap: .55rem; background: #fff; color: var(--navy); border-radius: var(--r-pill); padding: .55rem .95rem; box-shadow: var(--sh-lg); font-family: var(--font-head); font-weight: 700; font-size: .84rem; }
.hero-visual .badge-float svg { width: 18px; height: 18px; color: var(--green); }
.hero-visual .b1 { top: 6%; left: -6%; }
.hero-visual .b2 { bottom: 8%; right: -4%; }
.hero-visual .b2 svg { color: var(--orange); }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--border); }
.trustbar .container { display: flex; align-items: center; justify-content: center; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.6rem; }
.trustbar .label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Why / feature list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { display: grid; gap: 1.1rem; }
.feature-row { display: flex; gap: 1rem; }
.feature-row .tick { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: rgba(63,125,59,.12); color: var(--green); display: grid; place-items: center; }
.feature-row .tick svg { width: 22px; height: 22px; }
.feature-row h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.feature-row p { font-size: .94rem; color: var(--text-soft); }

/* ---------- Process ---------- */
.process-grid { counter-reset: step; }
.pstep { position: relative; }
.pstep .num { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-solar); box-shadow: var(--sh-orange); margin-bottom: 1.1rem; }
.pstep h3 { margin-bottom: .45rem; }
.pstep p { font-size: .95rem; color: var(--text-soft); }

/* ---------- Dark band (agri / finance / CTA) ---------- */
.band { position: relative; color: #fff; background: var(--grad-navy); overflow: hidden; }
.band::before { content: ""; position: absolute; width: 620px; height: 620px; left: -160px; bottom: -260px; background: radial-gradient(circle, rgba(245,130,10,.4), transparent 60%); pointer-events: none; }
.band h2 { color: #fff; }
.band .eyebrow { color: #ffd9a8; }
.band .eyebrow::before { background: #FFB454; }
.band p { color: rgba(255,255,255,.82); }
.band .container { position: relative; z-index: 2; }
.band-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md); padding: 1.5rem; backdrop-filter: blur(6px); }
.band-card .icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #FFB454; margin-bottom: 1rem; }
.band-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: .4rem; }
.band-card p { color: rgba(255,255,255,.78); font-size: .94rem; }

/* Finance logos */
.fin-banks { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.fin-banks .bank { font-family: var(--font-head); font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; color: #fff; opacity: .92; padding: .5rem 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm); }

/* ---------- Quote form ---------- */
.quote-wrap { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--sh-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.quote-aside .feature-row { margin-bottom: 1.1rem; }

/* ---------- Final CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin: .6rem auto 1rem; }
.cta-band p { max-width: 52ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: clamp(3rem, 5vw, 4rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand-text b { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); font-size: .95rem; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.footer-links li { margin-bottom: .55rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex: 0 0 auto; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; }
.footer-social a:hover { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.footer-social svg { width: 20px; height: 20px; }
.footer-brand img { height: 54px; margin-bottom: 1rem; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .quote-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-drawer {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; box-shadow: var(--sh-lg);
    display: flex; flex-direction: column; gap: .2rem; padding: 1rem var(--gutter) 1.6rem;
    transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 99; border-bottom: 1px solid var(--border);
  }
  body.nav-open .nav-drawer { transform: translateY(0); }
  .nav-drawer a { padding: .85rem .6rem; font-family: var(--font-head); font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--grey-200); }
  .nav-drawer .btn { margin-top: .8rem; }
  .split, .g-2, .g-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-visual .badge-float { font-size: .76rem; }
}

/* Nav drawer hidden by default on desktop */
@media (min-width: 861px) { .nav-drawer { display: none; } }
