:root {
  color-scheme: light;
  --font-display: Georgia, "Times New Roman", serif;
  --font-ui: Arial, Helvetica, sans-serif;
  --bg: #f3eee8;
  --page: #fffdfa;
  --section: #ffffff;
  --soft: #f2ece4;
  --tile: #ffffff;
  --ink: #171514;
  --muted: #625b53;
  --subtle: #8a8176;
  --line: #e7ded2;
  --accent: #b9864e;
  --accent-strong: #8f6536;
  --accent-contrast: #ffffff;
  --hero-accent: #b9864e;
  --shadow: 0 18px 48px rgba(71, 55, 35, 0.11);
  --header-bg: rgba(255, 253, 250, 0.94);
  --image-fade: linear-gradient(90deg, var(--page) 0%, rgba(255, 253, 250, 0.82) 18%, rgba(255, 253, 250, 0.12) 52%, transparent 76%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f10;
  --page: #111315;
  --section: #151719;
  --soft: #1a1c1e;
  --tile: #181a1c;
  --ink: #eee5d8;
  --muted: #b8aa97;
  --subtle: #8e8170;
  --line: #2c2a26;
  --accent: #c39a61;
  --accent-strong: #d6b27a;
  --accent-contrast: #111315;
  --hero-accent: #eee5d8;
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.32);
  --header-bg: rgba(17, 19, 21, 0.94);
  --image-fade: linear-gradient(90deg, var(--page) 0%, rgba(17, 19, 21, 0.88) 17%, rgba(17, 19, 21, 0.24) 50%, transparent 76%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 14px;
  border-radius: 4px;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.section-pad {
  padding: 34px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-grid {
  position: relative;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  color: var(--accent);
  line-height: 1;
}

.brand-main {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 600;
}

.brand-sub {
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
}

.brand.small .brand-main {
  font-size: 24px;
}

.brand.small .brand-sub {
  font-size: 11px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 27px 0 24px;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}


.nav-theme {
  display: none;
}

.nav-theme > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--tile);
}

.theme-choice {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.theme-choice.is-active {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.swatch {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
}

.swatch-light {
  background: linear-gradient(135deg, #fffdfa 0 50%, #b9864e 50% 100%);
}

.swatch-dark {
  background: linear-gradient(135deg, #111315 0 50%, #c39a61 50% 100%);
}

.header-cta,
.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 800;
}

.header-cta {
  min-width: 168px;
  padding: 0 17px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.header-cta svg,
.btn svg,
.text-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--ink);
  padding: 0;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero {
  overflow: hidden;
  padding: 0;
  background: var(--page);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(520px, 1fr);
  align-items: stretch;
  min-height: 292px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 24px 42px 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 47px;
  font-weight: 500;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
}

.accent-line {
  color: var(--hero-accent);
}

.hero p {
  width: min(100%, 420px);
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.btn {
  min-width: 164px;
  padding: 0 22px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover,
.header-cta:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  color: var(--ink);
  border-color: transparent;
}

.btn-outline {
  min-height: 38px;
  color: var(--accent-strong);
  border-color: var(--accent);
  background: transparent;
}

.hero-media {
  position: relative;
  min-height: 292px;
  margin-right: calc((100vw - min(1180px, calc(100vw - 48px))) / -2);
  overflow: hidden;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 55%;
  background: var(--image-fade);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="dark"] .hero-grid {
  min-height: 338px;
}

[data-theme="dark"] .hero-media {
  min-height: 338px;
}

.proof-band {
  position: relative;
  z-index: 3;
  margin-top: -28px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 14px 26px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.line-icon,
.service-icon {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-icon {
  width: 36px;
  height: 36px;
}

.proof-item h2,
.service-card h3,
.step h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
}

.proof-item h2 {
  font-weight: 900;
  text-transform: uppercase;
}

.proof-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.services {
  background: var(--page);
}

.section-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-line h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-line span {
  flex: 0 0 54px;
  height: 1px;
  background: var(--accent);
}

.section-line.compact {
  margin-bottom: 12px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.service-card {
  display: flex;
  min-height: 114px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 12px;
  text-align: center;
  background: var(--tile);
  border: 1px solid var(--line);
}

.service-card:hover {
  border-color: var(--accent);
}

.service-icon {
  width: 36px;
  height: 36px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.about {
  background: var(--section);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 0.85fr) minmax(220px, 0.6fr);
  gap: 34px;
  align-items: center;
}

.about-media {
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-media img {
  width: 100%;
  aspect-ratio: 3 / 1;
  height: auto;
  object-fit: cover;
}

.about-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.about-copy p,
.contact-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.about-copy .btn {
  margin-top: 18px;
}

.check-list,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 3px;
  border-left: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(-45deg);
}

.portfolio {
  background: var(--page);
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading-row .section-line {
  margin-bottom: 0;
}

.text-link {
  min-height: auto;
  color: var(--accent-strong);
  font-size: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

.process {
  background: var(--section);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.steps::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 23px;
  height: 1px;
  background: var(--line);
}

.step {
  position: relative;
  min-height: 118px;
  padding-top: 46px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--section);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 24px;
}

.step p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.testimonials {
  background:
    linear-gradient(90deg, var(--page) 0 68%, rgba(185, 134, 78, 0.08) 68% 100%),
    var(--page);
}

[data-theme="dark"] .testimonials {
  background: var(--page);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.testimonials-grid > .section-line {
  align-self: start;
}

.quote-card {
  min-height: 138px;
  padding: 22px;
  background: var(--tile);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-card::before {
  content: "“";
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 0.7;
}

.quote-card p {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
}

.quote-card footer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.stars {
  margin-top: 7px;
  color: var(--accent);
  font-size: 15px;
}

.contact {
  background: var(--section);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
}

.contact-list {
  margin-top: 20px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  border-radius: 0;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  background: #171717;
  color: #f4eee6;
}

[data-theme="dark"] .site-footer {
  background: #0b0c0d;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 70px;
}

.site-footer .brand-sub,
.site-footer .brand-main {
  color: #d7b37d;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #bcb3a8;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
  color: #a99e93;
  font-size: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .header-grid {
    grid-template-columns: 210px 1fr auto;
  }

  .main-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1fr);
  }

  .hero h1 {
    font-size: 40px;
  }

  .service-grid,
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  }

  .check-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonials-grid > .section-line {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 13px 24px;
  }

  .main-nav a::after {
    display: none;
  }

  
.nav-theme {
  display: none;
}

.nav-theme > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: grid;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 42px 0 34px;
  }

  .hero-media,
  [data-theme="dark"] .hero-media {
    min-height: 290px;
    margin-right: 0;
  }

  .hero-media::before {
    width: 100%;
    background: linear-gradient(180deg, var(--page) 0%, transparent 30%);
  }

  .proof-band {
    margin-top: 0;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 20px 0;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 30px, 1180px);
  }

  .section-pad {
    padding: 28px 0;
  }

  .header-grid {
    min-height: 66px;
    gap: 10px;
  }

  .brand-main {
    font-size: 25px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .header-cta {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .header-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .theme-toggle {
    display: none;
  }

  .main-nav .nav-theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px 16px;
    border-top: 1px solid var(--line);
  }

  .main-nav .nav-theme .theme-toggle {
    display: inline-flex;
  }

  .main-nav .nav-theme .theme-choice {
    width: 38px;
    height: 34px;
  }

  .main-nav .nav-theme .swatch {
    width: 20px;
    height: 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .gallery,
  .about-grid,
  .testimonials-grid,
  .form-row,
  .check-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 102px;
  }

  .about-copy h3 {
    font-size: 25px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    gap: 10px;
  }

  .gallery img {
    aspect-ratio: 1.8 / 1;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
    padding: 0 0 0 62px;
  }

  .footer-grid nav {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
