/* ==========================================================================
   iEntitle Planning & Development Services — site stylesheet
   Layout concept: a professional plan set. Navy title bands, quiet paper
   sheets, thin drawing rules, and mono "plan labels" for codes and places.
   ========================================================================== */

:root {
  /* Color */
  --navy: #0b1b3a;          /* brand navy, from the logo */
  --navy-2: #142a52;        /* raised navy surface */
  --navy-line: #2a3f68;     /* rules on navy */
  --gold: #c39a3a;          /* brand gold, for marks and rules */
  --gold-ink: #85601a;      /* gold dark enough for text on white */
  --paper: #ffffff;
  --sheet: #f4f6f9;         /* cool light gray with a navy bias */
  --ink: #1e2431;           /* charcoal body text */
  --muted: #566074;
  --line: #d8dde6;
  --on-navy: #e9edf5;
  --on-navy-muted: #c4ccdb;  /* 10.5:1 on navy; was #aab4c8 */
  --danger: #a32a2a;
  --ok: #2c6b45;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);

  /* Space */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1160px;
  --radius: 4px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: var(--gutter); top: .5rem; color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* Plan label: the mono caption used for codes, places, sheet notes */
.label {
  font-family: var(--font-label);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.on-navy .label { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #d6ae4f; border-color: #d6ae4f; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.on-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.on-navy .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 78px;
  padding-block: .45rem;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav-list a {
  font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav-list a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.nav .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: .95rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
  width: 46px; height: 46px; cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter-r) 1.25rem var(--gutter);
    box-shadow: 0 12px 24px rgba(11,27,58,.08);
  }
  .nav[data-open="false"] { display: none; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { border-bottom-color: var(--line); color: var(--gold-ink); }
  .nav .btn { margin-top: 1rem; }
  .brand img { width: 138px; }
}
@media (min-width: 1241px) { .nav[data-open] { display: flex; } }
@media (min-width: 1241px) and (max-width: 1500px) {
  .nav { gap: 1.1rem; }
  .nav-list { gap: 1.05rem; }
  .nav-list a { font-size: .93rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-sheet { background: var(--sheet); }
.on-navy { background: var(--navy); color: var(--on-navy); }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.section-head { display: grid; gap: .75rem; max-width: 62ch; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.on-navy .section-head p { color: var(--on-navy-muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-plan { max-width: 520px; }
}
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
.hero .sub {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: var(--step-1); color: var(--gold);
}
.hero .lead { color: var(--on-navy-muted); font-size: 1.12rem; max-width: 58ch; }
.slogan {
  display: block; text-align: center; max-width: 34rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.2rem; line-height: 1.4; color: #fff;
  padding-top: 1.1rem; margin-top: .25rem;
  border-top: 1px solid var(--navy-line);
  position: relative;
}
.slogan::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 2px; background: var(--gold);
}
.slogan span { text-wrap: balance; }
.hero-plan { min-width: 0; }
.hero-plan figure { margin: 0; }
.hero-plan figcaption {
  margin-top: .6rem; font-family: var(--font-label); font-size: .76rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted);
}
.plan-svg { width: 100%; height: auto; display: block; }
.plan-svg .draw { stroke-dasharray: 1400; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .plan-svg .draw { animation: draw 2.4s ease-out both; }
  .plan-svg .fade { animation: fadein 1.2s ease-out .9s both; }
}
@keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes fadein { from { opacity: .15; } to { opacity: 1; } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero .wrap { display: grid; gap: 1rem; }
.page-hero p { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 60ch; line-height: 1.55; }
.breadcrumb { font-family: var(--font-label); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }
.breadcrumb a { color: var(--on-navy-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* Jurisdictions strip */
.jurisdictions { border-top: 1px solid var(--navy-line); }
.jurisdictions .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding-block: 1.1rem;
}
.jurisdictions ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; }
.jurisdictions li { font-family: var(--font-label); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.service-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .7rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--navy); box-shadow: 0 10px 28px rgba(11,27,58,.09); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .service-card:hover { transform: translateY(-2px); } }
.service-card .icon { width: 40px; height: 40px; color: var(--navy); }
.service-card .icon svg { width: 40px; height: 40px; }
.service-card p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.service-card .more { font-weight: 600; font-size: .92rem; color: var(--gold-ink); }

/* ---------- Why section ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.why-list li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 1rem;
  padding-block: 1.1rem; border-top: 1px solid var(--line);
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list svg { width: 22px; height: 22px; color: var(--gold-ink); margin-top: .25rem; }
.why-list strong { display: block; color: var(--navy); font-size: 1.05rem; }
.why-list span { color: var(--muted); font-size: .98rem; }
.stat-block {
  display: grid; gap: .35rem; padding: 1.75rem; margin-top: 1.75rem;
  border-left: 3px solid var(--gold); background: var(--sheet);
}
.stat-block .num { font-family: var(--font-display); font-size: 3.25rem; line-height: 1; color: var(--navy); font-weight: 600; }
.stat-block p { color: var(--muted); }

/* ---------- Project-type preview ---------- */
.type-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--navy-line); }
@media (max-width: 860px) { .type-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .type-list { grid-template-columns: 1fr; } }
.type-list li { padding: 1.4rem 1.25rem 1.4rem 0; border-bottom: 1px solid var(--navy-line); display: grid; gap: .35rem; }
.type-list h3 { font-size: 1.15rem; }
.type-list p { color: var(--on-navy-muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { color: var(--muted); margin-top: .5rem; max-width: 56ch; }
.cta-band .text { min-width: 0; flex: 1 1 420px; }

/* Statewide service statement */
.statewide { border-top: 1px solid var(--navy-line); background: var(--navy-2); }
.statewide-inner {
  display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: center;
  padding-block: 1.6rem;
}
.statewide-mark { display: flex; align-items: center; gap: .9rem; }
.statewide-mark h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); color: #fff; white-space: nowrap; }
.statewide .az-mark { width: 40px; height: auto; color: var(--gold); flex: 0 0 auto; }
.statewide p { color: var(--on-navy); font-size: 1.02rem; line-height: 1.6; max-width: 72ch; }
@media (max-width: 820px) {
  .statewide-inner { grid-template-columns: 1fr; gap: .75rem; padding-block: 1.4rem; }
  .statewide-mark h2 { white-space: normal; }
  .statewide p { font-size: .97rem; }
}

/* ---------- Services page ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.service-index a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-label); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; text-decoration: none; padding: .45rem .85rem; border: 1px solid var(--navy-line); border-radius: 999px;
}
.service-index a:hover { border-color: var(--gold); color: var(--gold); }

.service-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.service-detail:first-of-type { border-top: 0; }
@media (max-width: 820px) { .service-detail { grid-template-columns: 1fr; } }
.service-detail .head { display: grid; gap: .6rem; align-content: start; }
.service-detail .head p { color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }
.check-list li {
  position: relative; padding: .8rem 0 .8rem 1.75rem; border-bottom: 1px solid var(--line); line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem; width: 10px; height: 10px;
  border: 2px solid var(--gold); transform: rotate(45deg);
}
.who-for { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }
.who-for strong { color: var(--navy); }

.notice {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .9rem;
  padding: 1.25rem 1.4rem; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .97rem; color: var(--ink);
}
.notice svg { width: 22px; height: 22px; color: var(--navy); margin-top: .15rem; }

/* Process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; display: grid; gap: .5rem; padding-top: 1rem; border-top: 2px solid var(--gold); }
.steps li::before { content: "Step " counter(step); font-family: var(--font-label); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.steps p { color: var(--muted); font-size: .97rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.title-block {
  border: 2px solid var(--navy); border-radius: var(--radius); background: var(--paper);
  font-size: .95rem;
}
.title-block > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); border-top: 1px solid var(--line); }
.title-block > div:first-child { border-top: 0; }
.title-block dt, .title-block dd { margin: 0; padding: .8rem 1rem; }
.title-block dt { font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); border-right: 1px solid var(--line); }
.title-block dd { color: var(--ink); }
.title-block .tb-head { display: block; background: var(--navy); color: #fff; padding: .85rem 1rem; font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 420px) { .title-block > div { grid-template-columns: 1fr; } .title-block dt { border-right: 0; padding-bottom: 0; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }
.values > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .45rem; align-content: start; }
.values p { color: var(--muted); font-size: .97rem; }

/* ---------- Projects ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-bar button {
  font: 600 .9rem/1.2 var(--font-body); padding: .65rem 1rem; min-height: 44px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; cursor: pointer;
}
.filter-bar button:hover { border-color: var(--navy); }
.filter-bar button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 820px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  display: grid; grid-template-rows: auto 1fr; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.project-card .media { aspect-ratio: 16 / 7; max-width: 100%; background: var(--sheet); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; }
.project-card .media .ph { font-family: var(--font-label); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 1rem; }
.project-card .body { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .9rem; align-content: start; }
.project-card .meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.project-card dl { margin: 0; display: grid; gap: .7rem; }
.project-card dt { font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.project-card dd { margin: .15rem 0 0; color: var(--ink); font-size: .97rem; }
.status-pill {
  display: inline-block; font-family: var(--font-label); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); background: var(--sheet);
}
.project-card.is-draft { border: 2px dashed #b9832a; }
.draft-flag {
  background: #fff6e3; color: #6b4a10; border-bottom: 1px solid #ecd3a0;
  padding: .6rem 1.5rem; font-size: .85rem; font-weight: 600;
}
.empty-note { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; color: var(--navy); }
.field .req { color: var(--danger); }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .85rem; min-height: 48px;
  background: #fff; border: 1px solid #b8c0cd; border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(195,154,58,.45); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .88rem; min-height: 0; }
.field .hint { color: var(--muted); font-size: .88rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--ink); min-height: 44px; padding-right: .25rem; cursor: pointer; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--navy); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: .7rem; align-items: start; font-size: .93rem; color: var(--ink); }
.consent input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--navy); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .97rem; border: 1px solid; }
.form-status.ok { background: #edf6f0; color: var(--ok); border-color: #b9d9c4; }
.form-status.err { background: #fbeeee; color: var(--danger); border-color: #e7c1c1; }
.form-status.info { background: #fff6e3; color: #6b4a10; border-color: #ecd3a0; }
.form .btn[disabled] { opacity: .65; cursor: progress; }

.contact-card { display: grid; gap: 1.5rem; padding: 1.75rem; background: var(--sheet); border-top: 3px solid var(--gold); }
.contact-card address { font-style: normal; line-height: 1.7; }
.contact-card h2 { font-size: 1.35rem; }
.placeholder {
  display: inline-block; font-family: var(--font-label); font-size: .78rem; letter-spacing: .03em;
  padding: .15rem .45rem; border: 1px dashed #b9832a; background: #fff6e3; color: #6b4a10; border-radius: 3px;
}

/* ---------- Legal page ---------- */
.legal .prose h2 { font-size: 1.45rem; margin-top: 1rem; }
.legal-flag { background: #fff6e3; border: 1px solid #ecd3a0; color: #6b4a10; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: .95rem; }

/* ---------- Resources ---------- */
.resource-feature {
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 760px) { .resource-feature { grid-template-columns: 1fr; } .resource-feature .cover, .resource-feature .cover-link { max-width: 220px; } }
.resource-feature .copy { display: grid; gap: 1rem; min-width: 0; }
.resource-feature .copy > p { color: var(--muted); max-width: 60ch; }
.on-navy .resource-feature .copy > p { color: var(--on-navy-muted); }

/* Cover placeholder: a designed stand-in until the real cover image is supplied */
.cover {
  position: relative; aspect-ratio: 17 / 22; width: 100%; max-width: 100%;
  background: var(--navy); color: #fff; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(11,27,58,.08), 14px 16px 0 -6px var(--sheet), 14px 16px 0 -5px var(--line);
  display: grid; grid-template-rows: auto 1fr auto; padding: 1.4rem 1.3rem; overflow: hidden;
}
.cover::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(195,154,58,.55); pointer-events: none; }
.cover .c-brand { font-family: var(--font-label); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.cover .c-title { align-self: center; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: #fff; }
.cover .c-title span { display: block; color: var(--gold); font-style: italic; font-weight: 400; font-size: .9em; margin-top: .4rem; }
.cover .c-foot { display: flex; justify-content: space-between; align-items: end; gap: .5rem; }
.cover .c-tag {
  font-family: var(--font-label); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px dashed var(--gold); color: var(--gold); padding: .25rem .4rem; border-radius: 2px;
}
.cover .c-arc { width: 70%; height: 10px; border-top: 2px solid var(--gold); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; }
.on-navy .price { color: #fff; }
.price-note { font-family: var(--font-label); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.on-navy .price-note { color: var(--gold); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .95rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: .45rem; }
.facts li::before { content: ""; width: 6px; height: 6px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

.btn[aria-disabled="true"] { background: var(--sheet); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { background: var(--sheet); color: var(--muted); border-color: var(--line); }
.on-navy .btn[aria-disabled="true"] { background: transparent; color: var(--on-navy-muted); border-color: var(--navy-line); }
.avail-note { font-size: .9rem; color: var(--muted); }
.on-navy .avail-note { color: var(--on-navy-muted); }

.resource-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .resource-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 1rem; }
.panel p { color: var(--muted); }
.panel h3 { font-size: 1.3rem; }

/* Guide contents: six risk slots awaiting the final PDF */
.contents-list { list-style: none; margin: 0; padding: 0; counter-reset: risk; border-top: 1px solid var(--line); }
.contents-list li {
  counter-increment: risk; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline;
  padding-block: 1rem; border-bottom: 1px solid var(--line);
}
.contents-list li::before { content: "Risk " counter(risk); font-family: var(--font-label); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.contents-list li.extra::before { content: "Plus"; }

.admin-banner {
  background: #fff6e3; border-bottom: 1px solid #ecd3a0; color: #6b4a10; font-size: .92rem;
}
.admin-banner .wrap { padding-block: .7rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.admin-banner strong { font-weight: 700; }

.unpublished { margin-top: 3rem; padding: clamp(1.25rem, 3vw, 2rem); border: 2px dashed #b9832a; border-radius: var(--radius); background: #fffaf0; display: grid; gap: 1.25rem; }
.unpublished h2 { font-size: 1.3rem; }
.unpublished > p { color: #6b4a10; }
.published-empty { padding: 1.75rem; background: var(--sheet); border-left: 3px solid var(--gold); display: grid; gap: .5rem; max-width: 70ch; }
.published-empty p { color: var(--muted); }

/* Home resources teaser */
.resource-teaser { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
@media (max-width: 760px) { .resource-teaser { grid-template-columns: 1fr; } .resource-teaser .cover { max-width: 160px; } }
.resource-teaser .copy { display: grid; gap: .6rem; min-width: 0; }
.resource-teaser .copy p { color: var(--muted); }
.resource-teaser .cover .c-title { font-size: 1rem; }
.resource-teaser .cover { padding: 1rem .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-logo { display: inline-block; background: #fff; padding: .6rem .75rem; border-radius: var(--radius); justify-self: start; }
.footer-logo img { width: 176px; }
.site-footer h2 { font-family: var(--font-label); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer address { font-style: normal; color: var(--on-navy); line-height: 1.7; }
.site-footer .placeholder { background: transparent; color: var(--gold); border-color: var(--gold); }
.footer-base {
  border-top: 1px solid var(--navy-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding-block: 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  font-size: .86rem;
}
.footer-slogan { font-family: var(--font-display); font-style: italic; color: var(--on-navy); }


/* ---------- Mobile hero sizing (about 15-20% tighter than tablet/desktop) ---------- */
@media (max-width: 600px) {
  .hero-inner { padding-block: 2.75rem 3rem; gap: 2rem; }
  .hero-copy { gap: 1rem; }
  .hero h1 { font-size: 1.75rem; line-height: 1.18; }
  .hero .sub { font-size: 1.06rem; }
  .hero .lead { font-size: 1rem; line-height: 1.6; }
  .hero .label { font-size: .72rem; }
  .page-hero { padding-block: 2.5rem; }
  .page-hero .wrap { gap: .8rem; }
  .page-hero h1 { font-size: 1.75rem; }
  .page-hero p { font-size: 1.04rem; }
  .btn-row .btn { width: 100%; }
  .hero-plan { display: none; }
  .slogan { font-size: 1.08rem; max-width: none; }
  .section { padding-block: 3rem; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .cta-band, .site-footer .footer-grid ul { display: none; }
  .on-navy { background: #fff; color: #000; }
  .on-navy h1, .on-navy h2 { color: #000; }
}

/* Cover image links */
.cover-link { display: block; text-decoration: none; max-width: 100%; }
.cover-link:hover .cover { box-shadow: 0 10px 26px rgba(11,27,58,.22), 14px 16px 0 -6px var(--sheet), 14px 16px 0 -5px var(--line); }

/* The brand name is always written "iEntitle", even inside capitalized labels */
.brand-name { text-transform: none; letter-spacing: normal; }

/* Project media: real site plans and renderings */
.project-card .media { position: relative; }
.project-card .media { aspect-ratio: 4 / 3; background: #142a52; }
.project-card .media.plan { background: #fff; }
.project-card .media.render { background: #0b1b3a; }
.project-card .media.plan img, .project-card .media.render img { object-fit: contain; }
.project-card .media.plan img { padding: .75rem; }
.media-tag { position: absolute; left: .75rem; bottom: .75rem; font-family: var(--font-label); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(11,27,58,.88); color: #fff; padding: .3rem .55rem; }
.project-card.no-media { border-top: 4px solid var(--gold); }

/* Concept plan samples */
.concept-figure { margin: 0; border: 1px solid var(--line); background: #142a52; }
.concept-figure .plan-svg { width: 100%; height: auto; display: block; }
.concept-figure figcaption { font-family: var(--font-label); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--sheet); padding: .6rem .9rem; border-top: 1px solid var(--line); }

.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .concept-grid { grid-template-columns: 1fr; } }
.concept-thumb { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.concept-thumb:hover { border-color: var(--gold); }
.concept-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; display: block; background: #142a52; }
.concept-thumb .ct-body { display: grid; gap: .3rem; padding: .9rem 1rem 1.1rem; }
.concept-thumb strong { font-size: 1.02rem; }

.compare { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 1.25rem; align-items: stretch; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare-col.is-featured { order: -1; } }
.compare-col { background: #fff; border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.compare-col h3 { margin: 0; }
.compare-col ul { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: .4rem; }
.compare-col.is-featured { border: 2px solid var(--gold); box-shadow: 0 12px 28px rgba(11,27,58,.10); }
.compare-col.is-featured ul { color: var(--ink); }
.compare-col .btn { margin-top: auto; align-self: flex-start; }

.hero-note { margin-top: 1rem; font-size: .95rem; color: var(--on-navy-muted); }
.hero-note a { color: #fff; }
.price-hero { display: flex; align-items: baseline; gap: .6rem; margin: .25rem 0 .75rem; }
.price-hero strong { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.4rem); color: var(--gold); line-height: 1; }
.price-hero span { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--on-navy-muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: .55rem; background: #fff; border: 1px solid var(--line); padding: 1.4rem; }
.product.is-featured { border: 2px solid var(--gold); }
.product h3 { margin: 0; font-size: 1.15rem; }
.product .product-desc { color: var(--muted); font-size: .96rem; flex: 1; margin: 0; }
.product .price { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin: .25rem 0; }
.product .btn { align-self: stretch; text-align: center; }
.product .avail-note { margin: 0; font-size: .85rem; }
.text-link { font-size: .92rem; }
.nav .btn { white-space: nowrap; }
.contact-card .cover { max-width: 220px; }
