/*
Theme Name: Solar Energy Tec
Version: 1.0.0
Description: Product catalog and resource theme for Solar Energy Tec.
*/
:root {
  --ink: #132c34;
  --muted: #4a6268;
  --surface: #f2f6f4;
  --edge: #d6e2de;
  --dark: #102d36;
  --accent: #d4f488;
  --green: #156651;
  font: 16px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #348979; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.11; }
h1 { font-size: clamp(2.65rem, 5.9vw, 5.3rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); letter-spacing: -.047em; }
.shell { width: min(1192px, calc(100% - 52px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; transform: translateY(-150%); background: white; padding: 12px; }
.skip:focus { transform: translateY(0); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topbar { background: #e5efeb; color: #274b49; padding-block: 7px; font: 700 .72rem/1.4 ui-monospace, monospace; letter-spacing: .07em; }
.topbar span { margin-inline: 6px; }
.site-header { border-bottom: 1px solid var(--edge); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 820; font-size: 1.16rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--dark); color: var(--accent); width: 34px; height: 34px; border-radius: 6px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; font-weight: 650; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.nav-cta { padding: 9px 12px; border: 1px solid #9ebdb0; border-radius: 5px; }
.hero { color: #f4faf7; background: var(--dark); }
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(30px, 6vw, 78px); align-items: center; padding-block: clamp(52px, 8vw, 105px); }
.hero h1 { max-width: 13ch; }
.kicker { color: var(--green); font: 760 .75rem/1.4 ui-monospace, monospace; letter-spacing: .075em; text-transform: uppercase; margin-bottom: 14px; }
.hero .kicker { color: var(--accent); }
.hero-copy { margin-top: 22px; color: #ccdedf; font-size: 1.12rem; max-width: 45ch; }
.hero-art { overflow: hidden; border: 1px solid #34585f; border-radius: 10px; background: #163a42; }
.hero-art img { display: block; width: 100%; }
.actions { display: flex; gap: 16px 24px; align-items: center; flex-wrap: wrap; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; border: 0; border-radius: 5px; background: var(--accent); color: var(--ink); text-decoration: none; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { filter: brightness(1.07); }
.button.dark { background: var(--dark); color: white; }
.hero-link { color: #e2eeeb; font-weight: 650; }
.section { padding-block: clamp(38px, 6vw, 74px); }
.line-grid, .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--edge); padding: 16px; text-decoration: none; border-radius: 6px; }
.line:hover { border-color: var(--green); }
.line-index { font: 700 .85rem ui-monospace, monospace; color: var(--green); }
.line-count { display: block; color: var(--muted); margin-top: 4px; font-size: .84rem; }
.project { background: #e6f1e5; }
.project-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding-block: 34px; }
.project-inner h2 { max-width: 27ch; }
.site-footer { background: #142d35; color: #f4faf7; }
.footer-inner { padding-block: 26px; }
.footer-inner p { color: #c1d5d7; font-size: .88rem; margin-top: 4px; }
.subhero { background: var(--surface); border-bottom: 1px solid var(--edge); padding-block: clamp(34px, 6vw, 70px); }
.subhero h1 { max-width: 24ch; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.subhero p:not(.kicker) { margin-top: 15px; color: var(--muted); max-width: 68ch; }
.catalog { padding-top: 24px; }
.pills { gap: 8px; }
.pills a { border: 1px solid var(--edge); border-radius: 50px; padding: 7px 11px; }
.pills a[aria-current] { background: var(--dark); color: white; }
.product { border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.product-media { display: block; background: #163a42; aspect-ratio: 7 / 4; }
.product-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-body h2 { font-size: 1.17rem; letter-spacing: -.02em; }
.product-body h2 a { text-decoration: none; }
.product-body h2 a:hover { text-decoration: underline; }
.product-body p:not(.kicker) { margin-block: 10px 14px; color: var(--muted); font-size: .92rem; }
.product-body .kicker { margin-bottom: 8px; }
.arrow { color: var(--green); font-size: .88rem; font-weight: 740; margin-top: auto; }
.pagination { margin-top: 26px; }
.page-numbers { padding: 5px 9px; }
.page-numbers.current { background: var(--dark); color: white; border-radius: 4px; }
.detail { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; }
.detail-aside { background: var(--surface); padding: 18px; border: 1px solid var(--edge); border-radius: 8px; }
.detail-aside h2 { font-size: 1.35rem; margin-block: 10px; }
.detail-aside img { display: block; border-radius: 5px; }
.detail-aside .button { margin-top: 14px; }
.prose > * + * { margin-top: 1rem; }
.prose > p, .prose > ul, .prose > ol { max-width: 70ch; }
.prose h2 { font-size: 1.55rem; }
.prose a { color: var(--green); }
.small { font-size: .85rem; color: var(--muted); }
.inquiry-form { max-width: 570px; display: grid; gap: 14px; }
.inquiry-form label { display: grid; gap: 5px; font-weight: 680; }
.inquiry-form input:not([type=hidden]), .inquiry-form textarea { width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #9db3b1; border-radius: 5px; background: white; color: var(--ink); }
.inquiry-form button { justify-self: start; }
.form-notice { padding: 10px 14px; border-left: 3px solid var(--green); background: var(--surface); }
@media (max-width: 880px) {
  .line-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .hero-grid, .line-grid, .product-grid, .detail { grid-template-columns: 1fr; }
  .hero-art { max-width: 500px; }
  .header-inner nav { gap: 8px 14px; }
}
