:root {
  --ink: #121412;
  --muted: #6d746b;
  --paper: #f6f1e9;
  --surface: #ffffff;
  --line: rgba(18, 20, 18, 0.12);
  --charcoal: #202724;
  --wood: #a66a3f;
  --sage: #66725f;
  --gold: #d7b06a;
  --shadow: 0 24px 80px rgba(22, 26, 23, 0.14);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 176, 106, 0.2), transparent 28rem),
    linear-gradient(180deg, #fbf8f2 0%, var(--paper) 45%, #efe6d8 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 50px rgba(23, 26, 23, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    top 0.2s ease;
}

.site-header.is-scrolled {
  top: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 52px rgba(23, 26, 23, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  font-size: 1.35rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-btn {
  min-width: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  color: #fff;
  background: var(--charcoal);
}

.main-nav a {
  padding: 12px 14px;
  border-radius: 999px;
  color: #313830;
  font-size: 0.94rem;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover,
.main-nav .nav-cta {
  color: #fff;
  background: var(--charcoal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--charcoal);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.hero,
.section,
.showcase,
.cta,
.stats,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 34px;
  align-items: center;
  min-height: 100vh;
  padding: 138px 0 72px;
}

.hero-copy h1,
.section-heading h2,
.intro h2,
.showcase h2,
.cta h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

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

.hero-copy p:not(.eyebrow),
.intro > p,
.showcase p:not(.eyebrow),
.cta p,
.section-heading {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--charcoal);
  box-shadow: 0 16px 40px rgba(32, 39, 36, 0.2);
}

.button-secondary {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.5);
}

.hero-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.42) 100%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  width: min(310px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  color: #fff;
  background: rgba(18, 20, 18, 0.58);
  backdrop-filter: blur(18px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.section {
  padding: 86px 0;
}

.intro {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 70px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.showcase h2,
.cta h2 {
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.intro > p {
  margin: 4px 0 0;
}

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

.stats article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.55);
}

.stats strong {
  display: block;
  margin-bottom: 36px;
  color: var(--wood);
}

.stats span {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

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

.service-grid article {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 18px 56px rgba(23, 26, 23, 0.06);
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 74px;
  color: var(--wood);
  font-weight: 900;
}

.service-grid h3,
.project-card h3 {
  margin: 0;
  font-size: 1.24rem;
}

.service-grid p,
.timeline p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.showcase {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 34px;
  align-items: stretch;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.showcase img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  border-radius: 24px;
  object-fit: cover;
}

.showcase > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 16px 34px 8px;
}

.showcase h2,
.showcase p:not(.eyebrow) {
  color: #fff;
}

.showcase p:not(.eyebrow) {
  opacity: 0.74;
}

.portfolio-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--charcoal);
}

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

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.62) 100%);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.project-card div {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: #fff;
}

.project-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card:nth-child(4) h3 {
  color: rgba(5, 230, 42, 1);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: process;
}

.timeline article {
  position: relative;
  padding: 28px 24px 24px;
  border-top: 2px solid var(--charcoal);
  background: rgba(255, 255, 255, 0.48);
}

.timeline article::before {
  display: block;
  margin-bottom: 44px;
  color: var(--wood);
  font-size: 0.84rem;
  font-weight: 900;
  counter-increment: process;
  content: "0" counter(process);
}

.timeline span {
  font-size: 1.12rem;
  font-weight: 900;
}

.cta {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 44px;
  align-items: start;
  margin-block: 72px;
  padding: 44px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 20, 18, 0.88), rgba(18, 20, 18, 0.72)),
    url("assets/images/courtyard-house.png") center/cover;
  box-shadow: var(--shadow);
}

.cta h2,
.cta p {
  color: #fff;
}

.cta p {
  max-width: 580px;
  opacity: 0.76;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font: inherit;
  outline: none;
}

.contact-form input {
  min-height: 50px;
  padding: 0 16px;
}

.contact-form textarea {
  resize: vertical;
  padding: 14px 16px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.contact-form .button {
  width: 100%;
  border-color: #fff;
  color: var(--charcoal);
  background: #fff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0 42px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 74px 16px auto;
    display: grid;
    padding: 16px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  body.nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lang-switcher {
    margin: 8px 0 0;
    justify-self: start;
  }

  .hero,
  .intro,
  .section-heading,
  .showcase,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.large {
    grid-column: span 2;
    min-height: 560px;
  }

  .showcase > div {
    padding: 14px 8px 22px;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding-left: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .section,
  .showcase,
  .cta,
  .stats,
  .site-footer {
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 116px;
  }

  .hero-copy h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .hero-media,
  .hero-media img {
    min-height: 450px;
  }

  .section {
    padding: 58px 0;
  }

  .stats,
  .service-grid,
  .timeline,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card.large {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 380px;
  }

  .showcase,
  .cta {
    padding: 16px;
    border-radius: 24px;
  }

  .showcase img {
    min-height: 320px;
  }

  .cta {
    margin-block: 40px;
  }

  .site-footer {
    display: grid;
  }
}
