/* HRD Productions — standalone, responsive, dependency-free styles */
@font-face {
  font-family: "Jost";
  src: url("/fonts/Jost-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand: #ff1210;
  --ink: #1d1d1d;
  --muted: #f5f5f5;
  --header-cta: #dddbcb;
  --max-width: 960px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  font-family: "Jost", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
main { flex: 1 0 auto; }
a { color: #bd1714; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #184cd2;
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.35rem; margin: 2rem 0 .8rem; }
h4 { font-size: 1.15rem; margin: 1.5rem 0 .7rem; }
p { margin: 0 0 1rem; overflow-wrap: break-word; }
ul { padding-left: 1.35rem; }
li { margin-bottom: .4rem; }
.container { width: min(calc(100% - 2.5rem), var(--max-width)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -10rem;
  left: .75rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { top: .75rem; }
.site-header { background: var(--brand); }
.site-nav {
  min-height: 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.25rem);
  row-gap: .75rem;
  padding-block: .9rem;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { width: clamp(12rem, 23vw, 16.5rem); height: auto; }
.site-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.3rem; }
.site-header a { color: #fff; }
.site-links a { font-size: 1.2rem; }
.site-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }
.site-contact { margin-left: auto; }
.button {
  display: inline-block;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  font: inherit;
}
.button:hover { text-decoration: none; }
.button--nav { color: #111 !important; background: var(--header-cta); }
.button--nav:hover { background: #f5f1e3; }
.button--light { background: #fff; color: #111; }
.button--light:hover { background: #eee; }
.hero {
  display: grid;
  align-items: center;
  min-height: max(30rem, 75svh);
  padding-block: clamp(4rem, 10vw, 9rem);
  color: #fff;
  background-color: #333;
  background-image: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)), url("image.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero--red {
  background-image: url("image-red.webp");
  background-color: var(--brand);
}
.hero-copy { width: min(100%, 38rem); margin-inline: auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: .75rem; }
.hero h2 { font-size: clamp(1.1rem, 2.4vw, 1.45rem); margin: 0 0 1.3rem; line-height: 1.5; }
.page-content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-content h1:first-child { margin-top: 0; }
.page-content a { overflow-wrap: anywhere; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.references-list { list-style: none; padding: 0; }
.offerings { background: var(--muted); padding-block: clamp(3rem, 6vw, 6rem); }
.offerings h2 { text-align: center; }
.site-footer { background: #f8f9fa; padding: 1.25rem 0; margin-top: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; gap: .8rem 2rem; text-align: center; }
/* Keep readable widths and prevent wide tables or long legal text from overflowing. */
.page-content :is(pre, table) { max-width: 100%; overflow-x: auto; }
@media (max-width: 720px) {
  .columns { grid-template-columns: 1fr; gap: 0; }
  .site-nav { column-gap: 1rem; }
  .site-links { order: 3; width: 100%; }
  .site-links a { font-size: 1.05rem; }
  .hero { min-height: max(26rem, 65svh); background-attachment: scroll; }
  .hero-copy { margin-inline: 0; }
}
@media (max-width: 400px) {
  .container { width: min(calc(100% - 2rem), var(--max-width)); }
  .site-logo img { width: min(53vw, 11.5rem); }
  .site-nav { row-gap: .65rem; }
  .button { padding: .55rem .9rem; }
  .footer-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Homepage sections — custom technology positioning */
.home-hero .hero-copy { width: min(100%, 49rem); }
.home-hero h1 {
  max-width: 48rem;
  font-size: clamp(2.45rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.home-hero .hero-description {
  max-width: 42rem;
  margin-bottom: 1.75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.button--outline-light { color: #fff; border-color: #fff; background: transparent; }
.button--outline-light:hover { color: #111; background: #fff; }
.hero-location { margin: 1.8rem 0 0; font-size: .92rem; opacity: .9; }
.home-section { padding-block: clamp(3.6rem, 7vw, 6rem); }
.home-section h2 { margin: 0 0 2.1rem; font-size: clamp(2rem, 4vw, 2.65rem); }
.section-label { margin: 0 0 .45rem; font-size: .83rem; text-transform: uppercase; letter-spacing: .13em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.service-item { border-top: 3px solid var(--brand); padding-top: 1.2rem; }
.service-item h3 { margin: 0 0 .85rem; font-size: 1.45rem; line-height: 1.3; }
.service-item p { margin: 0; }
.home-work { background: var(--muted); }
.home-work p:not(.section-label) { max-width: 43rem; }
.selected-clients { color: #424242; }
.text-link { display: inline-block; margin-top: .5rem; font-size: 1.1rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.home-cta { background: var(--brand); color: #fff; }
.home-cta h2 { margin-bottom: 1rem; }
.home-cta p { max-width: 35rem; margin-bottom: 1.8rem; font-size: 1.15rem; }
@media (max-width: 720px) {
  .home-hero h1 { font-size: clamp(2.15rem, 8vw, 3rem); }
  .service-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-section h2 { margin-bottom: 1.7rem; }
}


/* First release: selected project imagery and improved contact page */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 1.5rem);
  margin-block: 2rem 2.3rem;
}
.project-card { margin: 0; min-width: 0; }
.project-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ddd;
  border-radius: .25rem;
}
.project-card figcaption { display: grid; gap: .25rem; padding-block: .8rem; }
.project-card figcaption strong { font-size: 1.12rem; font-weight: 600; }
.project-card figcaption span { font-size: .98rem; color: #484848; }
.intro-copy { max-width: 44rem; font-size: clamp(1.1rem, 2vw, 1.25rem); }
.references-page h2 { margin-top: 3.75rem; }
.contact-page .intro-copy { margin-bottom: 1.65rem; }
.contact-location { color: #555; margin-top: 2rem; }
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; max-width: 33rem; }
}


/* Final V1 adjustments: reordered project highlights and contact image */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.contact-copy { min-width: 0; }
.contact-figure { margin: 0; }
.contact-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .35rem;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-figure { max-width: 34rem; }
}


/* Curated References gallery */
.references-intro { max-width: 46rem; }
.references-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.3vw, 1.5rem);
  margin-block: 1.5rem 2.3rem;
}
.reference-card { margin: 0; min-width: 0; }
.reference-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: .25rem;
  background: #ddd;
}
.reference-card figcaption { display: grid; gap: .2rem; padding-block: .75rem; }
.reference-card figcaption strong { font-size: 1.02rem; font-weight: 600; }
.reference-card figcaption span { font-size: .95rem; color: #555; }
.reference-subhead { margin-top: 3.5rem; }
@media (max-width: 900px) {
  .references-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .references-gallery { grid-template-columns: 1fr; max-width: 33rem; }
}
