/*
Theme Name: Casa Chanty
Description: Luxury beach villa — Cormorant typography, clean design
Version: 3.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500&display=swap');

:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --navy: #0D1B2A;
  --navy-light: #152A40;
  --sand: #D4C5B9;
  --cream: #F5F0EB;
  --gold: #C9A96E;
  --gold-light: #DBC594;
  --teal: #1B4965;
  --white: #FFFFFF;
  --gray: #6B7280;
  --header-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1A1A1A;
  background: var(--white);
  overflow-x: hidden;
}
a { color: var(--teal); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
/* Only hide images for the JS fade-in when JS is present (html.js set in
   header.php). Without this guard, no-JS visitors see invisible images. */
html.js img { opacity: 0; }
html.js img.img-loaded { opacity: 1; transition: opacity .6s ease; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; }
h4 { font-size: 1rem; font-weight: 500; }

.eyebrow { font-family: var(--font-body); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .75rem; }
.lead { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-style: italic; font-weight: 300; color: var(--gray); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 840px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-fade-up { animation: fadeUp .8s ease-out both; }
.anim-delay-1 { animation-delay: .15s; }
.anim-delay-2 { animation-delay: .3s; }
.anim-delay-3 { animation-delay: .45s; }
.anim-delay-4 { animation-delay: .6s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  background: transparent;
  transition: all .4s ease;
}
.site-header.scrolled {
  background: rgba(245,240,235,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  height: 70px;
}
.site-branding {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .02em;
  transition: color .4s;
}
.scrolled .site-branding { color: var(--navy); }
.site-branding span {
  display: block;
  font-family: var(--font-body);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .65;
}
.main-nav ul { display: flex; list-style: none; gap: .1rem; }
.main-nav a {
  padding: .45rem .9rem;
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: color .3s;
}
.scrolled .main-nav a { color: var(--navy); }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; position: relative; z-index: 1002; }
.scrolled .menu-toggle { color: var(--navy); }

/* Hero */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.active img { animation: heroZoom 8s ease forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0,0,0,.66);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; padding: 0 2rem; }
.hero-content h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); margin-bottom: .75rem; }
.hero-content .lead { color: rgba(255,255,255,.8); margin-bottom: 2.5rem; }
.hero-cta {
  display: inline-block; padding: .9rem 2.2rem;
  background: var(--gold); color: #fff !important;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  transition: all .35s ease;
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(201,169,110,.25); }
.hero-cta-alt {
  display: inline-block; margin-left: .75rem;
  padding: .9rem 2.2rem;
  color: #fff !important;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35);
  transition: all .35s ease;
}
.hero-cta-alt:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-dots { position: absolute; bottom: 2rem; right: 2.5rem; z-index: 2; display: flex; gap: .5rem; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); border: none; cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--gold); transform: scale(1.4); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.5);
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
}

/* Swipe hint for accommodation carousels */
.hero-swipe-hint {
  font-family: var(--font-body); font-size: .65rem; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-top: 1rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:.7} }

/* Intro fade-out on first swipe */
.hero-accommodation.swiped .hero-overlay { background: rgba(0,0,0,.25); transition: background 1s ease; }
.hero-accommodation.swiped .hero-content-intro { opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.hero-accommodation.swiped .hero-swipe-hint { display: none; }

/* Sections */
.section { padding: 7rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead { color: rgba(255,255,255,.55); }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-header h2 { margin-bottom: .6rem; }
.section-header .lead { max-width: 600px; margin: 0 auto; }
.divider { width: 40px; height: 1px; background: var(--gold); margin: 1.25rem auto; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 480px; object-fit: cover; }
.intro-image::after {
  content: ''; position: absolute; top: 1.25rem; left: 1.25rem;
  right: -1.25rem; bottom: -1.25rem;
  border: 1px solid var(--gold); z-index: -1;
}
.intro-text h2 { margin-bottom: 1rem; }
.intro-text p { margin-bottom: 1.25rem; line-height: 1.85; }
.intro-text p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.6;
}

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid rgba(0,0,0,.06); }
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 300; color: var(--gold); line-height: 1; }
.stat-label { font-family: var(--font-body); font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); margin-top: .35rem; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
.card { background: #fff; overflow: hidden; transition: transform .4s ease, box-shadow .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.card-img { position: relative; overflow: hidden; height: 380px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-badge { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 1; font-family: var(--font-body); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--gold); color: #fff; padding: .35rem .85rem; }
.card-body { padding: 1.75rem; }
.card-body h3 { font-size: 1.5rem; margin-bottom: .15rem; }
.card-body .guests { font-family: var(--font-display); font-size: .95rem; font-style: italic; color: var(--gold); margin-bottom: .65rem; }
.card-body p { font-size: .92rem; color: var(--gray); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem; font-size: .65rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--navy); transition: gap .3s, color .3s; }
.card-link:hover { gap: .65rem; color: var(--gold); }
.card-link::after { content: "\2192"; transition: transform .3s; }
.card-link:hover::after { transform: translateX(3px); }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem 2rem; }
.amenity-item { text-align: center; }
.amenity-marker { width: 24px; height: 1px; background: var(--gold); margin: 0 auto 1.15rem; }
.amenity-item h4 { font-size: .9rem; margin-bottom: .25rem; }
.amenity-item p { font-size: .82rem; color: var(--gray); max-width: 200px; margin: 0 auto; }

/* Testimonial */
.testimonial-card { max-width: 680px; margin: 0 auto; text-align: center; }
.testimonial-card blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 300; font-style: italic; line-height: 1.5; color: #fff; border: none; padding: 0; }
.testimonial-card cite { display: block; margin-top: 1.75rem; font-size: .65rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; font-style: normal; color: var(--gold); }

