/* Gardwyn — faithful static lift of the Squarespace site.
   Self-contained: Lora self-hosted, system sans for body, grayscale palette.
   Zero Squarespace / external dependency. */

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lora-400.woff2") format("woff2");
}

:root {
  --bg: #fafafa;
  --ink: #121212;
  --head: #000;
  --muted: #5a5a5a;
  --rule: #dcdcdc;
  --band: #f1f1f1;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --maxw: 2000px;        /* matches the original Squarespace --sqs-site-max-width */
  --gutter: 4vw;         /* matches the original --sqs-site-gutter (mobile -> 6vw below) */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--head);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
a { color: inherit; }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 8px 12px;
  z-index: 50;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--gutter);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--head);
}
.site-nav {
  display: flex;
  gap: 30px;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 2px;
}
.site-nav a:hover { opacity: 0.7; }
.site-nav a[aria-current="page"] {
  border-bottom: 1px solid var(--ink);
}

/* pure-CSS mobile menu */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 26px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  min-height: clamp(320px, 46vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--gutter);
  color: #fff;
  background-image: linear-gradient(rgba(20, 40, 70, 0.18), rgba(20, 40, 70, 0.18)), url("/img/home-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.05rem);
  max-width: 16ch;
  margin: 0;
}

/* ---------- Generic sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--center { text-align: center; }
.lead {
  max-width: 60ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Home: Who We Are ---------- */
.band { background: var(--band); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.split p:last-child { margin-bottom: 0; }
.split__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Services ---------- */
.offer-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.service {
  padding: clamp(40px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--rule);
}
.service__title { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: clamp(20px, 3vw, 32px); }
.service__row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.service__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.service__row p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 0; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-block { padding: 28px 0 clamp(56px, 9vw, 110px); }
.contact-block a { color: var(--ink); }

/* ---------- Legal prose ---------- */
/* Cap the reading measure so legal text stays readable inside the wide container. */
.prose .container { max-width: 860px; }
.prose { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 9vw, 110px); }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.8em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose p, .prose li { color: #2a2a2a; }
.prose a { color: #1a4f7a; }
.prose ul { padding-left: 1.3em; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: clamp(48px, 7vw, 84px) 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
}
.footer-brand .wordmark { font-size: clamp(1.9rem, 4vw, 2.5rem); display: inline-block; }
.footer-copy { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.footer-col h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin: 0 0 0.5em;
}
.footer-col p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.footer-col a { color: var(--muted); }
.footer-notice {
  margin-top: clamp(36px, 5vw, 56px);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-legal {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-legal a { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: clamp(80px, 14vw, 160px) 0;
}
.notfound h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --gutter: 6vw; } /* matches the original --sqs-mobile-site-gutter */
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter);
    z-index: 40;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 12px 0; }
  .site-header { position: relative; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .service__row { grid-template-columns: 1fr; }
  .service__media { order: -1; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}
