@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bw-bg: #0b1220;
  --bw-bg-soft: #111b2f;
  --bw-panel: rgba(13, 23, 39, 0.82);
  --bw-panel-solid: #132138;
  --bw-panel-elevated: rgba(18, 30, 49, 0.94);
  --bw-border: rgba(204, 183, 147, 0.2);
  --bw-border-strong: rgba(204, 183, 147, 0.36);
  --bw-text: #e9eef5;
  --bw-text-soft: #aab6c8;
  --bw-text-muted: #7d899b;
  --bw-accent: #d9bc82;
  --bw-accent-strong: #f2d47a;
  --bw-accent-soft: rgba(218, 188, 130, 0.18);
  --bw-sea: #7fd6ce;
  --bw-sea-soft: rgba(127, 214, 206, 0.18);
  --bw-shadow: 0 30px 80px rgba(3, 8, 18, 0.36);
  --bw-radius-lg: 1.25rem;
  --bw-radius-xl: 1.75rem;
  --bw-radius-pill: 999px;
  --bw-container: min(1180px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: #07111d;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(113, 193, 186, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(208, 176, 122, 0.12), transparent 24%),
    linear-gradient(180deg, #07111d 0%, #0b1220 18%, #0c1423 100%);
  color: var(--bw-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}

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

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

h1, h2, h3, h4, .brand-display {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--bw-accent-strong) 0%, #fff8e0 40%, var(--bw-sea) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(242, 212, 122, 0.22));
}

.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--bw-shadow);
}

.glass-effect {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(19, 33, 56, 0.9) 0%, rgba(11, 18, 32, 0.92) 100%);
  border: 1px solid var(--bw-border);
  box-shadow: var(--bw-shadow);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 0;
  height: 2px;
  border-radius: var(--bw-radius-pill);
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--bw-accent), var(--bw-sea));
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav {
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-10px);
  opacity: 0;
}

.mobile-nav:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(208, 176, 122, 0); }
  50% { box-shadow: 0 0 30px rgba(208, 176, 122, 0.25); }
}

.service-card,
.property-card,
.hostel-card,
.feature-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--bw-radius-xl);
}

.service-card::before,
.property-card::before,
.hostel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(208, 176, 122, 0.08), transparent 40%, rgba(113, 193, 186, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::before,
.property-card:hover::before,
.hostel-card:hover::before {
  opacity: 1;
}

.property-filter {
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.property-filter:hover,
.property-filter.active {
  border-color: var(--bw-border-strong);
  transform: translateY(-1px);
}

.property-filter::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(208, 176, 122, 0.18), rgba(113, 193, 186, 0.14));
  transition: opacity 0.25s ease;
}

.property-filter:hover::before,
.property-filter.active::before {
  opacity: 1;
}

.property-filter > * {
  position: relative;
  z-index: 1;
}

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

.hero-stage-wrap {
  background: #07111d;
}

.hero-background {
  background-size: cover;
  background-position: center;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.06) translate3d(-2%, 0, 0); }
}

.hero-overlay {
  background:
    linear-gradient(110deg, rgba(255, 248, 238, 0.68) 6%, rgba(247, 240, 229, 0.28) 46%, rgba(228, 214, 192, 0.16) 100%);
}

.hero-pattern {
  background:
    linear-gradient(90deg, rgba(100, 78, 49, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(100, 78, 49, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 75%);
}

.hero-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
}

/* ── Hero background: video + Ken Burns slideshow ── */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:nth-child(1) { animation: kb-1 14s ease-in-out infinite alternate; }
.hero-slide:nth-child(2) { animation: kb-2 14s ease-in-out infinite alternate; }
.hero-slide:nth-child(3) { animation: kb-3 14s ease-in-out infinite alternate; }
.hero-slide:nth-child(4) { animation: kb-4 14s ease-in-out infinite alternate; }
.hero-slide:nth-child(5) { animation: kb-5 14s ease-in-out infinite alternate; }

@keyframes kb-1 {
  0%   { transform: scale(1)    translate(0,    0);    }
  100% { transform: scale(1.09) translate(-2%,  -1%);  }
}
@keyframes kb-2 {
  0%   { transform: scale(1.04) translate(1%,   0);    }
  100% { transform: scale(1.11) translate(-1%,  -2%);  }
}
@keyframes kb-3 {
  0%   { transform: scale(1)    translate(-1%,  1%);   }
  100% { transform: scale(1.08) translate(2%,   -1%);  }
}
@keyframes kb-4 {
  0%   { transform: scale(1.05) translate(0,    -1%);  }
  100% { transform: scale(1.1)  translate(-2%,  0);    }
}
@keyframes kb-5 {
  0%   { transform: scale(1)    translate(1%,   0);    }
  100% { transform: scale(1.09) translate(0,    -2%);  }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Heavy uniform base — covers the diagonal watermark across all zones */
    linear-gradient(110deg, rgba(4, 8, 18, 0.91) 0%, rgba(4, 9, 19, 0.86) 50%, rgba(4, 8, 18, 0.91) 100%),
    /* Centre radial — extra opacity exactly where diagonal watermark is densest */
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(3, 7, 16, 0.18) 0%, transparent 100%),
    /* Vignette: corners and edges go even darker for premium cinematic feel */
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(2, 5, 13, 0.52) 100%),
    /* Bottom strip — text legibility */
    linear-gradient(180deg, rgba(4, 8, 18, 0.28) 0%, transparent 32%, rgba(4, 8, 18, 0.42) 100%);
}

