/* ============================================ */
/* VILLA SOLEIL — SHARED STYLES                */
/* ============================================ */

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

:root {
  --bone: #F5F1EA;
  --cream: #EDE7DC;
  --sand: #E0D5C2;
  --gold: #A87E4F;
  --gold-deep: #8C6638;
  --terracotta: #C9856B;
  --ink: #1A1816;
  --ink-soft: #3A3633;
  --olive: #6B6B47;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bone);
  color: var(--ink);
  font-feature-settings: "ss01", "ss02";
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ===== Typography helpers ===== */
.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.18em; }
.tracking-widest { letter-spacing: 0.32em; }
.tracking-tight { letter-spacing: -0.04em; }

/* ===== Layout helpers ===== */
.container { padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

.section { padding: 96px 24px; }
@media (min-width: 768px) { .section { padding: 160px 48px; } }

.section-tight { padding: 64px 24px; }
@media (min-width: 768px) { .section-tight { padding: 96px 48px; } }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
@media (min-width: 768px) { .grid-12 { gap: 48px; } }

/* ===== Grain overlay ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

/* ===== Hero kinetic ===== */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(40px); letter-spacing: 0.06em; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: -0.04em; }
}
.hero-title {
  animation: heroRise 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in    { animation: fadeIn 1.4s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-2  { animation: fadeIn 1.4s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-in-3  { animation: fadeIn 1.4s 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ===== Marquee ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.marquee-track > div {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.marquee-track .dot { color: var(--gold); }

/* ===== Sun mark spin ===== */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow { animation: spinSlow 60s linear infinite; }

/* ===== Image hover effects ===== */
.img-card {
  position: relative;
  overflow: hidden;
}
.img-zoom {
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-card:hover .img-zoom { transform: scale(1.05); }
.img-card:hover .img-cap { opacity: 1; transform: translateY(0); }
.img-cap {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* ===== Links ===== */
.link-u {
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat;
  transition: background-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 100% 1px; }

/* ===== Button ===== */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-block;
  padding: 18px 36px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  background: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bone); }

.btn-light {
  border-color: var(--bone);
  color: var(--bone);
}
.btn-light::before { background: var(--bone); }
.btn-light:hover { color: var(--ink); }

/* ===== Form ===== */
input, textarea, select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 24, 22, 0.25);
  padding: 14px 0;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
textarea { resize: vertical; min-height: 80px; }

/* ===== WhatsApp float ===== */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 126, 79, 0.45); }
  50%      { box-shadow: 0 0 0 18px rgba(168, 126, 79, 0); }
}
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 80;
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  animation: pulse 2.4s ease-out infinite;
  transition: background-color 0.5s ease, transform 0.4s ease;
}
.wa-float:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
}
.wa-float svg { width: 26px; height: 26px; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }
::selection { background: var(--gold); color: var(--bone); }

/* ===== Number marker (editorial style) ===== */
.num-marker {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* ===== Decorative arch (mirrors villa motif!) ===== */
.arch-divider {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}
.arch-divider svg {
  width: 60px;
  height: 60px;
  color: var(--gold);
  opacity: 0.5;
}

/* ===== Hero overlay ===== */
.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(26, 24, 22, 0.30) 0%,
    rgba(26, 24, 22, 0.10) 40%,
    rgba(26, 24, 22, 0.65) 100%
  );
}

/* ===== Decorative thin line ===== */
.deco-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink) 20%, var(--ink) 80%, transparent);
  opacity: 0.2;
}

/* ============================================ */
/* HEADER / NAV                                 */
/* ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 24px;
  mix-blend-mode: difference;
  color: var(--bone);
}
@media (min-width: 768px) { .site-header { padding: 22px 48px; } }

.site-header.solid {
  mix-blend-mode: normal;
  background: var(--bone);
  color: var(--ink);
  border-bottom: 1px solid rgba(26,24,22,0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-mark svg { width: 24px; height: 24px; }

.nav-links {
  display: none;
  gap: 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a.active {
  background: linear-gradient(currentColor, currentColor) bottom left / 100% 1px no-repeat;
  padding-bottom: 2px;
}

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  padding: 10px 18px;
  transition: all 0.5s ease;
}
.nav-cta:hover { background: currentColor; color: var(--ink); }
.site-header.solid .nav-cta:hover { background: var(--ink); color: var(--bone); }

.menu-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.menu-toggle .lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle .lines span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--bone);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.mobile-menu .close {
  position: absolute;
  top: 22px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================ */
/* PAGE HERO (smaller than home hero)           */
/* ============================================ */
.page-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,24,22,0.20) 0%, rgba(26,24,22,0.55) 100%);
}
.page-hero .content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 64px;
  color: var(--bone);
}
@media (min-width: 768px) { .page-hero .content { padding: 0 48px 80px; } }
.page-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(48px, 9vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 72px 24px 32px;
}
@media (min-width: 768px) { .site-footer { padding: 96px 48px 32px; } }

.site-footer h4 {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 12px; }
.site-footer a, .site-footer li { font-size: 14px; font-weight: 300; }
.site-footer .tagline {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 320px;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================ */
/* GALLERY GRID                                 */
/* ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .gallery-grid { gap: 24px; } }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.gallery-item.tall img { aspect-ratio: 3/4; }
.gallery-item.square img { aspect-ratio: 1/1; }
.gallery-item.wide img { aspect-ratio: 16/9; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}
.lightbox .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--bone);
  font-size: 32px;
  font-family: 'Fraunces', serif;
  font-weight: 300;
  padding: 16px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox .nav-btn:hover { opacity: 1; }
.lightbox .prev { left: 16px; }
.lightbox .next { right: 16px; }

/* ============================================ */
/* SUITE CARDS (rooms page)                     */
/* ============================================ */
.suite {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 96px;
  align-items: center;
}
@media (min-width: 768px) {
  .suite {
    gap: 48px;
    margin-bottom: 160px;
  }
}
.suite:nth-child(even) .suite-img { order: 2; }
.suite-img {
  grid-column: span 12;
}
.suite-text {
  grid-column: span 12;
}
@media (min-width: 768px) {
  .suite-img { grid-column: span 7; }
  .suite-text { grid-column: span 4; grid-column-start: 9; }
  .suite:nth-child(even) .suite-text { grid-column-start: 2; }
}

/* Utility */
.text-bone { color: var(--bone); }
.text-ink { color: var(--ink); }
.text-gold { color: var(--gold); }
.text-soft { color: var(--ink-soft); }
.bg-bone { background: var(--bone); }
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); }
.bg-gold { background: var(--gold); }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
