/* ============================================================
   E.F.G. — light editorial architecture style (Archy-inspired)
   ============================================================ */

/* Self-hosted fonts — exactly what the Archy demo computes to:
   headings = Urbanist, body/UI = Jost (both variable woff2) */
@font-face {
  font-family: "Urbanist";
  src: url("../assets/fonts/Urbanist-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/Jost-400.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --off: #f6f5f3;
  --ink: #141414;
  --gray: #6f6f6f;
  --line: #e6e4e0;
  --dark: #191713;
  --cream: #ece4d6;

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Urbanist", "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); }
.project-card h3, .about-card figcaption { font-family: var(--font-display); }

.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gray);
  margin-bottom: 1.2rem;
}
.muted { color: var(--gray); }

.btn-line {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.3s;
}
.btn-line:hover { opacity: 0.55; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              padding 0.4s var(--ease), box-shadow 0.4s;
}
.header__logo-img { height: 2.1rem; width: auto; }
.header__logo-img--cream { filter: invert(1) brightness(1.6); } /* white over hero photos */
.header__logo-img--dark { display: none; }

.header__nav { display: flex; gap: 2.2rem; }
.header__nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: opacity 0.3s, border-color 0.3s;
}
.header__nav a:hover, .header__nav a.is-active {
  opacity: 1;
  border-color: currentColor;
}

.header.is-solid {
  background: var(--white);
  color: var(--ink);
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .header__logo-img--cream { display: none; }
.header.is-solid .header__logo-img--dark { display: block; }

.header__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 2rem;
  height: 1.4rem;
  position: relative;
}
.header__burger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.header__burger span:first-child { top: 0.25rem; }
.header__burger span:last-child { top: 0.95rem; }
body.nav-open .header__burger span:first-child { top: 0.6rem; transform: rotate(45deg); }
body.nav-open .header__burger span:last-child { top: 0.6rem; transform: rotate(-45deg); }

/* ============================================================
   Hero slider
   ============================================================ */
.hero {
  position: relative;
  height: 78vh;
  height: 78svh;
  min-height: 34rem;
  overflow: hidden;
  background: var(--dark);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero-slide.is-active .hero-slide__bg { transform: scale(1); }
.hero-slide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.38);
}

.hero-slide__title {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%) translateY(1.8rem);
  width: min(90vw, 20ch);
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.9vw, 6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.9s var(--ease) 0.3s, transform 0.9s var(--ease) 0.3s;
}
.hero-slide.is-active .hero-slide__title {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.hero__card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--white);
  color: var(--ink);
  width: min(92vw, 46rem);
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.8rem, 4vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.8rem);
}
.hero__card p { font-size: 1rem; color: var(--ink); flex: 1; line-height: 1.7; }
.hero__card-divider { width: 1px; align-self: stretch; background: var(--line); }
.hero__card-link {
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0 clamp(0.4rem, 1.5vw, 1.6rem);
  transition: opacity 0.3s;
}
.hero__card-link:hover { opacity: 0.6; }

