/* Sunwright Energy — bold & colorful corporate site */

:root {
  --ink:        #12141C;
  --ink-soft:   #464C63;
  --cream:      #FFF6EC;
  --white:      #FFFFFF;
  --orange:     #FF5A1F;
  --yellow:     #FFC300;
  --teal:       #00B3A0;
  --violet:     #4A1FD9;
  --line:       3px solid var(--ink);
  --shadow:     6px 6px 0 var(--ink);
  --shadow-sm:  4px 4px 0 var(--ink);
  --radius:     14px;
  --pad:        clamp(1.25rem, 5vw, 4rem);
  --display: "Bricolage Grotesque", "Archivo", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 1.6rem + 5.5vw, 6rem); }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem); }

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

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.lede {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--white);
  margin-bottom: 1.25rem;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 999; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; top: 0; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.5rem;
  border: var(--line); border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--orange { background: var(--orange); }
.btn--white  { background: var(--white); }
.btn--ink    { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--yellow); }
.btn--ink:hover { box-shadow: 6px 6px 0 var(--yellow); }
.btn--lg { font-size: 1.125rem; padding: 1.05rem 2rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.03em; text-decoration: none;
}
.logo__mark {
  width: 36px; height: 36px; flex: none;
  border: var(--line); border-radius: 50%;
  background: var(--orange);
  display: grid; place-items: center;
}
.logo__mark span {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--yellow); border: 2px solid var(--ink);
}

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 3px solid transparent;
}
.nav a:hover { background: var(--white); border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--teal); border-color: var(--ink); }
.nav .btn { margin-left: 0.5rem; }

.burger {
  display: none;
  width: 48px; height: 48px; padding: 0;
  background: var(--white); border: var(--line); border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 3px; margin: 3px auto;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--cream); border-bottom: var(--line);
    padding: 1rem var(--pad) 1.5rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 0.75rem 1rem; font-size: 1.125rem; }
  .nav .btn { margin: 0.5rem 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { border-bottom: var(--line); background: var(--cream); overflow: hidden; }
.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; } }

.hero h1 .hl {
  background: var(--yellow);
  border: var(--line); border-radius: 10px;
  padding: 0 0.2em; display: inline-block;
  transform: rotate(-1.5deg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem; margin-top: 3rem;
}
.stat {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1;
  letter-spacing: -0.04em;
}
.stat span { font-size: 0.9375rem; color: var(--ink-soft); }

/* ---------- Color band sections ---------- */
.band { border-bottom: var(--line); }
.band--violet { background: var(--violet); color: var(--white); }
.band--violet .eyebrow { background: var(--yellow); color: var(--ink); }
.band--teal   { background: var(--teal); }
.band--orange { background: var(--orange); }
.band--ink    { background: var(--ink); color: var(--white); }
.band--ink .eyebrow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.band--white  { background: var(--white); }

/* ---------- Cards ---------- */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
.card {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.card__icon {
  width: 56px; height: 56px; flex: none; margin-bottom: 0.75rem;
  border: var(--line); border-radius: 14px;
  display: grid; place-items: center;
}
.card__icon--yellow { background: var(--yellow); }
.card__icon--teal   { background: var(--teal); }
.card__icon--orange { background: var(--orange); }
.card__icon--violet { background: var(--violet); }
.card h3 { line-height: 1.15; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }

/* Explicit column counts so a 4-item row never orphans its last card */
@media (min-width: 1040px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
.card li { margin-bottom: 0.35rem; }
.card__price {
  margin-top: auto; padding-top: 1.25rem;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  background: var(--yellow); border: var(--line); border-radius: 50%;
}
.step h3 { font-size: 1.1875rem; line-height: 1.15; }
.step p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }

/* ---------- Quote ---------- */
.quote {
  border: var(--line); border-radius: var(--radius);
  background: var(--yellow); color: var(--ink);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}
.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  line-height: 1.2; letter-spacing: -0.02em;
}
.quote cite { font-style: normal; font-weight: 600; font-size: 0.9375rem; }

/* ---------- Split / team ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.person {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); overflow: hidden; box-shadow: var(--shadow-sm);
}
.person__photo { aspect-ratio: 4 / 3; display: grid; place-items: center; border-bottom: var(--line); }
.person__body { padding: 1.25rem 1.35rem 1.5rem; }
.person h3 { margin-bottom: 0.15rem; font-size: 1.25rem; }
.person span { font-size: 0.9375rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--display); font-weight: 700; font-size: 0.9375rem; }
.field .hint { font-size: 0.8125rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.8rem 1rem;
  border: var(--line); border-radius: 12px;
  background: var(--white);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) { border-color: #C81E1E; }
.error { color: #9B1010; font-size: 0.875rem; font-weight: 600; min-height: 0; }
.form__note { font-size: 0.875rem; color: var(--ink-soft); }

.formcard {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}
.success {
  border: var(--line); border-radius: var(--radius);
  background: var(--teal); padding: 1.25rem 1.5rem;
  font-family: var(--display); font-weight: 700;
}
[hidden] { display: none !important; }

/* ---------- Contact details ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
}
.contact-list strong { display: block; font-family: var(--display); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.contact-list a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq details {
  border: var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 1.35rem;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 1.35rem 1.35rem; margin: 0; color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .wrap { display: grid; justify-items: center; gap: 0.5rem; }
.cta .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h3 { font-size: 0.875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { color: #B9BECF; font-size: 0.9375rem; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 2px solid #2C3145;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.875rem; color: #B9BECF;
}

.demo-flag {
  background: var(--violet); color: var(--white);
  text-align: center; font-size: 0.875rem; font-weight: 600;
  padding: 0.6rem 1rem; border-bottom: var(--line);
}
.demo-flag a { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