.hero-panel,
.surface-panel {
  background: linear-gradient(180deg, rgba(19, 33, 56, 0.94) 0%, rgba(10, 16, 29, 0.95) 100%);
  border: 1px solid var(--bw-border);
  box-shadow: var(--bw-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-stage-panel {
  border: 1px solid rgba(116, 86, 48, 0.16);
  background: linear-gradient(180deg, rgba(34, 28, 23, 0.9) 0%, rgba(24, 20, 16, 0.96) 100%);
  box-shadow: var(--bw-shadow);
}

.hero-proof-card {
  overflow: hidden;
  border-radius: 1.65rem;
  border: 1px solid rgba(204, 183, 147, 0.18);
  background: linear-gradient(180deg, rgba(14, 24, 40, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%);
}

.hero-proof-primary {
  position: relative;
}

.hero-proof-image,
.hero-proof-thumb {
  width: 100%;
  object-fit: cover;
  display: block;
}

.hero-proof-image {
  height: 18.5rem;
}

.hero-proof-thumb {
  height: 10.5rem;
}

.hero-proof-copy {
  padding: 1.25rem;
}

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

.hero-trust-card {
  border: 1px solid rgba(204, 183, 147, 0.16);
  background: rgba(8, 14, 25, 0.64);
  border-radius: 1.35rem;
  padding: 1.15rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-trust-card p {
  margin: 0;
  color: var(--bw-text-soft);
  line-height: 1.7;
  font-size: 0.95rem;
}

.hero-trust-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bw-accent);
}

.hero-kicker,
.section-kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bw-accent);
}

.hero-stat,
.brand-metric {
  border: 1px solid rgba(204, 183, 147, 0.28);
  background: linear-gradient(180deg, rgba(14, 24, 42, 0.96) 0%, rgba(18, 30, 50, 0.90) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 24px rgba(3, 8, 18, 0.3);
}

.brand-button,
.brand-button-secondary,
.brand-button-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 1rem;
  padding: 1rem 1.35rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.brand-button {
  color: #0d1620;
  background: linear-gradient(135deg, var(--bw-accent-strong) 0%, #ffe99a 100%);
  box-shadow: 0 18px 40px rgba(242, 212, 122, 0.36), 0 2px 8px rgba(242, 212, 122, 0.18);
}

.brand-button-secondary {
  color: var(--bw-text);
  background: rgba(15, 26, 43, 0.8);
  border: 1px solid var(--bw-border);
}

.brand-button-tertiary {
  color: var(--bw-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.brand-button:hover,
.brand-button-secondary:hover,
.brand-button-tertiary:hover {
  transform: translateY(-2px);
}

.section-shell {
  padding-block: 6rem;
}

.section-lead {
  max-width: 44rem;
  color: #c8d4e2;
  line-height: 1.75;
}

.map-container {
  position: relative;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-xl);
  overflow: hidden;
  box-shadow: var(--bw-shadow);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0c1525;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bw-accent), var(--bw-sea));
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body::before {
    background-size: 38px 38px;
  }

  .section-shell {
    padding-block: 4.5rem;
  }
}

/* ── Mobile layout fixes (≤ 767px) ─────────────────────────────────── */
@media (max-width: 767px) {
  /* Hero section: drop flex on mobile — flex cross-axis sizing in iOS WebKit
     causes the shell to drift right. Block layout gives full, unambiguous width. */
  #home {
    display: block;
    min-height: 100svh; /* svh excludes iOS browser chrome; 100vh was wrong */
  }

  /* Hero shell: full-width, no auto margins, proper clearance for fixed header */
  .hero-shell {
    margin: 0;
    max-width: 100%;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  /* Badge: constrain to screen width — letter-spacing makes the text ~500px wide otherwise */
  #homeHeroBadge {
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.45rem 0.9rem;
    margin-bottom: 0.85rem;
    border-radius: 1rem;
  }
  #homeHeroBadge .hero-kicker {
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    letter-spacing: 0.1em;
  }

  /* Reduce all kicker/eyebrow letter-spacing on mobile — 0.28em on 50+ chars creates overflow */
  .hero-kicker,
  .section-kicker,
  .eyebrow {
    letter-spacing: 0.12em;
  }

  /* Eyebrow text: tighten spacing */
  .eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
  }

  /* gradient-text drop-shadow: iOS Safari filter can escape overflow:hidden containers */
  .gradient-text {
    filter: none;
  }

  /* Hero headline: ensure it wraps cleanly on narrow screens */
  #homeHeroTitle {
    margin-bottom: 1rem;
    word-break: break-word;
  }

  /* Hero subtitle: slightly smaller on phones */
  #homeHeroSubtitle {
    font-size: 0.97rem;
    margin-bottom: 1.25rem;
    line-height: 1.65;
  }

  /* CTA button grid: stack vertically on phones */
  .hero-shell .grid.grid-cols-1.md\:grid-cols-2 {
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  /* Trust cards: compact row layout on phones */
  .hero-trust-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .hero-trust-card {
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
  }

  .hero-trust-card p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Scroll caret: less space above */
  .hero-shell .mt-12 {
    margin-top: 2rem;
  }

  /* Brand buttons: full width on small phones */
  .brand-button,
  .brand-button-secondary {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
  }

  /* Section headings: scale down */
  .section-shell h2,
  .section-shell .brand-display {
    font-size: 1.9rem;
  }

  /* Property cards: single column already handled by Tailwind, but tighten gap */
  .property-grid {
    gap: 1.25rem;
  }

  /* Contact form: remove excess side padding */
  .contact-form-wrap {
    padding: 1.5rem 1rem;
  }
}

/* ── Small phones (≤ 380px) ─────────────────────────────────────────── */
@media (max-width: 380px) {
  #homeHeroTitle {
    font-size: 1.9rem;
    line-height: 1.1;
  }

  #homeHeroSubtitle {
    font-size: 0.9rem;
  }

  .hero-shell {
    padding-top: 3rem;
  }
}
