/* FHR Construction concept. Nordic Minimal structure, FHR's own palette.
   Colors: charcoal/snow/sand from their Elementor kit, brass accent from
   their live footer and kit accent token. No stock steel blue. */

:root {
  /* Backgrounds: FHR's neutrals */
  --snow:        #f9f9f9;
  --cloud:       #efedea;
  --sand:        #d6d1c4;
  --graphite:    #201d1c;
  --slate:       #2b2725;

  /* Accent: FHR's brass, from their kit + rendered footer */
  --accent:        #8b7828;
  --accent-deep:   #63561a;
  --accent-bright: #c0ab55;
  --accent-lift:   #d3c488;   /* brass lifted in-hue for small labels on photography */
  --accent-muted:  rgba(192, 171, 85, 0.16);

  /* Text */
  --text-dark:        #201d1c;
  --text-body:        #46413d;
  --text-muted:       #6f6963;
  --text-light:       #f5f3ef;
  --text-light-muted: rgba(245, 243, 239, 0.78);

  /* Type */
  --font-display: "DM Serif Display", serif;
  --font-body: "DM Sans", sans-serif;

  /* Layout */
  --container: min(88%, 1000px);
  --container-wide: min(92%, 1200px);
  --pad-y: clamp(3.5rem, 7vw, 6rem);
  --nav-h: 4.5rem;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--snow);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container { width: var(--container); margin-inline: auto; }
.container--wide { width: var(--container-wide); margin-inline: auto; }

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--text-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--accent-bright);
}
.on-dark .eyebrow { color: var(--accent-lift); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 100vmax;
  border: 1px solid transparent;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  flex: none;
}
.btn:hover .btn__dot { transform: scale(1.5); opacity: 1; }

.btn--solid { background: var(--graphite); color: var(--text-light); }
.btn--solid:hover { background: var(--slate); }

.btn--brass { background: var(--accent-bright); color: var(--graphite); }
.btn--brass:hover { background: #cdbb6f; }

.btn--ghost { border-color: rgba(245, 243, 239, 0.4); color: var(--text-light); }
.btn--ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn--ghost-dark { border-color: rgba(32, 29, 28, 0.35); color: var(--text-dark); }
.btn--ghost-dark:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.is-solid { background: rgba(32, 29, 28, 0.96); box-shadow: 0 1px 0 rgba(245, 243, 239, 0.08); }
.nav__inner {
  width: var(--container-wide);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav__logo img { height: 2.6rem; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); list-style: none; }
.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-light-muted);
  transition: color 0.25s var(--ease);
  padding-block: 0.65rem;
}
.nav__links a:hover { color: var(--accent-bright); }
.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 0.6rem 1.25rem; font-size: 0.84rem; }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.65rem;
  z-index: 75;
}
.nav__burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span + span { margin-top: 5px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--graphite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 6vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  color: var(--text-light);
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(245, 243, 239, 0.08);
  transition: color 0.25s var(--ease);
}
.mobile-menu a:hover { color: var(--accent-bright); }
.mobile-menu__contact {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-light-muted);
}
.mobile-menu__contact a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--accent-bright);
  border: 0;
  padding-block: 0.65rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--graphite);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 22, 21, 0.92) 0%, rgba(24, 22, 21, 0.70) 45%, rgba(24, 22, 21, 0.66) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--container-wide);
  margin-inline: auto;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  color: var(--text-light);
  max-width: 18ch;
  margin-top: 1.1rem;
}
.hero__sub {
  margin-top: 1.35rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--text-light-muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- cred strip ---------- */

.cred {
  background: var(--cloud);
  border-bottom: 1px solid rgba(32, 29, 28, 0.07);
}
.cred__grid {
  width: var(--container-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}
.cred__item { min-width: 0; }
.cred__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cred__value {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* ---------- intro ---------- */

.intro { background: var(--snow); padding-block: var(--pad-y); }
.intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.1rem; }
.intro__body { margin-top: 1.4rem; display: grid; gap: 1rem; max-width: 52ch; }
.intro__founder {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(32, 29, 28, 0.1);
}
.intro__founder-line { font-family: var(--font-display); font-size: 1.35rem; color: var(--text-dark); }
.intro__founder-name { margin-top: 0.4rem; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.intro__media { position: relative; }
.intro__media img { width: 100%; height: clamp(20rem, 34vw, 30rem); object-fit: cover; }
.intro__media::after {
  content: "";
  position: absolute;
  inset: auto -0.9rem -0.9rem auto;
  width: 55%;
  height: 55%;
  border: 1px solid var(--accent-bright);
  z-index: -1;
}

/* ---------- services index ---------- */

.services { background: var(--graphite); padding-block: var(--pad-y); }
.services__head { max-width: 44ch; }
.services h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--text-light); margin-top: 1.1rem; }
.services__lede { margin-top: 1.2rem; color: var(--text-light-muted); max-width: 50ch; }

.svc {
  margin-top: clamp(2.2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.svc__list { list-style: none; }
.svc__item { border-bottom: 1px solid rgba(245, 243, 239, 0.1); }
.svc__item:first-child { border-top: 1px solid rgba(245, 243, 239, 0.1); }
.svc__btn {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.05rem 0.25rem;
  text-align: left;
  transition: padding-inline-start 0.3s var(--ease);
}
.svc__num {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  flex: none;
  width: 1.6rem;
}
.svc__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--text-light-muted);
  transition: color 0.3s var(--ease);
}
.svc__desc {
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 2.7rem;
  font-size: 0.92rem;
  color: var(--text-light-muted);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.svc__item.is-active .svc__name { color: var(--text-light); }
.svc__item.is-active .svc__btn { padding-inline-start: 0.6rem; }
.svc__item.is-active .svc__desc { max-height: 6rem; padding-bottom: 1.05rem; }

.svc__media {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--slate);
}
.svc__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.svc__media img.is-visible { opacity: 1; }
.svc__media-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  background: linear-gradient(to top, rgba(24, 22, 21, 0.75), transparent);
}

