:root {
  --ink: #242424;
  --muted: #555555;
  --paper: #ffffff;
  --sand: #d8d8d8;
  --sand-dark: #bdbdbd;
  --brand-light: #f7f7f7;
  --clay: #242424;
  --terracotta: #222222;
  --deep-green: #242424;
  --blue: #242424;
  --white: #ffffff;
  --line: rgba(36, 36, 36, 0.18);
  --shadow: 0 24px 70px rgba(36, 36, 36, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.built-footer {
  background: var(--brand-light);
  border-top: 1px solid var(--sand-dark);
  padding: 14px 40px;
  font-family: "Poppins", sans-serif;
}

.built-footer-inner {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #111111;
  font-weight: 700;
  font-family: inherit;
}

.built-footer-brand {
  color: #242424;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Quicksand", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 22px clamp(24px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(36, 36, 36, 0.08);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  display: inline-flex;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  letter-spacing: 0;
  width: 48px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(24px, 3vw, 38px);
}

.site-nav a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

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

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(36, 36, 36, 0.78), rgba(36, 36, 36, 0.34) 54%, rgba(36, 36, 36, 0.1)),
    linear-gradient(0deg, rgba(36, 36, 36, 0.44), rgba(36, 36, 36, 0.02) 42%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 790px;
  padding: 28vh clamp(20px, 7vw, 92px) 160px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3 {
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.03;
  margin: 0;
}

h1 {
  font-size: clamp(52px, 10vw, 118px);
  max-width: 880px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.12;
  max-width: 900px;
}

h2 {
  font-size: clamp(34px, 5.6vw, 68px);
  max-width: 890px;
}

h3 {
  font-size: 25px;
}

p {
  margin: 0;
}

.hero-copy {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  margin-top: 26px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  text-decoration: none;
}

.button.primary {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.button.secondary {
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-note {
  background: rgba(255, 255, 255, 0.94);
  bottom: 28px;
  box-shadow: var(--shadow);
  max-width: 330px;
  padding: 22px;
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  z-index: 1;
}

.hero-note span {
  color: var(--clay);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-note strong {
  display: block;
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.22;
}

.intro-band {
  background: var(--deep-green);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.intro-band div {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px clamp(20px, 5vw, 56px);
}

.intro-band span {
  color: #d9d9d9;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.intro-band strong {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.18;
}

.section {
  padding: clamp(72px, 10vw, 140px) clamp(20px, 5vw, 64px);
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(32px, 6vw, 88px);
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
}

.section-copy p:not(.eyebrow),
.section-heading p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 780px;
}

.section-copy p + p {
  margin-top: 18px;
}

.section-copy h2 {
  margin-bottom: 28px;
}

.image-stack {
  min-height: 580px;
  position: relative;
}

.image-stack img {
  box-shadow: var(--shadow);
  height: 520px;
  object-fit: cover;
  width: min(100%, 470px);
}

.overlay-photo {
  aspect-ratio: 4 / 3;
  bottom: 0;
  border: 12px solid var(--paper);
  box-shadow: var(--shadow);
  height: auto;
  object-fit: cover;
  position: absolute;
  right: 0;
  width: min(82%, 360px);
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading.narrow {
  max-width: 760px;
}

.locations-section,
.packages-section {
  background: #f2f2f2;
}

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

.location-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.location-card h3,
.location-card p,
.location-card ul {
  padding-left: 22px;
  padding-right: 22px;
}

.location-card h3 {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.12;
  margin-top: 22px;
  overflow-wrap: anywhere;
}

.location-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 10px 0 24px;
}

.location-card.compact {
  background: var(--deep-green);
  color: var(--white);
  padding-bottom: 22px;
}

.location-card.compact h3 {
  padding-top: 22px;
}

.location-card ul,
.package-card ul,
.tips-grid ul {
  margin: 14px 0 0;
  padding-left: 38px;
}

.location-card li,
.package-card li,
.tips-grid li {
  line-height: 1.45;
  margin-bottom: 8px;
}

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

.process-section .eyebrow {
  color: #ffffff;
}

.process-section .section-heading p,
.process-grid p {
  color: #d9d9d9;
}

.process-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.process-grid article {
  background: rgba(255, 255, 255, 0.06);
  min-height: 260px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.process-grid span {
  bottom: -38px;
  color: rgba(255, 255, 255, 0.1);
  display: block;
  font-size: clamp(132px, 13vw, 220px);
  font-weight: 700;
  line-height: 0.8;
  position: absolute;
  right: 14px;
  z-index: 0;
}

.process-grid h3 {
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.process-grid p {
  position: relative;
  z-index: 1;
}

.package-accordion {
  display: grid;
  gap: 14px;
}

.package-category {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.package-category summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr auto;
  list-style: none;
  padding: 24px 28px;
}

.package-category summary::-webkit-details-marker {
  display: none;
}

.package-category summary::after {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
  display: inline-flex;
  font-size: 24px;
  font-weight: 600;
  height: 38px;
  justify-content: center;
  transition: transform 160ms ease;
  width: 38px;
}

.package-category[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.package-category summary span {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
}

.package-category summary small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  grid-column: 1 / 2;
}

.package-category .package-grid {
  border-top: 1px solid var(--line);
  padding: 18px;
}

.package-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.package-card {
  background: var(--white);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
}

.package-card.featured {
  border-color: var(--clay);
  box-shadow: 0 18px 40px rgba(36, 36, 36, 0.14);
}

.package-type {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.package-card h3 {
  margin-bottom: 12px;
}

.package-card p,
.package-card li,
.package-note,
.tips-grid p,
.contact-panel p,
.form-note {
  color: var(--muted);
}

.package-card strong {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 30px;
  line-height: 1.1;
  margin-top: auto;
  padding-top: 28px;
}

.package-card.bespoke {
  background: var(--blue);
  color: var(--white);
}

.package-card.bespoke .package-type,
.package-card.bespoke p {
  color: #e6e6e6;
}

.package-card.bespoke a {
  font-weight: 800;
  margin-top: auto;
}

.text-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  margin-top: auto;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.42);
  text-underline-offset: 5px;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration-color: currentColor;
}

.package-note {
  margin-top: 24px;
}

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

.tips-grid article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.tips-grid h3 {
  margin-bottom: 12px;
}

.tips-grid ul {
  padding-left: 22px;
}

.tips-grid article > p {
  margin-top: 14px;
}

.testimonials-section {
  background: var(--paper);
}

.contact-section {
  background:
    linear-gradient(rgba(36, 36, 36, 0.86), rgba(36, 36, 36, 0.86)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/9/97/Kasbah_Oudayas_exterior.jpg/1280px-Kasbah_Oudayas_exterior.jpg")
      center / cover;
}

.contact-panel {
  align-items: start;
  background: var(--paper);
  display: grid;
  gap: clamp(28px, 6vw, 70px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(28px, 5vw, 58px);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-color: rgba(36, 36, 36, 0.24);
  text-underline-offset: 5px;
}

.booking-form {
  display: grid;
  gap: 16px;
}

.form-heading h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.booking-form label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.booking-form input[type="date"] {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23636a77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}

.booking-form textarea {
  min-height: 130px;
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--clay);
  outline: 3px solid rgba(36, 36, 36, 0.14);
}

.booking-form .button {
  width: fit-content;
}

.modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 50;
}

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

.modal-backdrop {
  background: rgba(36, 36, 36, 0.68);
  inset: 0;
  position: absolute;
}

.modal-dialog {
  background: var(--paper);
  box-shadow: var(--shadow);
  max-height: min(86vh, 860px);
  max-width: 760px;
  overflow: auto;
  padding: clamp(26px, 5vw, 48px);
  position: relative;
  width: min(100%, 760px);
  z-index: 1;
}

.modal-close {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
}

.modal-dialog .form-heading {
  padding-right: 48px;
}

.modal-dialog h2 {
  font-size: clamp(30px, 5vw, 52px);
  margin-bottom: 24px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
}

.site-footer span:first-child {
  font-family: "Quicksand", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.site-footer span:last-child {
  color: #d9d9d9;
  text-align: right;
}

@media (max-width: 1080px) {
  .location-grid,
  .process-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 25;
  }

  .site-nav {
    align-content: center;
    background: var(--paper);
    display: grid;
    gap: 22px;
    inset: 0;
    justify-items: center;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 22;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    color: var(--ink);
    font-family: "Quicksand", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding: 25vh 20px 210px;
  }

  .hero-note {
    bottom: 18px;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .intro-band,
  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .image-stack {
    min-height: 0;
  }

  .image-stack img {
    height: auto;
    width: 100%;
  }

  .overlay-photo {
    margin-left: auto;
    margin-top: -64px;
    position: relative;
    width: 82%;
  }
}

@media (max-width: 640px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .intro-band,
  .location-grid,
  .process-grid,
  .package-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 18px;
  }

  .package-card,
  .process-grid article {
    min-height: 0;
  }

  .package-category summary {
    padding: 20px;
  }

  .package-category summary small {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .site-footer span:last-child {
    text-align: left;
  }
}
