/* =========================================================
   SolarElecs Renewables Ltd
   Palette taken from the logo: charcoal grey + gold
   ========================================================= */

:root {
  --charcoal: #3f4246;
  --charcoal-deep: #2b2d30;
  --charcoal-soft: #4c5055;
  --gold: #e9bd5c;
  --gold-bright: #f4d38c;
  --cream: #faf5ea;
  --paper: #fffdf8;
  --ink: #232527;
  --muted: #6e7276;
  --line: rgba(35, 37, 39, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(35, 37, 39, 0.45);
  --wrap: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  --font-narrow: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.45em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: #2a2b26;
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(43, 45, 48, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}

.brand-mark { width: 42px; height: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-narrow);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.brand-sub {
  font-family: var(--font-narrow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.header-cta { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: clamp(70px, 11vw, 132px) 0 clamp(58px, 8vw, 96px);
  overflow: hidden;
  background: var(--charcoal-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(30, 32, 34, 0.94) 0%, rgba(30, 32, 34, 0.82) 45%, rgba(30, 32, 34, 0.35) 100%),
    linear-gradient(to top, rgba(30, 32, 34, 0.9), rgba(30, 32, 34, 0) 55%);
}

.hero-inner { max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.eyebrow-dark { color: #b58c2c; }

.hero h1 { margin-bottom: 24px; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid var(--line-light);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.trust-inner p {
  margin: 0;
  padding: 24px 22px;
  font-size: 0.86rem;
  line-height: 1.4;
  text-align: center;
  border-left: 1px solid var(--line-light);
}
.trust-inner p:first-child { border-left: none; }
.trust-inner strong { color: #fff; display: block; font-size: 0.92rem; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }

.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 660px;
  margin-bottom: 54px;
}
.section-head h2 { margin-bottom: 18px; }

.section-lede {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 0;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(233, 189, 92, 0.6);
}

.card-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #b58c2c;
  margin-bottom: 16px;
}

.card h3 { font-size: 1.12rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- Feature (battery) ---------- */

.feature {
  background: var(--charcoal);
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0;
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.feature-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75);
}

.feature-copy h2 { color: #fff; }
.feature-copy p { color: rgba(255, 255, 255, 0.78); }

.ticks {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.9);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.feature-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6) !important;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.why-item h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.why-item p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* ---------- Process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

/* Two-column header: heading left, short intro right */
.process-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: 18px 56px;
  align-items: end;
  margin-bottom: 48px;
}

.process-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.99rem;
  line-height: 1.6;
}

.steps li {
  position: relative;
  padding: 30px 4px 0;
  border-top: 3px solid var(--gold);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.steps h3 { font-size: 1.02rem; margin-bottom: 10px; }
.steps p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */

.about {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(64px, 8vw, 104px) 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.about-mark img { width: 190px; height: auto; }

.about-copy { max-width: 70ch; }
.about-copy p { color: var(--muted); }
.about-copy h2 { color: var(--ink); }

.signature {
  margin-top: 26px !important;
  font-weight: 700;
  color: var(--ink) !important;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact { background: var(--cream); }

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

.contact-copy h2 { margin-bottom: 20px; }

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-line {
  display: block;
  text-decoration: none;
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.contact-line:hover { border-color: var(--gold); transform: translateY(-2px); }

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b58c2c;
  margin-bottom: 4px;
}

.contact-value {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  word-break: break-word;
}

/* ---------- Form ---------- */

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  color: #3c3f42;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(35, 37, 39, 0.18);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233, 189, 92, 0.28);
}

.field input.invalid,
.field textarea.invalid { border-color: #c8544a; }

.form .btn-block { margin-top: 6px; }

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

.form-error {
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b0433a;
  background: rgba(200, 84, 74, 0.08);
  border: 1px solid rgba(200, 84, 74, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}

.form-success {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(233, 189, 92, 0.14);
  border: 1px solid rgba(233, 189, 92, 0.5);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { font-size: 0.92rem; color: #4a4d50; }
.form-success .btn { margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 34px;
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-name {
  margin: 0;
  font-family: var(--font-narrow);
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
}
.footer-meta { margin: 2px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.footer-contact {
  display: grid;
  gap: 6px;
  text-align: right;
}
.footer-contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .process-head { grid-template-columns: 1fr; align-items: start; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-inner p:nth-child(3) { border-left: none; }
  .trust-inner p:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
  .feature-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-mark img { width: 120px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: flex; order: 3; }
  .header-cta { display: none; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--charcoal-deep);
    border-bottom: 1px solid var(--line-light);
    padding: 8px 28px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-light);
    border-left: none;
    font-size: 1rem;
  }
  .nav a:hover { border-bottom-color: var(--line-light); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .cards,
  .process-head,
  .steps,
  .why-grid,
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { gap: 8px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .btn:hover { transform: none; }
}

/* Location line under the contact intro */
.contact-area {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Recent work gallery */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.work-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.work-item:first-child { grid-column: 1 / -1; }

.work-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-item:first-child img { aspect-ratio: 3 / 2; }

.work-item figcaption { padding: 18px 20px 20px; }

.work-item h3 { margin: 0 0 6px; font-size: 1.02rem; }

.work-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-item:first-child img { aspect-ratio: 4 / 3; }
}

/* Customer review */
.review {
  margin: 40px 0 0;
  padding: 32px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.review-stars {
  color: #b58c2c;
  letter-spacing: 0.2em;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.review blockquote { margin: 0; }

.review blockquote p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--ink);
}

.review blockquote p:last-child { margin-bottom: 0; }

.review figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.9rem;
}

.review figcaption strong { color: var(--ink); }
.review figcaption span { color: var(--muted); }

/* FAQ accordion */
.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: #b58c2c;
  font-weight: 400;
}

.faq-list details[open] summary::after { content: "\2013"; }

.faq-list .answer { padding: 0 44px 22px 0; color: var(--muted); }
.faq-list .answer p { margin: 0; }

/* Service card icons */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(233, 189, 92, 0.16);
  color: #b58c2c;
}

.card-icon svg { width: 24px; height: 24px; }

/* Hosting note, shown just above the footer */
.sunshine {
  background: var(--charcoal);
  color: #e6e4de;
  padding: clamp(26px, 4vw, 40px) 0;
}

.sunshine-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sun-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold);
}

.sunshine p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 64ch;
}

.sunshine strong { color: var(--gold); font-weight: 700; }

@media (max-width: 520px) {
  .sunshine-inner { gap: 16px; }
  .sun-icon { width: 28px; height: 28px; }
}

/* Stop the sticky header covering a section when a nav link jumps to it */
html { scroll-padding-top: 92px; }
