/* ============================================
   Hale Maui Nō Ka ʻOi — Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --teal: #339999;
  --teal-dark: #2a7a7a;
  --teal-deep: #1d5c5c;
  --gold: #c49a3c;
  --gold-hover: #b08830;
  --cream: #f9f6f0;
  --navy: #1a2332;
  --navy-light: #243044;
  --white: #ffffff;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --border-light: #e2e0dc;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1280px;
  --section-padding: clamp(80px, 10vw, 140px);
  --nav-height: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal-dark); }
button { cursor: pointer; font-family: var(--font-sans); }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.section-label::before { content: ''; width: 32px; height: 2px; background: var(--teal); }
.section-heading {
  font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px);
  font-weight: 400; line-height: 1.15; color: var(--text-dark);
}
.section-heading em {
  font-family: var(--font-serif); font-style: italic; color: var(--teal);
}
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- Hero --- */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; display: flex; align-items: flex-end;
}
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background: var(--navy) url('../images/hero/hero-sunset.jpg') center/cover no-repeat;
}
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
.hero-video-wrap iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78vh; min-width: 100%; height: 100vh; min-height: 56.25vw;
  transform: translate(-50%, -50%); border: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.08) 100%
  );
}
.hero-content {
  position: relative; z-index: 3; padding: 0 clamp(24px, 5vw, 64px) 64px;
  max-width: 800px; color: var(--white);
}
.hero-pretitle {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 16px; font-weight: 500;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(48px, 8vw, 88px);
  font-weight: 700; line-height: 1; margin-bottom: 8px;
}
.hero-title em {
  font-style: italic; color: var(--gold); font-weight: 400;
  display: block; font-size: 0.85em;
}
.hero-subtitle {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(16px, 2.5vw, 22px); color: rgba(255,255,255,0.8);
  margin-bottom: 28px; font-weight: 400;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.hero-badge {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 2px; color: rgba(255,255,255,0.85); font-weight: 500;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-gold {
  display: inline-block; padding: 14px 32px; background: var(--gold);
  color: var(--white); font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; border: none;
  border-radius: 2px; transition: background 0.3s;
}
.btn-gold:hover { background: var(--gold-hover); color: var(--white); }
.btn-outline {
  display: inline-block; padding: 14px 32px;
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; background: transparent;
  border-radius: 2px; transition: all 0.3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white);
}
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: rgba(255,255,255,0.5); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 40px; background: rgba(255,255,255,0.3);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* --- Sticky Nav --- */
.sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transform: translateY(-100%); transition: transform 0.4s ease;
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: var(--nav-height);
}
.nav-logo { height: 32px; margin-right: 32px; flex-shrink: 0; }
.nav-logo img { height: 100%; width: auto; }
.nav-links {
  display: flex; gap: 0; list-style: none; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  flex: 1;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block; padding: 20px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--text-medium);
  white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.active {
  color: var(--teal); border-bottom-color: var(--teal);
}
.nav-reserve {
  margin-left: auto; flex-shrink: 0;
}
.nav-reserve .btn-gold { padding: 10px 24px; font-size: 11px; }

/* --- Stats Bar --- */
.stats-bar {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 40px 0; color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center; gap: 16px;
}
.stat-item { padding: 8px 0; }
.stat-number {
  font-family: var(--font-serif); font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400; line-height: 1; margin-bottom: 6px;
}
.stat-number .star { color: var(--gold); margin-right: 4px; }
.stat-label {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  opacity: 0.75; font-weight: 500;
}

/* --- Estate Section --- */
.estate { background: var(--cream); }
.estate-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.estate-image {
  position: relative; overflow: hidden;
}
.estate-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.estate-image-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--teal); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; padding: 8px 16px;
}
.estate-text {
  padding: clamp(40px, 5vw, 80px); display: flex;
  flex-direction: column; justify-content: center;
}
.estate-text p {
  color: var(--text-medium); margin-bottom: 20px;
  font-size: 15px; line-height: 1.8;
}
.estate-quote {
  border-left: 3px solid var(--gold); padding: 16px 0 16px 24px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(16px, 2vw, 20px); color: var(--text-dark);
  line-height: 1.6; margin-top: 16px;
}

