/* =============================================
   La Costa Bianca — CSS Design System
   Quiet Luxury · Koh Samui
   ============================================= */

:root {
  --cream:    #F5F0E8;
  --charcoal: #1C1C1A;
  --green:    #2D4A2D;
  --sand:     #C9B99A;
  --dark:     #0D0D0B;
  --muted:    #8A8478;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'Courier Prime', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow: cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  cursor: none;
}
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; }

/* CUSTOM CURSOR */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 8px; height: 8px; border-radius: 50%;
  background: white;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid white;
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 12px; height: 12px; }
body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower { width: 56px; height: 56px; opacity: 0.5; }

/* NAV */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 48px;
  display: flex; align-items: center;
  transition: padding 0.4s, background 0.4s;
  background: rgba(245,240,232,0.3);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,28,26,0.05);
}
#header.scrolled {
  padding: 8px 48px;
  background: rgba(245,240,232,1);
  border-bottom: 1px solid rgba(28,28,26,0.08);
}
.nav { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo-wrapper { display: flex; align-items: center; gap: 6px; }
.nav-bird-logo { 
  height: 28px; width: auto; object-fit: contain; 
  transform: translateY(-2px);
}
.nav-logo { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 400; letter-spacing: 0.1em; }
.logo-est { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.15em; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--muted); }
.lang-btn { background: none; border: none; cursor: none; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; padding: 2px 4px; transition: color 0.2s; }
.lang-btn.active { color: var(--charcoal); border-bottom: 1px solid var(--charcoal); }
.nav-cta {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--charcoal); padding: 10px 22px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--charcoal); color: var(--cream); }

/* BUTTONS */
.btn {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 14px 32px;
  border: 1px solid currentColor; transition: all 0.35s var(--ease);
  cursor: none;
}
.btn-light, .btn-ghost { 
  color: #fff; 
  background: rgba(245,240,232,0.3); 
  backdrop-filter: blur(16px);
  border-color: rgba(245,240,232,0.4); 
}
.btn-light:hover, .btn-ghost:hover { 
  background: #fff; 
  color: #000; 
  border-color: #fff; 
}
.btn-dark { color: var(--charcoal); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal); color: var(--cream); }

/* SECTION LABELS */
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.label.light { color: rgba(245,240,232,0.5); }
.section-intro { max-width: 640px; margin-bottom: 80px; }
.section-intro h2 {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.01em;
}
.light { color: var(--cream); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.text-center { text-align: center; }

/* SCROLL ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in.d1 { transition-delay: 0.2s; }
.reveal.in.d2 { transition-delay: 0.4s; }
.reveal.in.d3 { transition-delay: 0.6s; }
.reveal.in.d4 { transition-delay: 0.8s; }

/* ============ HERO ============ */
.s-hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--charcoal);
  overflow: hidden;
}
.hero-video {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  opacity: 1;
}
.hero-ambient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(45,74,45,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(201,185,154,0.1) 0%, transparent 50%);
  animation: ambientShift 20s ease-in-out infinite alternate;
}
@keyframes ambientShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  50%  { filter: hue-rotate(8deg) brightness(1.05); }
  100% { filter: hue-rotate(-4deg) brightness(0.95); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,13,11,0.2) 0%, rgba(13,13,11,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 80px; max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff; margin-bottom: 28px;
}
.hero-h1 {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 7rem); line-height: 1.0;
  letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 1rem; line-height: 1.7; color: #fff;
  max-width: 480px; margin-bottom: 48px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 48px; left: 80px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.hero-meta {
  position: absolute; bottom: 48px; right: 80px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.14em; color: #fff;
}
.dot { opacity: 0.6; }

