@import url("assets/fonts/google-fonts.css");

:root {
  --ink: #171717;
  --muted: #66625c;
  --line: #ddd8cf;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --charcoal: #222326;
  --copper: #a15d3f;
  --olive: #6f7660;
  --blue: #243f48;
  --gold: #b18a45;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.preview-banner {
  padding: 8px 24px;
  background: #171717;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  font-size: 24px;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.button.light {
  border-color: rgba(255, 255, 255, 0.84);
  color: #fff;
  background: rgba(23, 23, 23, 0.34);
}

.hero {
  position: relative;
  min-height: calc(100vh - 136px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero.compact {
  min-height: 62vh;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.26) 58%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 80px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI Semibold", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.hero .lede,
.page-intro .lede {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

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

.section {
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 54px);
}

.section.dark {
  color: #fff;
  background: var(--charcoal);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.45fr);
  gap: 36px;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-head p,
.text-block p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.section.dark .section-head p,
.section.dark .text-block p {
  color: rgba(255, 255, 255, 0.74);
}

.grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-link,
.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  margin: 0;
  text-decoration: none;
}

.surface-link {
  display: grid;
  min-height: 250px;
  padding: 24px;
  align-content: space-between;
}

.surface-link strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.surface-link p {
  margin: 16px 0 0;
  color: var(--muted);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

.project-card.tall img {
  aspect-ratio: 3 / 4;
}

.project-card img.crop-bottom-safe {
  object-position: center 34%;
}

.case-gallery .project-card img,
.case-gallery .project-card.tall img {
  width: 100%;
  height: auto;
  max-height: 620px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f2eee7;
}

.card-body {
  padding: 20px;
}

.card-body p {
  margin: 10px 0 0;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.text-block {
  display: grid;
  gap: 18px;
}

.info-card {
  min-height: auto;
}

.list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding-top: 14px;
  border-top: 1px solid rgba(23, 23, 23, 0.18);
}

.case-actions {
  display: flex;
  justify-content: center;
  width: min(1180px, 100%);
  margin: 28px auto 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 0 auto 24px;
}

.filter-bar button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
}

.filter-bar button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.page-intro {
  padding: clamp(64px, 9vw, 122px) clamp(18px, 4vw, 54px);
  color: #fff;
  background: var(--charcoal);
}

.page-intro .inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.page-intro .lede {
  color: rgba(255, 255, 255, 0.78);
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.case-hero img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.detail-list div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.detail-list span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.form-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.form-embed iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.footer {
  display: grid;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--muted);
}

.footer img {
  width: 176px;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 70px;
  }

  .brand {
    min-width: 104px;
  }

  .brand img {
    width: 104px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero,
  .hero.compact {
    min-height: 76vh;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.76));
  }

  .section-head,
  .split,
  .case-hero,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.two,
  .detail-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  .hero .lede,
  .page-intro .lede {
    font-size: 18px;
  }
}

.footer .inner > span { max-width: 28rem; overflow-wrap: anywhere; }

/* Match the Alserkal image row on desktop; retain full photos on mobile. */
@media (min-width: 861px) {
  .case-gallery-consistent .project-card img,
  .case-gallery-consistent .project-card.tall img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 65%;
  }
}
