/* ===== VILLA888 - Main Stylesheet ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Josefin+Sans:wght@100;200;300;400&display=swap');

:root {
  --gold: #b8a16a;
  --gold-light: #c9b47e;
  --cream: #f5f3ee;
  --warm-white: #faf9f6;
  --text-dark: #2a2a2a;
  --text-mid: #555;
  --text-light: #888;
  --sidebar-w: 240px;
  --footer-bg: #b5a876;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--cream);
  z-index: 100;
  padding: 36px 36px 36px 40px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(184,161,106,0.15);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 1.05rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 0;
}
.sidebar-logo span { font-weight: 400; }

.sidebar-nav { flex: 1; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav > ul > li { margin-bottom: 22px; }

.sidebar-nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: color 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: var(--gold); }

.sidebar-nav .sub-nav { list-style: none; padding-left: 20px; margin-top: 10px; }
.sidebar-nav .sub-nav li { margin-bottom: 10px; }
.sidebar-nav .sub-nav a { font-size: 0.55rem; letter-spacing: 0.18em; color: var(--text-mid); }
.sidebar-nav .sub-nav a:hover { color: var(--gold); }

.dropdown-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.55rem;
  transition: transform 0.3s;
  color: var(--text-mid);
}
.dropdown-open .dropdown-arrow { transform: rotate(180deg); }
.sub-nav { display: none; }
.dropdown-open .sub-nav { display: block; }

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.38) 100%);
}

.hero-content {
  position: absolute;
  bottom: 120px;
  left: 60px;
  right: 80px;
  color: #fff;
}

.hero-tagline {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}

.hero-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-title span { font-weight: 400; }

.hero-subtitle {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}
.hero-subtitle::after { content: ''; display: block; width: 120px; height: 1px; background: rgba(255,255,255,0.5); }

.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.3);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 16px 20px;
  z-index: 10;
  transition: color 0.2s, transform 0.2s;
}
.slider-btn:hover { color: #fff; transform: translateY(-50%) scale(1.1); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Mobile hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 20px; left: 20px;
  z-index: 200;
  background: rgba(245,243,238,0.9);
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-dark); transition: 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.overlay-mask {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 90;
}

/* ===== SECTION GENERIC ===== */
.section { padding: 80px 80px; }
.section-sm { padding: 60px 80px; }

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}
.section-title::before { content: ''; display: block; width: 40px; height: 1.5px; background: var(--text-dark); flex-shrink: 0; }

.body-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 600px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; max-width: 380px; }
.about-text-col { padding-top: 20px; }
.about-signature {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 30px;
  line-height: 1.8;
}

/* ===== WORKS SECTION ===== */
.works-section {
  padding: 60px 80px;
  background: var(--warm-white);
}
.works-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.works-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.works-img { width: 100%; max-width: 340px; margin-left: auto; }

/* ===== TESTIMONIALS ===== */
.testimonials-section { padding: 60px 80px 80px; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}
.testi-item blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.testi-item blockquote::before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 10px;
}
.testi-name {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* ===== GALLERY SLIDER ===== */
.gallery-section { padding: 40px 80px 80px; }
.gallery-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: 10px;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: none; color: #fff;
  width: 42px; height: 42px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: background 0.2s;
}
.gallery-btn:hover { background: rgba(0,0,0,0.55); }
.gallery-btn.prev { left: 0; }
.gallery-btn.next { right: 0; }

/* ===== AMENITIES ===== */
.amenities-section { padding: 40px 80px 70px; }
.amenity-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.amenities-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 30px;
}
.amenities-title::before { content: ''; display: block; width: 36px; height: 1.5px; background: var(--text-dark); }
.amenity-list { list-style: none; }
.amenity-list li {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.amenity-list li:first-child { border-top: 1px solid rgba(0,0,0,0.1); }

/* ===== LOCATION ===== */
.location-section { padding: 40px 80px 0; }
.location-address {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-top: 20px;
}
.location-phone {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-top: 12px;
}
.map-embed {
  width: 100%;
  height: 300px;
  margin-top: 30px;
  border: none;
  filter: grayscale(25%) sepia(15%);
}

/* ===== NEWS PAGE ===== */
.news-hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}
.news-hero img { width: 100%; height: 100%; object-fit: cover; }
.news-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.3);
}

.news-list-section { padding: 80px 80px; }
.news-section-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}
.news-section-title {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 50px;
}
.news-section-title::before { content: ''; display: block; width: 40px; height: 1.5px; background: var(--text-dark); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.news-card { cursor: pointer; }
.news-card-img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 20px; }
.news-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.news-card-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-mid);
}
.news-show-more {
  display: block;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-mid);
  padding: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.news-show-more:hover { color: var(--gold); }

/* NEWS DETAIL */
.news-detail-section { padding: 80px 120px; max-width: 760px; }
.news-detail-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.news-detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: var(--text-dark);
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 10px;
}
.news-detail-title::before { content: ''; display: inline-block; width: 40px; height: 1.5px; background: var(--text-dark); flex-shrink: 0; }
.news-detail-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 30px;
}
.news-detail-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
}

/* ===== CONTACT PAGE ===== */
.contact-content { padding: 80px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }
.contact-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 20px;
}
.contact-info {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.contact-info strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.form-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding: 12px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-light); }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 180px; }
.btn-submit {
  float: right;
  background: transparent;
  border: 1px solid var(--text-dark);
  padding: 10px 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-submit:hover { background: var(--text-dark); color: #fff; }

/* ===== VILLA PAGE HERO ===== */
.villa-page-hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}
.villa-page-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.villa-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.villa-hero-menu-icon {
  position: absolute; top: 28px; left: 28px;
  cursor: pointer; z-index: 5;
}
.villa-hero-menu-icon span {
  display: block; width: 22px; height: 1.5px;
  background: #fff; margin-bottom: 5px;
}

.villa-slider-section { position: relative; height: 50vh; overflow: hidden; }
.villa-slider-section .hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.villa-slider-caption {
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  text-align: center; color: #fff;
}
.villa-slider-caption p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
}

/* Villa about layout */
.villa-about { padding: 60px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.villa-about-text { }
.villa-about-img img { width: 100%; }

/* ===== FOOTER ===== */
footer {
  background: var(--footer-bg);
  padding: 30px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
}
.footer-social svg { width: 20px; height: 20px; fill: rgba(255,255,255,0.9); }
.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  text-align: right;
  line-height: 1.7;
}

/* ===== PAGE TRANSITIONS ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
    z-index: 150;
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .overlay-mask.show { display: block; }
  .main-content { margin-left: 0; }

  .section, .section-sm { padding: 50px 28px; }
  .works-section, .testimonials-section, .gallery-section,
  .amenities-section, .location-section, .news-list-section { padding: 40px 28px; }

  .hero-content { left: 28px; right: 28px; bottom: 80px; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-subtitle::after { width: 60px; }

  .about-grid, .works-inner { grid-template-columns: 1fr; gap: 36px; }
  .testi-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-grid { grid-template-columns: 1fr; gap: 36px; }

  .villa-about { grid-template-columns: 1fr; padding: 40px 28px; }
  .contact-content { grid-template-columns: 1fr; padding: 40px 28px; gap: 40px; }
  .news-detail-section { padding: 50px 28px; }
  .contact-form .form-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 16px; padding: 24px 28px; text-align: center; }
  .footer-copy { text-align: center; }

  .gallery-slider { height: 250px; }
  .villa-slider-section { height: 40vh; }
  .villa-page-hero { height: 40vh; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; letter-spacing: 0.12em; }
  .section-title { font-size: 1rem; }
  .hero-content { bottom: 60px; }
}
