/* Jeremy Hodge Ltd: site styles */

:root {
  --green-950: #0c1e18;
  --green-900: #10261f;
  --green-800: #173a31;
  --green-700: #1e4b3f;
  --green-600: #2a6152;
  --brass-300: #e2c48f;
  --brass-400: #d4ad6a;
  --brass-500: #b98f4b;
  --brass-700: #7d5c22;
  --paper: #f6f2ea;
  --paper-2: #eee7da;
  --white: #ffffff;
  --ink: #14211d;
  --muted: #4a5753;
  --line: #e0d7c6;
  --on-dark: #f4efe4;
  --on-dark-muted: #c3cbc4;
  --focus: #1e4b3f;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 31, 0.06), 0 18px 40px -24px rgba(16, 38, 31, 0.35);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

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

a {
  color: var(--green-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-900);
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--brass-400);
  color: var(--green-950);
  font-weight: 600;
  text-decoration: none;
  --focus: var(--green-950);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 239, 228, 0.08);
  background: var(--green-900);
  color: var(--on-dark);
  transition: box-shadow 0.2s ease;
  --focus: var(--brass-300);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  margin: 0;
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--on-dark);
}

.brand-suffix {
  color: var(--brass-400);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 2px;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 4px;
  left: 2px;
  height: 1px;
  background: var(--brass-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--on-dark);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

@media (max-width: 819px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(244, 239, 228, 0.25);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--on-dark);
    cursor: pointer;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -6px;
  }

  .nav-toggle-bars::after {
    top: 6px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 4px 20px 16px;
    border-top: 1px solid rgba(244, 239, 228, 0.1);
    background: var(--green-900);
    box-shadow: 0 24px 32px -16px rgba(0, 0, 0, 0.5);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .js .site-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 239, 228, 0.08);
    font-size: 1.05rem;
  }

  .js .site-nav li:last-child a {
    border-bottom: 0;
  }

  .js .site-nav a::after {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-brass {
  background: var(--brass-400);
  color: var(--green-950);
}

.btn-brass:hover {
  background: var(--brass-300);
  color: var(--green-950);
}

.btn-ghost {
  border-color: rgba(244, 239, 228, 0.4);
  color: var(--on-dark);
}

.btn-ghost:hover {
  border-color: var(--on-dark);
  background: rgba(244, 239, 228, 0.07);
  color: var(--on-dark);
}

/* Eyebrow labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--brass-700);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 36rem at 88% 8%, rgba(212, 173, 106, 0.16), transparent 62%),
    radial-gradient(48rem 32rem at -10% 110%, rgba(42, 97, 82, 0.6), transparent 60%),
    linear-gradient(165deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-900) 100%);
  color: var(--on-dark);
  --focus: var(--brass-300);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 239, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 228, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 72% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 48px;
  padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 112px);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
  }
}

.hero .eyebrow {
  color: var(--brass-400);
}

.hero h1 {
  max-width: 13ch;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--brass-300);
  font-style: italic;
  font-weight: 500;
}

.lead {
  max-width: 38rem;
  margin-bottom: 32px;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero art: a terrace of houses drawn with CSS shapes */
.hero-art {
  display: flex;
  justify-content: center;
}

.terrace {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 11 / 9;
}

@media (max-width: 899px) {
  .terrace {
    max-width: 320px;
  }
}

.terrace .sun {
  position: absolute;
  top: 4%;
  right: 6%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(226, 196, 143, 0.5), rgba(212, 173, 106, 0.16) 66%);
  box-shadow: 0 0 0 16px rgba(212, 173, 106, 0.07), 0 0 0 36px rgba(212, 173, 106, 0.035);
}

.house {
  position: absolute;
  bottom: 8%;
  --win: rgba(16, 38, 31, 0.88);
  --door: var(--green-900);
}

/* Four windows */
.house::before {
  content: "";
  position: absolute;
  top: 42%;
  right: 22%;
  left: 22%;
  height: 26%;
  background: linear-gradient(90deg, var(--win) 0 40%, transparent 40% 60%, var(--win) 60% 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 40%, transparent 40% 60%, #000 60% 100%);
  mask-image: linear-gradient(180deg, #000 0 40%, transparent 40% 60%, #000 60% 100%);
}

/* Door */
.house::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 18%;
  height: 22%;
  border-radius: 999px 999px 0 0;
  background: var(--door);
  transform: translateX(-50%);
}

.house--a {
  left: 3%;
  width: 30%;
  height: 62%;
  background: linear-gradient(180deg, #33705f, #24584b);
  clip-path: polygon(0 32%, 50% 0, 70% 12.8%, 70% 3%, 82% 3%, 82% 20.5%, 100% 32%, 100% 100%, 0 100%);
  --win: rgba(226, 196, 143, 0.9);
}

.house--b {
  z-index: 2;
  left: 31%;
  width: 37%;
  height: 78%;
  background: linear-gradient(180deg, var(--brass-300), var(--brass-500));
  clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%);
}

.house--c {
  left: 66%;
  width: 30%;
  height: 54%;
  background: linear-gradient(180deg, #f4efe4, #d9d0be);
  clip-path: polygon(0 32%, 18% 20.5%, 18% 3%, 30% 3%, 30% 12.8%, 50% 0, 100% 32%, 100% 100%, 0 100%);
  --win: rgba(30, 75, 63, 0.9);
  --door: var(--green-700);
}

.terrace .ground {
  position: absolute;
  right: 0;
  bottom: 8%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 228, 0.5) 12%, rgba(244, 239, 228, 0.5) 88%, transparent);
  transform: translateY(1px);
}

/* Sections */
.section {
  padding-block: clamp(72px, 9vw, 120px);
}

.section--tint {
  background: var(--paper-2);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* What we do */
.split {
  display: grid;
  gap: 8px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 72px;
  }

  .split .section-head {
    margin-bottom: 0;
  }
}

.service-list {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) and (max-width: 899px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  position: relative;
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 44px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brass-400);
}

.card-num {
  display: block;
  margin-bottom: 14px;
  color: var(--brass-700);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 72px;
  }
}

.about-copy h2 {
  max-width: 18ch;
}

.about-copy p:not(.eyebrow) {
  max-width: 36rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(30, 75, 63, 0.35);
  text-underline-offset: 4px;
}

.text-link::after {
  content: "\2197";
  text-decoration: none;
}

.text-link:hover {
  color: var(--green-900);
  text-decoration-color: currentColor;
}

.facts-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(212, 173, 106, 0.14), transparent 70%),
    var(--green-900);
  color: var(--on-dark);
  box-shadow: var(--shadow);
  --focus: var(--brass-300);
}

.facts-card h3 {
  margin-bottom: 18px;
  font-size: 1.4rem;
}

.facts-card dl {
  margin: 0;
}

.facts-card dl > div {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid rgba(244, 239, 228, 0.12);
}

@media (min-width: 480px) {
  .facts-card dl > div {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 16px;
  }
}

.facts-card dt {
  padding-top: 3px;
  color: var(--brass-400);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts-card dd {
  margin: 0;
  color: var(--on-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 32px;
  }
}

.contact-card {
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 16px;
  color: var(--brass-700);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card address {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
}

.contact-card .note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.map-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .map-wrap {
    min-height: 400px;
  }
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  padding-block: clamp(56px, 7vw, 80px) 32px;
  background: var(--green-950);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  --focus: var(--brass-300);
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass-300);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}

.brand--footer {
  margin-bottom: 14px;
  font-size: 1.5rem;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--brass-400);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal {
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  font-size: 0.875rem;
}

.footer-legal p {
  margin: 0;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
