/* Hodge Solutions Ltd — group site
   Calm, institutional, single page. Mobile-first. */

:root {
  --black: #0D0D0D;
  --red: #C71F2D;
  --off-white: #F6F6F4;
  --paper: #FFFFFF;
  --mute: #5a5a5a;
  --line: #e5e3df;
  --hh: 68px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); max-width: 22ch; }
h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--black); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

/* Skip link (keyboard a11y) */
.skip-link {
  position: fixed;
  top: -60px;
  left: 8px;
  z-index: 100;
  background: var(--black);
  color: #fff;
  padding: 10px 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--red);
  outline-offset: 2px;
  color: #fff;
}
main:focus { outline: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hh);
  padding: 0 24px;
  background: rgba(246,246,244,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 0.98rem;
}
.brand-text .ltd { color: var(--black); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: 0.95rem; }
.site-nav .cta {
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .cta:hover { background: var(--black); color: #fff; }

/* Layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.eyebrow, .section-eyebrow {
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--red);
  margin: 0 0 1.2em;
}

/* Hero */
.hero { padding-top: 110px; padding-bottom: 100px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-lede {
  font-size: 1.1rem;
  color: var(--mute);
  max-width: 56ch;
  margin-bottom: 1.3em;
}
.hero-prose { margin-bottom: 2em; }
.hero-prose p { max-width: 56ch; }
.hero-prose p + p { margin-top: 0; }
.hero-portrait {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: var(--black);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--red); color: #fff; }

/* Portfolio */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 8px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 22px 22px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.4em; }
.card-line { color: var(--mute); margin-bottom: 16px; flex: 1; }
.card-status {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Archivo', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--off-white);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin: 0;
}

/* Contact */
.contact-lede {
  color: var(--mute);
  max-width: 56ch;
  margin-bottom: 2em;
}
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  min-height: 500px;
}
.form-wrap iframe { display: block; width: 100%; border: 0; }
.form-fallback { color: var(--mute); margin-top: 1em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 36px;
  font-size: 0.85rem;
  color: var(--mute);
}
.footer-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.footer-brand {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  color: var(--black);
}

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

/* Tablet */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-portrait { max-width: 420px; }
}

/* Small screens */
@media (max-width: 600px) {
  .site-nav a:not(.cta) { display: none; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  section { padding: 60px 0; }
  body { font-size: 16px; }
  .contact .form-wrap {
    padding: 0;
    margin: 0 -24px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}
