/* Borradaile Trust Retirement Village - 2026 redesign
   Ivory / forest green / antique gold. Mockup is the visual reference.
   Colours are CSS variables so a WordPress theme.json / Customizer can take them over. */

:root {
  --ivory: #f8f5ec;
  --ivory-deep: #f1ecdd;
  --green: #103d2c;
  --green-soft: #1b5740;
  --gold: #b18439;        /* lines, icons, borders */
  --gold-text: #86601f;   /* gold for small text: 5.2:1 on ivory (the lighter gold is only ~3:1) */
  --ink: #2a312d;
  --muted: #55605a;
  --line: #ded6c0;
  --radius: 14px;
  --serif: "Libre Baskerville", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;        /* 18px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 4px; }
a:hover { color: var(--green-soft); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); color: var(--green); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); line-height: 1.06; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; color: #fff; }

.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0 0 28px;
  font-size: .8rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 54px; height: 1px; background: var(--gold); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 8px;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--green); background: var(--green); color: #fff;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-soft); border-color: var(--green-soft); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--green); border-color: var(--gold); }
.btn.ghost:hover { background: rgba(177, 132, 57, .1); color: var(--green); }
.btn.on-dark { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.btn.on-dark:hover { background: #fff; color: var(--green); }

/* ---------- Header ---------- */
.site-header { background: var(--ivory); border-bottom: 1px solid rgba(177, 132, 57, .25); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: 92px; height: auto; flex: none; }
.brand-text { display: block; line-height: 1; }
.brand-name {
  display: block; font-family: var(--script); font-style: italic; font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--green); letter-spacing: -.01em;
}
.brand-sub { display: block; margin-top: 6px; font-size: .68rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 18px; min-height: 52px; }

.menu-toggle {
  display: none; min-height: 48px; padding: 0 16px; gap: 10px; align-items: center;
  background: transparent; color: var(--green); border: 1.5px solid var(--gold); border-radius: 8px;
  font: 500 1rem var(--sans); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); min-height: 460px; }
.hero-copy {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 64px) max(var(--gutter), calc((100vw - var(--max)) / 2));
  align-self: center;
}
.hero h1 { margin-bottom: 28px; }
.hero .lead { max-width: 30em; font-size: 1.25rem; color: var(--muted); margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-photo { position: relative; margin: 0; border-radius: 30px 0 0 30px; overflow: hidden; min-height: 340px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero-photo figcaption {
  position: absolute; right: 28px; bottom: 20px; left: 28px; text-align: right;
  font-family: var(--script); font-style: italic; font-size: 1.2rem; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}

/* ---------- Strip ---------- */
.strip { padding-block: 22px; }
.strip-inner { display: flex; align-items: center; gap: 24px; }
.strip-line { flex: 1; height: 1px; background: var(--gold); opacity: .6; }
.strip-list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.strip-list li {
  display: flex; align-items: center; gap: 12px; padding: 0 clamp(16px, 3vw, 44px);
  font-size: .95rem; color: var(--ink);
}
.strip-list li + li { border-left: 1px solid var(--ink); border-left-color: rgba(42, 49, 45, .55); }
.strip-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.section-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-head p { color: var(--muted); font-size: 1rem; margin: 0; }
.tint { background: var(--ivory-deep); }

/* Village life cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fbf9f3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 22px 26px 28px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Story */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.story h2 { margin-bottom: 24px; }
.story .actions { margin-top: 8px; }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.timeline b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--green); font-weight: 700; }
.timeline span { font-size: 1rem; color: var(--muted); }

/* Care */
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.care article { padding: 30px 28px; background: #fbf9f3; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.care .tag { display: block; margin-bottom: 10px; font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); }
.care h3 { margin-bottom: 10px; }
.care p { margin: 0; font-size: 1rem; color: var(--muted); }
.note { margin: 28px 0 0; font-size: 1rem; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: .95rem; color: var(--muted); }

/* Support */
.support { background: var(--green); color: #e9efe9; }
.support .eyebrow { color: #e2c283; }
.support .eyebrow::before { background: #e2c283; }
.support h2 { color: #fff; margin-bottom: 24px; }
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.support p { color: #dce6de; }
.support .reg { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(226, 194, 131, .4); font-size: .95rem; color: #c9d6cd; }
.support .actions { margin-top: 28px; }
.support a:not(.btn) { color: #fff; }

/* Visit / contact */
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.visit h2 { margin-bottom: 24px; }
.details { margin: 0; }
.details dt { margin-top: 18px; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.details dd { margin: 2px 0 0; }
.form { background: #fbf9f3; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.form h3 { margin-bottom: 4px; }
.form .hint { font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.form label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 1rem; }
.form input, .form textarea {
  width: 100%; margin-bottom: 18px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #b9b19a; border-radius: 8px; min-height: 48px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--green); }

/* Footer */
.site-footer { background: var(--green); color: #cfdcd3; padding-block: 56px 32px; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #e2c283; }
.site-footer .brand img { width: 72px; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #e2c283; margin: 0 0 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; font-size: 1rem; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Story page */
.page-head { padding-block: 56px 20px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 16px; }
.prose { max-width: 40em; }
.prose p { font-size: 1.125rem; }
.prose .timeline { margin: 32px 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  .nav a:not(.btn) { padding: 0 11px; }
  .nav a:not(.btn)::after { left: 11px; right: 11px; }
  .nav .btn { margin-left: 8px; padding: 0 20px; }
  .brand img { width: 76px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .strip-line { display: none; }
  .strip-inner { justify-content: center; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--ivory); border-bottom: 1px solid var(--gold); box-shadow: 0 12px 24px rgba(16, 61, 44, .12);
  }
  .js .nav[hidden] { display: none; }
  .nav a:not(.btn) { min-height: 52px; border-bottom: 1px solid var(--line); padding: 0 4px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px var(--gutter) 36px; }
  .hero-photo { border-radius: 24px; margin: 0 var(--gutter); min-height: 0; aspect-ratio: 4 / 3; }
  .cards, .care { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 40% 1fr; }
  .card img { height: 100%; aspect-ratio: auto; min-height: 180px; }
  .story, .support-grid, .visit-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hero-photo figcaption { font-size: 1rem; right: 16px; left: 16px; bottom: 12px; }
  body { font-size: 1.0625rem; }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 56px; }
  .brand-sub { letter-spacing: .18em; font-size: .6rem; }
  .menu-toggle span { display: none; }
  .menu-toggle { padding: 0 12px; }
  .actions .btn { width: 100%; }
  .strip-inner { justify-content: flex-start; }
  .strip-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .strip-list li { padding: 0; }
  .strip-list li + li { border-left: 0; }
  .card { display: block; }
  .card img { aspect-ratio: 16 / 9; height: auto; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Grav form plugin markup ---------- */
.form .form-group { margin-bottom: 18px; }
.form .form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 1rem; }
.form .form-label .required { color: var(--gold-text); }
.form .form-input-wrapper input, .form .form-input-wrapper textarea { margin-bottom: 0; }
.form .button-wrapper { margin-top: 8px; }
.form .btn { cursor: pointer; font: inherit; font-weight: 500; }
.form .form-errors, .form .form-error { color: #8a1f1f; font-size: .95rem; }
.form-notice { padding: 14px 18px; border-radius: 10px; margin: 0 0 20px; border: 1px solid var(--line); background: #fff; }
.form-notice p { margin: 0; }
.form-notice.success { border-color: var(--green-soft); background: #eef5f0; color: var(--green); }
.form-notice.error { border-color: #b3261e; background: #fbeceb; color: #8a1f1f; }
