/* SunSolar — public website */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/instrument-sans-latin.woff2') format('woff2'); }

:root {
  --sun: #f59e0b;
  --sun-600: #d97706;
  --sun-700: #b45309;
  --sun-50: #fffbeb;
  --sun-100: #fef3c7;
  --ink: #0f1d33;
  --ink-2: #1e2f4d;
  --text: #1f2937;
  --muted: #5b6474;
  --line: #e7e5df;
  --bg: #ffffff;
  --cream: #fbf8f1;
  --ok: #047857;
  --danger: #b91c1c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,29,51,.06), 0 8px 24px rgba(15,29,51,.08);
  --head: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--sun-700); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 999px; border: 0; font: 600 1rem var(--body); text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s; }
.btn-sun { background: var(--sun); color: #231400; }
.btn-sun:hover { background: #fbbf24; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn:disabled { opacity: .6; cursor: default; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font: 700 1.25rem var(--head); color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; flex: none; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--sun-50); }
.menu .btn { margin-left: 8px; min-height: 42px; padding: 8px 18px; }
@media (max-width: 820px) { .menu a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,20,38,.92) 0%, rgba(10,20,38,.72) 45%, rgba(10,20,38,.25) 100%); }
.hero.no-image .hero-bg { background: radial-gradient(circle at 85% 20%, rgba(245,158,11,.55) 0, rgba(245,158,11,0) 42%),
  linear-gradient(160deg, #10233f 0%, #0b1628 100%); }
.hero.no-image .hero-bg::after { display: none; }
.hero-sun { position: absolute; right: -60px; top: 30px; width: 360px; opacity: .9; pointer-events: none; }
.hero.has-image .hero-sun { display: none; }
@media (max-width: 700px) { .hero-sun { width: 220px; right: -70px; top: 10px; opacity: .45; } }
.hero .wrap { position: relative; padding-top: clamp(64px, 12vw, 132px); padding-bottom: clamp(64px, 10vw, 112px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sun); margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6.2vw, 4rem); max-width: 14ch; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e2e8f0; max-width: 46ch; margin: 20px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats */
.stats { background: var(--sun); color: #231400; }
.stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.stat strong { display: block; font: 700 1.7rem var(--head); }
.stat span { font-size: .92rem; font-weight: 500; }

/* Sections */
section.block { padding: clamp(56px, 9vw, 96px) 0; }
section.alt { background: var(--cream); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.sec-head .eyebrow { color: var(--sun-700); margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 360px) { .grid-3 { grid-template-columns: 1fr; } }

.why { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--sun-100); color: var(--sun-700);
  display: grid; place-items: center; margin-bottom: 16px; }
.why .ico svg { width: 26px; height: 26px; }
.why h3 { margin-bottom: 6px; }
.why p { color: var(--muted); margin: 0; }

/* Offers */
.offer { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow); }
.offer-img { aspect-ratio: 16 / 10; background: var(--sun-50) center / cover no-repeat; }
.offer-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; background: var(--sun-100); color: var(--sun-700); font-weight: 700; font-size: .78rem;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.offer h3 { font-size: 1.4rem; margin-bottom: 8px; }
.offer p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 4px 0 22px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23b45309' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.offer .btn { margin-top: auto; }

/* Projects */
.proj { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.proj:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15,29,51,.06), 0 16px 32px rgba(15,29,51,.12); }
.proj-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #10233f, #1e3a5f); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-img .kw { position: absolute; left: 12px; top: 12px; background: var(--sun); color: #231400; font-weight: 700;
  font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.proj-img .count { position: absolute; right: 12px; bottom: 12px; background: rgba(10,20,38,.75); color: #fff;
  font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.proj-body { padding: 18px 20px 20px; }
.proj-body h3 { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Testimonials */
.quote { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.quote::before { content: '“'; position: absolute; top: -6px; left: 20px; font: 700 4.5rem/1 var(--head); color: var(--sun); }
.quote blockquote { margin: 18px 0 14px; font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.quote cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 24px 24px 24px 80px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 22px; top: 22px; width: 42px; height: 42px;
  border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 1.1rem var(--head); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-text { font-size: 1.08rem; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form-card, .info-card { background: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card { background: var(--ink); color: #e2e8f0; border: 0; }
.info-card h3 { color: #fff; margin-bottom: 16px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 22px; height: 22px; flex: none; color: var(--sun); margin-top: 2px; }
.info-list a { color: #fff; font-weight: 600; text-decoration: none; word-break: break-word; }
.info-list a:hover { text-decoration: underline; }
.info-list small { display: block; color: #94a3b8; font-size: .82rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfd4dc; border-radius: 10px;
  font: inherit; color: var(--text); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--sun-600); outline: 3px solid rgba(245,158,11,.3); outline-offset: 0; }
.hp { position: absolute; left: -5000px; }
.form-msg { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.form-msg.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.thanks { text-align: center; padding: 24px 8px; }
.thanks .big { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #d1fae5; color: var(--ok);
  display: grid; place-items: center; }
.thanks .big svg { width: 34px; height: 34px; }
.form-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }

/* Footer */
.site-foot { background: #0a1426; color: #94a3b8; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot .logo { color: #fff; }
.site-foot a { color: #cbd5e1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 700px) {
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(15,29,51,.08); }
  .action-bar .btn { flex: 1; min-height: 46px; padding: 8px 10px; font-size: .95rem; }
  .action-bar:empty { display: none; }
  body.has-bar .site-foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Project page */
.crumbs { padding: 20px 0 0; font-size: .92rem; }
.proj-head { padding: 16px 0 24px; }
.proj-head h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--sun-100); color: var(--sun-700); font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 999px; }
.chip.dark { background: var(--ink); color: #fff; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scroll-snap-type: x mandatory; }
.thumbs button { flex: none; width: 92px; height: 70px; padding: 0; border: 3px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: #ddd; scroll-snap-align: start; }
.thumbs button[aria-current="true"] { border-color: var(--sun); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.proj-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding-bottom: 64px; }
@media (max-width: 900px) { .proj-layout { grid-template-columns: 1fr; } }
.proj-desc { font-size: 1.06rem; margin-top: 24px; }
.side-card { background: var(--cream); border-radius: var(--radius); padding: 24px; position: sticky; top: 84px; }
.side-card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 20px; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; font-weight: 600; color: var(--ink); }
.side-card .btn { width: 100%; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,10,20,.95); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: .9rem; }

.empty-note { color: var(--muted); }
[data-hide-empty][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* UX audit 2026-10-19: nothing wider than a 320px phone */
.btn { max-width: 100%; white-space: normal; text-align: center; }
.grid-4 > *, .grid-3 > *, .about > *, .contact > * { min-width: 0; }
.quote, .card, .project-card { overflow-wrap: anywhere; }
.about .eyebrow { color: var(--sun-700); }
.crumbs a { display: inline-block; padding: 12px 0; }
