/* ===================================
   OUT OF OFFICE BEACH HOUSE
   Bold Editorial · Deep Navy + Warm Gold
   =================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-950: #060e1e;
  --navy-900: #0a1f3f;
  --navy-800: #0f2d5e;
  --navy-700: #153d7a;
  --gold-500: #c8a44e;
  --gold-400: #d4b362;
  --gold-300: #e0c47a;
  --gold-600: #a8872e;
  --cream-50: #faf8f4;
  --cream-100: #f5f0e8;
  --cream-200: #ece4d4;
  --sand-200: #e8dcc8;
  --sand-300: #d4c4a8;
  --white: #ffffff;
  --black: #0a0a0a;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--cream-50);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  padding: 0;
}

.nav.scrolled {
  background: rgba(10, 31, 63, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200, 164, 78, 0.15);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease-out);
}

.nav.scrolled .nav-inner {
  padding: 14px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  color: var(--gold-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold-500) !important;
  color: var(--navy-950) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.2s var(--ease-spring) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-400) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 14, 30, 0.82) 0%,
    rgba(10, 31, 63, 0.72) 50%,
    rgba(15, 45, 94, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: center;
}

.hero-card {
  max-width: 640px;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-400);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.btn-gold:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 164, 78, 0.3);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.3s var(--ease-spring), background 0.3s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* --- SECTION LABELS --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 16px;
}

.section-label.light-label {
  color: var(--gold-400);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: 32px;
}

.section-headline.light-headline {
  color: var(--white);
}

.section-header {
  margin-bottom: 64px;
}

/* --- INTRO --- */
.intro {
  padding: 120px 0;
  background: var(--cream-50);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.intro-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.intro-body {
  padding-top: 8px;
}

.intro-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--navy-800);
  margin-bottom: 20px;
}

.intro-signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-600) !important;
  font-size: 1rem !important;
  margin-top: 32px !important;
  padding-top: 24px;
  border-top: 1px solid var(--sand-200);
}

/* --- ROOMS --- */
.rooms {
  padding: 120px 0;
  background: var(--white);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.room-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-50);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(10, 31, 63, 0.12);
}

.room-img {
  overflow: hidden;
  aspect-ratio: 6 / 4;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.room-card:hover .room-img img {
  transform: scale(1.05);
}

.room-info {
  padding: 28px;
}

.room-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.room-info p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--navy-700);
  margin-bottom: 20px;
}

.room-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-features li {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy-800);
  background: var(--cream-100);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.rooms-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--navy-700);
  font-style: italic;
}

/* --- EXPERIENCE --- */
.experience {
  padding: 120px 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.exp-item {
  display: flex;
  gap: 20px;
  align-items: start;
}

.exp-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(200, 164, 78, 0.1);
  border: 1px solid rgba(200, 164, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.exp-item h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.exp-item p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

/* --- GALLERY --- */
.gallery {
  padding: 0;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 4px;
}

.gallery-item {
  flex: 1;
  min-width: 0;
  aspect-ratio: 5 / 3.5;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: brightness(0.92);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* --- LOCATION --- */
.location {
  padding: 120px 0;
  background: var(--cream-50);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.location-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.loc-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.loc-item svg {
  flex-shrink: 0;
  color: var(--gold-600);
  margin-top: 2px;
}

.loc-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.loc-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-700);
}

.loc-item a {
  color: var(--navy-700);
  transition: color 0.3s;
}

.loc-item a:hover {
  color: var(--gold-600);
}

.location-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 31, 63, 0.12);
  aspect-ratio: 4 / 3.3;
}

.location-map iframe {
  width: 100%;
  height: 100%;
}

/* --- CONTACT --- */
.contact {
  padding: 120px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--navy-700);
  margin-bottom: 40px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-900);
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--cream-50);
  transition: background 0.3s, color 0.3s, transform 0.2s var(--ease-spring);
}

.contact-direct-link:hover {
  background: var(--cream-100);
  color: var(--gold-600);
  transform: translateX(4px);
}

.contact-direct-link svg {
  color: var(--gold-600);
}

/* Form */
.contact-form-wrap {
  background: var(--cream-50);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--cream-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--cream-200);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sand-300);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 164, 78, 0.12);
}

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

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.form-success svg {
  color: var(--gold-500);
}

.form-success p {
  font-size: 1rem;
  color: var(--navy-800);
  font-weight: 500;
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: 120px 0;
  background: var(--navy-900);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 78, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.cta-pre {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
  position: relative;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-950);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-logo-icon {
  color: var(--gold-500);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links strong,
.footer-contact strong {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
  }

  .intro-grid,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero-stats {
    flex-direction: column;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .exp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .gallery-track {
    flex-direction: column;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}
