:root {
  --ink: #24211d;
  --text: #403b35;
  --muted: #756d63;
  --line: #ded6ca;
  --paper: #fbf8f2;
  --cream: #f4ede2;
  --white: #fffdf8;
  --copper: #9b5632;
  --copper-dark: #713719;
  --olive: #526957;
  --olive-soft: #e8eee8;
  --shadow: 0 24px 70px rgba(36, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(222, 214, 202, 0.86);
  background: #ffffff;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  width: fit-content;
}

.brand strong,
.site-footer strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header .brand-logo {
  width: 220px;
  height: auto;
  /* margin-bottom: -90px; */
  /* margin-top: 2px; */
  display: block;
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 100;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav a {
  color: inherit;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  margin-right: -8px; /* Offset padding visually */
}

.footer-links a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--copper);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--copper-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--ink);
}

.button.ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.button.compact {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 14px;
}

.button.full-width {
  width: 100%;
}

.button-link {
  width: calc(100% - 52px);
  margin: 0 26px 26px;
}

.hero {
  min-height: calc(100vh - 72px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.compact-hero {
  min-height: 560px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  opacity: 0.72;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.55)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 84px 0 58px;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f2d2b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--copper);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

h3 {
  font-size: 25px;
  line-height: 1.12;
}

.hero-text {
  max-width: 650px;
  margin: 22px 0 30px;
  color: #fff3e6;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 70px 0;
}

.soft-section,
.enquiry-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading p,
.room-content p,
.site-footer p,
.split-section > p,
.dish-body p,
.package-card p,
.fine-print {
  color: var(--muted);
  line-height: 1.56;
}

.section-heading,
.split-section {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.split-section {
  margin-bottom: 0;
}

.section-heading > p,
.split-section > p {
  max-width: 520px;
  margin: 0;
}

.dish-grid,
.room-grid,
.package-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.image-packages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-card,
.dish-card,
.package-card,
.builder-card,
.estimate-card,
.map-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(36, 33, 29, 0.06);
}

.room-card,
.dish-card,
.estimate-card,
.map-frame {
  overflow: hidden;
}

.room-photo {
  height: 310px;
  background: var(--cream);
}

.dish-photo {
  height: 230px;
  background: var(--cream);
}

.room-content,
.dish-body,
.package-card {
  padding: 26px;
}

.room-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 12px;
}

.room-title span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--olive);
  background: var(--olive-soft);
  font-size: 12px;
  font-weight: 900;
}

.room-content ul,
.package-card ul {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--text);
  font-size: 14px;
}

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

.package-card strong {
  display: block;
  margin-top: 12px;
  color: var(--copper);
  font-size: 20px;
}

.text-button {
  margin-top: 20px;
  padding: 0;
  border: 0;
  color: var(--copper);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: start;
}

.builder-card,
.estimate-card {
  box-shadow: var(--shadow);
}

.builder-card {
  padding: 28px;
}

fieldset {
  padding: 0 0 28px;
  margin: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

fieldset:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  font-weight: 900;
}

legend span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: var(--copper);
  font-size: 13px;
}

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

.choice-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  position: relative;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card span {
  display: block;
  min-height: 98px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 7px;
  font-size: 16px;
}

.choice-card small {
  color: var(--muted);
  line-height: 1.36;
}

.choice-card input:checked + span {
  border-color: var(--copper);
  background: #fff8f1;
  box-shadow: inset 0 0 0 2px var(--copper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: white;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(155, 86, 50, 0.18);
  border-color: var(--copper);
}

.estimate-card {
  position: sticky;
  top: 98px;
}

.estimate-header {
  padding: 26px;
  color: white;
  background: var(--ink);
}

.estimate-header span,
.estimate-header small {
  display: block;
  color: #e8ddd1;
}

.estimate-header span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.estimate-header strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.estimate-list {
  margin: 0;
  padding: 12px 26px 0;
}

.estimate-list div,
.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.estimate-list dt,
.hours-list dt {
  color: var(--muted);
}

.estimate-list dd,
.hours-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.fine-print {
  margin: 18px 26px;
  font-size: 13px;
  line-height: 1.45;
}

.estimate-card .button:not(.button-link) {
  width: calc(100% - 52px);
  margin: 0 26px 12px;
}

.hours-list {
  margin: 22px 0;
}

.map-frame {
  min-height: 430px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.message-wrap {
  position: fixed;
  top: 86px;
  right: 18px;
  z-index: 30;
  width: min(360px, calc(100% - 36px));
}

.message {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #bfd1c4;
  border-radius: 8px;
  color: var(--olive);
  background: var(--olive-soft);
  box-shadow: var(--shadow);
  font-weight: 850;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}


.price {
  display: inline-block;
  margin-top: 12px;
  color: var(--copper);
  font-size: 18px;
}

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

.gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.gallery-item img {
  height: 260px;
}

.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-header .brand-logo {
    width: 220px;
    height: auto;
    margin-bottom: 0;
    margin-top: 0;
  }

  .header-actions {
    order: 2;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(222, 214, 202, 0.86);
    padding: 32px 24px;
    gap: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 10;
  }

  .main-nav.menu-open {
    display: flex;
  }

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

  .estimate-card {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .compact-hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 72px 0 58px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading,
  .split-section {
    display: block;
  }

  .section-heading > p,
  .split-section > p {
    margin-top: 14px;
  }

  .room-grid,
  .dish-grid,
  .package-grid,
  .image-packages,
  .info-grid,
  .choice-grid,
  .choice-grid.three,
  .choice-grid.four,
  .form-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .room-photo {
    height: 260px;
  }

  .room-title {
    display: block;
  }

  .room-title span {
    display: inline-flex;
    margin-top: 12px;
  }

  .room-content ul {
    grid-template-columns: 1fr;
  }

  .builder-card {
    padding: 20px;
  }

  .footer-grid {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

/* Gallery Carousel Styles */
.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
}

.gallery-carousel {
  display: flex;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding-bottom: 16px;
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-carousel .gallery-item {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  min-width: 280px; /* Ensure it looks good on mobile */
}

.gallery-carousel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
