:root {
  --bg: #f3efe7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #14202b;
  --muted: #51606e;
  --line: rgba(20, 32, 43, 0.12);
  --brand: #b54f2d;
  --brand-deep: #7f3018;
  --accent: #d2a76d;
  --shadow: 0 28px 70px rgba(20, 32, 43, 0.12);
  --radius: 24px;
  --radius-sm: 18px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 167, 109, 0.35), transparent 30%),
    radial-gradient(circle at right 20%, rgba(181, 79, 45, 0.18), transparent 22%),
    linear-gradient(180deg, #f7f2ea 0%, #f0ece5 52%, #ece8e0 100%);
  min-height: 100vh;
}

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

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

p {
  margin: 0;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 32, 43, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 76px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(20, 32, 43, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 43, 0.08);
  background: rgba(20, 32, 43, 0.03);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(181, 79, 45, 0.1);
  border-color: rgba(181, 79, 45, 0.22);
  box-shadow: 0 10px 24px rgba(20, 32, 43, 0.08);
  transform: translateY(-1px);
}

.site-nav a.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(181, 79, 45, 0.14), rgba(210, 167, 109, 0.22));
  border-color: rgba(181, 79, 45, 0.24);
  box-shadow: 0 12px 28px rgba(20, 32, 43, 0.08);
  transform: translateY(-1px);
}

main {
  padding: 2rem 0 4rem;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  background: linear-gradient(135deg, rgba(20, 32, 43, 0.1), rgba(20, 32, 43, 0.7)),
    url("./images/home-hero.jpg") center/cover no-repeat;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 32, 43, 0.1) 0%, rgba(20, 32, 43, 0.78) 100%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.95rem;
  margin-bottom: 1rem;
  background: rgba(20, 32, 43, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.95;
}

.page-hero h1 {
  max-width: none;
}

.hero p,
.page-hero p {
  margin-top: 1.2rem;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: 0 14px 30px rgba(127, 48, 24, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-metrics article {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
  display: block;
  font-size: 1.6rem;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
}

.section-header p {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

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

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

.card,
.service-card,
.project-card,
.detail-card,
.contact-card,
.team-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.project-card,
.detail-card,
.team-card {
  overflow: hidden;
}

.card-pad,
.service-copy,
.project-copy,
.detail-copy,
.contact-card,
.team-copy {
  padding: 1.6rem;
}

.service-card img,
.project-card img,
.team-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.kicker {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3,
.service-card h3,
.project-card h3,
.detail-card h2,
.team-copy h2,
.contact-card h2 {
  margin: 0.55rem 0 0.8rem;
  font-size: 1.5rem;
}

.service-card p,
.project-card p,
.detail-card p,
.team-copy p,
.contact-card p,
.card p {
  color: var(--muted);
  line-height: 1.75;
}

.chip-list,
.stat-list,
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip,
.stat,
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(181, 79, 45, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.feature-list,
.bullet-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.feature-list li,
.bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.65;
}

.feature-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem;
}

.photo-panel {
  overflow: hidden;
  min-height: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  background: linear-gradient(135deg, rgba(20, 32, 43, 0.18), rgba(20, 32, 43, 0.64));
}

.page-hero.has-image {
  background-size: cover;
  background-position: center;
}

.project-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.project-card .project-copy {
  display: grid;
  gap: 0.8rem;
}

.project-card .meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.gallery {
  display: grid;
  gap: 1rem;
}

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

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery img:hover,
.gallery img:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(20, 32, 43, 0.16);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 15, 20, 0.84);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  max-width: min(92vw, 1200px);
  max-height: 92vh;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.4rem;
}

.contact-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.12rem;
}

.contact-note {
  padding: 1.2rem 1.3rem;
  margin-top: 1rem;
  border-radius: 18px;
  background: rgba(20, 32, 43, 0.04);
  color: var(--muted);
}

.email-cta {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  margin-top: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(181, 79, 45, 0.1), rgba(210, 167, 109, 0.16));
  border: 1px solid rgba(181, 79, 45, 0.12);
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 56px;
  padding: 0.95rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-deep);
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(20, 32, 43, 0.08);
}

.contact-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid rgba(20, 32, 43, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.footer-copy {
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 960px) {
  .grid-3,
  .grid-2,
  .split,
  .project-index-grid,
  .detail-layout,
  .contact-grid,
  .gallery.dual {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 32, 43, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section-header,
  .footer-inner {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
  }

  .header-inner {
    min-height: 76px;
  }

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

  .brand-title {
    font-size: 0.92rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero,
  .page-hero {
    border-radius: 24px;
  }

  .hero {
    min-height: 560px;
  }

  main {
    padding-top: 1rem;
  }
}