.hero__arrows {
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero__arrows button,
.gallery__arrows button {
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.hero__arrows button:hover,
.gallery__arrows button:hover { background: var(--ink); color: #fff; }

.hero__dots {
  position: absolute;
  left: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.hero__dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.hero__dots button.is-active { background: #fff; transform: scale(1.5); }

/* ============================================================
   Services
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) 2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 80rem;
  margin: 0 auto;
}
.services__intro h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 1.4rem;
}
.services__intro .muted { margin-bottom: 2.2rem; max-width: 34ch; }

.services__lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 2rem;
  align-content: start;
}
.services__lists li { border-bottom: 1px solid var(--line); }
.services__lists a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0.2rem;
  font-size: 1rem;
  transition: padding-left 0.35s var(--ease), color 0.3s;
}
.services__lists a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-0.4rem);
  transition: opacity 0.3s, transform 0.3s;
}
.services__lists a:hover { padding-left: 0.6rem; }
.services__lists a:hover::after { opacity: 0.6; transform: translateX(0); }

.stats-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--line);
}
.stats-row li { display: flex; flex-direction: column; gap: 0.3rem; }
.stats-row__num {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}
.stats-row p { color: var(--gray); font-size: 0.9rem; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  height: clamp(18rem, 62vh, 34rem);
  display: flex;
  align-items: center;
  background: url("../assets/img/hero-2.jpg?v=2") center / cover no-repeat;
}
.marquee::after { content: ""; position: absolute; inset: 0; background: rgba(30, 34, 40, 0.18); }
.marquee__track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
}
.marquee__track em { font-style: normal; color: rgba(255, 255, 255, 0.55); font-size: 1.4rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   About
   ============================================================ */
.about { max-width: 80rem; margin: 0 auto; }
.about__quote {
  font-size: 0.95rem;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 1rem;
}
.about__head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 24ch; }

.about__body {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}

.tabs__nav {
  display: flex;
  gap: 1.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.tabs__nav button {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray);
  padding: 0 0 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 0.3s, border-color 0.3s;
}
.tabs__nav button.is-active { color: var(--ink); border-color: var(--ink); }

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeIn 0.5s var(--ease); }
.tabs__panel p { color: var(--gray); margin-bottom: 1rem; max-width: 46ch; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(0.6rem); } }

.about__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
  align-items: start;
}
.about-card:nth-child(2) { margin-top: 2.2rem; }
.about-card:nth-child(3) { margin-top: 4.4rem; }
.about-card__img {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-color: var(--off);
  transition: transform 0.6s var(--ease);
}
.about-card:hover .about-card__img { transform: translateY(-0.4rem); }
.about-card figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray);
}

/* ============================================================
   Process
   ============================================================ */
.process { background: var(--dark); color: var(--cream); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 80rem;
  margin: 0 auto;
  counter-reset: step;
}
.process__num {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: rgba(236, 228, 214, 0.45);
  margin-bottom: 1.2rem;
}
.process h3 {
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
  max-width: 16ch;
}
.process p { font-size: 0.92rem; color: rgba(236, 228, 214, 0.65); max-width: 34ch; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery { position: relative; padding: clamp(4rem, 9vh, 6rem) 0; }
.gallery__track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 var(--pad);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img {
  height: clamp(16rem, 42vh, 26rem);
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--off);
}
.gallery__arrows {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  padding: 1.4rem var(--pad) 0;
}
.gallery__arrows button { border: 1px solid var(--line); background: var(--white); }

/* ============================================================
   Projects
   ============================================================ */
.projects { max-width: 80rem; margin: 0 auto; }
.projects__head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.project-card__img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--off);
  margin-bottom: 1.1rem;
  transition: opacity 0.4s;
}
.project-card:hover .project-card__img { opacity: 0.85; }
.project-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.project-card p { font-size: 0.85rem; }

/* ============================================================
   News
   ============================================================ */
.news { background: var(--off); }
.news__head { max-width: 80rem; margin: 0 auto; }
.news__head h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: clamp(2.5rem, 6vh, 4rem) auto 0;
}
.news-card {
  background: var(--white);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.news-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 18px 40px rgba(20, 18, 15, 0.08);
}
.news-card__meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gray);
}
.news-card h3 { font-size: 1.15rem; flex: 1; }
.news-card .btn-line { align-self: flex-start; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--dark); color: var(--cream); padding: clamp(4.5rem, 10vh, 7rem) var(--pad) 2rem; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 80rem;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid rgba(236, 228, 214, 0.15);
}
.footer__brand img {
  width: 8.5rem;
  margin-bottom: 1.4rem;
  filter: invert(1) brightness(1.6); /* white logo on the dark footer */
}
.footer__brand .muted { color: rgba(236, 228, 214, 0.55); }
.footer__col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__col .eyebrow { color: rgba(236, 228, 214, 0.45); margin-bottom: 0.4rem; }
.footer__col a { font-size: 0.95rem; opacity: 0.85; transition: opacity 0.3s; }
.footer__col a:hover { opacity: 1; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 80rem;
  margin: 2rem auto 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(236, 228, 214, 0.5);
}
.footer__bottom a:hover { color: var(--cream); }

/* ============================================================
   Reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.8rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero-slide__bg { transition: none; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.3rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  body.nav-open .header__nav {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s var(--ease);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .header { color: var(--ink); }
  .header__burger { display: block; position: relative; z-index: 60; }

  .services { grid-template-columns: 1fr; }
  .about__body { grid-template-columns: 1fr; }
  .hero__card { width: 94vw; flex-wrap: wrap; }
  .hero__dots { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
