/* Nezia Care — palette from Rod's 2026-09-29 quote email */
:root {
  --blue: #1F5F99;      /* Primary Blue */
  --navy: #143D66;      /* Deep Navy */
  --sky: #D9EAF7;       /* Sky Tint */
  --green: #3BA675;     /* Accent Green */
  --mint: #DFF3E8;      /* Mint Tint */
  --green-text: #22744F; /* Accent Green darkened for AA text contrast */
  --ink: #12304F;
  --paper: #FAFCFD;
  --rule: #C4D9EA;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.94rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(2.4rem, 4.2vw, 3.6rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; color: #fff; }

/* ---------- header ---------- */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 2.1rem; height: 2.4rem; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.78rem; color: var(--blue); margin-top: 0.2rem; letter-spacing: 0.01em; }
.nav { display: flex; gap: 0.25rem 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--green); color: var(--navy); }
.nav .tel { color: var(--blue); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 var(--step-0)/1 var(--sans); padding: 1rem 1.5rem; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-go { background: var(--green); color: #0B2A47; }
.btn-go:hover { background: #2F9466; color: #fff; }
.btn-line { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-line:hover { background: var(--blue); color: #fff; }

/* ---------- hero banner ---------- */
.hero { position: relative; background: var(--sky); overflow: hidden; border-bottom: 6px solid var(--green); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-copy { padding-bottom: clamp(3rem, 8vw, 7rem); position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 0.35em; max-width: 15ch; }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.1rem; font-size: var(--step--1); color: var(--navy); }
.hero-arch { position: relative; z-index: 1; }
.hero-arch picture, .hero-arch img { border-radius: 999px 999px 0 0; aspect-ratio: 4 / 4.6; width: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-arch::before { /* doorway frame */
  content: ""; position: absolute; inset: -14px -14px 0 -14px; border: 3px solid var(--blue); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: -1;
}
.hero-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-path path { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
@media (prefers-reduced-motion: no-preference) {
  .hero-path path { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: walk 2.2s 0.2s ease-out forwards; }
  @keyframes walk { to { stroke-dashoffset: 0; stroke-dasharray: 2 14; } }
}

/* ---------- sections ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-mint { background: var(--mint); }
.band-sky { background: var(--sky); }
.band-navy { background: var(--navy); color: #EAF3FA; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy a { color: #BFE6D2; }
.intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro p:first-of-type { font-size: var(--step-1); line-height: 1.5; }

.serve { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.serve > div { border-top: 3px solid var(--green); padding-top: 1.1rem; }
.serve p { font-size: var(--step-0); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 5.5rem); }
.split.flip > figure { order: 2; }
.split figure { margin: 0; }
.split figure img { border-radius: 1.25rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split.arch figure img { border-radius: 999px 999px 1.25rem 1.25rem; aspect-ratio: 4 / 4.4; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.band-mint .ticks li::before { box-shadow: 0 0 0 4px #fff; }

.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--green); color: #0B2A47; font: 400 1.3rem/1 var(--serif); margin-bottom: 0.9rem; }
.steps h3 { color: #fff; }

.towns { columns: 3 12rem; padding: 0; list-style: none; margin: 1.5rem 0 0; }
.towns li { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }

.cta-band { text-align: left; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 22ch; }

/* ---------- page header (inner pages) ---------- */
.page-head { background: var(--sky); padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.page-head p { font-size: var(--step-1); max-width: 46ch; }
.page-head .crumbs { font-size: var(--step--1); margin-bottom: 1rem; }
.page-head .crumbs a { color: var(--navy); }

.svc-group { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2.2rem; border-top: 1px solid var(--rule); }
.svc-group:first-of-type { border-top: 0; }
.svc-group .ticks { columns: 2 16rem; column-gap: 2rem; }
.svc-group .ticks li { break-inside: avoid; }

.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--navy); margin-top: 1.2rem; }
.contact-card dd { margin: 0.2rem 0 0; }
.contact-card figure { margin: 2rem 0 0; }
.contact-card figure img { border-radius: 999px 999px 1rem 1rem; aspect-ratio: 4 / 4.2; object-fit: cover; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs button { font: 700 var(--step-0)/1 var(--sans); padding: 0.85rem 1.3rem; border-radius: 999px; border: 2px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.panel[hidden] { display: none; }

form { background: #fff; border: 1px solid var(--rule); border-radius: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend { font: 400 var(--step-1)/1.2 var(--serif); color: var(--navy); margin-bottom: 0.9rem; padding: 0; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: var(--step--1); color: var(--navy); }
.hint { font-weight: 400; color: #3B5672; }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; font: 400 var(--step-0)/1.4 var(--sans); color: var(--ink); background: var(--paper);
  border: 1.5px solid #9DB9D2; border-radius: 0.6rem; padding: 0.75rem 0.85rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid var(--sky); outline-offset: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem 1rem; }
.checks label { display: flex; gap: 0.55rem; align-items: center; font-weight: 400; font-size: var(--step-0); color: var(--ink); margin: 0; }
.checks input { width: 1.2rem; height: 1.2rem; accent-color: var(--green); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: #3B5672; }
.notice { border-radius: 0.9rem; padding: 1rem 1.2rem; margin-bottom: 1.5rem; font-weight: 700; }
.notice-ok { background: var(--mint); color: #155238; border: 1.5px solid var(--green); }
.notice-err { background: #FBE9E9; color: #7A1F1F; border: 1.5px solid #C24848; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: #D6E6F3; padding-block: 3rem 2rem; font-size: var(--step--1); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot a { color: #fff; }
.site-foot h2 { font-size: var(--step-1); color: #fff; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid #2D5A86; padding-top: 1.2rem; margin-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-arch { max-width: 30rem; margin-inline: auto; width: calc(100% - 28px); }
  .hero-path { display: none; }
  .intro, .split, .who, .contact-grid, .svc-group { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .serve { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .row, .row-3, .steps { grid-template-columns: 1fr; }
  .nav { gap: 0.25rem 1rem; }
  .btn { width: 100%; justify-content: center; }
}