/* ---------- work ---------- */

.work { background: var(--snow); padding-block: var(--pad-y); }
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  width: var(--container-wide);
  margin-inline: auto;
}
.work h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.1rem; }
.work__cats { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.06em; }
.work__grid {
  width: var(--container-wide);
  margin-inline: auto;
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.work__card { position: relative; overflow: hidden; }
.work__card img {
  width: 100%;
  height: clamp(15rem, 26vw, 22rem);
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work__card:hover img { transform: scale(1.04); }
.work__chip {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(32, 29, 28, 0.72);
  padding: 0.4rem 0.75rem;
  border-radius: 100vmax;
}

/* ---------- process ---------- */

.process { background: var(--sand); padding-block: var(--pad-y); }
.process__head { max-width: 46ch; }
.process h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 1.1rem; }
.process__lede { margin-top: 1.1rem; color: var(--text-body); }
.process__grid {
  margin-top: clamp(2.2rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.step { border-top: 1px solid rgba(32, 29, 28, 0.25); padding-top: 1.1rem; }
.step__num { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--accent-deep); }
.step h3 { font-size: 1.28rem; margin-top: 0.55rem; }
.step p { margin-top: 0.6rem; font-size: 0.93rem; }

/* ---------- local ---------- */

.local { background: var(--slate); padding-block: var(--pad-y); }
.local__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.local h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); color: var(--text-light); margin-top: 1.1rem; }
.local__body { margin-top: 1.3rem; color: var(--text-light-muted); max-width: 50ch; }
.local__meta { margin-top: 1.8rem; display: grid; gap: 0.4rem; font-size: 0.95rem; color: var(--text-light-muted); }
.local__meta strong { font-weight: 500; color: var(--text-light); }
.local__media img { width: 100%; height: clamp(18rem, 30vw, 26rem); object-fit: cover; }

/* ---------- cta ---------- */

.cta {
  background: var(--graphite);
  padding-block: var(--pad-y);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-muted), transparent 65%);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: var(--text-light); margin-top: 1.1rem; max-width: 22ch; }
.cta__sub { margin-top: 1.2rem; color: var(--text-light-muted); max-width: 46ch; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2rem; }

/* ---------- footer ---------- */

.footer { background: #191716; color: var(--text-light-muted); }
.footer__grid {
  width: var(--container-wide);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.footer__logo img { height: 2.8rem; width: auto; }
.footer__tag { margin-top: 1rem; font-size: 0.92rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}
.footer ul { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.1rem; }
.footer a { display: inline-block; padding-block: 0.65rem; font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--accent-bright); }
.footer address { font-style: normal; margin-top: 0.9rem; font-size: 0.92rem; line-height: 1.9; }
.footer__roc { margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.06em; }
.footer__bar {
  border-top: 1px solid rgba(245, 243, 239, 0.08);
  padding-block: 1.1rem;
}
.footer__bar-inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* ---------- 404 ---------- */

.error-section {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--graphite);
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: calc(var(--nav-h) + 2rem) var(--pad-y);
}
.error__inner { display: grid; justify-items: center; }
.error__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  color: var(--accent-muted);
  -webkit-text-stroke: 1px rgba(192, 171, 85, 0.4);
}
.error__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--text-light); margin-top: 1rem; }
.error__body { margin-top: 1rem; color: var(--text-light-muted); max-width: 44ch; }
.error-section .btn { margin-top: 2rem; }

/* ---------- reveal ---------- */

.reveal-el { opacity: 0; }
.no-js .reveal-el, .reveal-el.is-shown { opacity: 1; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .cred__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { background: rgba(32, 29, 28, 0.96); }

  .intro__grid, .local__grid { grid-template-columns: 1fr; }
  .intro__media { order: -1; }

  .svc { grid-template-columns: 1fr; }
  .svc__media { position: relative; top: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 6rem;
  }
}

@media (max-width: 640px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__card img { height: clamp(14rem, 60vw, 18rem); }
  .process__grid { grid-template-columns: 1fr; }
  .cred__grid { grid-template-columns: 1fr 1fr; }
  .cred__value { font-size: 0.88rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 480px) {
  .hero { padding-top: 5rem; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .cta__btns { width: 100%; flex-direction: column; }
  .cta__btns .btn { width: 100%; justify-content: center; }
  .cred__grid { grid-template-columns: 1fr; }
}
