/* Rayvi Services — "Quiet Power" design system */

:root {
  --canopy: #0E2A1F;
  --canopy-2: #14382A;
  --canopy-line: #2F5243;
  --volt: #B7E234;
  --volt-soft: #E8F5C4;
  --volt-ink: #3F6B12;
  --gulf: #1C6FB5;
  --mist: #F3F5EF;
  --white: #FFFFFF;
  --ink: #14201A;
  --ink-2: #2E3C35;
  --muted: #4A5A52;
  --on-dark: #F3F5EF;
  --on-dark-2: #C9D6CE;
  --on-dark-3: #A9BCB1;
  --line: #E1E6DE;
  --field: #C5CEC4;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 28px;
  --wrap: 1200px;
  --gutter: 24px;
  --section: clamp(64px, 9vw, 104px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

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

a { color: var(--gulf); }
a:hover { color: var(--canopy); }

:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--volt); color: var(--canopy); padding: 10px 16px;
  border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; }
h3 { font-weight: 700; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--volt-ink);
}
.dark .eyebrow { color: var(--volt); }

.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.dark .lead { color: var(--on-dark-2); }

.stack { display: flex; flex-direction: column; gap: 18px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--volt); color: var(--canopy); font-weight: 700; }
.btn-primary:hover { background: #C8EE52; color: var(--canopy); }
.btn-outline { border-color: currentColor; color: var(--canopy); background: transparent; }
.dark .btn-outline { color: var(--on-dark); }
.btn-block { width: 100%; }
.btn svg { flex: none; }

.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--canopy-line); font-size: 15px; }
.chips.soft li { border: 0; background: var(--volt-soft); color: #2B3A10; font-weight: 600; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canopy); color: var(--on-dark);
  border-bottom: 1px solid #1F4134;
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; }
.brand:hover { color: var(--on-dark); }
.brand-mark {
  width: 60px; height: 60px; border-radius: 50%; background: var(--mist);
  display: grid; place-items: center; flex: none;
}
.brand-mark img { width: 52px; height: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--on-dark-2);
  text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav a:hover { color: var(--on-dark); }
.main-nav a[aria-current="page"] { color: var(--on-dark); font-weight: 600; border-bottom-color: var(--volt); }

.header-phone {
  display: flex; align-items: center; gap: 8px; color: var(--on-dark);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--volt); }
.header-phone svg { color: var(--volt); }
.site-header .btn { min-height: 46px; padding: 0 20px; font-size: 15px; white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--canopy-line); background: transparent; color: var(--on-dark);
  align-items: center; justify-content: center; cursor: pointer;
}

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

.section { padding: var(--section) 0; }
.section.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--canopy); color: var(--on-dark); }

.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.section-head .stack { max-width: 680px; }

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

.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { max-width: 560px; }
.hero-actions { display: none; gap: 12px; flex-wrap: wrap; }
.wave { width: 320px; max-width: 100%; height: auto; color: var(--volt); }

.page-hero .wrap { padding-top: 64px; padding-bottom: 72px; }
.page-hero .stack { max-width: 760px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 64px); }

/* ---------- Cards & forms ---------- */

.quote-card {
  flex: 1 1 380px; min-width: 0; background: var(--mist); color: var(--ink);
  border-radius: 24px; padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.quote-card h2 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.quote-card .hint { font-size: 15px; color: var(--muted); margin-top: 4px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--field);
  padding: 0 14px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--white);
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--canopy); outline: 3px solid var(--volt-soft); }
.field .req { color: #A33A1F; }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); text-align: center; }
.form-status { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--volt-ink); min-height: 1em; }

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

.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.trust strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.trust span { font-size: 15px; color: var(--muted); }

/* ---------- Electric ---------- */

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.panel img { align-self: center; width: 100%; max-width: 420px; }

.meter { display: flex; flex-direction: column; gap: 6px; }
.meter-label { display: flex; justify-content: space-between; font-size: 15px; }
.meter-label b { font-weight: 600; }
.meter-track { height: 12px; border-radius: 999px; background: var(--line); }
.meter-fill { height: 100%; border-radius: 999px; }
.meter-fill.gas { width: 92%; background: #5B6B63; }
.meter-fill.electric { width: 60%; background: var(--canopy); }
.meter-source { font-size: 13px; color: var(--muted); }

.benefits { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 16px; }
.benefit-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--volt-soft);
  display: grid; place-items: center; color: var(--canopy);
}
.benefits strong { display: block; font-size: 18px; }
.benefits p { color: var(--ink-2); }

