:root {
  --maroon: #8f2418;
  --saffron: #e7771c;
  --cream: #fff8ed;
  --ink: #2e2621;
  --muted: #6d6259;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, "Nirmala UI", sans-serif;
  line-height: 1.55;
}

nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  min-height: 4.5rem;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem clamp(1rem, 5vw, 5rem);
  background: #fffcf8;
  box-shadow: 0 2px 12px #4b210d16;
}

nav a {
  padding: 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: bold;
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.nav-controls,
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-contact-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.contact {
  color: white !important;
  background: var(--maroon);
  border-radius: 20px;
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  padding: 3px;
  border: 1px solid #e4d6c7;
  border-radius: 999px;
  background: #f4ece3;
}

.language-button {
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: transparent;
  color: var(--maroon);
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
}

.language-button.is-active {
  background: var(--maroon);
  color: white;
}

header {
  display: grid;
  min-height: 22rem;
  place-items: center;
  padding: clamp(3rem, 9vw, 5rem) 1rem;
  background: linear-gradient(125deg, #6f1b14, #af3d18 55%, #dc751d);
  color: white;
  text-align: center;
}

header span {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid #ffffff80;
  border-radius: 20px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

h1,
h2 {
  font-family: Georgia, "Nirmala UI", serif;
}

h1 {
  margin: 0.8rem 0 0.25rem;
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.2;
}

header p {
  max-width: 42rem;
  margin: 0.6rem auto 1.3rem;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.button,
button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--maroon);
  color: white;
  font: inherit;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button {
  background: var(--saffron);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f3a35e;
  outline-offset: 2px;
}

main {
  width: min(68rem, 92%);
  margin: 0 auto;
}

section {
  padding: clamp(2.5rem, 7vw, 3.5rem) 0;
}

section > h2 {
  color: var(--maroon);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cards .service-card {
  display: grid;
  min-height: 8.5rem;
  gap: 0.5rem;
  place-items: center;
  padding: 1.2rem 0.6rem;
  border: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 18px #4b210d18;
  color: var(--maroon);
  font-family: Georgia, serif;
  font-size: 2.6rem;
  white-space: normal;
}

.cards .service-card:hover {
  box-shadow: 0 8px 22px #4b210d30;
  transform: translateY(-2px);
}

.service-icon {
  display: block;
  min-height: 1em;
  color: var(--maroon);
  font-family: "Nirmala UI", "Segoe UI Emoji", "Noto Color Emoji", Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.cards b {
  color: var(--ink);
  font: 700 1rem Arial, "Nirmala UI", sans-serif;
  text-align: center;
}

.booking {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: white;
  box-shadow: 0 12px 30px #4b210d22;
}

.booking.is-detail-mode {
  grid-template-columns: minmax(0, 1fr);
}

.booking > [hidden] {
  display: none;
}

.service-detail {
  grid-column: 1 / -1;
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.service-detail h2 {
  margin: 0.5rem 0 1rem;
  color: var(--maroon);
}

.service-detail p {
  max-width: 52rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

.service-detail-back {
  min-height: auto;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--maroon);
  text-align: left;
}

.service-detail > .button {
  background: var(--maroon);
}

.booking aside {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  background: linear-gradient(145deg, #7b1f14, #a9401b);
  color: white;
}

.booking aside h2 {
  color: #ffe2b9;
}

form {
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 1.8rem);
}

form h2 {
  margin-top: 0;
  color: var(--maroon);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: bold;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  padding: 0.65rem;
  border: 1px solid #d9cdbf;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 5rem;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

#submit-booking {
  width: 100%;
  margin-top: 1rem;
}

#form-message {
  min-height: 1.5em;
  margin-bottom: 0;
  color: var(--maroon);
  font-weight: bold;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin: 3.5rem 0;
  padding: 1.75rem;
  border-radius: 14px;
  background: var(--maroon);
  color: white;
}

.contact-panel h2 {
  margin: 0;
  color: #ffe1b0;
}

.contact-panel p {
  margin-bottom: 0;
}

.light {
  flex: 0 0 auto;
  background: #fff4df;
  color: var(--maroon);
}

footer {
  padding: 1.1rem;
  background: white;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 760px) {
  nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding-inline: 4%;
  }

  .nav-controls {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 0.25rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  nav a {
    padding: 0.45rem 0.35rem;
    font-size: 0.85rem;
  }

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

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

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 1.05rem;
  }

  .nav-controls {
    flex-wrap: wrap;
  }

  .nav-links {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 0.3rem;
  }

  .nav-contact-language {
    gap: 0.25rem;
  }

  .language-switch {
    flex-shrink: 0;
  }

  nav a {
    font-size: 0.78rem;
  }

  .language-button {
    min-height: 2rem;
    padding-inline: 0.45rem;
    font-size: 0.74rem;
  }

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

  .full {
    grid-column: auto;
  }

  .light {
    max-width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
