/* ============================================================
   COMET SITE STYLES
   Colors are defined once as variables. Every yellow is the logo
   yellow. White is the main surface, charcoal is secondary, yellow
   is for buttons and small accents, grey is support.
   ============================================================ */
/* Fonts: self-hosted (Privacy Policy 5.1; CSP font-src 'self'). SIL OFL, see /fonts/OFL.txt */
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --fg: #262835;
  --muted: #5c5e63;
  --line: #e4e5e8;
  --soft: #f4f4f5;
  --panel: #262835;
  --panel-fg: #ffffff;
  --panel-muted: #a7a9ae;
  --yellow: #FED600;
  --yellow-ink: #262835;
  --max: 1180px;
  --radius: 6px;
  --head: "Inter Tight", Inter, Arial, sans-serif;
  --body: Inter, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
section { padding: 72px 0; }
@media (max-width: 860px) { section { padding: 52px 0; } }
.eyebrow { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; color: var(--muted); margin-bottom: 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 4px; background: var(--yellow); margin-right: 10px; vertical-align: middle; }
.lead { font-size: 1.2rem; max-width: 640px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font-family: var(--head); font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .12s; white-space: nowrap; }
.btn-primary { background: var(--yellow); color: var(--yellow-ink); border-color: var(--yellow); }
.btn-primary:hover { background: #ffe14a; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--soft); }
.on-dark .btn-outline { color: var(--panel-fg); border-color: var(--panel-fg); }
.on-dark .btn-outline:hover { background: rgba(255,255,255,.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand .desc { white-space: nowrap; font-family: var(--head); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { color: var(--muted); }
.nav .phone { color: var(--fg); font-weight: 600; }
.hdr-phone { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--fg); margin: 5px 0; border-radius: 2px; }
@media (max-width: 1180px) { .brand .desc { display: none; } }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .hdr-phone { display: flex; margin-left: auto; margin-right: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; }
  .hdr-phone .ic { width: 24px; height: 24px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a.btn { border-bottom: 0; margin-top: 12px; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 44px; }
  .nav { top: 64px; }
}

/* Hero */
.hero { padding: 0; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: 600px; padding-block: 64px; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero .note { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 7 / 5; background: var(--soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-photo .chip { position: absolute; left: 14px; bottom: 10px; background: var(--yellow); color: var(--yellow-ink); font-family: var(--head); font-weight: 800; padding: 10px 14px; border-radius: var(--radius); font-size: 0.95rem; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 44px; gap: 28px; } .hero-photo { aspect-ratio: 7/5; } }

/* Hero version B: dark, built around the tagline */
.hero-b { background: var(--panel); color: var(--panel-fg); }
.hero-b .wrap { display: block; min-height: 0; padding-block: 100px 90px; text-align: left; }
.hero-b h1 { font-size: clamp(3rem, 8.5vw, 7rem); line-height: 0.95; max-width: 11ch; }
.hero-b h1 em { font-style: normal; color: var(--yellow); }
.hero-b .lead { color: var(--panel-fg); max-width: 560px; font-size: 1.25rem; margin-top: 22px; }
.hero-b .note { color: var(--panel-muted); }
.hero-b-bg { position: absolute; inset: 0; background: url("/img/hero-bg-1600.jpg") center/cover no-repeat; }
@media (max-width: 860px) { .hero-b-bg { background-image: url("/img/hero-bg-m.jpg"); } }
.hero-b-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,40,53,.94) 0%, rgba(38,40,53,.78) 45%, rgba(38,40,53,.35) 100%); }
@media (max-width: 860px) { .hero-b-bg::after { background: linear-gradient(180deg, rgba(38,40,53,.9) 0%, rgba(38,40,53,.8) 100%); } }
.hero-a h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; max-width: 15ch; }
.hero-a .lead { max-width: 600px; }
.hero-b .wrap { position: relative; }
@media (max-width: 860px) { .hero-b .wrap { padding-block: 60px 56px; } }

/* Commitments */
.commit { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.commit h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); text-align: left; margin-bottom: 8px; }
.commit .tag-sub { color: var(--muted); margin-bottom: 72px; font-size: 1.1rem; }
.commit-item { padding-top: 0; }
.commit-item .ic { width: 52px; height: 52px; padding: 13px; background: var(--yellow); border-radius: var(--radius); margin-bottom: 14px; color: var(--yellow-ink); }
@media (max-width: 700px) { .commit-item { border-top: 1px solid var(--line); padding-top: 18px; } .commit-item:first-child { border-top: 0; padding-top: 0; } }
.commit-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.commit-item p { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* Icons: simple outline strokes, black on white or white on dark */
.ic { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Serve: photo on top at a fixed 3:2 frame, text below, so every image scales down whole */
.serve-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.serve-card .pic { aspect-ratio: 3 / 2; background: var(--soft); overflow: hidden; }
.serve-card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.serve-card .body { padding: 18px 18px 20px; display: grid; grid-template-rows: auto 1fr auto; flex: 1; }
.serve-card h3 { margin-bottom: 6px; font-size: 1.12rem; }
.serve-card p { color: var(--muted); font-size: 0.95rem; margin: 0; min-height: 2.9em; }
.serve-card .tagline-chip { justify-self: start; margin-top: 12px; color: var(--fg); font-family: var(--head); font-weight: 700; font-size: .9rem; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.serve-card:hover .tagline-chip { color: var(--muted); }

/* Steps */
.steps { background: var(--soft); }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 22px; position: relative; }
.steps-grid { gap: 16px; }
@media (max-width: 1000px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }
.step .num { font-family: var(--head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--yellow); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps .cta { margin-top: 34px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* Services */
.service { border-top: 1px solid var(--line); padding-top: 22px; }
.service .ic { width: 36px; height: 36px; margin-bottom: 12px; }
.service ul { padding-left: 18px; margin: 10px 0 0; color: var(--muted); }
.service li { margin-bottom: 4px; }

/* On every job standards */
.standards { background: var(--soft); }
.std { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: var(--radius); padding: 22px 22px 20px; }
.std .ic { width: 34px; height: 34px; margin-bottom: 12px; }
.std h3 { font-size: 1.08rem; margin-bottom: 6px; }
.std p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Dark panel sections */
.on-dark { background: var(--panel); color: var(--panel-fg); }
.on-dark .eyebrow { color: var(--panel-muted); }
.on-dark .muted, .on-dark p.muted { color: var(--panel-muted); }
.on-dark h2, .on-dark h3 { color: var(--panel-fg); }
.gc .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gc ul.checks { list-style: none; padding: 0; margin: 18px 0 26px; }
.docs-list { margin: 0; padding-left: 18px; color: var(--panel-fg); }
.docs-list li { margin-bottom: 6px; }
.gc ul.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
.gc ul.checks .ic { width: 24px; height: 24px; flex: none; color: var(--yellow); margin-top: 2px; }
@media (max-width: 860px) { .gc .wrap { grid-template-columns: 1fr; } }

/* Documents */
.doc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.doc .ic { width: 34px; height: 34px; margin-bottom: 12px; }
.doc h3 { font-size: 1.1rem; }
.doc p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Why */
.why .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.why .photo img { width: 100%; height: 100%; object-fit: cover; }
.why .points { list-style: none; padding: 0; margin: 20px 0 0; }
.why .points li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.why .points .ic { width: 24px; height: 24px; }
.why .points strong { display: block; font-family: var(--head); }
@media (max-width: 860px) { .why .wrap { grid-template-columns: 1fr; } }

/* About */
.about { background: var(--soft); }
.about .wrap > * { max-width: 820px; }
.about h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Contact */
.contact { padding: 0; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; padding-block: 72px; }
.contact .info p { margin-bottom: 14px; }
.contact .info strong { font-family: var(--head); display: block; font-size: .95rem; letter-spacing: .01em; color: var(--panel-fg); margin-bottom: 2px; }
.contact .info a, .contact .info span { color: #d9dadd; text-decoration: none; font-size: 1rem; font-weight: 400; font-family: var(--body); }
.contact .info a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 52px; } }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { padding: 10px; background: var(--soft); }
.consent { font-size: .8rem; color: var(--panel-muted); margin: 12px 0 0; }
.on-dark form { background: var(--bg); color: var(--fg); padding: 26px; border-radius: var(--radius); }
.on-dark form .consent { color: var(--muted); }

/* Footer */
.site-footer { background: var(--panel); color: var(--panel-muted); padding: 44px 0 36px; border-top: 1px solid rgba(255,255,255,.12); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 14px; }
.site-footer a { color: var(--panel-fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .col a { display: block; margin-bottom: 8px; }
.site-footer .social { display: flex; align-items: center; gap: 10px; }
.site-footer .social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.site-footer .social a:hover { border-color: var(--yellow); }
.site-footer .social svg { width: 18px; height: 18px; fill: var(--panel-fg); }
.site-footer .social span { margin-left: 4px; }
.site-footer .col h4 { color: var(--panel-fg); font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; margin-top: 8px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; } }


/* ---------- r1 additions ---------- */
/* Phone items stay hidden until config.js has a number (config.js adds .has-phone). */
html:not(.has-phone) .phone-item { display: none !important; }
.mt { margin-top: 36px; }
.commit-grid { max-width: 860px; gap: 40px; }
@media (max-width: 700px) { .commit-grid { gap: 24px; } }
.gc .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.doc-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.doc-dark .ic { color: var(--yellow); }
.doc-dark a { color: #fff; overflow-wrap: anywhere; }
.why .lead { margin-top: 8px; }
.btn-block { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.opt { font-weight: 400; color: var(--muted); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23262835' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input, select { min-height: 48px; }
.sms-consent label, .email-consent label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .85rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.sms-consent input, .email-consent input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--fg); }
.consent-links { display: block; font-size: .85rem; color: var(--muted); margin: 6px 0 0 34px; }
.consent a, .consent-links a { color: var(--fg); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin: 6px 0 14px; min-height: 65px; }
.form-status { background: #fdecea; color: #8a1c12; border: 1px solid #f3b8b0; border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; margin: 0 0 14px; }
.contact form { position: relative; }
/* Legal and simple pages */
.legal-doc { max-width: 780px; }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal-doc h2 { font-size: 1.4rem; margin-top: 2em; }
.legal-doc p, .legal-doc li { color: #34363f; }
.legal-doc a { overflow-wrap: anywhere; }
.simple-page { padding: 96px 0; }
.simple-page .lead { margin-bottom: 28px; }
.simple-page .actions { display: flex; gap: 14px; flex-wrap: wrap; }
/* Tap targets: 44px minimum on touch screens */
.nav-toggle { min-width: 44px; min-height: 44px; }
.site-footer .social a { width: 44px; height: 44px; }
@media (max-width: 1000px) {
  .site-footer .col a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
  .site-footer .legal a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Commitments (r1i: four items): heading on the left, the promises in a 2x2 grid on the right */
.commit .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.commit .tag-sub { margin-bottom: 0; }
.commit-grid { max-width: none; }
.commit-item { background: var(--soft); border-radius: var(--radius); padding: 24px 22px; }
@media (max-width: 860px) { .commit .wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 700px) { .commit-item, .commit-item:first-child { border-top: 0; padding: 22px 20px; } }
.commit-head h2 { margin-bottom: 10px; }
.commit-grid .commit-item h3 { margin-top: 14px; }
/* Phones: shorter page. Serve cards go photo-left, steps put the number beside the text. */
@media (max-width: 700px) {
  .serve-card { flex-direction: row; }
  .serve-card .pic { aspect-ratio: auto; flex: 0 0 38%; }
  .serve-card .body { padding: 14px 14px 16px; }
  .serve-card p { min-height: 0; font-size: .92rem; }
  .serve-card .tagline-chip { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 16px; }
  .step .num { grid-row: span 2; font-size: 2.1rem; margin-bottom: 0; }
  .commit-item, .commit-item:first-child { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: start; padding: 18px 16px; }
  .commit-item .ic { grid-row: span 2; margin-bottom: 0; }
  .commit-grid .commit-item h3 { margin-top: 0; }
}
@media (max-width: 1000px) {
  .nav.open { box-shadow: 0 18px 30px -12px rgba(38,40,53,.35); }
  .hdr-phone { width: 44px; height: 44px; }
}
/* r1i: four commitments in a 2x2 grid. Tighter tile gap, icon sits closer to its
   title, and headings and short bodies wrap without a lone last word. */
.commit-grid { gap: 24px; }
.commit-grid .commit-item h3 { margin-top: 0; }
#commitments h2, #standards h2, #why h2 { text-wrap: balance; }
#commitments p, #standards p, #why .points div { text-wrap: pretty; }
