/* D Henderson Ltd — site styles */

/* Fonts are self-hosted (latin subset, from Google Fonts, SIL OFL) so a visit
   sends nothing to a third party. IBM Plex Sans is one variable file. */
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans.woff2') format('woff2');
}

:root {
  --ground: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #15171C;
  --body: #3E434D;
  --muted: #5A5F6B;
  --line: #DDD8CE;
  --line-strong: #C9C3B7;
  --placeholder: #E6E1D6;
  --accent: #1E5A57;
  --accent-dark: #123C3A;
  --accent-soft: #E4F1EF;
  --accent-on-dark: #A8DCD6;
  --dark: #15171C;
  --dark-text: #C9CCD3;
  --dark-muted: #A3A8B2;
  --dark-line: #2E3139;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 6.6vw, 96px);
  --section: clamp(64px, 9vw, 128px);
  --radius-lg: clamp(22px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--ground);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #fff; }

/* Type */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
}
.display { font-family: var(--serif); font-weight: 400; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.08; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--body); }
.prose { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--body); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 17px; text-decoration: none; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { color: var(--ink); border: 1px solid var(--line-strong); }
.btn-outline:hover { color: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--ground); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 10; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
/* The H logo is gold on transparent; the accent circle behind it gives it contrast on the light header. */
.brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.brand-sub { font-size: 13px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.nav a.nav-cta { background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--accent); color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: transparent; align-items: center; justify-content: center;
  padding: 0; cursor: pointer; color: var(--ink);
}

@media (max-width: 960px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .site-header .wrap { padding-block: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-block: clamp(48px, 7.8vw, 112px) clamp(40px, 7.2vw, 104px); }
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(46px, 6.1vw, 88px); line-height: .98; letter-spacing: -1px; }
.hero h1 em { color: var(--accent); }
.hero .lead { max-width: 620px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-person { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 18px; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: var(--placeholder); display: flex; align-items: center; justify-content: center;
}
.portrait-fallback { font-family: var(--serif); font-size: 72px; color: var(--accent); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.person-name { font-size: 17px; font-weight: 600; }
.person-role { font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .hero-copy { gap: 22px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; font-size: 16px; }
  .hero-person { flex-direction: row; align-items: center; gap: 16px; }
  .portrait { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 999px; flex-shrink: 0; }
  .portrait-fallback { font-size: 26px; }
  .person-caption { flex-direction: column; align-items: flex-start; gap: 2px; }
  .person-name { font-size: 16px; }
}

/* Facts strip */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact dt { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.fact dd { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 36px); line-height: 1.15; }
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .fact { padding: 18px 0 18px 12px; border-bottom: 1px solid var(--line); gap: 4px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; padding-right: 12px; }
  .fact dt { font-size: 11px; }
}

/* About */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding-block: var(--section); }
.about .eyebrow { grid-column: span 4; padding-top: 14px; }
.about-body { grid-column: span 8; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 960px) {
  .about { display: flex; flex-direction: column; gap: 18px; }
  .about .eyebrow { padding-top: 0; font-size: 12px; }
  .about-body { gap: 18px; }
}

/* Section head */
.section { padding-bottom: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(24px, 3.3vw, 48px); flex-wrap: wrap; }
.section-head .note { font-size: 16px; color: var(--muted); }

/* Business card */
.business {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  background: var(--dark); color: var(--ground); border-radius: var(--radius-lg);
  padding: clamp(32px, 4.4vw, 64px) clamp(24px, 4.4vw, 64px);
}
.business-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.business-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-on-dark); }
.business-name { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; }

.business-copy .business-desc { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--dark-text); max-width: 560px; }
.business-cta { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.business-cta span { font-size: 15px; color: var(--dark-text); }
@media (max-width: 960px) {
  .business { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .business-cta { align-items: stretch; }
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(24px, 2.8vw, 40px); display: flex; flex-direction: column; gap: 20px;
}
.service svg { width: 36px; height: 36px; stroke: var(--accent); }
.service h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; }
.service p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; color: var(--body); }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr; gap: 16px; }
  .service { gap: 12px; }
  .service svg { width: 30px; height: 30px; }
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quote { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.25; }
.quote figcaption { font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; gap: 40px; } }

/* Contact */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  background: var(--accent); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(36px, 5.5vw, 80px) clamp(24px, 4.4vw, 64px);
}
.contact-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 20px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.02; }
.contact p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--accent-soft); max-width: 520px; }
.contact-cta { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; }
.contact-cta .btn { font-size: 18px; min-height: 56px; }
.contact-cta span { font-size: 15px; color: var(--accent-soft); text-align: center; }
@media (max-width: 960px) {
  .contact { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .contact-cta .btn { font-size: 16px; }
}

/* Footer */
.site-footer { background: var(--dark); color: var(--dark-text); }
.site-footer .wrap { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 3.9vw, 56px); display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.footer-brand { grid-column: span 5; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .name { font-family: var(--serif); font-size: clamp(28px, 2.5vw, 36px); color: var(--ground); }
.footer-brand .tagline { font-size: 15px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.6; }
.footer-col.links { grid-column: 7 / span 3; }
.footer-col.address { grid-column: 10 / span 3; }
.footer-col h2 { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: #8C919C; margin-bottom: 8px; }
.footer-col a { color: var(--dark-text); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col address { font-style: normal; }
.footer-legal { border-top: 1px solid var(--dark-line); padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--dark-muted); flex-wrap: wrap; }
@media (max-width: 960px) {
  .footer-grid { display: flex; flex-direction: column; }
  .footer-col a { padding: 10px 0; }
  .site-footer .wrap { gap: 32px; }
}

/* Company information page */
.page-intro { padding-block: clamp(48px, 6.6vw, 96px) clamp(32px, 4.4vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.back-link { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 0; align-self: flex-start; }
.back-link:hover { color: var(--ink); }
.page-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 5.5vw, 80px); line-height: 1; }
.page-intro .lead { max-width: 720px; }
.company-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; padding-bottom: clamp(64px, 6.6vw, 96px); }
.details { grid-column: span 8; border-top: 1px solid var(--ink); }
.detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.detail dt { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.detail dd { grid-column: span 2; font-size: clamp(18px, 1.55vw, 22px); font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.record {
  grid-column: 10 / span 3; align-self: start; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
}
.record .label { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.record p { font-size: 16px; line-height: 1.6; color: var(--body); }
.record .btn { font-size: 16px; }
@media (max-width: 960px) {
  .company-grid { display: flex; flex-direction: column; }
  .detail { grid-template-columns: 1fr; padding: 20px 0; }
  .detail dt { font-size: 12px; padding-top: 0; }
  .detail dd { grid-column: auto; }
  .record { padding: 24px; }
}

/* 404 */
.not-found { padding-block: clamp(80px, 12vw, 180px); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.not-found h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1; }
