/* Fonts are self-hosted so visitors' browsers never contact Google. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #14202e;
  --ink-soft: #33404f;
  --muted: #5d6875;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --line: #e1ddd3;
  --accent: #8a6d3b;
  --accent-soft: #c9b58f;
  --navy: #14202e;
  --navy-2: #1c2b3c;
  --success: #2f6b4f;
  --error: #a23b3b;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 6px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.55rem; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand-suffix { color: var(--muted); font-weight: 500; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--ink); }

.nav-cta {
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: var(--ink); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.btn-block { width: 100%; }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 1.4rem; max-width: 16ch; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.75rem;
}

.credentials-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credentials-strip li {
  border-top: 1px solid var(--accent-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.45;
}
.credentials-strip strong { font-weight: 600; }
.credentials-strip span { color: var(--muted); }

.hero-photo {
  margin: 0;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
}

.hero-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(20, 32, 46, 0.35);
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: var(--header-h);
}

.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 1rem; }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* About */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.about h2 { margin-bottom: 1.5rem; }

.prose { color: var(--ink-soft); max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.credentials-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.credentials-card h3 { margin-bottom: 1.25rem; }

.credentials-card dl { margin: 0; }
.credentials-card dl > div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.credentials-card dl > div:last-child { padding-bottom: 0; }

.credentials-card dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.credentials-card dd { margin: 0; font-size: 0.95rem; line-height: 1.5; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Subgrid lines up the titles and lists across cards, even when one title wraps. */
.service-card {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

.service-card h3 {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.service-card ul { list-style: none; margin: 0; padding: 0; }

.service-card li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* Contact */
.contact { background: var(--navy); color: #e9edf2; }
.contact .eyebrow { color: var(--accent-soft); }
.contact h2 { color: #fff; margin-bottom: 1.25rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.contact-copy p { color: #c4ccd6; max-width: 42ch; }

.contact-details { margin: 2rem 0 0; }
.contact-details > div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.contact-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 2px;
}
.contact-details dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.contact-details a { text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.contact-details a:hover { text-decoration-color: #fff; }

.contact-form {
  color: var(--ink);
  padding: clamp(24px, 3.5vw, 40px);
  border: 0;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; min-width: 0; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  transition: border-color 0.15s, background 0.15s;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile { max-width: 100%; }
.turnstile:not(:empty) { margin-bottom: 18px; }

.form-note {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 18px;
}

.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.5em; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }

/* Footer */
.site-footer {
  background: #0f1923;
  color: #aab4c0;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; margin: 0 0 2px; }
.footer-sub { margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: #fff; }

.footer-legal { padding-top: 24px; font-size: 0.8rem; line-height: 1.6; color: #8794a3; }
.footer-legal p { max-width: 80ch; }
.footer-legal p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 960px) {
  /* Stacked cards don't need subgrid alignment; plain blocks avoid a Safari layout bug. */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { display: block; grid-row: auto; }
  .service-card ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .credentials-card { position: static; }
  .credentials-strip { grid-template-columns: 1fr; gap: 14px; }
  .footer-nav a, .contact-details a { display: inline-block; padding: 6px 0; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 360px; }
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  .service-card ul { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .site-nav .nav-link { display: none; }
  .brand-suffix { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
