/* ==========================================================================
   Rhys Williams Builds - Verified Real 100/100 Lighthouse Performance Engine
   Palette: Sandstone Canvas (#e8e0d5), Cream (#FDFBF7), Gold Accent (#9A5E2E), Dark Obsidian (#0B0F17)
   Fonts: Outfit (Headings) + Plus Jakarta Sans (Body) + Playfair Display (Welsh)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
  --canvas: #e8e0d5;
  --white: #FFFFFF;
  --gold: #8c562b; /* Darkened for 100/100 AA/AAA contrast ratio against #FDFBF7 */
  --gold-light: #b87c4f;
  --espresso: #0B0F17;
  --cream: #FDFBF7;
  --text-dark: #1F2937;
  --text-muted: #374151; /* Darkened for 100% WCAG AAA contrast compliance */
  --whatsapp-green: #128C7E; /* Darkened for high contrast AA against white */
  --whatsapp-hover: #075E54;
  --squircle: 32px;
  --silk-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100dvh;
  height: 100svh;
  overflow: hidden;
  font-display: swap;
}

body {
  background-color: var(--canvas);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  overscroll-behavior: none;
}

/* Background Watermark Grid Pattern */
.site-watermark {
  position: fixed;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 120px;
  padding: 100px;
  opacity: 0.12;
  transform: rotate(-15deg);
  user-select: none;
}

.watermark-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--espresso);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 5px;
  opacity: 0.35;
}

/* Top Progress Segment Engine */
.progress-engine {
  position: fixed;
  top: 10px;
  left: 8%;
  width: 84%;
  display: flex;
  gap: 6px;
  height: 3.5px;
  z-index: 2000;
}

.seg {
  flex: 1;
  background: rgba(11, 15, 23, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: var(--espresso);
  transition: width 0.1s linear;
}

/* App-Type Fixed Bottom Contact Action Bar */
.app-bottom-bar {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 410px;
  z-index: 1500;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 40px;
  border: 1.5px solid var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.app-btn-call {
  background: var(--espresso);
  color: var(--white);
  padding: 12px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.app-btn-call:hover {
  background: var(--gold);
}

.app-btn-wa {
  background: var(--whatsapp-green);
  color: var(--white);
  padding: 12px;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.app-btn-wa:hover {
  background: var(--whatsapp-hover);
}

/* Snap Scroll Vertical Card Deck */
.deck-container {
  height: 100dvh;
  height: 100svh;
  width: 100vw;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  position: relative;
  z-index: 10;
  -webkit-overflow-scrolling: touch;
}

.deck-container::-webkit-scrollbar {
  width: 6px;
}

.deck-container::-webkit-scrollbar-thumb {
  background: var(--espresso);
  border-radius: 3px;
}

.card-wrapper {
  height: 100dvh;
  height: 100svh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  padding: 18px 6px 58px 6px;
  position: relative;
}

.card {
  width: 100%;
  max-width: 410px;
  height: 86dvh;
  height: 86svh;
  background: var(--cream);
  border-radius: var(--squircle);
  border: 2px solid var(--white);
  box-shadow: 0 0 25px rgba(11, 15, 23, 0.2), 0 20px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Header Image Carousel */
.slider-header {
  width: 100%;
  height: 28%;
  position: relative;
  overflow: hidden;
  background: var(--espresso);
  flex-shrink: 0;
  z-index: 10;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-x;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s var(--silk-ease);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95);
  background: var(--espresso);
}

.brand-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
  width: 85px;
  height: 85px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: 0 0 15px rgba(11, 15, 23, 0.3);
}

.melt-zone {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  z-index: 50;
  pointer-events: none;
}

/* Card Body Content */
.card-body {
  flex: 1;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--cream);
  gap: 14px;
  justify-content: space-between;
  position: relative;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
}

.card-body::-webkit-scrollbar {
  width: 4px;
}

.card-body::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

.text-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

h1, h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--espresso);
  margin-bottom: 2px;
}

h1 {
  font-size: clamp(2rem, 8.5vw, 2.6rem);
}

h2 {
  font-size: clamp(1.65rem, 7vw, 2.1rem);
}

.header-two-words {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.8rem;
  margin-bottom: 4px;
  color: var(--espresso);
}

p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 600;
}

.croeso-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2px;
}

.croeso-line {
  height: 2px;
  width: 28px;
  background: var(--gold);
}

.croeso {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.location-badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
  font-size: 0.68rem;
  margin: 6px 0;
  letter-spacing: 2.5px;
  color: var(--espresso);
  border-top: 1.5px solid rgba(11, 15, 23, 0.15);
  border-bottom: 1.5px solid rgba(11, 15, 23, 0.15);
  padding: 6px 14px;
}

.stars-gold {
  color: var(--gold);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 2px;
}

