:root {
  --ink: #211a16;
  --muted: #7b6a5b;
  --line: #e5d7c9;
  --paper: #fffaf5;
  --soft: #f5eee6;
  --brand: #e98a2a;
  --brand-dark: #997257;
  --green: #38271e;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(52, 34, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 250, 245, 0.93);
  border-bottom: 1px solid rgba(77, 52, 35, 0.12);
  backdrop-filter: blur(16px);
}

.brand img {
  width: 132px;
  height: 90px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3a2b22;
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-nav ul,
.primary-nav li {
  display: contents;
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  padding: 10px 13px;
  border-radius: 6px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--soft);
  color: var(--brand-dark);
}

.primary-nav .nav-contact,
.primary-nav > a:last-child,
.primary-nav li:last-child > a {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  position: relative;
  display: none;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 12px 10px 38px;
  font: inherit;
  font-weight: 700;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  top: calc(50% - 1px);
  width: 16px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span:first-child { top: calc(50% - 7px); }
.nav-toggle span:nth-child(3) { top: calc(50% + 5px); }

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: end;
  padding: clamp(90px, 13vw, 160px) clamp(20px, 5vw, 72px) clamp(36px, 6vw, 84px);
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(33, 26, 22, 0.9), rgba(87, 55, 33, 0.58) 46%, rgba(33, 26, 22, 0.14)),
    linear-gradient(180deg, rgba(233, 138, 42, 0.18), transparent 42%);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 4600ms ease;
}

.hero-media img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
}

.hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 900;
}

.button.primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(233, 138, 42, 0.24);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 245, 0.64);
  color: var(--white);
}

.intro-grid,
.section,
.cta-section,
.site-footer {
  padding-inline: clamp(20px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-grid article {
  min-height: 210px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
}

.intro-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--brand);
  font-weight: 900;
}

.intro-grid h2,
.service-grid h3,
.project-card h3 {
  margin: 0;
  line-height: 1.15;
}

.intro-grid p,
.section-copy p,
.service-grid p,
.review-grid p,
.cta-section p {
  color: var(--muted);
}

.section {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(72px, 10vw, 132px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section h2,
.cta-section h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.section-copy p {
  max-width: 720px;
  font-size: 1.05rem;
}

.portrait-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portrait-card div {
  display: grid;
  gap: 2px;
  padding: 18px;
}

.portrait-card strong {
  font-size: 1.15rem;
}

.portrait-card span {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-grid article,
.review-grid article {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-grid article:hover {
  border-color: rgba(233, 138, 42, 0.45);
  box-shadow: 0 18px 42px rgba(52, 34, 22, 0.12);
}

.projects {
  background: linear-gradient(180deg, #211a16, #322119);
  color: var(--white);
}

.projects .section-heading h2 {
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.project-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #211a16;
}

.project-card.feature {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 636px;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(33, 26, 22, 0.9));
}

.project-card div {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  left: 18px;
}

.project-card span {
  color: #f3ad65;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-top: 4px;
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.project-card:hover img {
  transform: scale(1.04);
}

.reviews {
  background: linear-gradient(180deg, var(--soft), #fff7ef);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-grid article {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
}

.review-grid p {
  margin-top: 0;
  font-size: 1.04rem;
}

.review-grid strong {
  color: var(--brand-dark);
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto;
  gap: 32px;
  align-items: center;
  padding-top: clamp(56px, 9vw, 108px);
  padding-bottom: clamp(56px, 9vw, 108px);
  background: var(--green);
  color: var(--white);
}

.cta-button {
  justify-self: start;
  white-space: nowrap;
}

.page-hero {
  padding: clamp(92px, 12vw, 150px) clamp(20px, 5vw, 72px) clamp(56px, 8vw, 96px);
  background:
    linear-gradient(135deg, rgba(233, 138, 42, 0.16), transparent 48%),
    var(--green);
  color: var(--white);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 5.5vw, 5.1rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-detail-grid article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-detail-grid h2,
.contact-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.service-detail-grid p {
  margin: 0;
  color: var(--muted);
}

.projects-page {
  background: linear-gradient(180deg, #211a16, #322119);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #3a2b22;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7c5b4;
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(233, 138, 42, 0.16);
}

.contact-form .button {
  font: inherit;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

.form-notice {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice.success {
  background: #e6f3ea;
  color: #1e5f35;
}

.form-notice.error {
  background: #fdecec;
  color: #8a251f;
}

.contact-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(233, 138, 42, 0.16), transparent 50%),
    var(--green);
  color: var(--white);
  border-radius: 8px;
}

.contact-panel address {
  padding: 0;
  border: 0;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.76);
}

address {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-style: normal;
  font-weight: 800;
}

address a {
  color: var(--white);
}

address span {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: #1a1411;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.site-footer img {
  width: 92px;
  height: auto;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 980px) {
  .brand img {
    width: 106px;
    height: 72px;
  }
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    right: 20px;
    left: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .intro-grid,
  .service-grid,
  .review-grid,
  .split,
  .cta-section,
  .service-detail-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .project-card.feature {
    grid-column: span 2;
    min-height: 460px;
  }
}

[id] {
  scroll-margin-top: 130px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img, .project-card img { transition: none; }
}

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

  .hero {
    min-height: 690px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(33, 26, 22, 0.52), rgba(33, 26, 22, 0.92));
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.feature {
    grid-column: auto;
    min-height: 360px;
  }

  .service-grid article,
  .review-grid article {
    min-height: auto;
  }
}
