/* Three colours: cell blue, sun yellow, paper. Everything else is a tint of those. */
:root {
  --cell: #12355b;
  --cell-deep: #0b2038;
  --sun: #f5b301;
  --paper: #f6f8fb;
  --white: #fff;
  --line: rgba(18, 53, 91, .16);
  --muted: #4d6480;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --r: 14px;
}

* { box-sizing: border-box; }
/* anchors stop exactly under the sticky header (its height is set by site.js), so a section's own
   background starts right below it; headings, cards and other blocks get a little breathing room */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 4.5rem); }
[id]:not(section) { scroll-margin-top: 1.5rem; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--cell-deep); background: var(--paper); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 650; margin-bottom: .35em; }
/* one gap between a section's title (and intro line) and its content */
:root { --title-gap: 1.25rem; }
.after-title, h2 + .calc, h2 + .facts { margin-top: var(--title-gap); }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--cell); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.band { padding: clamp(1.75rem, 3.5vw, 3rem) 0; }
.band-dark { background: var(--cell); color: var(--white); }
.band-dark a { color: var(--white); }
.band-white { background: var(--white); }
.lede { font-size: 1.2rem; color: var(--muted); }
.band-dark .lede, .hero .lede, .page-head .lede { color: #c9d8e8; }
.muted { color: var(--muted); font-size: .95rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(11, 32, 56, .92); backdrop-filter: blur(10px); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; padding: .4rem 0; }
.brand { font: 700 1.25rem var(--display); color: var(--white); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: .55rem; }
.brand::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); }
.site-header nav { display: flex; gap: 1.4rem; }
.site-header nav a { color: #d5e1ee; text-decoration: none; font-weight: 500; padding: .5rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--white); border-color: var(--sun); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-sun { background: var(--sun); color: var(--cell-deep); }
.btn-sun:hover { background: #ffc629; }
.btn-line { border-color: currentColor; background: none; color: inherit; }
.btn-cell { background: var(--cell); color: var(--white); }
.btn-cell:hover { background: var(--cell-deep); }
.cf-turnstile { margin: .25rem 0 1rem; min-height: 65px; } /* Cloudflare's "are you human" box; room reserved so nothing jumps */
.cf-turnstile:empty { min-height: 0; margin: 0; } /* Turnstile off: no gap */
/* a form that is sending: dimmed fields, spinner on the button */
form[aria-busy="true"] :is(input, select, textarea, label) { opacity: .6; }
.btn.loading { gap: .55rem; cursor: progress; opacity: 1; }
.btn.loading::before { content: ''; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* quotation sheet while it is being created and emailed: faded, with a spinner and a label over it */
.sheet[aria-busy="true"] { position: relative; }
.sheet[aria-busy="true"] > * { opacity: .25; pointer-events: none; transition: opacity .2s; }
.sheet[aria-busy="true"]::before { content: ''; position: absolute; z-index: 3; top: 5rem; left: 50%; width: 2.2rem; height: 2.2rem; margin-left: -1.1rem; border: 3px solid var(--cell); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.sheet[aria-busy="true"]::after { content: 'Creating your quotation…'; position: absolute; z-index: 2; top: 4rem; left: 50%; transform: translateX(-50%); padding: 3.6rem 1.5rem 1.1rem; white-space: nowrap; background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(20, 14, 54, .15); font-weight: 600; color: var(--cell); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--cell); color: var(--white); padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero .sun { position: absolute; width: min(70vw, 720px); aspect-ratio: 1; border-radius: 50%; right: -18%; top: -52%; background: radial-gradient(circle, var(--sun) 0 52%, transparent 52.4% 61%, rgba(245, 179, 1, .7) 61.4% 62%, transparent 62.4% 72%, rgba(245, 179, 1, .35) 72.4% 73%, transparent 73.4%); will-change: transform; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 44ch; }
.bill-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-top: 1.75rem; }
.bill-form label { flex: 1 1 100%; font-weight: 600; }
.peso { position: relative; flex: 1 1 200px; }
.peso::before { content: '₱'; position: absolute; left: 1rem; top: 50%; translate: 0 -50%; font-weight: 600; color: var(--muted); }
.peso input[type=number] { padding-left: 2.2rem; }
.hero-out { min-height: 3.2em; margin-top: 1.1rem; font-size: 1.05rem; color: #e6eef7; }
.hero-out strong { color: var(--sun); font-family: var(--display); font-size: 1.35rem; }

/* 3D roof */
.roof-scene { perspective: 1000px; height: clamp(300px, 40vw, 460px); display: grid; place-items: center; }
.array { --rx: 56deg; --rz: -34deg; display: grid; grid-template-columns: repeat(6, clamp(34px, 4.6vw, 56px)); gap: 6px; padding: 14px; min-width: 120px; min-height: 120px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .28); transform: rotateX(var(--rx)) rotateZ(var(--rz)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.panel { aspect-ratio: 5 / 8; background: linear-gradient(135deg, rgba(255, 255, 255, .22), transparent 45%), repeating-linear-gradient(0deg, transparent 0 11px, rgba(255, 255, 255, .22) 11px 12px), repeating-linear-gradient(90deg, transparent 0 11px, rgba(255, 255, 255, .22) 11px 12px), #1f5796; border: 2px solid #dfe9f4; transform: translateZ(12px); box-shadow: -10px 10px 0 rgba(4, 16, 30, .35); animation: land .4s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes land { from { opacity: 0; transform: translateZ(110px); } }

/* forms */
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input[type=text], input[type=number], input[type=tel], input[type=email], textarea { width: 100%; min-height: 48px; padding: .7rem 1rem; font: inherit; color: var(--cell-deep); background: var(--white); border: 2px solid var(--line); border-radius: 10px; }
input:focus, textarea:focus { border-color: var(--cell); outline: 3px solid rgba(245, 179, 1, .5); outline-offset: 0; }
input[type=range] { width: 100%; accent-color: var(--cell); min-height: 32px; }
.field { margin-bottom: 1.1rem; }
.field small { color: var(--muted); display: block; margin-top: .3rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; border: 0; padding: 0; margin: 0 0 1.1rem; }
.seg legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .7rem .6rem; text-align: center; border: 2px solid var(--line); border-radius: 10px; background: var(--white); font-weight: 600; }
.seg small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.seg input:checked + span { border-color: var(--cell); background: var(--cell); color: var(--white); }
.seg input:checked + span small { color: #c9d8e8; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.check { display: flex; gap: .6rem; align-items: start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--cell); }
.error { color: #a12b12; font-weight: 600; }
.ok { color: #14613a; font-weight: 600; }
/* form results (quotation, contact): an information card on success, a warning card on a problem */
[role=status]:is(.ok, .error) { padding: .6rem .85rem; border-radius: 8px; border: 1px solid; border-left-width: 4px; font-size: .9rem; font-weight: 500; line-height: 1.45; color: #1d2433; }
[role=status].ok { background: #ecf7f0; border-color: #bfe3cc; border-left-color: #1f8a4c; color: #14532d; }
[role=status].error { background: #fff7e0; border-color: #f1dc9c; border-left-color: #d99a00; }
[role=status]:is(.ok, .error) a { font-weight: 600; }
[role=status]:empty { display: none; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
/* Buddy under the calculator: the left column runs the full height so his card can stay in view beside the long result */
.calc-side { align-self: stretch; display: flex; flex-direction: column; gap: 1.25rem; }
.buddy-tip { position: sticky; top: calc(var(--header-h, 64px) + 1rem); display: flex; align-items: center; gap: 1.1rem; }
.buddy-tip img { flex: none; width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--sun); }
.buddy-tip p { margin: 0 0 .75rem; }
@media (max-width: 900px) { .buddy-tip { display: none; } } /* phones: the result comes straight after the form; the Messenger button is always there */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2rem); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 1.25rem; }
.stats div { background: var(--white); padding: 1rem; }
.stats dt { color: var(--muted); font-size: .9rem; }
.stats dd { margin: 0; font: 650 1.5rem var(--display); }
.stats .big { grid-column: 1 / -1; background: var(--cell); color: var(--white); }
.stats .big dt { color: #c9d8e8; }
.stats .big dd { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--sun); }

.sheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 3vw, 2.5rem); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; flex-wrap: nowrap; border-bottom: 3px solid var(--sun); padding-bottom: 1.1rem; margin-bottom: 1.4rem; }
.sheet-head p { margin: 0; }
/* the quotation document: letterhead, parties, items, warranty and terms, signatures */
.q-from { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.q-logo { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--sun); }
.q-biz { font: 700 1.35rem/1.2 var(--display); color: var(--cell-deep); }
.q-biz-line { margin-top: .15rem !important; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.q-doc { flex: none; text-align: right; }
.q-doc-title { margin: 0 0 .45rem; font: 700 1.7rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--cell-deep); }
.q-meta { display: grid; grid-template-columns: auto auto; justify-content: end; gap: .15rem 1rem; margin: 0; font-size: .86rem; }
.q-meta dt { color: var(--muted); }
.q-meta dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.q-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; margin-bottom: 1.4rem; }
.q-parties h4, .q-notes h4 { margin: 0 0 .35rem; font: 700 .72rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--cell); }
.q-parties p { margin: 0; font-size: .92rem; line-height: 1.55; }
.q-items thead th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--cell-deep); }
.q-items tbody td:first-child { color: var(--cell-deep); font-weight: 600; }
.q-items tbody td small { font-weight: 400; margin-top: .2rem; }
.q-items tfoot td { padding: .8rem .6rem; color: var(--cell-deep); background: color-mix(in srgb, var(--sun) 22%, var(--white)); }
.q-notes { margin-top: 1.5rem; font-size: .86rem; color: var(--muted); }
.q-notes p { margin: 0 0 1rem; }
.q-notes ol { margin: 0; padding-left: 1.2rem; }
.q-notes li + li { margin-top: .2rem; }
.q-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin-top: 2rem; break-inside: avoid; }
.q-line { display: block; height: 2rem; border-bottom: 1px solid var(--cell-deep); }
.q-sign p { margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.q-sign strong { color: var(--cell-deep); }
.q-thanks { max-width: none; margin: 1.5rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .88rem; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td small { display: block; color: var(--muted); }
tfoot td { font: 650 1.2rem var(--display); border-bottom: 0; }
.sheet ul { padding-left: 1.2rem; color: var(--muted); font-size: .92rem; }

/* cards and grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pack { display: flex; flex-direction: column; gap: .4rem; transition: transform .2s ease-out; transform-style: preserve-3d; }
.pack .price { font: 700 2.1rem var(--display); color: var(--cell); }
.pack ul { list-style: none; padding: 0; margin: .5rem 0 1.25rem; }
.pack li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.pack .btn { margin-top: auto; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: var(--title-gap) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--sun); padding-top: 1rem; }
.steps li::before { content: counter(s); font: 700 2.2rem var(--display); display: block; line-height: 1; margin-bottom: .5rem; }
.steps p { color: inherit; opacity: .85; font-size: .98rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts svg { width: 30px; height: 30px; flex: none; align-self: center; color: var(--cell); }
.facts svg + span { flex: 1; align-self: center; }
.facts strong { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.facts strong:has(a) { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; } /* long emails wrap on small phones */
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
summary { font: 600 1.1rem var(--display); cursor: pointer; }
details p { margin: .75rem 0 0; color: var(--muted); }
.page-head { background: var(--cell); color: var(--white); padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; position: relative; overflow: hidden; }
.page-head .sun { position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%; right: -120px; top: -220px; background: radial-gradient(circle, var(--sun) 0 52%, transparent 52.4% 62%, rgba(245, 179, 1, .7) 62.4% 63%, transparent 63.4%); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); max-width: 16ch; }

.site-footer { background: var(--cell-deep); color: #c9d8e8; padding: 2.5rem 0; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.site-footer a { color: var(--white); }
.site-footer p { margin: 0; }
/* footer rows: an icon in front of every item */
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; max-width: 34ch; }
.foot-list li { display: flex; align-items: flex-start; gap: .6rem; }
.foot-list .ico { flex: none; width: 18px; height: 18px; margin-top: .15em; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-brand { align-items: center !important; font: 700 1.1rem var(--display); color: var(--white); }
.foot-brand img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--sun); }
.foot-copy { flex: 1 1 100%; max-width: none; margin-top: .5rem !important; padding-top: 1.25rem; text-align: center; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .12); }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .hero-grid, .calc, .split, .grid-3 { grid-template-columns: 1fr; }
  .site-header { position: static; }
  .site-header .wrap { gap: 0 1.5rem; }
  .site-header .btn { display: none; }
  .site-header nav { gap: 1.1rem; font-size: .95rem; }
  .roof-scene { height: 260px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .two, .seg { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
}

/* Download PDF = browser print: only the quotation sheet survives */
@media print {
  .no-print, .site-header, .site-footer, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .band { padding: 0; }
  .wrap { width: 100%; }
  .calc { display: block; }
  .sheet { border: 0; padding: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; } /* keep the yellow rule and total band */
  #calculator, #r-mission { display: none !important; }
  html.print-fit #quote-sheet { width: 680px; max-width: none; zoom: var(--print-zoom, 1); } /* phones: A4 layout, scaled (set in quote.js) */
  .q-items tr, .q-notes, .q-sign { break-inside: avoid; }
  .stats .big, .band-dark { background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { size: A4; margin: 14mm 15mm 16mm; }

/* quick-pick amounts, part pictures, reviews */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 100%; margin-top: .6rem; }
.chips button { min-height: 40px; padding: .35rem .9rem; font: 600 .92rem var(--body); color: inherit; background: none; border: 1.5px solid currentColor; border-radius: 999px; cursor: pointer; opacity: .85; }
.chips button:hover { opacity: 1; background: rgba(127, 127, 127, .15); }
.hero-note { font-size: .92rem; opacity: .8; margin: .9rem 0 0; }
.item { min-width: 230px; }
td small.warranty { color: var(--cell); font-weight: 600; }
.review { position: relative; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.review blockquote { margin: 0; font-size: 1.05rem; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: .92rem; }
.stars { color: var(--sun); font-size: 1.2rem; letter-spacing: .1em; -webkit-text-stroke: .5px var(--cell-deep); }
.sample { position: absolute; top: .9rem; right: .9rem; padding: .1rem .55rem; font-size: .78rem; font-weight: 700; color: #7a2e0e; background: #ffe4d2; border-radius: 6px; }

/* floating Messenger button, brands strip, install photos */
.chat-float { position: fixed; z-index: 25; right: 16px; bottom: 16px; display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem 1.1rem; font: 600 1rem var(--body); color: var(--white); background: var(--cell-deep); border: 2px solid var(--sun); border-radius: 999px; text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.chat-float:hover { transform: translateY(-2px); }
.chat-float svg { width: 22px; height: 22px; color: var(--sun); } /* a chat icon: Buddy already shows as the header logo */
@media (max-width: 600px) { /* phones: a compact pill that covers less of the page */
  .chat-float { right: 12px; bottom: 12px; gap: .35rem; min-height: 40px; padding: .4rem .85rem .4rem .7rem; font-size: .88rem; border-width: 1.5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
  .chat-float svg { width: 18px; height: 18px; }
}
/* Buddy on the Daybreak home banner: floats in the empty right half, only where the screen has room */
.hero-buddy { display: none; }
@media (min-width: 1000px) and (min-height: 640px) {
  [data-design=e] .hero-buddy { display: flex; flex-direction: column; align-items: center; gap: .75rem; position: absolute; z-index: 1; margin: 0;
    right: max(2rem, calc((100vw - 1140px) / 2 + 3rem)); top: clamp(4rem, 16vh, 10rem); width: clamp(190px, 26vh, 280px); }
  [data-design=e] .hero-buddy img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--sun); box-shadow: 0 14px 34px rgba(42, 31, 107, .28); }
  [data-design=e] .hero-buddy figcaption { position: relative; padding: .6rem .9rem; font: 600 .95rem/1.35 var(--display); text-align: center; color: var(--cell-deep); background: var(--white); border-radius: 14px; box-shadow: 0 6px 18px rgba(42, 31, 107, .15); }
  [data-design=e] .hero-buddy figcaption::before { content: ''; position: absolute; top: -8px; left: 50%; translate: -50% 0; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--white); }
}
.page-mascot { position: absolute; right: clamp(0px, 16vw, 240px); top: 50%; transform: translateY(-50%); width: 170px; height: 170px; border-radius: 50%; border: 4px solid var(--sun); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); pointer-events: none; } /* left of the page-head sun, so the helmet stays visible */
.page-head:has(.page-mascot) .wrap h1, .page-head:has(.page-mascot) .wrap .lede { max-width: calc(100% - clamp(0px, 16vw, 240px) - 200px); }
@media (max-width: 700px) { .page-mascot { right: 0; width: 92px; height: 92px; border-width: 3px; } .page-head:has(.page-mascot) .wrap h1, .page-head:has(.page-mascot) .wrap .lede { max-width: calc(100% - 105px); } }
.site-footer { padding-bottom: 5rem; } /* room for the button above the last footer line */
.brand img { height: 38px; width: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sun); }
.brand.has-logo::before { display: none; }
.kicker { margin: 0 0 .4rem; font: 700 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.brands-band h2 { max-width: 30ch; }
.brand-grid { list-style: none; padding: 0; margin: var(--title-gap) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.brand-grid li { display: grid; place-items: center; min-height: 68px; padding: .75rem .6rem; text-align: center; font: 700 1.15rem var(--display); letter-spacing: -.01em;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r); background: var(--cell-deep, #140e36); }
.brand-grid img { display: block; max-width: 100%; max-height: 36px; width: auto; height: auto; object-fit: contain; }
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: .9rem 0; font-size: .95rem; }
.trust .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }
.trust .label { color: var(--muted); }
.trust strong { font-family: var(--display); }
.trust .tick::before { content: '✓ '; color: var(--cell); font-weight: 700; }
.trust .sample { position: static; }
.project { position: relative; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.project img, .project .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project .ph { display: grid; place-content: center; justify-items: center; gap: .4rem; color: var(--muted); background: var(--paper); }
.project .ph svg { width: 44px; height: 44px; }
.project figcaption { padding: .75rem 1rem; font-weight: 600; }
.site-footer nav { display: flex; flex-direction: column; gap: .15rem; }

/* services page */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: var(--title-gap); }
.service { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.service > svg { width: 44px; height: 44px; color: var(--cell); }
.service h3, .service p { margin: 0; }
/* what's included: always visible, checkmark list (no click needed) */
.service .incl { width: 100%; padding-top: .75rem; margin-top: .2rem; border-top: 1px solid var(--line); }
.service .incl-label { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.service .ticks { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .4rem; font-size: .95rem; line-height: 1.45; }
.service .ticks li { position: relative; padding-left: 1.6rem; }
.service .ticks li::before { content: ''; position: absolute; left: .2rem; top: .28em; width: .45rem; height: .8rem;
  border: solid var(--cell); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.service .btn { margin-top: auto; }
.svc-jump { margin-top: 1.5rem; }
/* mission: ribbon above the home headline, About section and Home teaser */
.mission-pill { display: inline-flex; align-items: center; gap: .55rem; margin-top: clamp(.5rem, 1.6svh, 1rem); padding: .4rem .9rem .4rem .5rem;
  border-radius: 999px; font-size: clamp(.8rem, 1.9svh, .95rem); font-weight: 600; line-height: 1.3; color: inherit; text-decoration: none;
  background: color-mix(in srgb, var(--sun) 22%, transparent); border: 1px solid color-mix(in srgb, var(--sun) 65%, transparent); }
.pill-short { display: none; }
@media (max-width: 600px) { .pill-long { display: none; } .pill-short { display: inline; } .mission-pill { white-space: nowrap; } }
.mission-pill:hover { background: color-mix(in srgb, var(--sun) 38%, transparent); }
.pill-sun { flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 35%, transparent); }
.mission .outreach { margin-top: var(--title-gap); }
.mission .outreach h3 { margin-top: 0; }
.outreach-art { margin: 0 0 1rem; }
.outreach-art img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 450; object-fit: cover; border-radius: calc(var(--r) * .6); background: var(--line); }
.mission .outreach p { margin: .4rem 0 0; color: var(--muted); }
.mission-note { margin-top: 1.5rem; font-size: 1.05rem; }
/* mission section fits one screen on a 1080p monitor: tighter cards, sponsor card beside the verse */
.mission .outreach .card { padding: 1.25rem; }
.mission-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; align-items: center; margin-top: var(--title-gap); }
.mission-foot .mission-note { margin-top: 0; }
.mission-foot .verse { margin: 1.25rem 0 0; }
.sponsor { padding: 1.25rem 1.5rem; }
.sponsor-note { margin: 0 0 1rem; }
@media (max-width: 860px) { .mission-foot { grid-template-columns: 1fr; } }
/* wide screens: the section is one screen tall (capped at 1000px) and the picture row takes the spare
   height. The cards share the grid's rows (subgrid), so all three pictures stay the same height. */
@media (min-width: 1180px) {
  .mission { min-height: min(calc(100svh - var(--header-h, 64px)), 1000px); display: flex; flex-direction: column; }
  .mission > .wrap { flex: 1; display: flex; flex-direction: column; }
  .mission .outreach { flex: 1; grid-template-rows: minmax(141px, 1fr) auto auto; row-gap: 0; }
  .mission .outreach .card { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
  .outreach-art { position: relative; }
  .outreach-art img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
.verse { margin: 1.75rem 0 .75rem; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--sun); }
.verse p { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; max-width: 50ch; }
.verse cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 600; color: var(--muted); }
.mission .verse + .btn { margin-top: .75rem; }
/* subtle mission touches elsewhere: a small line with a sun dot */
.mission-line { margin: 1rem 0 0; font-size: .92rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.mission-line::before { content: ''; position: absolute; left: 0; top: .3em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--sun); }
.footer-mission { font-size: .88rem; opacity: .85; }

.more-services { margin: 1.75rem 0 0; }
select { width: 100%; min-height: 48px; padding: .7rem 1rem; font: inherit; color: var(--cell-deep); background: var(--white); border: 2px solid var(--line); border-radius: 10px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* moving between pages: the header, Messenger button and sun stay put and the page cross-fades (no sliding,
   which left a gap under the browser bar). Browsers without this just load the page. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
.site-header { view-transition-name: site-header; }
.chat-float { view-transition-name: chat-float; }
/* the menu bar: drawn above the sun (the sun sits under the bar's corner), and swapped
   instantly rather than cross-faded, since the two snapshots differ only in the underlined item and
   blending them read as a blur */
::view-transition-group(site-header), ::view-transition-group(chat-float) { z-index: 3; }
::view-transition-group(sun) { z-index: 1; }
::view-transition-old(site-header) { display: none; }
::view-transition-new(site-header) { animation: none; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out .25s ease-in both; }
::view-transition-new(page) { animation: page-in .45s ease-out both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }
/* the sun sits in the same corner on every page, so it is held still and swapped as is. It used to dip and
   rise, but browsers (phones especially) only snapshot its on-screen part: the cut edge slid into view and
   the full sun snapped back at the end, which read as a flicker. */
.hero .sun, .page-head .sun { view-transition-name: sun; }
::view-transition-group(sun), ::view-transition-image-pair(sun), ::view-transition-new(sun) { animation: none; }
::view-transition-old(sun) { display: none; }

/* phones: hamburger menu. The header becomes one compact row that stays at the top. */
.menu-btn { display: none; }
@media (max-width: 860px) {
  .site-header { position: sticky; }
  .site-header .wrap { min-height: 56px; gap: 0; }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-btn svg { width: 26px; height: 26px; }
  .menu-btn[aria-expanded=true] .bars, .menu-btn[aria-expanded=false] .close { display: none; }
  .site-header nav { display: none; flex: 1 1 100%; flex-direction: column; gap: 0; font-size: 1.05rem; }
  .site-header.open nav { display: flex; }
  .site-header nav a { padding: .85rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
  .site-header.open .btn { display: inline-flex; justify-content: center; flex: 1 1 100%; margin: .9rem 0; }
}

/* phones: the quotation reads as a list, so nothing needs sideways scrolling. Printing keeps the table. */
@media screen and (max-width: 640px) {
  .sheet-head { flex-wrap: wrap; }
  .sheet-head > div { flex: 1 1 100%; text-align: left !important; }
  .q-meta { justify-content: start; }
  .q-meta dd { text-align: left; }
  .q-parties, .q-sign { grid-template-columns: 1fr; }
  .table-scroll { overflow-x: visible; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* still read out by screen readers */
  .table-scroll table, .table-scroll tbody, .table-scroll tfoot { display: block; }
  .table-scroll tr { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 .4rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .table-scroll td { padding: 0; border: 0; }
  .table-scroll tbody td:first-child { grid-column: 1 / -1; margin-bottom: .5rem; }
  .table-scroll tbody td:nth-child(3) { text-align: left; color: var(--muted); }
  .table-scroll tbody td:nth-child(3)::before { content: '× '; }
  .table-scroll tbody td:nth-child(4) { font-weight: 600; }
  .table-scroll tfoot tr { grid-template-columns: 1fr auto; border-bottom: 0; }
  .item { min-width: 0; }
}

/* calculator disclaimer: estimate only, final price after the ocular visit */
.disclaimer { margin-top: 1rem; padding: .75rem 1rem; border-left: 3px solid var(--sun, currentColor); background: color-mix(in srgb, currentColor 5%, transparent); border-radius: 4px; font-size: .9rem; }
/* spam trap: off screen for people, still filled in by bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#lead-form .check { margin: .4rem 0 1.2rem; font-weight: 400; font-size: .95rem; }
#pin-msg { display: block; margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.official { margin-top: 2rem; }
.official h3 { margin-bottom: .4rem; }
/* calculator: Taglish step-by-step (Step 1, 2, 3 and the numbered result) */
.step { font: 650 1.05rem var(--display); margin: 0 0 .6rem; }
.seg legend.step { margin-bottom: .6rem; }
.step small { display: block; font: 400 .88rem var(--body); color: var(--muted); margin-top: .2rem; }
.hint { display: block; color: var(--muted); font-size: .85rem; margin-top: -.4rem; }
.use { font-weight: 600; margin: 0 0 1.3rem; min-height: 1.6em; }
.explain { counter-reset: e; list-style: none; padding: 0; margin: 0 0 1rem; }
.explain li { counter-increment: e; position: relative; padding: .55rem 0 .55rem 2.4rem; border-bottom: 1px solid var(--line); font-size: .95rem; max-width: none; }
.explain li::before { content: counter(e); position: absolute; left: 0; top: .5rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sun); color: var(--cell-deep); font: 700 .9rem/1.7rem var(--display); text-align: center; }
/* kWh line right under the bill: easy to notice */
#r-use:not(:empty) { background: color-mix(in srgb, var(--sun) 22%, var(--white)); border-left: 4px solid var(--sun); padding: .55rem .8rem; border-radius: 6px; margin: .2rem 0 .8rem; }
.alt { font-size: .95rem; margin: 0 0 1rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--cell); text-decoration: underline; cursor: pointer; }
.badge { display: inline-block; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; background: var(--sun); color: var(--cell-deep); font: 700 .72rem var(--body); vertical-align: middle; }
.stats dd small { display: block; font: 400 .85rem var(--body); color: var(--muted); }
/* package cards: medium, about 4 across on a wide screen, 2 on a phone */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 47%), 1fr)); gap: 1rem; margin: var(--title-gap) 0 1rem; }
.pkg { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; box-shadow: 0 6px 18px rgba(11, 32, 56, .06); }
.pkg.popular { border: 2px solid var(--sun); }
.pkg h3 { font-size: 1.2rem; margin: 0; }
.pkg .badge { display: block; width: fit-content; margin: .3rem 0 0; }
.pkg .price { font: 700 1.85rem var(--display); color: var(--cell); }
.pkg ul { list-style: none; padding: 0; margin: .4rem 0; font-size: .93rem; }
.pkg li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.pkg .grid-price { font-size: .86rem; color: var(--muted); margin: .2rem 0 .8rem; }
.pkg .inquire { margin-top: auto; text-align: center; font-weight: 600; padding: .55rem; border: 2px solid var(--cell); border-radius: 999px; text-decoration: none; }
.pkg .inquire:hover { background: var(--cell); color: var(--white); }
@media (max-width: 480px) { .pkg { padding: .9rem; } .pkg .price { font-size: 1.45rem; } .pkg ul, .pkg .grid-price { font-size: .82rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* package table on the Packages page: package, what's included, price (grid-tied under it) */
.pkg-table-wrap { margin: var(--title-gap) 0 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pkg-table { font-size: .95rem; }
.pkg-table th, .pkg-table td { padding: .75rem 1.1rem; vertical-align: middle; }
.pkg-table thead th { background: var(--paper); }
.pkg-table th[scope=row] { font: 650 1.1rem var(--display); color: var(--cell-deep); white-space: nowrap; }
.pkg-table th[scope=row] .badge { display: block; width: fit-content; margin: .3rem 0 0; }
.pkg-table .incl { color: var(--muted); line-height: 1.5; }
.pkg-table td.num { white-space: nowrap; }
.pkg-table .price { display: block; font: 700 1.3rem var(--display); color: var(--cell); }
.pkg-table .grid-price { display: block; color: var(--muted); font-size: .85rem; margin: .15rem 0 .4rem; }
.pkg-table .inquire { font-weight: 600; font-size: .9rem; }
.pkg-table tr.popular { background: color-mix(in srgb, var(--sun) 10%, var(--white)); }
.pkg-table tbody tr:last-child > * { border-bottom: 0; }
/* phones: each package is a block, name and price on top, what's included full width below */
@media (max-width: 560px) {
  .pkg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pkg-table, .pkg-table tbody { display: block; }
  .pkg-table tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .pkg-table tbody tr:last-child { border-bottom: 0; }
  .pkg-table th, .pkg-table td { padding: 0; border: 0; }
  .pkg-table td.num { grid-column: 2; grid-row: 1; }
  .pkg-table td.incl { grid-column: 1 / -1; }
  .pkg-table .incl { font-size: .88rem; }
  .pkg-table .price { font-size: 1.2rem; }
}