/* ---------- Services ---------- */

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--mist); display: flex; flex-direction: column; }
.section:not(.white) .card { background: var(--white); border: 1px solid var(--line); }
.card img, .card .card-art { width: 100%; height: 210px; object-fit: cover; }
.card .card-art { display: grid; place-items: center; background: var(--canopy-2); color: var(--volt); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--ink-2); font-size: 16px; }
.card-body ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 16px; }
.card.dark { background: var(--canopy); border: 0; }
.card.dark .card-body p { color: var(--on-dark-2); }

/* ---------- Schedule ---------- */

.schedule { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.schedule .season { border-radius: 12px; padding: 16px 10px; text-align: center; font-weight: 700; }
.schedule .off { grid-column: span 3; background: var(--on-dark-2); }
.schedule .peak { grid-column: span 6; background: var(--canopy); color: var(--on-dark); }
.schedule .season span { display: none; }
.schedule .cap { font-size: 14px; color: var(--muted); text-align: center; }
.schedule .cap.off { background: none; font-weight: 400; }
.schedule .cap.peak { background: none; color: var(--muted); }

/* ---------- Reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.review { margin: 0; border: 1px solid var(--canopy-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.review .stars { color: var(--volt); letter-spacing: 3px; font-size: 18px; }
.review blockquote { margin: 0; font-size: 19px; line-height: 1.5; }
.review figcaption { margin-top: auto; font-size: 15px; color: var(--on-dark-3); }

/* ---------- Media frames ---------- */

.photo { border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px;
  background: var(--canopy); color: var(--volt); font-size: 14px; font-weight: 600;
}
.photo.tall { aspect-ratio: 4 / 5; max-height: 560px; }

.certificate { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

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

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list a { text-decoration: none; }
.contact-phone { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--canopy); }
.contact-list .label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--line); }

/* ---------- News ---------- */

.news-list { display: grid; gap: 24px; }
.news-item { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.news-item img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.news-item .stack { gap: 10px; }

/* ---------- Trailers ---------- */

.page-hero .cta-actions { margin-top: 8px; }
.video-frame { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.price-card.dark { border: 0; background: var(--canopy); color: var(--on-dark); }
.price-card .price { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1.1; color: var(--canopy); }
.price-card.dark .price { color: var(--volt); }
.price-card .price span { font-family: var(--font-body); font-weight: 500; font-size: 17px; color: var(--muted); margin-right: 4px; }
.price-card.dark .price span, .price-card.dark p { color: var(--on-dark-2); }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { max-width: 640px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

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

.site-footer { background: var(--canopy); color: var(--on-dark-2); border-top: 1px solid #1F4134; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.site-footer h3 { font-size: 16px; color: var(--on-dark); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--volt); }
.footer-bottom { border-top: 1px solid var(--canopy-line); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: 14px; color: var(--on-dark-3); }

/* ---------- Mobile action bar ---------- */

.action-bar { display: none; }

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

@media (max-width: 1240px) {
  .header-phone { display: none; }
}

@media (max-width: 1040px) {
  .main-nav a { padding: 10px 10px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-header .btn { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--canopy); border-bottom: 1px solid var(--canopy-line);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--canopy-line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--canopy-line); color: var(--volt); }

  .action-bar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--canopy); border-top: 1px solid var(--canopy-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
  }
  .action-bar .btn { min-height: 52px; }
  .action-bar .btn-outline { color: var(--on-dark); }
  body { padding-bottom: 76px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-mark img { width: 43px; }
  .hero .wrap { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
  .hero-actions { display: flex; }
  .hero-actions .btn { flex: 1 1 100%; }
  .lead { font-size: 18px; }
  .quote-card { padding: 22px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 20px; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .grid-cards { gap: 12px; }
  .card { flex-direction: row; align-items: center; }
  .card img, .card .card-art { flex: none; width: 104px; height: 104px; margin: 10px 0 10px 10px; border-radius: 14px; }
  .card .card-art svg { width: 40px; height: 40px; }
  .card-body { padding: 14px 16px; gap: 4px; }
  .card-body h3 { font-size: 19px; }
  .card-body p, .card-body ul { font-size: 15px; }
  .card-body ul { padding-left: 16px; }
  .schedule { grid-template-columns: minmax(0, 1fr); }
  .schedule .off, .schedule .peak { grid-column: auto; text-align: left; padding: 14px 16px; }
  .schedule .cap, .schedule .dup { display: none; }
  .schedule .season span { display: inline; float: right; font-weight: 400; }
  .split { gap: 32px; }
  .photo.tall { aspect-ratio: 4 / 4; }
}

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

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

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status.is-error { color: #A33A1F; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
