html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: Light;
  background-color: #222d27;
  color: #fff;
  overscroll-behavior: none;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: #6E7B65;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.shrink {
  padding: 0.5rem 2rem;
  background: #222d27;
  color: #fff;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 75px;
  transition: height 0.3s ease;
}

nav.shrink .logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #000;
  transition: color 0.3s, border-bottom 0.3s;
  white-space: nowrap;
  font-weight: 400;
  padding-bottom: 0.1rem;
}

nav.shrink .nav-links a {
  color: #D5CBB2;
}

nav a:hover {
  color: #fff;
  border-bottom: 2px solid #fff;
}

nav.shrink .nav-links a:hover {
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* Hero */

/* Start by hiding both by default */
.desktop-only, .mobile-only {
  display: none;
}

/* Desktop: show image */
@media (min-width: 769px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

.hero {
  height: 100vh;
  position: relative;
}

.hero .bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
}

.hero .bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
}

.strapline {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 6px #222d27;
  z-index: 1;
}

.strapline h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.strapline p {
  font-size: 1.5rem;
  font-weight: 400;
}

.scroll-arrow {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
  fill: #fff;
}

@keyframes bounce {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* Luxury section dividers */
section:not(.hero) {
  border-top: 2px solid #D5CBB2;
}

section.split {
  margin: 0;
  padding: 0;
}

section.split + section.split {
  border-top: 2px solid #D5CBB2;
}

/* Split Layout */
.split {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  height: auto; /* allow natural growth */
  overflow: hidden; /* prevent vertical scrollbars inside split */
}

.split-image {
  width: 50%;
  height: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.split-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #222d27 35%, #222d27 65%, transparent 100%);
}

.split-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

h1 {
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
  margin: 3rem 0 1.5rem 0;
}

p, ul {
  font-size: 1.25rem;
  line-height: 2rem;
}

ul {
  list-style: none;
  padding: 0;
}

li::before {
  color: #fff;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

body a:not(nav a) {
  color: #C2A36B;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

body a:not(nav a):hover,
body a:not(nav a):focus {
  color: #FFFFFF;
}

body a:not(nav a):visited {
  color: #B3955E;
}

.persona-filter {
  max-width: 800px;
  margin: 2rem auto 1rem auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.persona-filter select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem auto;
}

table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid #D5CBB2;
  text-align: left;
  font-size: 1.1rem;
}

/* Book button */
.book-btn-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
  z-index: 2000;
  flex-direction: column; /* mobile first vertical layout */
}

.book-btn {
  background: #C2A36B;
  color: #000 !important;  /* Force white text */
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 30px #222d27;
  transition: transform 0.3s ease;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

.book-btn:hover {
  transform: scale(1.05);
  background: #6E7B65
}

.book-btn:hover {
  color: #fff !important;  /* Keep white text even on hover */
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: #222d27;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.modal.show-modal {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #111;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  position: relative;
}

.modal-content input, .modal-content textarea {
  width: 95%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #555;
  border-radius: 5px;
  background: #222;
  color: #fff;
}

.modal-content button {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  border: none;
  background: #fff;
  color: #000;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-content button:hover {
  background: #ddd;
}

.close-button {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #C2A36B;
}

/* Footer */
footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #888;
}

/* Additions for recommendations page */

.persona {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.persona h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.persona p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.persona ul {
  list-style: none;
  padding-left: 0;
}

.persona-header {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 1rem;
}

.persona-header h2 {
  font-size: 2rem;
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.persona-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(30%);
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #C2A36B;
  z-index: 1;
  opacity: 1; /* Image stays strong, fade effect handled via mask */
}

.persona li {
  font-size: 1.1rem;
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
}

.persona li strong {
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.persona li .description {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: #D5CBB2;
  margin-top: 0.2rem;
}

.install-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6E7B65;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 1.5rem;
  z-index: 5000;
  max-width: 300px;
}

.popup-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

.instagram-link img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.instagram-link:hover img {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.success-message {
  text-align: center;
  padding: 1.5rem;
  background-color: #e7f9f1;
  border: 1px solid #34a76f;
  border-radius: 8px;
  color: #2e7d5e;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.success-message h3 {
  margin-top: 0;
}

.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .nav-links {
    display: none;
  }
  .split {
    flex-direction: column;
  }
  .split-image, .split-content {
    width: 100%;
    height: auto;
  }
  .split-image img {
    width: 100vw;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .split-content {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 1rem;
  }
  .strapline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    z-index: 1;
  }
  .strapline h1 {
    font-size: 2rem;
  }
  .strapline p {
    font-size: 1rem;
  }
  table td {
    padding: 0.6rem 0.3rem;
  }
  .book-btn-container {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    flex-direction: row;
    position: fixed;
  }
  .book-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .persona {
    padding: 2rem 1rem;
  }
  .persona h2 {
    font-size: 1.6rem;
  }
  .persona p, .persona li {
    font-size: 1rem;
  }
  .persona-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
  }
  .persona-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Keep vertically centered only */
    width: 70px;                 /* Optional: smaller size on mobile */
    height: 70px;
  }
  .persona-header h2 {
    font-size: 1.4rem;
  }
  .persona p {
    font-size: 1rem;
  }
}
