/* Electrosolar — engineering-document layout: left-aligned headings, spec labels in kWp/MWp,
   navy bands for emphasis, ring motif from the logo used once in the hero. Single light theme by choice. */
:root {
  --ink: #0b2a57;        /* logo navy */
  --ink-deep: #071c3d;
  --teal: #4c9d97;       /* logo inner ring */
  --teal-ink: #2f7a74;   /* teal for text on light */
  --teal-tint: #e7f2f1;
  --sun: #f0b834;        /* logo sun ring */
  --leaf: #5aa84a;       /* logo arrows, used sparingly */
  --paper: #ffffff;
  --mist: #f3f6f9;       /* blue-biased neutral */
  --line: #d6dfe8;
  --text: #1c2b3d;
  --muted: #56677a;
  --on-ink: #e9eff6;
  --on-ink-muted: #a9bad0;

  --f-display: "Commissioner", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --s-1: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  --s-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --s-3: 1.3rem;
  --s-4: 1.05rem;
  --wrap: 1180px;
  --r: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--s-1); font-weight: 700; }
h2 { font-size: var(--s-2); font-weight: 700; }
h3 { font-size: var(--s-3); font-weight: 600; }
h4 { font-size: var(--s-4); font-weight: 600; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 7vw, 104px); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink h2, .band--ink h3, .band--ink h4 { color: #fff; }
.band--ink .lede, .band--ink p { color: var(--on-ink); }
.band--tight { padding-block: clamp(36px, 4vw, 56px); }

.eyebrow {
  font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sun); }
.band--ink .eyebrow { color: var(--sun); }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .head--split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.prose { display: grid; gap: 16px; max-width: 68ch; }
.prose p { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display);
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  padding: 14px 22px; border-radius: var(--r); border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--sun { background: var(--sun); color: var(--ink-deep); }
.btn--sun:hover { background: #e4a817; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-deep); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.band--ink .btn--ghost { color: #fff; }
.band--ink .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--ink-deep); color: var(--on-ink-muted); font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 8px; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar b { color: #fff; font-weight: 500; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #fff; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--f-display); font-weight: 500; font-size: .93rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--r); position: relative; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--sun); }
.nav .btn { margin-left: 10px; padding: 11px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--mist); }
  .nav a[aria-current="page"]::after { left: 10px; right: auto; width: 28px; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .brand img { height: 38px; }
}

