:root {
  --ink: #2b2d2a;
  --ink-dark: #181a17;
  --paper: #ffffff;
  --linen: #f7f3ec;
  --chalk: #fbfaf7;
  --clay: #b66a4c;
  --clay-dark: #8f4631;
  --sage: #75846f;
  --sage-dark: #53614e;
  --ochre: #c7943e;
  --muted: #62675f;
  --line: #ded8cc;
  --danger: #a83232;
  --success: #2f6f48;
  --radius: 8px;
  --container: min(1140px, calc(100vw - 32px));
  --shadow: 0 20px 54px rgba(43, 45, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--chalk);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--clay-dark);
}

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

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border: 2px solid var(--ochre);
  border-radius: var(--radius);
  background: var(--paper);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.concept-note {
  padding: 8px 16px;
  background: var(--ink-dark);
  color: #ffffff;
  text-align: center;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 216, 204, 0.9);
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(14px);
}

.legal-header {
  position: static;
}

.nav {
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand span {
  font-weight: 900;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 800;
}

.nav-links a:hover {
  background: var(--linen);
}

.nav-links .nav-button {
  background: var(--ink);
  color: #ffffff;
}

.nav-links .nav-button:hover {
  background: var(--clay-dark);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 12px 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.section {
  padding: 88px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay-dark);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 5.1rem);
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(2.18rem, 4.15vw, 4.35rem);
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
}

h3 {
  font-size: 1.2rem;
}

.hero {
  min-height: clamp(500px, calc(100vh - 235px), 640px);
  display: grid;
  align-items: center;
  padding: 36px 0;
  background:
    linear-gradient(115deg, rgba(251, 250, 247, 1) 0%, rgba(251, 250, 247, 0.98) 48%, rgba(238, 229, 214, 0.9) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  gap: clamp(28px, 4.2vw, 56px);
  align-items: center;
}

.hero-copy {
  padding: 10px 0;
}

.hero-text {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
  padding: 8px 0;
  border-top: 1px solid rgba(49, 51, 47, 0.16);
  border-bottom: 1px solid rgba(49, 51, 47, 0.16);
}

.hero-service-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 16px 6px 0;
  margin-right: 18px;
  border-right: 1px solid rgba(49, 51, 47, 0.16);
  color: var(--ink);
  font-weight: 900;
}

.hero-service-links a:last-child {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}

.hero-service-links a:hover {
  color: var(--clay-dark);
}

.hero-service-links span {
  color: var(--clay);
  font-size: 0.76rem;
  letter-spacing: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
}

.button-primary {
  background: var(--clay);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(143, 70, 49, 0.22);
}

.button-primary:hover {
  background: var(--clay-dark);
  color: #ffffff;
}

.button-light {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.button-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero-image-wrap {
  position: relative;
  align-self: center;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1600 / 854;
  background: var(--paper);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.contact-band {
  background: var(--ink);
  color: #ffffff;
}

.contact-band-grid {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.contact-band span {
  color: #f1d7b5;
  font-weight: 900;
}

.contact-band a {
  font-weight: 900;
}

.surfaces {
  background: var(--paper);
}

.section-kicker {
  max-width: 820px;
}

.surface-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}

.surface-layout article {
  min-height: 238px;
  padding: 26px;
  background: var(--chalk);
}

.surface-layout .surface-main {
  grid-row: span 2;
  min-height: 477px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(43, 45, 42, 0.18), rgba(43, 45, 42, 0.72)),
    url("../images/maler-detail.jpg") center / cover no-repeat;
  color: #ffffff;
}

.surface-layout span {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--linen);
  color: var(--clay-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.surface-main span {
  background: rgba(255, 255, 255, 0.88);
}

.surface-layout p {
  margin-top: 12px;
  color: var(--muted);
}

.surface-main p {
  color: rgba(255, 255, 255, 0.84);
}

.craft {
  background: var(--linen);
}

.craft-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: center;
}

.craft-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.craft-steps {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.craft-steps article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.craft-steps span {
  grid-row: span 2;
  color: var(--clay-dark);
  font-weight: 900;
}

.craft-steps p {
  color: var(--muted);
}

.studio {
  background: var(--paper);
}

.studio-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 58px;
}

.studio-text {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.journal {
  background: var(--ink-dark);
  color: #ffffff;
}

.journal .eyebrow {
  color: #f1d7b5;
}

.journal-header {
  max-width: 820px;
}

.journal-header p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.journal-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 24px;
  margin-top: 38px;
}

.journal-feature,
.journal-list article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.journal-feature {
  overflow: hidden;
}

.journal-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.journal-feature div,
.journal-list article {
  padding: 24px;
}

.journal-list {
  display: grid;
  gap: 14px;
}

.journal span {
  color: #f1d7b5;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journal h3 {
  margin-top: 8px;
}

.journal p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.faq {
  background: var(--chalk);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 900;
}

details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact {
  background:
    linear-gradient(180deg, var(--linen) 0%, var(--chalk) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 56px;
  align-items: start;
}

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

.sample-data {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.sample-data span,
.sample-data a {
  color: var(--muted);
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

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

label {
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #bdb5a7;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(168, 50, 50, 0.12);
}

.field-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 4px;
  font-weight: 500;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  accent-color: var(--clay);
}

.checkbox-field a {
  color: var(--clay-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-button {
  width: 100%;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--success);
  font-weight: 900;
}

.site-footer {
  padding: 36px 0;
  background: var(--ink-dark);
  color: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.legal-page {
  background: var(--linen);
}

.legal-content {
  max-width: 850px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.legal-content p {
  margin-top: 14px;
  color: var(--muted);
}

.legal-content a {
  color: var(--clay-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .craft-grid,
  .studio-grid,
  .journal-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    display: none;
  }

  .hero {
    color: #ffffff;
    background:
      linear-gradient(90deg, rgba(24, 26, 23, 0.92) 0%, rgba(24, 26, 23, 0.66) 100%),
      url("../images/maler-hero.jpg") center / cover no-repeat;
  }

  .hero-text {
    color: rgba(255, 255, 255, 0.86);
  }

  .hero .eyebrow {
    color: #f1d7b5;
  }

  .hero-service-links {
    border-color: rgba(255, 255, 255, 0.24);
  }

  .hero-service-links a {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
  }

  .hero-service-links a:hover {
    color: #f1d7b5;
  }

  .hero-service-links span {
    color: #f1d7b5;
  }

  .button-light {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: auto 16px auto 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .legal-links {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: min(610px, calc(100vh - 98px));
    padding: 42px 0;
    align-items: end;
  }

  .concept-note {
    font-size: 0.78rem;
  }

  .surface-layout {
    grid-template-columns: 1fr;
  }

  .surface-layout .surface-main {
    grid-row: auto;
    min-height: 360px;
  }

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

  .legal-header .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 14px 0;
  }

  .legal-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form,
  .legal-content {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .container,
  .nav {
    width: min(100% - 24px, 1140px);
  }

  .brand span {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .contact-band-grid {
    justify-content: flex-start;
    padding: 14px 0;
  }

  .craft-steps article {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