/* --- Features Section --- */
.features { padding: var(--section-padding) 0; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.feature-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.feature-card:nth-child(3n) { border-right: none; }
.feature-card:nth-child(n+4) { border-bottom: none; }
.feature-number {
  font-family: var(--font-serif); font-size: 56px; font-weight: 400;
  color: rgba(51,153,153,0.12); line-height: 1; margin-bottom: 12px;
}
.feature-title {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dark);
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px; color: var(--text-medium); line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery {
  padding: var(--section-padding) 0;
  background: var(--white);
}
.gallery-header { text-align: center; margin-bottom: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px; height: 600px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 2px;
}
.gallery-item:first-child {
  grid-row: 1 / -1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-label {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.gallery-more {
  position: absolute; inset: 0;
  background: rgba(26,35,50,0.6);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--white); transition: background 0.3s;
}
.gallery-more:hover { background: rgba(26,35,50,0.75); }
.gallery-more-number {
  font-family: var(--font-serif); font-size: 48px; font-weight: 400;
  line-height: 1;
}
.gallery-more-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  margin-top: 4px; opacity: 0.8;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92); display: none;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 32px; cursor: pointer; padding: 8px;
  z-index: 10; opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border-radius: 2px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--white);
  font-size: 40px; padding: 16px; cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%); color: rgba(255,255,255,0.7);
  font-size: 13px; letter-spacing: 1px;
}

/* --- Suites Section --- */
.suites {
  padding: var(--section-padding) 0; background: var(--cream);
}
.suites-header { text-align: center; margin-bottom: 16px; }
.suites-subtitle {
  text-align: center; color: var(--text-medium);
  max-width: 640px; margin: 0 auto 56px; font-size: 15px; line-height: 1.8;
}
.suites-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.suite-card {
  background: var(--white); border-radius: 4px;
  overflow: hidden; transition: box-shadow 0.3s;
}
.suite-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.suite-card-image {
  height: 220px; overflow: hidden;
}
.suite-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.suite-card:hover .suite-card-image img { transform: scale(1.05); }
.suite-card-body { padding: 24px; }
.suite-level {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.suite-name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 400;
  margin-bottom: 12px; color: var(--text-dark);
}
.suite-desc {
  font-size: 14px; color: var(--text-medium); line-height: 1.7;
  margin-bottom: 16px;
}
.suite-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.suite-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 10px;
  border: 1px solid var(--teal); color: var(--teal);
  border-radius: 2px;
}

/* Suite accent card */
.suite-accent {
  background: var(--teal); border-radius: 4px; padding: 48px 32px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; color: var(--white);
}
.suite-accent-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: 28px; font-weight: 400; margin-bottom: 16px; line-height: 1.3;
}
.suite-accent-text {
  font-size: 14px; opacity: 0.8; margin-bottom: 24px; line-height: 1.7;
}
.btn-white {
  display: inline-block; padding: 12px 28px;
  background: var(--white); color: var(--teal);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; border: none; border-radius: 2px;
  transition: all 0.3s;
}
.btn-white:hover { background: var(--cream); color: var(--teal-dark); }

/* --- Outdoor Living --- */
.outdoor-living {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.outdoor-image { position: relative; overflow: hidden; }
.outdoor-image img { width: 100%; height: 100%; object-fit: cover; }
.outdoor-text {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: var(--white); padding: clamp(40px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
}
.outdoor-text .section-label { color: rgba(255,255,255,0.6); }
.outdoor-text .section-label::before { background: rgba(255,255,255,0.4); }
.outdoor-text .section-heading { color: var(--white); }
.outdoor-text .section-heading em { color: var(--gold); }
.outdoor-list { list-style: none; margin-top: 32px; }
.outdoor-list li {
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 15px; display: flex; align-items: center; gap: 12px;
}
.outdoor-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}

/* --- Location Section --- */
.location { background: var(--cream); padding: var(--section-padding) 0; }
.location-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: stretch;
}
.location-map {
  border-radius: 4px; overflow: hidden; height: 100%;
  min-height: 480px; background: var(--border-light);
}
.location-map iframe {
  width: 100%; height: 100%; border: 0;
}
.location-text p {
  color: var(--text-medium); font-size: 15px; line-height: 1.8;
  margin-bottom: 32px;
}
.distance-table { width: 100%; }
.distance-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.distance-name { font-size: 15px; color: var(--text-dark); }
.distance-value {
  font-size: 14px; color: var(--teal); font-weight: 600;
}

