/*
Theme Name: Domestic & Industrial Solar
Theme URI: https://solar.disltd.co.uk
Author: Digital Image Solutions Ltd
Description: Fast, accessible WooCommerce theme for Domestic & Industrial Solar.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: dis-solar
*/

:root {
  --navy: #072d4f;
  --blue: #087fc3;
  --blue-dark: #05649a;
  --green: #54b948;
  --green-dark: #317e31;
  --ink: #102131;
  --muted: #5f6f7c;
  --line: #dce5ea;
  --mist: #f3f7f9;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 45, 79, .12);
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--navy); font-weight: 750; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: 12px; clip: auto; background: #fff; }

.topbar { padding: 8px 0; color: #dcecf7; background: var(--navy); font-size: .86rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(7,45,79,.09); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 800; }
.brand img, .custom-logo { width: min(320px, 34vw); height: 64px; object-fit: contain; object-position: left center; }
.nav-toggle { display: none; border: 0; padding: 9px 12px; color: #fff; background: var(--navy); border-radius: 8px; font: inherit; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 23px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--blue); }
.cart-link { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }

.button, button, input[type="submit"], .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; color: #fff !important; background: var(--blue) !important; border: 0 !important; border-radius: 999px !important; font: inherit; font-weight: 750 !important; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover, button:hover, input[type="submit"]:hover, .woocommerce a.button:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }
.button-green { background: var(--green) !important; }
.button-green:hover { background: var(--green-dark) !important; }
.button-ghost { color: #fff !important; background: transparent !important; border: 1px solid rgba(255,255,255,.5) !important; }

.hero { position: relative; min-height: 670px; display: grid; align-items: center; overflow: hidden; background: var(--navy) url('assets/images/solar-hero.jpg') center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,29,53,.94) 0%, rgba(3,29,53,.78) 38%, rgba(3,29,53,.12) 72%, rgba(3,29,53,.05) 100%); }
.hero-content { position: relative; width: min(680px, 100%); padding: 92px 0; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; color: #bfeab8; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--green); border-radius: 5px; }
.hero h1 { color: #fff; }
.hero p { max-width: 600px; color: #e7f0f5; font-size: clamp(1.06rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -38px; position: relative; z-index: 2; }
.trust-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.trust-card strong { display: block; color: var(--navy); font-size: 1.05rem; }
.trust-card span { color: var(--muted); font-size: .92rem; }
.section { padding: 92px 0; }
.section-mist { background: var(--mist); }
.section-heading { max-width: 730px; margin-bottom: 38px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: #fff; background: var(--blue); border-radius: 14px; font-size: 1.35rem; }
.feature p { color: var(--muted); margin-bottom: 0; }
.steps { counter-reset: steps; }
.step { position: relative; padding: 30px 26px 26px 72px; background: #fff; border-radius: var(--radius); box-shadow: 0 8px 26px rgba(7,45,79,.08); counter-increment: steps; }
.step::before { content: counter(steps); position: absolute; top: 27px; left: 24px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-weight: 800; }
.notice { padding: 22px 24px; background: #fff8e1; border-left: 5px solid #e6ad2f; border-radius: 8px; }
.cta { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 30px; padding: 48px; color: #fff; background: linear-gradient(135deg, var(--navy), #0c5e92); border-radius: 26px; }
.cta h2 { color: #fff; }
.cta p { color: #d9e9f3; margin-bottom: 0; }
.cta .hero-actions { justify-content: flex-end; margin-top: 0; }

.page-hero { padding: 74px 0 62px; background: linear-gradient(145deg, var(--navy), #095c8f); }
.page-hero h1, .page-hero p { color: #fff; }
.entry-content { padding: 70px 0 90px; }
.entry-content h2 { margin-top: 1.3em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content li { margin-bottom: .45em; }
.faq details { margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { color: var(--navy); font-weight: 750; cursor: pointer; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
input, textarea, select { width: 100%; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #bac8d0; border-radius: 8px; font: inherit; }
label { display: block; margin-bottom: 14px; font-weight: 700; }

.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(7,45,79,.06); }
.woocommerce ul.products li.product img { border-radius: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--navy); font-size: 1.2rem; }
.woocommerce ul.products li.product .price { color: var(--green-dark); font-size: 1.1rem; font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--green-dark); }
.woocommerce .quantity .qty { width: 74px; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--blue); }
.woocommerce-message::before { color: var(--blue); }

.site-footer { padding: 62px 0 24px; color: #cbd9e2; background: #061f35; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 42px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

@media (max-width: 840px) {
  .topbar .wrap { display: block; text-align: center; }
  .topbar .wrap span:last-child { display: none; }
  .header-inner { min-height: 70px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open, .site-nav ul { display: block; }
  .site-nav li { margin: 10px 0; }
  .cart-link { display: inline-block; margin-top: 10px; }
  .hero { min-height: 620px; background-position: 64% center; }
  .hero::before { background: rgba(3,29,53,.78); }
  .trust-row, .grid-3, .woocommerce ul.products, .footer-grid, .contact-grid, .cta { grid-template-columns: 1fr !important; }
  .trust-row { margin-top: 20px; }
  .section { padding: 68px 0; }
  .cta { padding: 34px 26px; }
  .cta .hero-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .brand img, .custom-logo { width: min(230px, 62vw); height: 50px; }
  .hero { min-height: 580px; }
  .hero-content { padding: 62px 0; }
  .hero-actions .button { width: 100%; }
}
