/* Direct Energy Florida — additive homepage refinement.
   Load after the existing stylesheet and add refined-homepage to <body>.
   Existing classes, content, data attributes, and JavaScript remain intact. */

@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

.refined-homepage {
  --font-display: Manrope, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 6px;
  --content: 1280px;
  --rule-strong: oklch(0.67 0.025 225);
  --surface-hover: oklch(0.985 0.004 220);
  --action-hover: oklch(0.36 0.072 165);
  --dark-hover: oklch(0.25 0.04 235);
  --accent-hover: oklch(0.9 0.12 86);
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0;
}
.refined-homepage :is(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.refined-homepage h2 { font-size: clamp(32px, 3.2vw, 44px); }
.refined-homepage h3 { font-size: 24px; letter-spacing: -0.015em; }
.refined-homepage p { max-width: 65ch; text-wrap: pretty; }
.refined-homepage .wrap { width: min(calc(100% - 80px), var(--content)); }
.refined-homepage .section { padding-block: 88px; }
.refined-homepage .section + .section { border-top: 1px solid var(--line); }
.refined-homepage :is(.hero-grid, .service-explorer, .service-view, .split, .faq-layout, .footer-grid, .contact-layout) > * { min-width: 0; }
.refined-homepage .lead { font-size: 21px; line-height: 1.55; }
.refined-homepage :is(.kicker, .eyeline) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.refined-homepage .kicker:before { width: 6px; height: 6px; background: var(--ink); border-radius: 1px; }

/* A quieter header keeps the hero consultation as the principal action. */
.refined-homepage .site-header { background: var(--white); }
.refined-homepage .nav-shell { height: 84px; gap: 24px; }
.refined-homepage .brand-mark { border-radius: 4px; width: 36px; height: 40px; }
.refined-homepage .brand-text { font-size: 18px; font-weight: 650; letter-spacing: -0.025em; }
.refined-homepage .brand-text small { font-size: 12px; letter-spacing: 0.1em; }
.refined-homepage .nav-links { gap: 24px; }
.refined-homepage .nav-links a { font-weight: 500; letter-spacing: 0.01em; }
.refined-homepage .phone-link { display: inline-flex; align-items: center; min-height: 44px; font-variant-numeric: tabular-nums; }
.refined-homepage .nav-actions { gap: 20px; }
.refined-homepage .nav-actions > .button {
  color: var(--ink);
  background: transparent;
  border-color: var(--rule-strong);
  min-height: 44px;
  padding: 10px 18px;
}
.refined-homepage .nav-actions > .button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.refined-homepage :is(.nav-links a, .phone-link, .footer-links a):hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

/* A full-frame photograph with an architectural edge, not a giant curve.
   The original note becomes a caption below the image; its copy is unchanged. */
.refined-homepage .hero { background: var(--wash); padding: 48px 0; }
.refined-homepage .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.refined-homepage .hero-copy { padding: 12px 0; }
.refined-homepage .hero-copy h1 { font-size: clamp(42px, 4.55vw, 66px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 26px; max-width: 10.5em; }
.refined-homepage .hero-copy .lead { font-size: 21px; max-width: 42ch; }
.refined-homepage .hero .button-row { gap: 12px; margin-top: 30px; }
.refined-homepage .hero-photo { height: auto; align-self: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); overflow: hidden; }
.refined-homepage .hero-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.refined-homepage .photo-note { position: static; max-width: none; padding: 15px 20px; border-top: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--muted); font-size: 14px; line-height: 1.5; }
.refined-homepage .photo-note strong { font-family: var(--font-body); color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.refined-homepage .hero-foot { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 28px; gap: 22px; flex-wrap: wrap; }
.refined-homepage .hero-foot svg { width: 17px; height: 17px; }
.refined-homepage .service-ribbon .wrap { padding-block: 12px; gap: 0; }
.refined-homepage .service-ribbon a { min-height: 44px; padding-inline: 22px; border-right: 1px solid oklch(1 0 0 / 0.22); flex: 1; justify-content: space-between; letter-spacing: 0.02em; }
.refined-homepage .service-ribbon a:first-child { padding-left: 0; }
.refined-homepage .service-ribbon a:last-child { padding-right: 0; border-right: 0; }
.refined-homepage .service-ribbon a span { color: inherit; }
.refined-homepage .service-ribbon a:hover { background: var(--dark-hover); color: var(--white); }

/* Fine divisions and a stable selection state replace floating card styling. */
.refined-homepage .section-head { align-items: end; gap: 40px; margin-bottom: 36px; }
.refined-homepage .section-head > p { max-width: 36ch; margin-bottom: 2px; }
.refined-homepage .service-explorer { grid-template-columns: 260px minmax(0, 1fr); border-block: 1px solid var(--line); }
.refined-homepage .service-choices { padding: 16px 22px 16px 0; border-right: 1px solid var(--line); }
.refined-homepage .service-choices button { color: var(--ink); font-size: 18px; line-height: 1.4; letter-spacing: 0.01em; min-height: 60px; padding: 16px 12px; border-radius: 0; transition: background 160ms ease, border-color 160ms ease; }
.refined-homepage .service-choices button:last-child { border-bottom: 0; }
.refined-homepage .service-choices button[aria-pressed=true] { color: var(--green); background: var(--wash); border-color: var(--line); border-radius: 3px; font-weight: 600; }
.refined-homepage .service-choices button:hover { color: var(--dark-hover); background: var(--surface-hover); }
.refined-homepage .service-choices button[aria-pressed=true]:hover { color: var(--green); background: var(--surface-hover); }
.refined-homepage .service-view { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px 0 32px 32px; min-height: 440px; }
.refined-homepage .service-view h3 { font-size: 32px; margin-bottom: 16px; }
.refined-homepage .service-view ul { margin-block: 24px; }
.refined-homepage .service-view li { padding-left: 18px; }
.refined-homepage .service-view li:before { content: "—"; color: var(--muted); }
.refined-homepage .service-view img { width: 100%; height: auto; max-height: 360px; object-fit: contain; border-radius: 4px; background: var(--wash); }
.refined-homepage .service-view .text-link { color: var(--ink); }
.refined-homepage .split { gap: 64px; }
.refined-homepage .split > img { height: auto; width: auto; max-width: 100%; max-height: 500px; justify-self: center; object-fit: contain; border-radius: 4px; }
.refined-homepage .check-list li { padding-block: 14px; }
.refined-homepage .check-list svg { color: var(--ink); }

/* Keep original work in full frame; the image itself supplies the detail. */
.refined-homepage .projects { grid-template-columns: 1fr 1.35fr 1fr; gap: 28px; align-items: start; }
.refined-homepage .project button { background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.refined-homepage .project img { width: 100%; height: auto; object-fit: contain; transform: none; }
.refined-homepage .project button:hover { border-color: var(--ink); box-shadow: 0 4px 12px oklch(0.3 0.04 235 / 0.08); }
.refined-homepage .project button:hover img { transform: none; }
.refined-homepage .project figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.refined-homepage .project figcaption strong { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.refined-homepage .process { gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.refined-homepage .process > div { padding: 28px 32px 0; border-left: 1px solid var(--line); }
.refined-homepage .process > div:first-child { padding-left: 0; border-left: 0; }
.refined-homepage .process > div:last-child { padding-right: 0; }
.refined-homepage .process-number { background: transparent; color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 4px; width: 34px; height: 34px; font-weight: 500; font-variant-numeric: tabular-nums; margin-bottom: 24px; }
.refined-homepage .process h3 { font-size: 22px; line-height: 1.3; }
.refined-homepage .process p { font-size: 17px; }
.refined-homepage .location-box { border-radius: 6px; }
.refined-homepage .region .eyeline { color: #b6dfce; }
.refined-homepage .location-visual { background: var(--wash); border-bottom: 1px solid var(--line); }
.refined-homepage .map-button:hover { background: var(--surface-hover); color: var(--ink); }
.refined-homepage .area-list { gap: 10px 20px; }
.refined-homepage .area-list span { border: 0; border-bottom: 1px solid oklch(1 0 0 / 0.3); border-radius: 0; padding: 6px 0; }
.refined-homepage .faq-layout { gap: 64px; }
.refined-homepage details { padding-block: 18px; }
.refined-homepage summary { min-height: 44px; align-items: center; font-size: 18px; line-height: 1.5; letter-spacing: -0.01em; }
.refined-homepage summary:after { color: var(--ink); flex-shrink: 0; }
.refined-homepage summary:hover { color: var(--ink); background: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.refined-homepage details p { padding-top: 14px; }
.refined-homepage .cta-band { background: var(--wash); border-top: 1px solid var(--line); padding-block: 60px; }
.refined-homepage .cta-band h2 { font-size: clamp(30px, 3vw, 40px); }
.refined-homepage .cta-band .button { flex-shrink: 0; }
.refined-homepage .footer-grid { gap: 60px; }
.refined-homepage .footer-links { gap: 0; }
.refined-homepage .footer-links a { min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.refined-homepage .site-footer h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.refined-homepage .license { line-height: 1.6; }
.refined-homepage .license a { min-height: 44px; display: inline-flex; align-items: center; }

/* States always specify foreground and background together. */
.refined-homepage .button { min-height: 50px; padding: 13px 22px; border-radius: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; color: var(--white); background: var(--green); transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.refined-homepage .button:hover { color: var(--white); background: var(--action-hover); }
.refined-homepage .button:active { transform: translateY(1px); }
.refined-homepage .button.secondary { color: var(--ink); background: transparent; border-color: var(--rule-strong); }
.refined-homepage .button.secondary:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.refined-homepage .button.light { color: var(--ink); background: var(--accent); }
.refined-homepage .button.light:hover { color: var(--ink); background: var(--accent-hover); }
.refined-homepage .text-link { min-height: 44px; letter-spacing: 0.01em; font-weight: 600; text-decoration-thickness: 1px; }
.refined-homepage .text-link:hover { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.refined-homepage .menu-toggle { color: var(--ink); background: var(--white); border-color: var(--rule-strong); border-radius: 4px; }
.refined-homepage .menu-toggle:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.refined-homepage :focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; box-shadow: 0 0 0 2px var(--white); }
.refined-homepage :is(.region, .site-footer, .service-ribbon, .lightbox) :focus-visible { outline-color: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.refined-homepage .lightbox { border-radius: 6px; }
.refined-homepage .lightbox button:hover { color: var(--white); background: var(--dark-hover); border-color: var(--white); }
.refined-homepage .contact-card { border-radius: 6px; box-shadow: none; }
.refined-homepage .field :is(input, select, textarea) { border-radius: 4px; }

@media (max-width: 1150px) {
  .refined-homepage .wrap { width: calc(100% - 48px); }
  .refined-homepage .nav-actions .phone-link { display: none; }
  .refined-homepage .hero-grid { gap: 32px; }
  .refined-homepage .hero-copy h1 { font-size: clamp(42px, 4.7vw, 58px); }
  .refined-homepage .hero-copy .lead { font-size: 19px; }
  .refined-homepage .hero .button-row { flex-direction: column; align-items: flex-start; }
  .refined-homepage .hero .button-row .button { flex: initial; }
  .refined-homepage .service-explorer { grid-template-columns: 230px minmax(0, 1fr); }
  .refined-homepage .service-view { gap: 24px; padding-left: 24px; }
  .refined-homepage .service-view h3 { font-size: 28px; }
  .refined-homepage .split, .refined-homepage .faq-layout { gap: 40px; }
  .refined-homepage .footer-grid { gap: 36px; }
}
@media (max-width: 850px) {
  .refined-homepage .section { padding-block: 64px; }
  .refined-homepage .nav-shell { height: 76px; }
  .refined-homepage .nav-links { top: 75px; gap: 4px; }
  .refined-homepage .hero { padding-block: 36px; }
  .refined-homepage .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .refined-homepage .hero-copy { padding: 0; }
  .refined-homepage .hero-copy h1 { font-size: clamp(44px, 7vw, 60px); max-width: 11em; }
  .refined-homepage .hero-copy .lead { font-size: 21px; max-width: 55ch; }
  .refined-homepage .hero .button-row { flex-direction: row; }
  .refined-homepage .hero-photo { width: 100%; max-width: 680px; justify-self: center; }
  .refined-homepage .hero-foot { margin-bottom: 0; }
  .refined-homepage .service-ribbon a { font-size: 15px; padding-inline: 14px; }
  .refined-homepage .section-head { align-items: start; gap: 20px; }
  .refined-homepage .section-head > p { max-width: 60ch; }
  .refined-homepage .service-explorer { grid-template-columns: 1fr; }
  .refined-homepage .service-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 16px 0; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .refined-homepage .service-choices button { min-width: 0; min-height: 52px; padding: 12px; font-size: 16px; border: 1px solid var(--line); border-radius: 3px; }
  .refined-homepage .service-choices button:last-child { border-bottom: 1px solid var(--line); }
  .refined-homepage .service-choices button[aria-pressed=true] { border-color: var(--green); }
  .refined-homepage .service-view { padding: 28px 0; min-height: 0; }
  .refined-homepage .projects { grid-template-columns: 1fr 1.35fr 1fr; gap: 18px; }
  .refined-homepage .projects .project:last-child { display: block; }
  .refined-homepage .project figcaption strong { font-size: 16px; }
  .refined-homepage .process > div { padding-inline: 20px; }
  .refined-homepage .process h3 { font-size: 20px; }
}
@media (max-width: 560px) {
  .refined-homepage { font-size: 17px; }
  .refined-homepage .wrap { width: calc(100% - 36px); }
  .refined-homepage .section { padding-block: 52px; }
  .refined-homepage .nav-shell { gap: 12px; }
  .refined-homepage .brand { gap: 8px; }
  .refined-homepage .brand-text { font-size: 17px; }
  .refined-homepage .hero { padding-block: 30px; }
  .refined-homepage .hero-copy h1 { font-size: clamp(36px, 9.5vw, 48px); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 22px; }
  .refined-homepage .hero-copy .lead { font-size: 19px; }
  .refined-homepage .hero .button-row { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 24px; }
  .refined-homepage .hero-foot { gap: 10px 18px; font-size: 14px; }
  .refined-homepage .photo-note { padding: 12px 14px; }
  .refined-homepage .service-ribbon .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: 6px; }
  .refined-homepage .service-ribbon a { padding: 10px 12px; border-right: 0; }
  .refined-homepage .service-ribbon a:nth-child(odd) { padding-left: 0; padding-right: 16px; border-right: 1px solid oklch(1 0 0 / 0.22); }
  .refined-homepage .service-ribbon a:nth-child(-n+2) { border-bottom: 1px solid oklch(1 0 0 / 0.22); }
  .refined-homepage .section-head { margin-bottom: 28px; }
  .refined-homepage h2 { font-size: clamp(29px, 8vw, 34px); }
  .refined-homepage .service-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refined-homepage .service-choices button { font-size: 15px; min-height: 54px; }
  .refined-homepage .service-view { grid-template-columns: 1fr; gap: 26px; padding-block: 24px; }
  .refined-homepage .service-view img { grid-row: 1; max-height: 360px; }
  .refined-homepage .service-view h3 { font-size: 28px; }
  .refined-homepage .projects { grid-template-columns: 1fr; gap: 32px; }
  .refined-homepage .project button { width: 100%; }
  .refined-homepage .project img { max-height: 460px; object-fit: contain; }
  .refined-homepage .project figcaption strong { font-size: 18px; }
  .refined-homepage .process { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .refined-homepage .process > div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: 34px minmax(0, 1fr); gap: 0 16px; }
  .refined-homepage .process > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .refined-homepage .process-number { margin: 0; }
  .refined-homepage .split > img { max-height: 420px; }
  .refined-homepage .faq-layout { gap: 24px; }
  .refined-homepage summary { font-size: 17px; }
  .refined-homepage details p { font-size: 17px; padding-right: 12px; }
  .refined-homepage .cta-band { padding-block: 44px; }
  .refined-homepage .cta-band h2 { font-size: 30px; }
  .refined-homepage .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .refined-homepage .footer-grid > div:first-child { grid-column: auto; }
  .refined-homepage .site-footer { padding-bottom: 115px; }
  .refined-homepage .mobile-actions { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); padding-inline: 12px; }
  .refined-homepage .mobile-actions .button { min-width: 0; padding: 10px 8px; font-size: 14px; }
  .refined-homepage .mobile-actions .button:not(.secondary) { color: var(--ink); background: var(--wash); border-color: var(--rule-strong); }
  .refined-homepage .mobile-actions .button:not(.secondary):hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
  .refined-homepage :is(.contact-option a, .footer-links a) { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .refined-homepage *, .refined-homepage *::before, .refined-homepage *::after { transition: none !important; animation: none !important; }
}
@media print {
  .refined-homepage { font-size: 12pt; }
  .refined-homepage .section { padding-block: 20px; }
  .refined-homepage .wrap { width: 100%; }
}

