:root {
  --primary: #6d4c2f;
  --primary-dark: #2e2219;
  --accent: #d5b07a;
  --accent-soft: #f4e9da;
  --bg: #f7f3ee;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #676767;
  --line: #e7ddd2;
  --success: #2a7441;
  --error: #b44336;
  --shadow: 0 20px 40px rgba(31, 20, 10, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.site-brand img {
  width: 92px;
  object-fit: contain;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.m3m-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}

.m3m-wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.16em;
}

.m3m-green {
  color: #54bd43;
}

.m3m-blue {
  color: #1d67b0;
}

.m3m-tagline {
  margin-top: 0.15rem;
  color: #1e1a1a;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-brand-text strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.site-brand-text small {
  color: #6f655d;
  font-size: 0.78rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #4f4a44;
}

.header-call,
.primary-btn,
.secondary-btn,
.floating-call,
.price-row a {
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.header-call,
.primary-btn,
.floating-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  font-weight: 700;
  background: transparent;
}

.header-call:hover,
.primary-btn:hover,
.secondary-btn:hover,
.floating-call:hover,
.price-row a:hover {
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 23, 17, 0.84) 0%, rgba(30, 23, 17, 0.62) 44%, rgba(30, 23, 17, 0.36) 100%),
    url("https://images.unsplash.com/photo-1460317442991-0ec209397118?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 400px;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 4rem 0;
}

.hero-copy {
  color: #fff;
}

.hero-label,
.section-title p,
.enquiry-tag {
  margin: 0 0 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1,
.section-title h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.hero-location {
  margin: 0.9rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-text,
.overview-card p,
.amenity-card p,
.contact-info p,
.about-box p,
.footer-brand p,
.footer-note p {
  line-height: 1.75;
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-stats span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.76);
}

.hero-stats strong {
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.enquiry-card,
.overview-card,
.fact-item,
.price-table,
.location-map-card,
.about-box,
.contact-form,
.contact-info,
.amenity-card {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.enquiry-card {
  padding: 1.5rem;
  border-top: 4px solid var(--accent);
}

.enquiry-card h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.35;
}

.lead-form,
.contact-form {
  display: grid;
  gap: 0.95rem;
}

.lead-form label,
.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.lead-form span,
.contact-form span {
  font-size: 0.86rem;
  font-weight: 700;
}

.lead-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.full-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--error);
}

.lead-form small {
  color: #7b7168;
  line-height: 1.6;
}

.section-block {
  padding: 4.75rem 0;
}

.section-soft {
  background: #f1ebe3;
}

.section-dark {
  background: var(--primary-dark);
}

.section-title {
  margin-bottom: 2rem;
}

.section-title.center {
  text-align: center;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.section-title.light h2 {
  color: #fff;
}

.section-title.light p {
  color: #e7c795;
}

.overview-grid,
.highlight-grid,
.amenity-grid,
.gallery-grid,
.contact-layout,
.location-layout {
  display: grid;
  gap: 1.25rem;
}

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

.overview-card {
  padding: 1.5rem;
  border-bottom: 3px solid var(--accent);
}

.overview-card h3,
.amenity-card h3,
.footer-links h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.fact-item {
  padding: 1.25rem;
  border: 1px solid var(--line);
}

.fact-item span {
  display: block;
  margin-bottom: 0.45rem;
  color: #7f7061;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fact-item strong {
  font-size: 1.02rem;
}

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

.highlight-item {
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 4px solid var(--primary);
  font-weight: 600;
}

.price-table {
  overflow: hidden;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.9fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.price-head {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row a {
  width: fit-content;
  padding: 0.65rem 0.95rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 700;
}

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

.amenity-card {
  padding: 1.5rem;
  border-top: 3px solid var(--accent);
}

.gallery-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-auto-rows: 220px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card.large {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-layout {
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
}

.location-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 2;
}

.location-map-card {
  padding: 1rem;
}

.map-box {
  position: relative;
  min-height: 340px;
  background:
    linear-gradient(0deg, rgba(109, 76, 47, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 76, 47, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f9f5ef, #eee2d1);
  background-size: 48px 48px, 48px 48px, auto;
}

.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 8px rgba(109, 76, 47, 0.18);
}

.pin-one { top: 24%; left: 28%; }
.pin-two { top: 55%; left: 62%; }
.pin-three { top: 70%; left: 40%; }

.cta-strip {
  background: linear-gradient(90deg, #62462e, #96704a);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-row p,
.cta-row h2 {
  margin: 0;
  color: #fff;
}

.cta-row p {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.about-box {
  padding: 2rem;
}

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

.contact-info,
.contact-form {
  padding: 1.75rem;
}

.contact-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.contact-points a,
.contact-points span {
  font-weight: 600;
}

.site-footer {
  background: #191511;
  color: #fff;
}

.footer-box {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 1.5rem;
  padding: 3rem 0;
}

.footer-brand img {
  width: 90px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-brand p,
.footer-links a,
.footer-note p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-note p {
  margin: 0;
  padding: 1rem 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 14, 10, 0.7);
}

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

.popup-card {
  position: relative;
  width: min(520px, 100%);
  padding: 1.8rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.popup-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  line-height: 1.1;
}

.popup-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.popup-form {
  display: grid;
  gap: 0.95rem;
}

.popup-form label {
  display: grid;
  gap: 0.45rem;
}

.popup-form span {
  font-size: 0.86rem;
  font-weight: 700;
}

.popup-form input,
.popup-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.popup-form textarea {
  min-height: 110px;
  resize: vertical;
}

.popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  padding: 0.2rem 0.4rem;
  background: transparent;
  color: #47352a;
  font-size: 2rem;
  line-height: 1;
}

.floating-call {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
}

@media (max-width: 1100px) {
  .hero-grid,
  .contact-layout,
  .location-layout,
  .footer-box {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .highlight-grid,
  .amenity-grid,
  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .gallery-card.large {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .header-row,
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.25rem;
  }

  .m3m-wordmark {
    font-size: 2.2rem;
  }

  .hero-grid,
  .overview-grid,
  .highlight-grid,
  .amenity-grid,
  .gallery-grid,
  .fact-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .price-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .section-block {
    padding: 3.75rem 0;
  }

  .floating-call {
    left: 1rem;
    right: 1rem;
    text-align: center;
  }
}
