:root {
  --pearl-beige: #e2d4b7;
  --grey-olive: #9c9583;
  --ash-grey: #a1a499;
  --silver: #b0bbbf;
  --ash-grey-2: #cadbc8;
  --ink: #2f2b22;
  --ink-soft: #4d473a;
  --paper: #f6efdd;
  --accent: #5b5442;
  --accent-dark: #3d382b;
  --pen-red: #a8362b;
  --radius: 6px;
  --shadow: 0 6px 16px rgba(61, 56, 43, 0.22);
  --font-head: "Indie Flower", serif;
  --font-body: "Domine", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--pearl-beige);
  background-image:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(156, 149, 131, 0.28) 32px),
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(156, 149, 131, 0.18), transparent 45%);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-dark);
  text-decoration-color: var(--pen-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
  color: var(--pen-red);
}

:focus-visible {
  outline: 3px dashed var(--accent-dark);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--accent-dark);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-dark);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 3000;
}

.skip-link:focus {
  left: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ash-grey-2);
  border-bottom: 3px dashed var(--grey-olive);
  box-shadow: 0 3px 10px rgba(61, 56, 43, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  display: block;
  width: 160px;
  height: 76px;
  overflow: hidden;
  flex-shrink: 0;
}

.logo img {
  width: 210px;
  height: 210px;
  max-width: none;
  margin-left: -26px;
  margin-top: -65px;
  mix-blend-mode: multiply;
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 2px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--accent-dark);
  cursor: pointer;
}

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--accent-dark);
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: var(--paper);
  color: var(--pen-red);
}

.has-sub {
  position: relative;
}

.sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--paper);
  border: 2px solid var(--grey-olive);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  flex-direction: column;
  align-items: stretch;
}

.has-sub:focus-within > .sub-menu {
  display: flex;
}

@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover > .sub-menu {
    display: flex;
  }
}

.sub-toggle {
  display: none;
  margin-left: 0.2rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-dark);
  background: var(--paper);
  border: 2px solid var(--accent-dark);
  border-radius: var(--radius);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--accent-dark);
}

.hero--small {
  min-height: 42vh;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(31, 28, 20, 0.85) 0%, rgba(31, 28, 20, 0.55) 55%, rgba(31, 28, 20, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 680px;
}

.hero h1 {
  color: #fff;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.15rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--grey-olive);
  margin-bottom: 0.2rem;
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--paper);
  background: var(--accent-dark);
  border: 3px solid var(--accent-dark);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  cursor: pointer;
  box-shadow: 3px 4px 0 var(--grey-olive);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--pen-red);
  border-color: var(--pen-red);
  color: #fff;
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 var(--grey-olive);
}

.btn--light {
  background: var(--pearl-beige);
  color: var(--accent-dark);
  border-color: var(--pearl-beige);
}

.btn--outline {
  background: transparent;
  color: var(--accent-dark);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section--paper {
  background: var(--paper);
  border-block: 2px dashed var(--grey-olive);
}

.section--green {
  background: var(--ash-grey-2);
  border-block: 2px dashed var(--grey-olive);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2::after {
  content: "";
  display: block;
  width: 140px;
  height: 6px;
  margin: 0.3rem auto 0;
  background: radial-gradient(ellipse at center, var(--pen-red) 0 60%, transparent 62%) 0 0 / 14px 6px repeat-x;
  opacity: 0.8;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.polaroid {
  background: #fff;
  padding: 0.8rem 0.8rem 2.6rem;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  position: relative;
}

.polaroid::before,
.card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 28px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(176, 187, 191, 0.65);
  border-inline: 2px dotted rgba(91, 84, 66, 0.4);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.polaroid figcaption {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-align: center;
  margin-top: 0.7rem;
  color: var(--accent-dark);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--grey-olive);
  border-radius: 4px;
  padding: 1.4rem;
  box-shadow: 4px 5px 0 var(--grey-olive);
}

.card:nth-child(odd) { transform: rotate(-0.8deg); }
.card:nth-child(even) { transform: rotate(0.8deg); }

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.text-link {
  font-family: var(--font-head);
  font-size: 1.35rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.check-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.6rem;
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--pen-red);
}

/* Services: column flex */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  background: var(--paper);
  border: 2px solid var(--grey-olive);
  box-shadow: 4px 5px 0 var(--grey-olive);
  padding: 1.2rem;
}

.service-item img {
  width: 280px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
}

.service-body {
  flex: 1;
}

.service-body h3 {
  margin-bottom: 0.3rem;
}

