/* =============================================
   VIPA SEAVIEW VILLA — styles.css
   Matching Thai Estate Group luxury language
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:     #FFFFFF;
  --cream:     #F7F4EE;
  --parchment: #EDE8DC;
  --champagne: #D9D0BF;
  --char:      #1A1814;
  --char-90:   #22201C;
  --char-80:   #2E2B26;
  --char-60:   #4E4A44;
  --char-40:   #7A756E;
  --char-20:   #B0AAA1;
  --gold:      #C49550;
  --gold-lt:   #D9B070;
  --gold-dk:   #9A7338;
  --wa-green:  #25D366;
  --wa-dark:   #128C7E;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', 'Helvetica Neue', sans-serif;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--char);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--white); }

/* Language bar */
.lang-bar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  gap: .35rem;
  background: rgba(26,24,20,.75);
  backdrop-filter: blur(8px);
  padding: .35rem .4rem;
  border-radius: 40px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--char-20);
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .04em;
  padding: .35rem .55rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--gold);
  color: var(--white);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: var(--wa-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

/* Shared */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.eyebrow {
  display: block;
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-lt); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  color: var(--char);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.section-title em { font-style: italic; color: var(--gold-dk); font-weight: 400; }
.section-title--light { color: var(--cream); }
.section-title--light em { color: var(--gold-lt); }

.section-body {
  font-size: 1.05rem;
  color: var(--char-40);
  max-width: 640px;
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border-radius: 2px;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--cream {
  background: var(--cream);
  color: var(--char);
}
.btn--cream:hover { background: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247,244,238,.4);
}
.btn--ghost:hover { border-color: var(--cream); background: rgba(255,255,255,.08); }
.btn--dark {
  background: var(--char);
  color: var(--cream);
}
.btn--dark:hover { background: var(--char-80); }
.btn--lg { padding: 1.1rem 2.4rem; font-size: .85rem; }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,24,20,.82) 0%, rgba(26,24,20,.35) 45%, rgba(26,24,20,.2) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 4.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--champagne);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* SPECS */
.specs {
  background: var(--char);
  color: var(--cream);
  padding: 1.75rem 0;
}
.specs__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.spec {
  text-align: center;
  min-width: 80px;
}
.spec strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold-lt);
  line-height: 1.2;
}
.spec span {
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--char-20);
}

/* INTRO */
.intro { padding-top: 5.5rem; }

/* FEATURES */
.features { background: var(--parchment); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
  margin-top: 3rem;
}
.feature {
  background: var(--cream);
  padding: 1.8rem 1.6rem;
  border-radius: 2px;
}
.feature__num {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: .7rem;
  letter-spacing: .05em;
}
.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: .6rem;
  color: var(--char);
}
.feature p {
  font-size: .92rem;
  color: var(--char-40);
  line-height: 1.65;
}

/* GALLERY */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
  padding: 0 1rem;
  max-width: 1400px;
  margin: 2.5rem auto 0;
}
.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}
.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery__item img {
  transition: transform .7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.04); }

/* LOCATION */
.location__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.loc-item {
  background: var(--white);
  padding: 1.4rem 1.2rem;
  text-align: center;
  border-radius: 2px;
  border: 1px solid var(--champagne);
}
.loc-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--gold-dk);
  margin-bottom: .3rem;
}
.loc-item span {
  font-size: .82rem;
  color: var(--char-40);
}

/* REVIEWS */
.reviews { background: var(--parchment); }
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}
.review {
  background: var(--cream);
  padding: 1.8rem 1.6rem;
  border-radius: 2px;
  border-left: 3px solid var(--gold);
}
.review p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--char-80);
  margin-bottom: 1rem;
}
.review cite {
  font-style: normal;
  font-size: .8rem;
  color: var(--char-40);
  letter-spacing: .04em;
}
.reviews__note {
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--char-40);
  text-align: center;
}

/* CTA */
.cta {
  background: var(--char);
  text-align: center;
  padding: 5.5rem 0;
}
.cta__body {
  color: var(--char-20);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* FOOTER */
.footer {
  background: var(--char-90);
  color: var(--char-20);
  text-align: center;
  padding: 2.8rem 1.5rem;
  font-size: .85rem;
}
.footer__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: .4rem;
}
.footer__addr { margin-bottom: .5rem; }
.footer__wa {
  color: var(--gold-lt);
  display: inline-block;
  margin-bottom: 1.2rem;
  letter-spacing: .04em;
}
.footer__wa:hover { color: var(--gold); }
.footer__note {
  font-size: .75rem;
  opacity: .6;
  letter-spacing: .06em;
}

/* RTL support for Arabic */
[dir="rtl"] .hero__content,
[dir="rtl"] .container,
[dir="rtl"] .section-body,
[dir="rtl"] .feature,
[dir="rtl"] .review {
  text-align: right;
}
[dir="rtl"] .lang-bar { left: 1rem; right: auto; }
[dir="rtl"] .wa-float { left: 1.5rem; right: auto; }
[dir="rtl"] .review { border-left: none; border-right: 3px solid var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/10;
  }
  .specs__inner { justify-content: center; gap: 1.8rem 2.5rem; }
  .hero { min-height: 560px; }
  .hero__content { padding-bottom: 3.5rem; }
}

@media (max-width: 560px) {
  .lang-bar { top: .7rem; right: .7rem; }
  .lang-btn { padding: .3rem .45rem; font-size: .65rem; }
  .section { padding: 3.8rem 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; max-width: 280px; }
  .gallery__grid { gap: .4rem; padding: 0 .5rem; }
  .wa-float { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; }
}
