/* 00  Core — resets and behaviour hooks only. Every visual decision for this
       site lives in the sections below, starting with the design tokens.    */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }
iframe { border: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: 0.5rem; top: 0.5rem; z-index: 999; transform: translateY(-160%); padding: 0.8rem 1.2rem; background: #000; color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field__error { margin: 0; min-height: 1rem; font-size: 0.82rem; font-weight: 700; color: var(--err); }
.field.is-invalid :where(input, select, textarea) { border-color: var(--err); }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; width: 100%; padding: 1rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.img-placeholder b { display: block; font-size: 0.92rem; letter-spacing: 0; text-transform: none; word-break: break-all; }
:target { scroll-margin-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Portside Finishing HVAC Group — portsidehvac.xyz
   THE DEVICE: the ledger. Nearly everything is an entry — a term on the left,
   a dotted leader across the gap, a value on the right. Services, inclusions,
   exclusions, contact details and the mobile call row are all the same line.
   01 Tokens · 02 Base · 03 Header · 04 Ledger contact rows · 05 Buttons
   06 Hero · 07 Page heads · 08 The ledger · 09 Sections
   10 Humidity (signature) · 11 FAQ · 12 Form & contact · 13 Footer · 14 Images
   ========================================================================== */

/* 01 Tokens */
:root {
  --paper: #eef1f4; --paper-2: #e0e5ea; --white: #ffffff;
  --navy: #16263a; --navy-2: #24405f; --navy-soft: #ccd6e0;
  --violet: #5b3fa8; --violet-dark: #4a3290; --violet-soft: #e6e1f5;
  --ink: #0e1722; --text: #48525e; --muted: #6c7682; --line: #c8d0d9;
  --focus: #4a3290; --err: #a02820; --ok: #1d6b45;
  --disp: "Sarabun", "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-sm: 0.91rem; --f-xs: 0.77rem; --f0: clamp(1rem, 0.97rem + 0.16vw, 1.06rem);
  --f1: clamp(1.13rem, 1.03rem + 0.46vw, 1.32rem);
  --f2: clamp(1.55rem, 1.3rem + 1.3vw, 2.15rem); --f3: clamp(1.95rem, 1.5rem + 2.3vw, 3rem);
  --r: 2px; --wrap: 1140px; --pad-y: clamp(2.7rem, 2.1rem + 3.1vw, 4.4rem);
}

/* 02 Base */
body { background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--f0); line-height: 1.68; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--disp); color: var(--ink); font-weight: 700; line-height: 1.2; letter-spacing: -0.016em; text-wrap: balance; }
h1 { font-size: var(--f3); }
h2 { font-size: var(--f2); }
h3 { font-size: var(--f1); }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
a { color: var(--violet-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 700; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.ref { display: block; margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-dark); }
.sec--navy .ref, .phead .ref, .hero .ref { color: #b7a6e8; }
.mt { margin-top: 2rem; }

/* 03 Header */
.hd { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 2px solid var(--navy); }
.hd__bar .wrap { display: flex; align-items: center; gap: 0.7rem; min-height: 56px; }
.pt-logo { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.pt-logo svg { width: 25px; height: 25px; flex: none; }
.pt-logo b { display: block; font-family: var(--disp); font-size: 1.06rem; font-weight: 700; letter-spacing: -0.022em; color: var(--ink); }
.pt-logo small { display: block; margin-top: -0.1em; font-size: 0.53rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-dark); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 18px; height: 18px; }
.ptnav { display: none; }
@media (max-width: 939px) {
  .hd__bar .btn { display: none; }
  .ptnav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 0.3rem 1rem 1.2rem; background: var(--white); border-bottom: 2px solid var(--navy); }
  .ptnav.is-open { display: flex; }
  .ptnav a { padding: 0.8rem 0.2rem; border-bottom: 1px dotted var(--line); color: var(--ink); font-family: var(--disp); font-size: 1.06rem; font-weight: 700; text-decoration: none; }
  .ptnav a[aria-current="page"] { color: var(--violet-dark); }
}
@media (max-width: 400px) { .pt-logo small { display: none; } }
@media (min-width: 940px) {
  .hd__bar .wrap { min-height: 68px; gap: 1.4rem; }
  .nav-toggle { display: none; }
  .ptnav { display: flex; gap: 1.4rem; }
  .ptnav a { padding: 0.3rem 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .ptnav a:hover { color: var(--ink); }
  .ptnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }
}

/* 04 Ledger contact rows — phones only; the device applied to the furniture */
.callrows { padding: 0.45rem 1rem 0.6rem; background: var(--white); border-top: 1px dotted var(--line); }
.callrows a { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.22rem 0; color: var(--ink); text-decoration: none; }
.callrows .k { font-family: var(--disp); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-dark); white-space: nowrap; }
.callrows .d { flex: 1 1 auto; border-bottom: 1px dotted var(--line); transform: translateY(-0.28em); }
.callrows .v { font-family: var(--disp); font-weight: 700; white-space: nowrap; }
@media (min-width: 940px) { .callrows { display: none; } }