.price-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--pen-red);
  border: 2px dashed var(--pen-red);
  padding: 0.1rem 0.9rem;
  border-radius: 50px;
  transform: rotate(-1.5deg);
  margin: 0.3rem 0 0.8rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  margin-bottom: 1.5rem;
}

.price-table caption {
  font-family: var(--font-head);
  font-size: 1.6rem;
  text-align: left;
  padding-bottom: 0.4rem;
}

.price-table th,
.price-table td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px dashed var(--grey-olive);
  text-align: left;
}

.price-table th {
  background: var(--ash-grey-2);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 400;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
}

.note {
  font-size: 0.9rem;
  color: var(--ash-grey);
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  background: var(--accent-dark);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(31, 28, 20, 0.62);
}

.slide blockquote {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 2rem 4.5rem;
  max-width: 800px;
  color: #fff;
  text-align: center;
}

.slide blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4;
}

.slide cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ash-grey-2);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--pearl-beige);
  background: rgba(31, 28, 20, 0.6);
  color: var(--pearl-beige);
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--pen-red);
}

.carousel-btn--prev { left: 0.8rem; }
.carousel-btn--next { right: 0.8rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.carousel-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--pearl-beige);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: var(--pearl-beige);
}

/* CTA band */
.cta-band {
  text-align: center;
}

.cta-band .btn {
  margin: 0.4rem;
}

/* Page content */
.content {
  max-width: 820px;
}

.content h2 {
  margin-top: 2rem;
}

.content ul {
  padding-left: 1.3rem;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--pen-red);
  font-weight: 400;
  line-height: 1.1;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-details {
  font-style: normal;
}

.contact-details p {
  margin-bottom: 0.8rem;
}

.form {
  background: var(--paper);
  border: 2px solid var(--grey-olive);
  box-shadow: 4px 5px 0 var(--grey-olive);
  padding: 1.8rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  background: #fffdf6;
  border: 2px solid var(--grey-olive);
  border-radius: 4px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px dashed var(--accent-dark);
  outline-offset: 2px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--pen-red);
  background: #fdf0ec;
}

.error-msg {
  display: none;
  color: var(--pen-red);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.field.has-error .error-msg {
  display: block;
}

.map-note {
  margin-top: 1.5rem;
}

/* Toast and modal */
.toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: calc(100% - 2rem);
}

.toast {
  background: var(--accent-dark);
  color: var(--paper);
  border-left: 6px solid var(--ash-grey-2);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  animation: toast-in 0.3s ease;
}

.toast--error {
  border-left-color: #ff8a7a;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(31, 28, 20, 0.65);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: min(480px, 100%);
  background: var(--paper);
  border: 3px solid var(--accent-dark);
  box-shadow: 8px 8px 0 var(--grey-olive);
  padding: 2rem;
  text-align: center;
}

.modal h2 {
  font-size: 2.2rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 3500;
  width: min(440px, calc(100% - 2rem));
  background: var(--paper);
  border: 3px solid var(--accent-dark);
  box-shadow: 6px 6px 0 var(--grey-olive);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn {
  font-size: 1.2rem;
  padding: 0.4rem 1.1rem;
}

/* Footer */
.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--accent-dark);
  color: var(--pearl-beige);
  padding: 4rem 0 1.5rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background:
    linear-gradient(135deg, transparent 50%, var(--accent-dark) 50%) 0 0 / 24px 12px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--accent-dark) 50%) 0 0 / 24px 12px repeat-x;
}

.site-footer a {
  color: var(--ash-grey-2);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer h3 {
  color: var(--pearl-beige);
  font-size: 1.7rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid address {
  font-style: normal;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px dashed var(--grey-olive);
  font-size: 0.88rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ash-grey-2);
    border-bottom: 3px dashed var(--grey-olive);
    padding: 0.8rem 4%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .has-sub > a {
    flex: 1;
  }

  .has-sub .sub-toggle {
    display: inline-block;
  }

  .sub-menu {
    position: static;
    min-width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 1rem;
  }

  .has-sub.sub-open > .sub-menu {
    display: flex;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .service-item {
    flex-direction: column;
  }

  .service-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 70vh;
  }

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

  .slide {
    min-height: 480px;
  }

  .slide blockquote {
    padding: 1.5rem 3.4rem;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-btn--prev { left: 0.3rem; }
  .carousel-btn--next { right: 0.3rem; }

  .card:nth-child(odd),
  .card:nth-child(even) {
    transform: none;
  }

  .form {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track,
  .btn,
  .toast { transition: none; animation: none; }
}