/* --- Reserve Section --- */
.reserve { padding: var(--section-padding) 0; background: var(--white); }
.reserve-header { text-align: center; margin-bottom: 48px; }
.reserve-card {
  max-width: 680px; margin: 0 auto;
  background: var(--cream); border-radius: 6px; padding: 48px;
}
.reserve-rates { text-align: center; margin-bottom: 32px; }
.reserve-rates-label {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 8px;
}
.reserve-rates-title {
  font-family: var(--font-serif); font-size: 28px;
  color: var(--teal-dark); margin-bottom: 8px;
}
.reserve-rates-text {
  font-size: 14px; color: var(--text-light); margin-bottom: 4px;
}
.reserve-rates-details {
  font-size: 13px; color: var(--text-light);
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.reserve-rates-details span { white-space: nowrap; }
.reserve-form { margin-top: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-dark);
  margin-bottom: 6px;
}
.form-input,
.form-select {
  padding: 12px 14px; border: 1px solid var(--border-light);
  border-radius: 3px; font-family: var(--font-sans);
  font-size: 14px; color: var(--text-dark);
  background: var(--white); transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus {
  outline: none; border-color: var(--teal);
}
.reserve-cta {
  text-align: center; margin-top: 32px;
}
.reserve-btn {
  display: inline-block; padding: 18px 56px;
  font-size: 14px; letter-spacing: 2.5px;
}
.reserve-contact {
  text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light);
}
.reserve-contact a { color: var(--teal); font-weight: 500; }

/* --- Footer --- */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-serif); font-size: 24px; font-weight: 700;
  color: var(--white); margin-bottom: 4px;
}
.footer-brand-name em {
  font-style: italic; color: var(--gold); font-weight: 400;
}
.footer-brand-tagline {
  font-size: 14px; margin-bottom: 20px; opacity: 0.7;
}
.footer-brand-legal { font-size: 12px; opacity: 0.5; line-height: 1.8; }
.footer-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6); font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-smv-logo { height: 32px; margin-bottom: 16px; opacity: 0.9; }
.footer-smv-info { font-size: 14px; line-height: 1.8; }
.footer-smv-info a { color: rgba(255,255,255,0.7); }
.footer-smv-info a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 12px; opacity: 0.5;
  flex-wrap: wrap; gap: 12px;
}
.footer-aloha {
  font-family: var(--font-serif); font-style: italic; opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .estate-grid,
  .outdoor-living,
  .location-grid { grid-template-columns: 1fr; }
  .estate-image { min-height: 400px; }
  .outdoor-image { min-height: 400px; order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card:nth-child(2n) { border-right: none; }
  .feature-card:nth-child(n+5) { border-bottom: none; }
  .feature-card:nth-child(3) { border-right: 1px solid var(--border-light); }
  .suites-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { height: 400px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { padding: 0 24px 48px; }
  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-badges { gap: 6px; }
  .hero-badge { font-size: 9px; padding: 5px 10px; letter-spacing: 1.5px; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 280px; }
  .hero-scroll { display: none; }
  .nav-logo { margin-right: 16px; }
  .nav-links a { padding: 20px 12px; font-size: 10px; }
  .nav-reserve { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-number { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none !important; border-bottom: 1px solid var(--border-light) !important; }
  .feature-card:last-child { border-bottom: none !important; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: auto;
  }
  .gallery-item:first-child { grid-row: 1 / 3; }
  .suites-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .reserve-card { padding: 32px 24px; }
  .location-map { height: 300px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