/* ============ MANIFESTO ============ */
.s-manifesto {
  padding: 140px 0;
  background: var(--cream);
}
.manifesto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.m-block {
  display: flex; gap: 32px; padding: 60px 48px;
  border-top: 1px solid rgba(28,28,26,0.1);
  transition: background 0.3s;
}
.m-block:hover { background: rgba(45,74,45,0.03); }
.m-block:nth-child(odd) { border-right: 1px solid rgba(28,28,26,0.1); }
.m-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: var(--muted);
  padding-top: 6px; min-width: 32px;
}
.m-block h3 {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 400; margin-bottom: 16px; letter-spacing: 0.01em;
}
.m-block p { font-size: 0.9rem; line-height: 1.8; color: #555; }

/* ============ RESIDENCES ============ */
.s-residences {
  padding: 140px 0;
  background: #F0EBE0;
}
.pillars {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(28,28,26,0.12);
  margin-bottom: 100px;
}
.pillar {
  background: #F0EBE0; padding: 48px 40px;
}
.pillar h4 {
  font-family: var(--font-serif); font-size: 1.3rem;
  font-weight: 400; margin-bottom: 16px;
}
.pillar p { font-size: 0.85rem; line-height: 1.75; color: #666; }
.included {
  background: var(--charcoal); color: var(--cream);
  padding: 80px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.included h3 {
  font-family: var(--font-serif); font-size: 1.8rem;
  font-weight: 300; margin-bottom: 32px; grid-column: 1/-1;
}
.included-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px;
}
.included-list li {
  font-size: 0.85rem; letter-spacing: 0.05em; color: rgba(245,240,232,0.7);
  padding-left: 16px; border-left: 1px solid rgba(201,185,154,0.3);
}
.included .btn-dark {
  color: var(--cream); border-color: rgba(245,240,232,0.4);
  align-self: end;
}
.included .btn-dark:hover { background: var(--cream); color: var(--charcoal); }

/* IMAGES */
.residence-image-wrapper, .infra-image-wrapper, .manifesto-image-wrapper {
  margin-bottom: 100px;
  overflow: hidden;
}
.feature-image {
  width: 100%; height: auto;
  aspect-ratio: 16/9; object-fit: cover;
  display: block; filter: brightness(0.9) contrast(1.05);
  transition: transform 1.5s var(--ease-slow);
}
.residence-image-wrapper:hover .feature-image,
.infra-image-wrapper:hover .feature-image,
.manifesto-image-wrapper:hover .feature-image {
  transform: scale(1.03);
}

/* ============ INFRASTRUCTURE ============ */
.s-infra {
  padding: 140px 0;
  background: var(--cream);
}
.infra-lead {
  font-family: var(--font-serif); font-size: 1.3rem;
  font-weight: 300; line-height: 1.7; color: #555;
  max-width: 600px; margin-bottom: 80px;
}
.infra-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 1px; background: rgba(28,28,26,0.12);
  margin-bottom: 64px;
}
.infra-card {
  background: var(--cream); padding: 48px 40px;
}
.infra-card h4 {
  font-family: var(--font-serif); font-size: 1.2rem;
  font-weight: 400; margin-bottom: 14px;
}
.infra-card p { font-size: 0.85rem; line-height: 1.75; color: #666; }

/* ============ FILTER ============ */
.s-filter {
  padding: 140px 0;
  background: var(--dark);
}
.principles { display: flex; flex-direction: column; gap: 0; }
.principle {
  display: flex; gap: 40px; padding: 48px 0;
  border-top: 1px solid rgba(245,240,232,0.08);
}
.p-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.15em; color: rgba(245,240,232,0.3);
  min-width: 80px; padding-top: 6px;
}
.principle h3 {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 400; color: var(--cream); margin-bottom: 12px;
}
.principle p { font-size: 0.88rem; line-height: 1.75; color: rgba(245,240,232,0.5); }
.filter-close {
  font-family: var(--font-serif); font-size: 1.2rem;
  font-style: italic; color: rgba(245,240,232,0.35);
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid rgba(245,240,232,0.08);
}

/* ============ FORM ============ */
.s-form { padding: 140px 0; background: var(--cream); }
.form-intro {
  font-size: 0.95rem; line-height: 1.75; color: #777;
  max-width: 520px; margin-top: 16px;
}
.lcb-form { max-width: 680px; margin-top: 64px; }
.f-group { margin-bottom: 56px; }
.f-label {
  display: flex; gap: 16px; margin-bottom: 20px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.f-num { font-family: var(--font-mono); color: var(--muted); }
.f-input {
  width: 100%; background: none;
  border: none; border-bottom: 1px solid rgba(28,28,26,0.2);
  padding: 12px 0; font-size: 1rem; color: var(--charcoal);
  outline: none; transition: border-color 0.3s;
}
.f-input:focus { border-color: var(--charcoal); }
.f-input::placeholder { color: rgba(28,28,26,0.3); }
.f-textarea { resize: none; }
.f-radios { display: flex; gap: 32px; flex-wrap: wrap; }
.f-radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem; cursor: none;
}
.f-radio input { cursor: none; accent-color: var(--charcoal); }
.f-submit { margin-top: 64px; }
.btn-submit { width: 100%; text-align: center; padding: 20px; font-size: 0.8rem; }
.f-note {
  margin-top: 20px; font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.05em;
  text-align: center;
}
.form-success {
  padding: 48px; text-align: center;
  border: 1px solid rgba(45,74,45,0.3);
  background: rgba(45,74,45,0.03);
}
.form-success h3 {
  font-family: var(--font-serif); font-size: 2rem;
  font-weight: 300; margin-bottom: 12px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--charcoal); color: var(--cream);
  padding: 64px 80px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto auto; gap: 48px;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .logo-name {
  font-family: var(--font-serif); font-size: 1.1rem;
  font-weight: 300; letter-spacing: 0.1em;
}
.footer-loc { font-size: 0.72rem; color: rgba(245,240,232,0.4); letter-spacing: 0.1em; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(245,240,232,0.2); padding: 10px 18px;
  transition: all 0.3s; color: rgba(245,240,232,0.7);
  flex: 1 1 auto; text-align: center;
}
.social-btn:hover { border-color: var(--cream); color: var(--cream); }
.footer-links { display: flex; flex-direction: column; gap: 10px; text-align: right; }
.footer-links a { font-size: 0.75rem; color: rgba(245,240,232,0.4); letter-spacing: 0.08em; transition: color 0.2s; }
.footer-links a:hover { color: var(--cream); }
.footer-copy {
  grid-column: 1/-1; border-top: 1px solid rgba(245,240,232,0.08);
  padding-top: 24px; font-size: 0.7rem; color: rgba(245,240,232,0.25);
  letter-spacing: 0.08em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  #header { padding: 20px 24px; }
  #header.scrolled { padding: 14px 24px; }
  .hero-content { padding: 0 32px; }
  .hero-scroll { left: 32px; }
  .hero-meta { right: 32px; bottom: 32px; display: none; }
  .container { padding: 0 24px; }
  .s-manifesto, .s-residences, .s-infra, .s-filter, .s-form { padding: 100px 0; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .m-block { padding: 40px 24px; }
  .m-block:nth-child(odd) { border-right: none; }
  .pillars { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; padding: 48px 24px; }
  .included h3 { grid-column: 1; }
  .included-list { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr; }
  .infra-card { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { text-align: left; }
  .site-footer { padding: 48px 24px; }
  .nav-cta { display: none; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}
