/* Gillams Properties, Exeter – preview site
   Palette sampled from the client's own wordmark: navy #14213D, brass #B4975A. */

:root {
  --ink: #14213D;
  --ink-deep: #0C1626;
  --brass: #8C6E2E;          /* brass darkened for AA on paper */
  --brass-mark: #B4975A;     /* the logo brass, used on navy and for rules */
  --brass-lift: #D8BE86;     /* brass on navy */
  --paper: #FBF9F5;
  --paper-2: #F1EDE4;
  --muted: #55607A;
  --line: #DED8CB;
  --line-ink: rgba(216, 190, 134, 0.26);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --band-y: clamp(3.75rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.08; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 0.75rem; top: -4rem;
  z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 600; text-decoration: none;
  transition: top 160ms ease;
}
.skip:focus { top: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}
.band-ink :where(a, button):focus-visible,
.site-foot :where(a, button):focus-visible { outline-color: var(--brass-lift); }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; color: var(--brass-mark); flex: none; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.005em;
}

.head-nav { display: none; gap: 1.6rem; }
.head-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.head-nav a:hover { color: var(--ink); border-bottom-color: var(--brass-mark); }

.head-tel {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.6rem 1rem;
  min-height: 44px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}
.head-tel:hover { background: var(--ink); color: var(--paper); }

@media (min-width: 62rem) {
  .head-nav { display: flex; }
  .brand { margin-right: 2.5rem; }
  .head-tel { margin-left: auto; }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }

@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.85fr); align-items: end; }
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.85rem, 1.6rem + 6vw, 5.5rem);
  letter-spacing: -0.012em;
}
.hero h1 em { font-style: italic; color: var(--brass); }

.rule {
  width: 5.5rem; height: 0; margin: 1.6rem 0 1.4rem;
  border: 0; border-top: 2px solid var(--brass-mark);
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { display: flex; width: 100%; margin-top: 1.5rem; }

.facts {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.facts li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-k { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact-v { font-family: var(--serif); font-size: 1.35rem; text-align: right; }

/* ---------- bands ---------- */

.band { padding-block: var(--band-y); }
.band-paper { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--paper); }

.sec-head { max-width: 42rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.15rem);
  letter-spacing: -0.008em;
  margin-bottom: 1rem;
}
.sec-head p { color: var(--muted); }
.sec-head-ink p { color: rgba(251, 249, 245, 0.74); }

/* ---------- areas ---------- */

.areas {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
@media (min-width: 46rem) {
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.125rem; }
}
@media (min-width: 62rem) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Pennsylvania holds the left column for two rows; the city centre card closes the
     block across all three, so the grid has no empty cell to read as a mistake. */
  .area-lg { grid-row: span 2; }
  .area-wide { grid-column: 1 / -1; }
}

.area {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.area:hover { border-color: var(--brass-mark); box-shadow: 0 10px 28px -22px rgba(20, 33, 61, 0.7); }
.area h3 { font-family: var(--serif); font-size: 1.6rem; }
.area p { color: var(--muted); font-size: 0.9688rem; }
.area-lg { justify-content: flex-start; padding: 1.9rem 1.7rem; }
.area-lg h3 { font-size: 2.05rem; }

.note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 44rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ---------- ladder (signature) ---------- */

.ladder { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ladder li {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 0.9rem 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line-ink);
  align-items: start;
}
.ladder li:last-child { border-bottom: 1px solid var(--line-ink); }

@media (min-width: 46rem) {
  .ladder li { grid-template-columns: 6rem minmax(0, 1fr); gap: 2rem; padding: 2rem 0; }
}

.step {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 0.9;
  color: var(--brass-lift);
}
.ladder h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--sans); margin-bottom: 0.45rem; }
.ladder p { color: rgba(251, 249, 245, 0.78); max-width: 46rem; }

/* ---------- protections ---------- */

.protect-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 58rem) {
  .protect-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; }
}
.protect-grid h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  margin-bottom: 1rem;
}
.protect-lede { color: var(--muted); max-width: 26rem; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 0.95rem 0 0.95rem 2.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.0313rem;
}
.checks li:first-child { border-top: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute; left: 0.2rem; top: 1.45rem;
  width: 0.85rem; height: 0.45rem;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}

/* ---------- parents + contact ---------- */

.parents-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 58rem) {
  .parents-grid { grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr); align-items: start; }
}
.parents-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  margin-bottom: 1.2rem;
}
.parents-copy p { color: var(--muted); max-width: 36rem; }

.card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.card-title { font-family: var(--serif); font-size: 2.1rem; margin-bottom: 1.4rem; }

.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list > div { display: grid; gap: 0.2rem; }
.contact-list dt {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-lift);
}
.contact-list dd { margin: 0; font-size: 1.0313rem; }
/* tel: and mailto: are the page's real conversions – keep them thumb-sized, not inline-sized */
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--paper); text-decoration-color: var(--brass-lift); text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--brass-lift); }

.card-note { margin-top: 1rem; font-size: 0.9063rem; color: rgba(251, 249, 245, 0.72); }
.card .btn-solid { background: var(--brass-lift); color: var(--ink-deep); }
.card .btn-solid:hover { background: #E8D2A4; }

/* ---------- footer ---------- */

.site-foot {
  background: var(--ink-deep);
  color: rgba(251, 249, 245, 0.8);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.foot-inner { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) {
  .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
.foot-brand .brand-word { color: var(--paper); display: block; margin-bottom: 0.7rem; }
.foot-brand p { max-width: 24rem; }
.site-foot h3 {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass-lift); margin-bottom: 0.85rem; font-weight: 600;
}
.site-foot p { margin-bottom: 0.4rem; }
.site-foot a { color: rgba(251, 249, 245, 0.88); text-decoration-color: rgba(216, 190, 134, 0.5); text-underline-offset: 3px; }
.site-foot a:hover { color: var(--brass-lift); }

.foot-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251, 249, 245, 0.12);
  display: grid; gap: 0.5rem;
  font-size: 0.8438rem;
  color: rgba(251, 249, 245, 0.62);
}
.foot-preview { color: rgba(251, 249, 245, 0.58); }

/* ---------- 404 ---------- */

.oops {
  min-height: 72vh;
  display: grid; place-items: center;
  text-align: center;
  padding-block: var(--band-y);
}
.oops h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 6vw, 6rem);
  margin-bottom: 0.6rem;
}
.oops p { color: var(--muted); max-width: 28rem; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