/* CTA */
.cta-banner { position: relative; padding: 7rem 0; text-align: center; background: var(--navy); overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(201,169,110,.06) 0%, transparent 70%); }
.cta-banner h2, .cta-banner p { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.55); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2.5rem; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.45); padding: 5rem 0 2.5rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.45); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.75rem; text-align: center; font-size: .78rem; }

/* Page template */
.page-hero { padding: calc(var(--header-h) + 4rem) 0 3rem; background: var(--navy); text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.5rem); }
.page-content { max-width: 780px; margin: 0 auto; padding: 4rem 2rem 6rem; }
.page-content h2 { margin: 2.5rem 0 1rem; }
.page-content h3 { margin: 1.75rem 0 .75rem; }
.page-content p { margin-bottom: 1.1rem; line-height: 1.85; }
.page-content ul, .page-content ol { margin: .75rem 0 1.5rem 1.5rem; line-height: 1.9; }
.page-content hr { border: none; border-top: 1px solid rgba(0,0,0,.05); margin: 2.5rem 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.page-content th, .page-content td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,.06); }
.page-content th { font-weight: 500; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.8rem; font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; transition: all .3s ease; cursor: pointer; text-align: center; }
.btn-gold { background: var(--gold); color: #fff; border: none; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Why Choose Us */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.why-item h3 { color: var(--gold-light); font-size: 1.25rem; margin-bottom: .75rem; }
.why-item p { color: rgba(255,255,255,.6); line-height: 1.75; font-size: .92rem; }
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 2; padding-left: 1.25rem; position: relative; }
.why-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.why-list a { color: var(--gold-light); }
.why-list a:hover { color: var(--gold); }

/* Personalized Services */
.services-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-detail-card { background: #fff; padding: 2rem; }
.service-detail-card h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin-bottom: .75rem; color: var(--navy); }
.service-detail-card p { font-size: .88rem; color: var(--gray); line-height: 1.7; margin-bottom: .5rem; }
.service-price { font-family: var(--font-display); font-size: 1.1rem !important; font-style: italic; color: var(--gold) !important; font-weight: 500; margin-top: .75rem; }

/* Location */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.location-item { text-align: center; padding: 2rem 1rem; background: var(--cream); }
.location-time { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: .5rem; }
.location-label { font-size: .78rem; color: var(--navy); font-weight: 500; line-height: 1.4; }

/* Activities */
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.activity-item { background: #fff; padding: 1.5rem; text-align: center; }
.activity-item h4 { font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: .25rem; }
.activity-item p { font-size: .82rem; color: var(--gray); }

/* Newsletter */
.newsletter-box { text-align: center; max-width: 520px; margin: 0 auto; padding: 3rem 2rem; }
.newsletter-box h2 { margin-bottom: .75rem; }
.newsletter-box p { color: var(--gray); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto; }
.newsletter-form input[type="email"] { flex: 1; padding: .85rem 1rem; border: 1px solid rgba(0,0,0,.1); font-family: var(--font-body); font-size: .9rem; background: #fff; }
.newsletter-form button { flex-shrink: 0; }

/* Footer social */
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.footer-social a:hover { color: var(--gold-light); }
.footer-col address { font-style: normal; line-height: 1.7; margin: 0; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; }
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s ease; }
.gallery-grid img:hover { transform: scale(1.03); }

/* Responsive */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro-image::after { display: none; }
  .intro-image img { height: 350px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero-content h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .section { padding: 4rem 0; }
  .cards-grid, .cards-grid-2 { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .menu-toggle.open { position: fixed; right: 2.5rem; top: 1.5rem; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-cta-alt { margin-left: 0; margin-top: .75rem; display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .hero-cta { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 1.25rem; }
  .amenities-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .main-nav { display: block !important; }
}

/* ----------------------------------------------------------------- */
/* Journal                                                            */
/* ----------------------------------------------------------------- */
.journal-grid { margin-top: 1rem; }
.journal-card .card-body h3 { margin-top: 0; }
.journal-card .card-body h3 a { color: var(--navy); }
.journal-card .card-body h3 a:hover { color: var(--gold); }
.journal-card .eyebrow { margin-bottom: .5rem; }

/* Text-only journal cards (no featured image) get extra breathing room */
.journal-card--text-only { padding: 1rem 0; }
.journal-card--text-only .card-body { padding: 1.75rem 2rem; }
.journal-card--text-only .card-body p { margin-bottom: 1.25rem; }

.journal-pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; align-items: center; margin: 3rem 0 0; padding: 0; }
.journal-pagination > * { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem; font-family: var(--font-body); font-size: .85rem; color: var(--navy); border: 1px solid rgba(0,0,0,.08); text-decoration: none; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.journal-pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.journal-pagination .current,
.journal-pagination span.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.journal-pagination .dots { border: none; background: transparent; }

.journal-empty { text-align: center; color: var(--gray); padding: 3rem 0; font-style: italic; }

/* Single post */
.single-post-hero { margin: 0 0 2.5rem; }
.single-post-hero img { width: 100%; height: auto; display: block; border-radius: 4px; }
.journal-back { text-align: center; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.05); }
.journal-back .card-link::after { content: none; }

/* Journal entry — text-only list style (no card background, no image) */
.journal-entry { padding: 0; }
.journal-entry h3 { margin: .25rem 0 .65rem; font-size: 1.35rem; }
.journal-entry h3 a { color: var(--navy); transition: color .25s; }
.journal-entry h3 a:hover { color: var(--gold); }
.journal-entry p { color: var(--gray); line-height: 1.65; margin: 0; }
.journal-entry .eyebrow { margin: 0 0 .35rem; }
