/*
Theme Name: JCRC Bali Villas
Theme URI: https://jcrcbalivillas.com
Author: JCRC
Description: Boutique Bali villa booking theme with Elementor support, iCal integration, and elegant tropical design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jcrc-bali
*/

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --jcrc-gold: #c8a96e;
  --jcrc-gold-light: #e2c992;
  --jcrc-dark: #1a1a2e;
  --jcrc-darker: #12121f;
  --jcrc-card: #222240;
  --jcrc-text: #d4d4d4;
  --jcrc-white: #ffffff;
  --jcrc-radius: 14px;
  --jcrc-shadow: 0 8px 32px rgba(0,0,0,.45);
  --jcrc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --jcrc-font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--jcrc-font);
  background: var(--jcrc-dark);
  color: var(--jcrc-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--jcrc-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--jcrc-gold-light); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ── Hero Section ─────────────────────────── */
.jcrc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(26,26,46,.6) 0%, rgba(26,26,46,.85) 100%),
              url('assets/images/hero-bg.jpg') center/cover no-repeat;
  padding: 60px 20px;
}

.jcrc-hero__brand {
  font-family: var(--jcrc-font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--jcrc-gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.jcrc-hero__tagline {
  font-size: 1.05rem;
  color: var(--jcrc-text);
  opacity: .85;
  margin-bottom: 32px;
}

.jcrc-hero__rating {
  font-size: 1.6rem;
  color: var(--jcrc-gold);
  margin-bottom: 12px;
}

.jcrc-hero__villa-name {
  font-family: var(--jcrc-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--jcrc-white);
  margin-bottom: 28px;
}

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
}

.btn--gold {
  background: var(--jcrc-gold);
  color: var(--jcrc-dark);
}
.btn--gold:hover {
  background: var(--jcrc-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,169,110,.35);
}

.btn--outline {
  background: transparent;
  color: var(--jcrc-gold);
  border: 2px solid var(--jcrc-gold);
}
.btn--outline:hover {
  background: var(--jcrc-gold);
  color: var(--jcrc-dark);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Property Detail Section ──────────────── */
.jcrc-detail {
  padding: 80px 0;
}

.jcrc-detail__title {
  font-family: var(--jcrc-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--jcrc-white);
  margin-bottom: 16px;
}

.jcrc-detail__desc {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ── Amenities Grid ───────────────────────── */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.amenity {
  background: var(--jcrc-card);
  border-radius: var(--jcrc-radius);
  padding: 20px 16px;
  text-align: center;
  font-size: .92rem;
  color: var(--jcrc-text);
  transition: transform .2s, box-shadow .2s;
}

.amenity:hover {
  transform: translateY(-3px);
  box-shadow: var(--jcrc-shadow);
}

.amenity__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}


/* ── Gallery Section ──────────────────────── */
.jcrc-gallery {
  padding: 80px 0;
  background: var(--jcrc-darker);
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading__title {
  font-family: var(--jcrc-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--jcrc-white);
  margin-bottom: 8px;
}

.section-heading__sub {
  color: var(--jcrc-text);
  opacity: .7;
  font-size: .95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--jcrc-radius);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--jcrc-shadow);
}

/* ── Lightbox ─────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

/* ── Villa Cards Section ──────────────────── */
.jcrc-villas {
  padding: 80px 0;
}

.villa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.villa-card {
  background: var(--jcrc-card);
  border-radius: var(--jcrc-radius);
  overflow: hidden;
  box-shadow: var(--jcrc-shadow);
  transition: transform .25s;
}

.villa-card:hover {
  transform: translateY(-4px);
}

.villa-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.villa-card__body {
  padding: 28px 24px;
}

.villa-card__name {
  font-family: var(--jcrc-font-display);
  font-size: 1.3rem;
  color: var(--jcrc-white);
  margin-bottom: 6px;
}

.villa-card__tagline {
  font-size: .9rem;
  color: var(--jcrc-gold);
  margin-bottom: 16px;
}

.villa-card__features {
  list-style: none;
  margin-bottom: 24px;
}

.villa-card__features li {
  padding: 4px 0;
  font-size: .9rem;
  color: var(--jcrc-text);
}

.villa-card__features li::before {
  content: '✓ ';
  color: var(--jcrc-gold);
  font-weight: 700;
}

/* ── Setup Notes ──────────────────────────── */
.jcrc-notes {
  padding: 60px 0;
  background: var(--jcrc-darker);
}

.jcrc-notes__title {
  font-family: var(--jcrc-font-display);
  font-size: 1.4rem;
  color: var(--jcrc-white);
  margin-bottom: 20px;
}

.jcrc-notes ol {
  padding-left: 24px;
}

.jcrc-notes li {
  margin-bottom: 12px;
  font-size: .95rem;
}

/* ── Footer ───────────────────────────────── */
.jcrc-footer {
  text-align: center;
  padding: 32px 20px;
  font-size: .85rem;
  color: var(--jcrc-text);
  opacity: .6;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .villa-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .btn { padding: 12px 28px; font-size: .9rem; }
}

@media (max-width: 480px) {
  .amenities { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
}