/* 05 Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.68rem 1.3rem; border: 0; border-radius: var(--r); background: var(--violet); color: #fff; font-family: var(--disp); font-size: 0.98rem; font-weight: 700; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.18s, color 0.18s; }
.btn:hover { background: var(--violet-dark); color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--paper, .phead a.btn--paper, .sec--navy a.btn--paper, .hero a.btn--paper, .hu__out a.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover, .phead a.btn--paper:hover, .sec--navy a.btn--paper:hover, .hero a.btn--paper:hover, .hu__out a.btn--paper:hover { background: #fff; color: var(--ink); }
@media (max-width: 460px) { .btn { white-space: normal; text-align: center; } }
.btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.3rem; }

/* 06 Hero */
.hero { padding-block: clamp(2.5rem, 2rem + 2.9vw, 4.3rem); background: var(--navy); color: #a8b6c5; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lede { font-size: var(--f1); line-height: 1.5; color: #dce4ec; max-width: 52ch; }
.hero :focus-visible { outline-color: #b7a6e8; }

/* 07 Page heads */
.phead { padding-block: clamp(2rem, 1.6rem + 2.2vw, 3.2rem); background: var(--navy); color: #a8b6c5; }
.phead h1 { color: #fff; max-width: 20ch; }
.phead p { font-size: 1.03rem; max-width: 58ch; }
.phead a:not(.btn) { color: #fff; }
.phead :focus-visible { outline-color: #b7a6e8; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.9rem; padding: 0; list-style: none; font-size: 0.83rem; }
.crumbs li + li::before { content: "\00b7"; margin-right: 0.45rem; color: #b7a6e8; }

/* 08 The ledger — the device */
.ledger { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.sec--navy .ledger { border-top-color: #b7a6e8; }
.ledger > li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.sec--navy .ledger > li { border-bottom-color: rgba(255,255,255,0.2); }
.led { display: flex; align-items: baseline; gap: 0.55rem; }
/* on a phone the leader has nowhere to go, so the entry stacks instead */
@media (max-width: 599px) {
  .led { flex-wrap: wrap; gap: 0.1rem 0.55rem; }
  .led__d { display: none; }
  .led__v { flex-basis: 100%; white-space: normal; }
}
.led__k { min-width: 0; font-family: var(--disp); font-weight: 700; font-size: 1.04rem; color: var(--ink); }
.sec--navy .led__k { color: #fff; }
.led__d { flex: 1 1 auto; min-width: 1.5rem; border-bottom: 1px dotted var(--line); transform: translateY(-0.3em); }
.sec--navy .led__d { border-bottom-color: rgba(255,255,255,0.35); }
.led__v { flex: none; font-family: var(--disp); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok); white-space: nowrap; }
.led__v--maybe { color: var(--violet-dark); }
.led__v--no { color: var(--muted); }
.sec--navy .led__v { color: #7fd6a8; }
.sec--navy .led__v--maybe { color: #b7a6e8; }
.sec--navy .led__v--no { color: #93a1b0; }
.ledger p { margin: 0.3rem 0 0; font-size: var(--f-sm); max-width: 68ch; }
.ledger--plain > li { display: flex; align-items: baseline; gap: 0.55rem; }

/* 09 Sections */
.sec { padding-block: var(--pad-y); }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--tint { background: var(--paper-2); }
.sec--navy { background: var(--navy); color: #a8b6c5; }
.sec--navy h2, .sec--navy h3, .sec--navy b { color: #fff; }
.sec--navy a:not(.btn) { color: #fff; }
.sec--navy :focus-visible { outline-color: #b7a6e8; }
.head { max-width: 660px; }
.twin { display: grid; gap: 2rem; }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.twin > * { min-width: 0; }
.figwide img, .figwide .img-placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.figbox img, .figbox .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.map { display: block; width: 100%; height: clamp(300px, 34vw, 380px); background: var(--paper-2); border-radius: var(--r); }
.where { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .where { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* 10 Humidity (signature) */
.hu { display: grid; gap: 1.8rem; }
@media (min-width: 980px) { .hu { grid-template-columns: 0.85fr 1.15fr; gap: 2.8rem; align-items: start; } .hu__set { position: sticky; top: 6rem; } }
.hu__set { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--white); border-top: 4px solid var(--violet); }
.hu__set label.lead { display: block; margin-bottom: 0.4rem; font-family: var(--disp); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.hu__in { display: flex; align-items: center; gap: 0.5rem; }
.hu__in input { width: 7rem; font-family: var(--disp); font-size: 1.6rem; font-weight: 700; text-align: center; }
.hu__in span { font-family: var(--disp); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.hu__set fieldset { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border: 0; border-top: 1px dotted var(--line); }
.hu__set legend { padding: 0; font-weight: 700; color: var(--ink); }
.seasons { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.seasons label { position: relative; flex: 1 1 0; }
.seasons input { position: absolute; opacity: 0; }
.seasons span { display: block; padding: 0.55rem 0.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); font-size: var(--f-sm); font-weight: 700; text-align: center; cursor: pointer; }
.seasons input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seasons input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.hu__out { padding: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); background: var(--navy); color: #a8b6c5; border-radius: var(--r); }
.hu__out h2 { color: #fff; font-size: 1.06rem; }
.hu__out b { color: #fff; }
.hu__band { display: inline-block; margin: 0.35rem 0 0.7rem; padding: 0.2rem 0.7rem; border-radius: var(--r); background: var(--violet); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hu__title { display: block; margin-bottom: 0.6rem; font-family: var(--disp); font-size: clamp(1.4rem, 1.2rem + 1.1vw, 1.95rem); font-weight: 700; color: #fff; line-height: 1.2; }
.hu__out ul { margin: 0.8rem 0 0; padding-left: 1.15em; font-size: var(--f-sm); }
.hu__out li { margin-bottom: 0.42rem; }
.hu__out .caveat { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.22); font-size: 0.86rem; color: #8b98a6; }
.hu__out :focus-visible { outline-color: #b7a6e8; }

/* 11 FAQ */
.faq { display: grid; gap: 0; max-width: 860px; margin-top: 1.3rem; border-top: 2px solid var(--navy); }
.ptq { border-bottom: 1px solid var(--line); }
.ptq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; font-family: var(--disp); font-weight: 700; font-size: 1.04rem; color: var(--ink); list-style: none; cursor: pointer; }
.ptq summary::after { content: "+"; flex: none; color: var(--violet-dark); }
.ptq[open] summary::after { content: "\2013"; }
.ptq > div { padding: 0 0 1.1rem; }

/* 12 Form & contact */
.form { display: grid; gap: 1rem 1.3rem; margin-top: 1.2rem; }
@media (min-width: 640px) { .form--2col { grid-template-columns: 1fr 1fr; } }
.field--full, .form__end { grid-column: 1 / -1; }
.field label, .picks legend { font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea { width: 100%; padding: 0.72rem 0.9rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #aeb8c3; border-radius: var(--r); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316263a' stroke-width='2.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 15px; padding-right: 2.3rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); }
.picks { margin: 0; padding: 0; border: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
.picks legend { margin-bottom: 0.45rem; padding: 0; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: inline-block; padding: 0.44rem 0.9rem; border: 1px solid #aeb8c3; border-radius: var(--r); background: var(--white); font-size: var(--f-sm); cursor: pointer; }
.pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-note { margin: 0.5rem 0 0; font-size: 0.84rem; color: var(--muted); }
.contact { display: grid; gap: 2.2rem; align-items: start; }
@media (min-width: 920px) { .contact { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }
.contact > * { min-width: 0; }
.side { display: grid; gap: 1rem; }
.side__card { padding: 1.2rem 1.35rem; background: var(--white); border-top: 3px solid var(--violet); }
.side__card h2 { font-size: 1.06rem; }
.side__card .big { display: block; margin: 0.15rem 0 0.3rem; font-family: var(--disp); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }

/* 13 Footer */
.ft { background: var(--ink); color: #8d97a3; font-size: var(--f-sm); }
.ft a { color: #fff; }
.ft :focus-visible { outline-color: #b7a6e8; }
.ft__row { display: grid; gap: 1.5rem; padding-block: 2.8rem 1.6rem; }
@media (min-width: 820px) { .ft__row { grid-template-columns: 1.5fr 1fr 1fr; } }
.ft__name { margin: 0 0 0.45rem; font-family: var(--disp); font-size: 1.16rem; font-weight: 700; color: #fff; }
.ft h2 { margin: 0 0 0.55rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b7a6e8; }
.ft ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.32rem; }
.ft__base { padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; }

/* 14 Images */
.img-placeholder { background: var(--paper-2); border: 1px dashed #a8b2bd; color: var(--muted); }
.img-placeholder b { color: var(--ink); overflow-wrap: anywhere; }