/* Photo frames: real photo on the live server, technical PV-grid fallback otherwise */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r); background-color: var(--ink);
  background-image: var(--img, none),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #12386e 0%, #0b2a57 55%, #1f5d70 100%);
  background-size: cover, auto, auto, cover; background-position: center;
  aspect-ratio: 4 / 3; max-width: 100%;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph .tag {
  position: absolute; left: 12px; bottom: 12px; background: rgba(7,28,61,.86); color: #fff;
  font-family: var(--f-display); font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 10px; border-radius: 4px; display: inline-flex; gap: 8px; align-items: center;
}
.ph .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); display: inline-block; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.hero .wrap { display: grid; gap: 40px; padding-block: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy { display: grid; gap: 22px; position: relative; z-index: 1; min-width: 0; }
.hero-copy h1 span { color: var(--teal-ink); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before { /* logo rings */
  content: ""; position: absolute; width: 118%; aspect-ratio: 1; right: -38%; top: 50%; transform: translateY(-50%);
  border-radius: 50%; border: 26px solid var(--teal-tint);
  box-shadow: inset 0 0 0 22px #fff, inset 0 0 0 30px rgba(240,184,52,.35);
  pointer-events: none;
}
.hero-visual .ph { position: relative; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgba(7,28,61,.5); }
.hero-card {
  position: absolute; left: -14px; bottom: -22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; box-shadow: 0 18px 40px -24px rgba(7,28,61,.45);
  max-width: 270px;
}
.hero-card b { font-family: var(--f-display); color: var(--ink); font-size: 1.02rem; }
.hero-card span { font-size: .87rem; color: var(--muted); }
@media (max-width: 600px) { .hero-card { position: static; margin-top: 14px; max-width: none; } }

.page-hero { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(48px, 6vw, 84px); display: grid; gap: 16px; position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lede { color: var(--on-ink-muted); }
.page-hero::after {
  content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -140px; border-radius: 50%;
  border: 34px solid rgba(76,157,151,.28); box-shadow: inset 0 0 0 30px transparent, inset 0 0 0 44px rgba(240,184,52,.22);
}
.crumbs { font-size: .85rem; color: var(--on-ink-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--on-ink-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Spec strip */
.specs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.specs .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.spec { padding: 24px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.spec:first-child { border-left: 0; padding-left: 0; }
.spec b { font-family: var(--f-display); font-size: 1.45rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.spec span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .spec { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .spec:first-child { border-top: 0; } }

/* Grids */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } .split--rev > :first-child { order: 2; } }
.split > * { min-width: 0; }

/* Service tiles */
.svc { display: grid; gap: 12px; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; align-content: start; }
a.svc:hover { border-color: var(--teal); transform: translateY(-2px); }
.svc .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.svc .ico svg { width: 24px; height: 24px; }
.svc p { color: var(--muted); font-size: .97rem; }
.svc .more { font-family: var(--f-display); font-weight: 600; font-size: .88rem; color: var(--ink); margin-top: 4px; }

/* Process */
.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: s; }
.step { padding: 26px 22px 26px 0; border-top: 2px solid rgba(255,255,255,.18); position: relative; display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: .95rem; color: var(--sun); }
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--sun); }
.step p { font-size: .95rem; color: var(--on-ink-muted) !important; }
.band:not(.band--ink) .step { border-top-color: var(--line); }
.band:not(.band--ink) .step p { color: var(--muted) !important; }
.band:not(.band--ink) .step::before { color: var(--teal-ink); }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232f7a74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.band--ink .ticks li::before { background-color: rgba(255,255,255,.12); }

.block { display: grid; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; align-content: start; }
.block p { color: var(--muted); font-size: .97rem; }
.block .k { font-family: var(--f-display); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--teal-ink); }

/* Segments */
.seg { display: grid; gap: 14px; align-content: start; min-width: 0; }
.seg .ph { aspect-ratio: 3 / 2; }
.seg p { color: var(--muted); font-size: .96rem; }

/* Projects */
.proj { display: grid; gap: 14px; align-content: start; text-decoration: none; color: inherit; min-width: 0; }
.proj .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--muted); }
.proj .meta b { color: var(--ink); font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.proj p { color: var(--muted); font-size: .96rem; }
.proj-detail { display: grid; gap: 28px; padding-block: 40px; border-top: 1px solid var(--line); }
.proj-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 920px) { .proj-detail { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; } }
.proj-detail > * { min-width: 0; }
.proj-gal { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.proj-gal .ph:first-child { grid-column: 1 / -1; }
.datasheet { width: 100%; border-collapse: collapse; font-size: .94rem; }
.datasheet th, .datasheet td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.datasheet th { width: 42%; color: var(--muted); font-weight: 500; }
.datasheet td { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: 500 .9rem var(--f-display); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Quote / callout */
.callout { display: grid; gap: 18px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r); background: var(--teal-tint); border-left: 4px solid var(--teal); }
.callout h3 { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 0 22px; color: var(--muted); max-width: 72ch; display: grid; gap: 10px; }

/* CTA band */
.cta { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.cta .wrap { display: grid; gap: 28px; padding-block: clamp(48px, 6vw, 80px); position: relative; z-index: 1; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.4fr 1fr; align-items: center; } .cta .actions { justify-content: flex-end; } }
.cta h2 { color: #fff; }
.cta p { color: var(--on-ink-muted); max-width: 56ch; margin-top: 10px; }
.cta::before { content: ""; position: absolute; left: -120px; bottom: -260px; width: 520px; height: 520px; border-radius: 50%; border: 30px solid rgba(76,157,151,.25); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 64px; } }
.contact-grid > * { min-width: 0; }
.cinfo { display: grid; gap: 22px; }
.cinfo .row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.cinfo .row .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-ink); }
.cinfo .row .ico svg { width: 20px; height: 20px; }
.cinfo .row b { display: block; font-family: var(--f-display); color: var(--ink); }
.cinfo .row span, .cinfo .row a { color: var(--muted); text-decoration: none; }
.cinfo .row a:hover { color: var(--teal-ink); }
form.cform { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.frow { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); color: var(--text); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { background: #fff; border-color: var(--teal); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: var(--r); font-size: .95rem; }
.form-status.ok { background: #e8f4e5; color: #285c1d; }
.form-status.err { background: #fdf0d8; color: #6a4a05; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); font-size: .94rem; }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 40px; }
.fcols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fcols h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.fcols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fcols a { color: var(--on-ink-muted); text-decoration: none; }
.fcols a:hover { color: #fff; }
.flogo { background: #fff; border-radius: var(--r); padding: 12px 14px; display: inline-block; }
.flogo img { height: 44px; width: auto; }
.fbrand { display: grid; gap: 16px; align-content: start; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; }
