:root {
  --bg: #f7f3ec;
  --surface: #ffffff;
  --surface-soft: #f0e7d8;
  --ink: #17130f;
  --muted: #6f665e;
  --accent: #b7843f;
  --accent-deep: #875f2d;
  --line: rgba(23, 19, 15, 0.12);
  --dark: #1d211d;
  --radius: 26px;
  --shadow: 0 20px 60px rgba(41, 32, 21, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-soft {
  background: #f2ede5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 30px rgba(30, 22, 14, 0.06);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: white;
  background: var(--accent);
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.main-nav > a:not(.button) {
  position: relative;
}

.main-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s ease;
}

.main-nav > a:not(.button):hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 30px rgba(183, 132, 63, 0.24);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.button-small {
  min-height: 44px;
  padding: 0 20px;
}

.button-dark {
  background: var(--dark);
  box-shadow: none;
}

.button-dark:hover {
  background: #090b09;
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  background: url("../images/hero.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 14, 0.90) 0%, rgba(13, 17, 14, 0.64) 48%, rgba(13, 17, 14, 0.20) 100%),
    linear-gradient(0deg, rgba(13, 17, 14, 0.34), rgba(13, 17, 14, 0.08));
}

.hero-content {
  position: relative;
  color: white;
  padding-top: 30px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow.light {
  color: #e5c48e;
}

h1,
h2,
h3,
blockquote {
  font-family: "Playfair Display", serif;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 630px;
  margin: 28px 0 36px;
  font-size: 19px;
  color: rgba(255,255,255,0.82);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.text-link {
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.light-link {
  color: white;
}

h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 90px;
}

.intro-copy {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(41, 32, 21, 0.16);
}

.service-card img {
  height: 250px;
  object-fit: cover;
}

.service-content {
  padding: 25px 22px 28px;
}

.service-tag {
  display: inline-block;
  width: 100%;
  padding: 7px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f4ede2;
  color: #94682e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.service-content h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.18;
}

.service-content p {
  min-height: 52px;
  margin: 0 0 18px;
  color: var(--muted);
}

.service-content a {
  font-weight: 700;
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 90px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap > img {
  height: 650px;
  object-fit: cover;
  border-radius: 34px;
}

.experience-card {
  position: absolute;
  right: -34px;
  bottom: 38px;
  width: 205px;
  padding: 25px;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.experience-card strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  line-height: 1;
}

.experience-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.about-content > p:not(.eyebrow) {
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.feature-list {
  margin-bottom: 34px;
}

.feature {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature > span {
  color: var(--accent);
  font-weight: 700;
}

.feature h4 {
  margin: 0 0 4px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.section-dark {
  background: var(--dark);
  color: white;
}

.dark-heading > p {
  color: rgba(255,255,255,0.68);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.16);
}

.process-step {
  min-height: 270px;
  padding: 36px 34px 0 0;
  border-right: 1px solid rgba(255,255,255,0.16);
}

.process-step + .process-step {
  padding-left: 34px;
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(229,196,142,0.13);
  color: #e5c48e;
  font-size: 13px;
  font-weight: 700;
}

.process-step h3 {
  margin: 30px 0 10px;
  font-size: 27px;
}

.process-step p {
  margin: 0;
  color: rgba(255,255,255,0.66);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.work-grid figure {
  margin: 0;
  position: relative;
  min-height: 310px;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-grid figure:first-child {
  grid-row: span 2;
  min-height: 642px;
}

.work-grid img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-grid figure:hover img {
  transform: scale(1.04);
}

.work-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72), transparent 58%);
}

.work-grid figcaption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
  color: white;
}

.work-grid figcaption span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5c48e;
}

.work-grid figcaption strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 25px;
  line-height: 1.2;
}

.testimonial-wrap {
  text-align: center;
  max-width: 900px;
}

blockquote {
  margin: 0 auto 34px;
  font-size: clamp(34px, 4.3vw, 58px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.client {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.client-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

.client strong,
.client span {
  display: block;
}

.client span {
  color: var(--muted);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 24px 0;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.contact-details a {
  font-weight: 700;
}

.contact-details span {
  color: var(--muted);
}

.quote-form {
  background: var(--surface);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  background: #fbfaf8;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 132, 63, 0.12);
}

textarea {
  resize: vertical;
}

.form-message {
  min-height: 24px;
  margin: 13px 0 0;
  text-align: center;
  color: var(--accent-deep);
  font-weight: 600;
}

.site-footer {
  background: #111410;
  color: white;
  padding: 75px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 50px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-grid p {
  max-width: 340px;
  color: rgba(255,255,255,0.62);
}

.footer-grid h4 {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid a:not(.logo) {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.66);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  margin-top: 54px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.48);
  font-size: 13px;
}

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

  .main-nav {
    position: absolute;
    top: 82px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 13px 8px;
  }

  .main-nav .button {
    margin-top: 8px;
  }

  .hero {
    min-height: 680px;
  }

  .intro-grid,
  .section-heading,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .about-image-wrap > img {
    height: 540px;
  }

  .experience-card {
    right: 20px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-step,
  .process-step + .process-step {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-top: 1px solid rgba(255,255,255,0.16);
  }

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

  .work-grid figure:first-child {
    grid-column: span 2;
    grid-row: auto;
    min-height: 520px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: 650px;
    background-position: 42% center;
  }

  h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .service-grid,
  .form-row,
  .work-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 230px;
  }

  .about-image-wrap > img {
    height: 430px;
  }

  .experience-card {
    position: static;
    width: 100%;
    margin-top: 14px;
  }

  .work-grid figure,
  .work-grid figure:first-child {
    min-height: 360px;
    grid-column: auto;
  }

  .quote-form {
    padding: 24px 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}


.flash-wrap {
  margin-bottom: 18px;
}

.flash-message {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.flash-success {
  background: #e9f6ec;
  color: #236334;
  border: 1px solid #b9dfc2;
}

.flash-error {
  background: #fff0ee;
  color: #922f24;
  border: 1px solid #f0c3bd;
}

.logo > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-sub {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.site-footer .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}