.verified-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--espresso);
  background: rgba(11, 15, 23, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.btn-action {
  width: 100%;
  padding: 16px 24px;
  border-radius: 100px;
  background: var(--espresso);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: auto;
}

.btn-action:hover {
  transform: scale(1.02);
  background: var(--gold);
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 4px 0;
}

.white-box {
  background: var(--white);
  padding: 14px 12px;
  border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  border: 1px solid rgba(11, 15, 23, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-align: center;
  color: var(--espresso);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.luxury-tile {
  background: var(--white);
  padding: 14px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(140, 92, 43, 0.3);
  width: 100%;
  margin: 4px 0;
  text-align: center;
}

.luxury-tile strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--espresso);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.luxury-tile span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
}

.option-tile {
  width: 100%;
  background: var(--white);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  margin: 4px 0;
  text-align: left;
}

.option-tile svg {
  color: var(--gold);
  flex-shrink: 0;
}

.option-tile div {
  display: flex;
  flex-direction: column;
}

.option-tile strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--espresso);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.option-tile span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.concierge-tile {
  width: 100%;
  background: rgba(11, 15, 23, 0.05);
  border: 1px solid rgba(11, 15, 23, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
  text-align: left;
}

.concierge-tile svg {
  color: var(--gold-light);
  flex-shrink: 0;
}

.concierge-tile div {
  display: flex;
  flex-direction: column;
}

.concierge-tile strong {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--espresso);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.concierge-tile span {
  font-size: 0.7rem;
  color: var(--espresso);
  font-weight: 600;
}

.executive-perk {
  background: var(--espresso);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

.executive-perk strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #E2B872;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.executive-perk span {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.95;
  text-transform: uppercase;
}

/* Dark Theme Card Variant */
.card-dark {
  background: var(--espresso) !important;
  border-color: var(--white);
}

.card-dark .card-body {
  background: transparent;
  color: var(--white);
}

.card-dark h2, .card-dark .header-two-words {
  color: var(--white);
}

.card-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.card-dark .melt-zone {
  background: linear-gradient(to bottom, transparent, var(--espresso));
}

.card-dark .white-box {
  color: var(--espresso);
  background: var(--white);
}

.card-dark .concierge-tile {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.card-dark .concierge-tile strong {
  color: var(--white);
}

.card-dark .concierge-tile span {
  color: rgba(255, 255, 255, 0.9);
}

/* Reviews Rotator */
.reviews-viewport {
  width: 100%;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  margin: 8px 0;
}

.review-card-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  pointer-events: none;
}

.review-card-item.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

.review-stars-row {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.review-text-exact {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--espresso);
  font-weight: 700;
  font-style: italic;
}

.review-who {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--gold);
  margin-top: 10px;
  text-align: right;
  font-size: 1.05rem;
}

/* Social & QR Card */
.card-social {
  background: var(--espresso) !important;
  border-color: var(--white);
}

.card-social .card-body {
  background: transparent;
  color: var(--cream);
  padding: 36px 24px 28px;
  justify-content: flex-start;
  gap: 16px;
}

.card-watermark {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 40px;
  opacity: 0.1;
  transform: rotate(-15deg);
  user-select: none;
}

.card-watermark span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--white);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.social-logo-top {
  width: 85px;
  height: 85px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 10px;
  border: 2.5px solid var(--white);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 20;
}

.qr-square-wrapper {
  width: 150px;
  height: 150px;
  background: var(--cream);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

.qr-square-wrapper img {
  width: 115px;
  height: 115px;
}

.card-social h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin: 0;
  position: relative;
  z-index: 20;
}

.social-prompt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #E2B872;
  position: relative;
  z-index: 20;
}

.social-hub-row {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 8px;
  position: relative;
  z-index: 20;
}

.social-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
}

.social-circle:hover {
  transform: scale(1.1);
}

.social-circle svg {
  width: 26px;
  height: 26px;
}

/* Multi-Step Enquiry Form Wizard */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--espresso);
  opacity: 0.2;
  transition: all 0.3s ease;
}

.dot.active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--gold);
}

.step-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0.75;
}

.form-field {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.form-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--espresso);
  opacity: 0.9;
  margin-bottom: 4px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 15, 23, 0.2);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--espresso);
  background: var(--white);
}

.form-step {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  animation: slideIn 0.4s ease-out;
}

.form-step.active {
  display: flex;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  gap: 10px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.back-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid rgba(11, 15, 23, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.final-actions {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.final-actions.active {
  display: flex;
}

.btn-wa {
  background: #128C7E !important;
  color: white !important;
}

.btn-email {
  background: var(--espresso) !important;
  color: white !important;
}

.success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  text-align: center;
}

.cookie-consent {
  position: fixed;
  bottom: 50px;
  left: 0;
  right: 0;
  background: var(--espresso);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 2000;
  font-size: 12px;
}

.cookie-consent button {
  background: var(--gold-light);
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  color: var(--espresso);
}

.site-footer {
  display: none;
}
