/* ============================================================
   Premier Property Management — design system
   Palette derived from the brand mark: sage green, warm gold,
   silver-gray. The gold arc from the logo recurs as the site's
   structural "horizon" device.
   ============================================================ */

:root {
  /* Core palette */
  --sage:        #6E8377;
  --sage-deep:   #4A5A50;
  --sage-dark:   #2F3A34;
  --gold:        #C9AE7C;
  --gold-deep:   #A98C58;
  --gold-text:   #7F6739;  /* AA-contrast gold for small text on light grounds */
  --silver:      #A9ADB0;
  --paper:       #F7F6F2;
  --paper-warm:  #EFEDE6;
  --ink:         #2C332E;
  --ink-soft:    #5B655E;
  --white:       #FFFFFF;
  --line:        #DCD9D0;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Scale — Elements of Typographic Style, modular ~1.25 */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-md:   1.25rem;
  --t-lg:   1.5rem;
  --t-xl:   2rem;
  --t-2xl:  2.75rem;
  --t-3xl:  3.75rem;

  /* Rhythm */
  --gut: 1.5rem;
  --measure: 68ch;
  --wrap: 1180px;
  --wrap-narrow: 760px;

  --shadow-soft: 0 1px 2px rgba(47,58,52,.06), 0 8px 24px -12px rgba(47,58,52,.18);
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must beat any display rule set on a component below. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--sage-dark);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, var(--t-3xl)); }
h2 { font-size: clamp(1.75rem, 3.6vw, var(--t-2xl)); }
h3 { font-size: var(--t-lg); line-height: 1.25; }
h4 { font-size: var(--t-md); line-height: 1.3; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
a { color: var(--sage-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--sage-dark); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--sage-dark);
  color: #D8DDD8;
  font-size: var(--t-xs);
}
.utility .wrap {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1.5rem; min-height: 38px;
}
.utility a { color: #E4E8E3; text-decoration: none; }
.utility a:hover { color: var(--gold); text-decoration: underline; }
.utility .util-phone { margin-right: auto; color: #C3CBC4; white-space: nowrap; }
@media (max-width: 620px) {
  .utility { font-size: .75rem; }
  .utility .wrap { gap: 1rem; }
  .utility .util-phone .util-label { display: none; }
  .utility .util-emergency { display: none; }
}
.utility .util-phone a { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 96px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.brand img { height: 68px; width: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > li { position: relative; list-style: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav, .nav > li > ul { margin: 0; padding: 0; }

.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .7rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--sage-deep); background: var(--paper-warm); }
.nav-link[aria-current="page"] { color: var(--sage-deep); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-link .caret { width: 8px; height: 8px; opacity: .5; }

.has-sub > ul {
  position: absolute; top: calc(100% + 2px); left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: .4rem;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-sub:hover > ul,
.has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.has-sub > ul a {
  display: block; padding: .55rem .7rem;
  font-size: var(--t-sm); color: var(--ink); text-decoration: none;
  border-radius: 2px;
}
.has-sub > ul a:hover, .has-sub > ul a:focus-visible { background: var(--paper-warm); color: var(--sage-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.4rem;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--sage-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #35301F; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { border-color: var(--sage); color: var(--sage-deep); background: transparent; }
.btn-ghost:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--sage-dark); border-color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: var(--t-base); }

.nav-cta { flex-shrink: 0; }

/* ---------- Mobile nav ---------- */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: var(--sage-dark);
}
.hamburger svg { width: 22px; height: 22px; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1040px) {
  .hamburger { display: inline-flex; }
  .masthead .wrap { min-height: 72px; }
  .brand img { height: 52px; }
  .nav-cta { display: none; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.25rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-shadow: var(--shadow-soft);
  }
  .nav.open { display: flex; }
  .nav-link { padding: .8rem .25rem; font-size: var(--t-base); border-bottom: 1px solid var(--paper-warm); border-radius: 0; }
  .nav-link .caret { display: none; }
  .has-sub > ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; padding: .1rem 0 .5rem .9rem;
    border-left: 2px solid var(--gold);
    margin: .25rem 0 .5rem;
    min-width: 0;
  }
  .has-sub > ul a { padding: .5rem .25rem; color: var(--ink-soft); }
  .nav .mobile-cta { display: block; margin-top: 1rem; }
  .nav .mobile-cta .btn { width: 100%; }
}
@media (min-width: 1041px) {
  .nav .mobile-cta { display: none; }
}

/* ---------- The horizon: the site's structural device ----------
   Echoes the gold/sage arc beneath the skyline in the logo. */
.horizon {
  display: block; width: 100%; height: 26px;
  color: var(--gold);
}
.horizon svg { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(170deg, #3B4841 0%, #2F3A34 46%, #263029 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* architectural skyline horizon, drawn in CSS-free SVG below */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 12%, rgba(201,174,124,.16), transparent 58%),
    radial-gradient(90% 70% at 10% 90%, rgba(110,131,119,.35), transparent 60%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7rem);
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-lede {
  font-size: clamp(var(--t-base), 1.6vw, var(--t-md));
  color: #D5DCD6;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-figure { position: relative; margin: 0; transform: translateY(6%); }
.hero-figure svg { width: 100%; height: auto; }
.hero-note {
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  max-width: none;
}
.hero-note div { max-width: 22ch; }
.hero-note strong {
  display: block; font-family: var(--serif); font-size: var(--t-md);
  color: var(--gold); font-weight: 500; margin-bottom: .15rem;
}
.hero-note span { font-size: var(--t-sm); color: #BFC8C1; line-height: 1.5; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure {
    order: 1;
    max-width: 420px;
    width: 100%;
    margin-top: 2.5rem;
    transform: none;
  }
  .hero-inner > div:first-child { order: 0; }
  .hero-note { margin-top: 2rem; gap: 1.5rem 2rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-paper { background: var(--paper); }
.section-warm { background: var(--paper-warm); }
.section-white { background: var(--white); }
.section-dark { background: var(--sage-dark); color: #DCE2DD; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #C3CBC4; }

.section-head { max-width: var(--wrap-narrow); margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: var(--t-md); margin-bottom: 0; }
.section-dark .section-head p { color: #B6BFB8; }

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 2rem 1.85rem 1.85rem;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: background-color .18s ease;
}
.service-card:hover { background: #FCFBF8; color: inherit; }
.service-card:hover h3 { color: var(--sage-deep); }
.service-icon { color: var(--sage); margin-bottom: 1.15rem; }
.service-icon svg { width: 38px; height: 38px; }
.service-card h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.service-card p { font-size: var(--t-sm); color: var(--ink-soft); margin: 0 0 1.25rem; }
.service-more {
  margin-top: auto; font-size: var(--t-sm); font-weight: 600; color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: .4rem;
}
.service-card:hover .service-more { color: var(--gold-deep); }
.service-more svg { width: 14px; height: 14px; }

/* ---------- Differentiators: horizon list ---------- */
.diffs { display: grid; gap: 0; }
.diff {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1rem clamp(2rem, 6vw, 5rem);
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
  align-items: start;
}
.diff:last-child { border-bottom: 1px solid var(--line); }
.diff h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.diff p { margin: 0; color: var(--ink-soft); }
.section-dark .diff { border-color: rgba(255,255,255,.14); }
@media (max-width: 720px) {
  .diff { grid-template-columns: 1fr; gap: .5rem; padding-block: 1.75rem; }
}

/* ---------- Stat / snapshot strip ---------- */
.snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 2rem;
  align-items: start;
}
.snap strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .4rem;
}
.snap span { font-size: var(--t-sm); color: #B6BFB8; display: block; max-width: 24ch; }

/* ---------- Cards / generic panels ---------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.85rem;
}
.panel h3 { font-size: var(--t-md); }
.panel p:last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(100deg, var(--sage-deep), #5C7268);
  color: #fff;
}
.cta-banner .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.cta-banner h2 { color: #fff; margin: 0 0 .35rem; }
.cta-banner p { color: #DDE5DF; margin: 0; max-width: 52ch; }
.cta-banner .btn { flex-shrink: 0; }

/* ---------- Article / prose pages ---------- */
.page-head {
  background: var(--sage-dark);
  color: #fff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head p { color: #C3CBC4; font-size: var(--t-md); max-width: 58ch; margin: 0; }
.crumbs { font-size: var(--t-sm); color: #9FAAA2; margin-bottom: 1.25rem; }
.crumbs a {
  color: #DCE3DD;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.crumbs a:hover { color: var(--gold); }
.crumbs span { padding-inline: .45rem; opacity: .5; }

.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .5em; }

/* Blog article */
.post-byline {
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.post-byline .cat { color: var(--gold-text); font-weight: 600; }
.prose .notice-inline {
  background: var(--paper-warm);
  border-left: 3px solid var(--sage);
  padding: 1rem 1.25rem;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}
.post-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0 1.5rem;
  max-width: var(--measure);
}
.post-foot { font-size: var(--t-sm); color: var(--ink-soft); }
.prose ol { padding-left: 1.35rem; }
.prose ol li { margin-bottom: .65em; }

/* Deliverables checklist */
.deliverables { list-style: none; padding: 0 !important; margin: 0 0 1.5rem; max-width: var(--measure); }
.deliverables li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .7em;
}
.deliverables li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 10px; height: 10px;
  border: 1px solid var(--gold-deep);
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Sidebar layout ---------- */
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } }
.aside-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 1.75rem;
  position: sticky; top: 104px;
}
.aside-card h3 { font-size: var(--t-md); margin-bottom: .5rem; }
.aside-card p { font-size: var(--t-sm); color: var(--ink-soft); }
.aside-card .btn { width: 100%; }
@media (max-width: 900px) { .aside-card { position: static; } }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 3rem; }
.faq-group > h2 { padding-bottom: .75rem; border-bottom: 2px solid var(--gold); }
details.faq {
  border-bottom: 1px solid var(--line);
}
details.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-weight: 600;
  color: var(--sage-dark);
  list-style: none;
  max-width: var(--measure);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.55rem;
  width: 10px; height: 10px;
  border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq summary:hover { color: var(--sage-deep); }
details.faq .faq-body { padding: 0 0 1.35rem; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--sage-dark); }
.field .hint { font-size: var(--t-xs); color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: var(--t-base);
  padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage); outline: 2px solid rgba(110,131,119,.25); outline-offset: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .6rem; }
.choice {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer;
  font-size: var(--t-sm);
}
.choice:hover { border-color: var(--sage); }
.choice input { width: auto; margin-top: .2rem; accent-color: var(--sage-deep); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--sage-deep); background: #F4F6F4; }

.hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.form-error {
  background: #FBF0EE;
  border: 1px solid #D8A99F;
  border-left: 3px solid #A03A2B;
  color: #7E2C20;
  font-size: var(--t-sm);
  padding: .8rem 1rem;
  margin: 0 0 1.25rem;
  max-width: none;
}

/* Multi-step */
.steps { display: flex; gap: 0; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.steps li {
  list-style: none;
  padding: .75rem 1.1rem;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.steps li[aria-current="step"] { color: var(--sage-dark); border-bottom-color: var(--gold); }
.steps li .num { color: var(--silver); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.steps li[aria-current="step"] .num { color: var(--gold-deep); }

.step-panel { display: none; }
.step-panel.active { display: block; }
.form-nav { display: flex; gap: .75rem; margin-top: 2rem; flex-wrap: wrap; }
.form-note { font-size: var(--t-sm); color: var(--ink-soft); margin-top: 1.25rem; }
.form-success {
  display: none;
  border: 1px solid var(--sage); background: #F2F5F2;
  padding: 2rem;
}
.form-success.show { display: block; }
.form-success h2 { margin-top: 0; }
.error-msg { font-size: var(--t-sm); color: #A03A2B; }

/* ---------- Emergency callout ---------- */
.emergency {
  border: 1px solid #C4A96B;
  border-left: 4px solid var(--gold-deep);
  background: #FBF7EE;
  padding: 1.5rem 1.75rem;
}
.emergency h3 { margin-bottom: .35rem; font-size: var(--t-md); }
.emergency p { margin-bottom: .75rem; font-size: var(--t-sm); color: var(--ink-soft); }
.emergency .tel {
  font-family: var(--serif); font-size: var(--t-lg); color: var(--sage-dark);
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.emergency .tel:hover { color: var(--gold-deep); }

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--line);
  background: var(--paper-warm);
  aspect-ratio: 16/9;
  width: 100%;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Portal ---------- */
.portal-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 900px) { .portal-split { grid-template-columns: 1fr; } }
.login-card {
  background: #fff; border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}
.login-card h2 { font-size: var(--t-lg); margin-bottom: 1.25rem; }
.login-card .field { margin-bottom: 1.1rem; }
.login-card .btn { width: 100%; }
.login-error {
  background: #FBF0EE;
  border: 1px solid #D8A99F;
  border-left: 3px solid #A03A2B;
  color: #7E2C20;
  font-size: var(--t-sm);
  padding: .8rem 1rem;
  margin: 0 0 1.25rem;
  max-width: none;
}
.login-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: var(--t-sm); margin-top: 1.25rem; }
.portal-feature { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem; }
.portal-feature svg { width: 26px; height: 26px; color: var(--sage); flex-shrink: 0; margin-top: .25rem; }
.portal-feature h3 { font-size: var(--t-base); margin-bottom: .2rem; }
.portal-feature p { font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 0; }
.post-row {
  display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: 1.85rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-meta { font-size: var(--t-sm); color: var(--ink-soft); }
.post-meta .cat { display: block; color: var(--gold-text); font-weight: 600; margin-bottom: .1rem; }
.post-row h3 { margin-bottom: .35rem; font-size: var(--t-lg); }
.post-row h3 a { color: inherit; text-decoration: none; }
.post-row h3 a:hover { color: var(--sage-deep); }
.post-row p { font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: .35rem; } }

/* ---------- Documents ---------- */
.docs { display: grid; gap: 0; }
.doc-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem .25rem;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.doc-row:last-child { border-bottom: 1px solid var(--line); }
.doc-row:hover { background: var(--paper-warm); }
.doc-row svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; }
.doc-row .doc-name { font-weight: 600; color: var(--sage-dark); }
.doc-row .doc-desc { font-size: var(--t-sm); color: var(--ink-soft); display: block; font-weight: 400; }
.doc-row .doc-size { margin-left: auto; font-size: var(--t-xs); color: var(--ink-soft); white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--sage-dark); color: #B9C2BB; font-size: var(--t-sm); }
.footer a { color: #D3DAD4; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 62px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { font-size: var(--t-sm); color: #A9B3AB; max-width: 34ch; }
.footer h4 {
  color: #fff; font-family: var(--sans); font-size: var(--t-sm); font-weight: 700;
  margin-bottom: .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5rem; }
.footer .contact-block p { margin-bottom: .5rem; color: #A9B3AB; font-size: var(--t-sm); max-width: 30ch; }

.newsletter { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 150px; min-width: 0;
  padding: .6rem .75rem; font-size: var(--t-sm); font-family: var(--sans);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  color: #fff;
}
.newsletter input::placeholder { color: #A0AAA2; }
.newsletter input:focus { border-color: var(--gold); outline: none; background: rgba(255,255,255,.11); }
.newsletter button {
  padding: .6rem 1rem; font-size: var(--t-sm); font-weight: 600; font-family: var(--sans);
  background: var(--gold); color: #35301F; border: 0; border-radius: var(--radius); cursor: pointer;
}
.newsletter button:hover { background: #D9BE8B; }
.newsletter-note { font-size: var(--t-xs); color: #A8B2AA; margin-top: .6rem; }


.service-area {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.75rem;
}
.service-area h4 { margin-bottom: .6rem; }
.service-area p { color: #A9B3AB; font-size: var(--t-sm); margin: 0; max-width: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-size: var(--t-xs); color: #A8B2AA;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom li { margin: 0; }
.legal-badges { font-size: var(--t-xs); color: #A8B2AA; }

/* ---------- Misc ---------- */
.notice {
  background: var(--paper-warm); border-left: 3px solid var(--sage);
  padding: 1.25rem 1.5rem; font-size: var(--t-sm); color: var(--ink-soft);
}
.notice p:last-child { margin-bottom: 0; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
