/* SUN FOR FREE website. Colours follow the logo: charcoal and solar yellow. */
:root {
  --ink: #2B2B2A;
  --text: #4A4A48;
  --muted: #6B6A66;
  --line: #E6E4DE;
  --soft: #F4F3EF;
  --dark: #1F2326;
  --darker: #16191B;
  --accent: #F5C400;
  --radius: 8px;
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #000; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1, h2 { font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; }
.hero :focus-visible, .band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
picture { display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; font-size: 17px; border: 1.5px solid transparent; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: #E6B800; color: var(--dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header: one row; desktop menu inline, phone menu in a dropdown */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.head-row-main { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 8px; padding-bottom: 8px; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-weight: 500; font-size: 16px; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav-desktop { margin-left: auto; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.btn-wa { padding: 10px 16px; min-height: 44px; font-size: 16px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.nav-mobile { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px; min-width: 200px; display: flex; flex-direction: column; }
.nav-mobile a { text-decoration: none; padding: 12px 14px; font-weight: 500; border-radius: 6px; }
.nav-mobile a:hover { background: var(--soft); }

/* hero: text on charcoal, photo beside it (stacks on phones) */
.hero { display: flex; flex-wrap: wrap; background: var(--dark); color: #fff; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 80px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 80px; padding-right: 40px; }
.hero .label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0.03em; color: #E4E2DC; margin: 0 0 20px; }
.hero .label::before { content: ""; width: 28px; height: 3px; background: var(--accent); flex: none; }
.hero .btn { padding: 12px 18px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.06; margin: 0 0 20px; max-width: 640px; }
.hero-sub { font-size: 19px; line-height: 1.6; color: #E4E2DC; margin: 0 0 32px; max-width: 560px; }
.hero-photo { flex: 1 1 520px; min-width: 0; margin: 0; position: relative; min-height: 400px; }
.hero-photo picture { position: absolute; inset: 0; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; right: 16px; bottom: 16px; background: rgba(20,22,24,0.75); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 4px; }
.hero-photo figcaption:empty { display: none; }
.proof { background: var(--soft); border-bottom: 1px solid var(--line); }
.proof ul { list-style: none; margin: 0 auto; padding: 22px 24px; max-width: var(--wrap); display: flex; flex-wrap: wrap; gap: 10px 44px; font-weight: 600; font-size: 16px; }
.proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-right: 10px; vertical-align: 2px; }

/* sections */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 14px; max-width: 760px; }
.lead { font-size: 19px; color: var(--text); max-width: 720px; margin: 0 0 40px; }
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 340px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.card::before { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin-bottom: 18px; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--text); }

/* projects */
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.project { text-decoration: none; color: var(--ink); display: block; }
.project img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.project .meta { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 12px; }
.project .name { font-size: 20px; font-weight: 600; line-height: 1.3; }
.project .note { font-size: 15px; line-height: 1.5; color: var(--muted, #555); margin-top: 6px; }
.page-head .detail { margin-top: 12px; }
a.project:hover .name { text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.filters a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
.filters a:hover { border-color: var(--ink); }
.filters a span { color: var(--muted); font-weight: 400; }
.group { padding: 40px 0 16px; scroll-margin-top: 90px; }
.group h2 { font-size: 28px; margin: 0 0 22px; }
.group:last-child { padding-bottom: 88px; }

/* split */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.split p { color: var(--text); margin: 0 0 14px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 200px; padding: 20px 0 0; border-top: 3px solid var(--accent); }
.steps .num { font-weight: 600; font-size: 32px; color: var(--ink); }
.steps h3 { font-size: 19px; font-weight: 600; margin: 6px 0; }
.steps p { margin: 0; color: var(--text); font-size: 16px; }

/* contact band */
.band { background: var(--dark); color: #fff; }
.band-grid { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; justify-content: space-between; padding-top: 76px; padding-bottom: 76px; }
.band-grid > div { flex: 1 1 420px; min-width: 0; }
.band h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 10px; }
.band p { margin: 0 0 28px; font-size: 19px; color: #D9D8D3; max-width: 620px; }
.send { border: 1px solid #3A4045; border-radius: var(--radius); padding: 28px 32px; }
.send h3 { font-size: 19px; font-weight: 600; margin-bottom: 14px; color: #fff; }
.send ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.send li { display: flex; gap: 12px; color: #E4E2DC; }
.send li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 10px; background: var(--accent); border-radius: 50%; }

/* trust */
.trust { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; }
.trust > div { flex: 1 1 520px; min-width: 0; }
.clients { list-style: none; margin: 20px 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clients li { border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; font-weight: 500; font-size: 15px; background: #fff; }
.cons-h { font-size: 15px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin: 8px 0 0; }
.engineer { flex: 1 1 340px; min-width: 0; background: #fff; border-radius: var(--radius); padding: 32px; }
.engineer blockquote { margin: 0 0 20px; }
.eng-photo { margin: 0 0 24px; }
.eng-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.eng-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.team { margin-top: 56px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-grid figure { margin: 0; }
.team-grid img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.engineer blockquote p { font-size: 20px; line-height: 1.5; color: var(--ink); margin: 0; }
.eng-name { font-weight: 600; font-size: 18px; }
.eng-role { color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { padding: 48px 0 56px; }
.gallery h2 { font-size: 28px; margin: 0 0 22px; }
.gallery .grid a { display: block; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.h-small { font-size: 28px !important; margin-bottom: 24px !important; }

/* project page */
.crumbs { font-size: 15px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); display: inline-block; padding: 12px 0; }
.page-head { padding: 18px 0 36px; }
.wrap > .page-head:first-child { padding-top: 48px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.page-head p { font-size: 20px; color: var(--text); margin: 0; max-width: 760px; }
.photo-main { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); margin: 32px 0 0; }
.facts div { padding: 20px 24px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.3; }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 56px 0 8px; }
.story h2 { font-size: 28px; margin-bottom: 10px; }
.story p { margin: 0; color: var(--text); }

/* legal */
.legal { max-width: 780px; padding-top: 40px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }

/* footer */
.site-footer { background: var(--darker); color: #C9C8C3; font-size: 15px; }
.site-footer a { color: #C9C8C3; display: inline-block; padding: 8px 0; }
.site-footer a:hover { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; padding-top: 52px; padding-bottom: 36px; }
.foot-top > div { flex: 1 1 220px; }
.foot-title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.foot-tag { color: var(--accent); font-weight: 500; margin-top: 10px; }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 18px; padding-bottom: 32px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
  .head-actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .logo img { height: 54px; }
  .btn-wa span { display: none; }
  .btn-wa { width: 44px; padding: 0; justify-content: center; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; flex-basis: 100%; }
  .hero-text { padding: 32px 20px 40px; }
  .hero-sub { font-size: 18px; }
  .engineer { padding: 24px; }
  .send { padding: 22px; }
  .section { padding: 64px 0; }
  .split img { height: 300px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; }
  .photo-main { aspect-ratio: 4 / 3; }
  .gallery .grid, .group .grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .project .name { font-size: 16px; }
  .project .meta { font-size: 13px; }
  .gallery { padding-bottom: 64px; }
}

.about { max-width: 760px; margin: 40px 0 8px; }
.about h2 { font-size: 28px; margin: 0 0 12px; }
.about p { font-size: 18px; line-height: 1.65; margin: 0; }

.about .prog-link { font-size: 16px; color: var(--text); margin-top: 14px; }
.track { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 64px; margin-top: 28px; }
.track h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.figs { list-style: none; margin: 0; padding: 0; }
.figs li { display: flex; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.figs .v { flex: 0 0 120px; font-weight: 600; font-size: 22px; color: var(--ink); }
.figs .l { color: var(--text); }
.foot-bottom::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; border-top: 1px solid #2E3336; }
.band .inst { font-size: 16px; margin: 22px 0 0; color: #D9D8D3; }
.band .inst a { color: #fff; }
