/*
Theme Name: Residence Villa Awaji Mare (EN)
Theme URI: https://rv-awajimare.com/
Author: MARINETOPIA RESORT
Description: English-language site for Residence Villa Awaji Mare & Annex, a one-group-per-day private villa on Awaji Island. Minimal editorial design for an international ultra-luxury audience.
Version: 1.0.0
Text Domain: rv-awaji-mare-en
*/

/* ==========================================================================
   0. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-weight: 400; }
p { margin: 0; }

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --ink: #17170f;
  --ink-soft: #2b2a22;
  --paper: #f7f4ec;
  --paper-deep: #efeade;
  --line: #ddd7c6;
  --gold: #a3854f;
  --gold-deep: #8a6d3b;
  --muted: #7a7869;
  --white: #ffffff;
  --max: 1240px;
}

.eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: #d8c393; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
@media screen and (max-width: 767px) { .container { padding: 0 24px; } }

.section { padding: 130px 0; }
.section.tight { padding: 90px 0; }
.section.bg-deep { background: var(--paper-deep); }
.section.bg-ink { background: var(--ink); color: #efeade; }
.section.bg-ink .eyebrow { color: #d8c393; }
@media screen and (max-width: 767px) {
  .section { padding: 80px 0; }
  .section.tight { padding: 56px 0; }
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.section-head h2 { font-size: 40px; letter-spacing: 0.02em; margin-bottom: 20px; }
.section-head p { color: var(--muted); font-size: 18px; }
@media screen and (max-width: 767px) {
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: 30px; }
}

.btn-line {
  display: inline-block;
  padding: 16px 46px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease;
}
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line.on-dark { border-color: #d8c393; color: #efeade; }
.btn-line.on-dark:hover { background: #d8c393; color: var(--ink); }
.btn-line.gold { border-color: var(--gold); color: var(--gold-deep); }
.btn-line.gold:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* ==========================================================================
   2. Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  transition: background .4s ease, padding .4s ease;
}
.site-header.is-scrolled {
  background: rgba(23,23,15,0.92);
  padding: 16px 48px;
  backdrop-filter: blur(6px);
}
.site-header .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
}
.site-header .brand span { display: block; font-size: 10px; letter-spacing: 0.3em; color: #d8c393; margin-top: 2px; font-family: 'Jost', sans-serif; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efeade;
  opacity: .85;
}
.nav-links a:hover { opacity: 1; }
.nav-links .nav-book {
  border: 1px solid #d8c393;
  color: #d8c393;
  padding: 10px 24px;
  opacity: 1;
}
.nav-links .nav-book:hover { background: #d8c393; color: var(--ink); }

/* Room dropdown (desktop) */
.nav-item { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.nav-item .nav-parent {
  background: none;
  border: none;
  padding: 0;
  font-family: 'Jost', sans-serif;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efeade;
  opacity: .85;
  cursor: pointer;
}
.nav-item:hover .nav-parent,
.nav-item:focus-within .nav-parent { opacity: 1; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(23,23,15,0.96);
  padding: 16px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #efeade;
  opacity: .8;
}
.nav-dropdown a:hover { opacity: 1; color: #d8c393; }

.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.1em; margin-left: 4px; }
.lang-switch .is-current { color: #d8c393; opacity: 1; }
.lang-switch .sep { color: rgba(239,234,222,.4); }
.lang-switch a { opacity: .8; }
.lang-switch a:hover { opacity: 1; }

.lang-switch-mobile { margin-top: 10px; font-size: 13px !important; color: #d8c393 !important; border: 1px solid rgba(216,195,147,.5); padding: 8px 20px; }

.nav-toggle { display: none; }

/* Hidden by default at all widths; the mobile media query below is the only
   place that ever reveals it, sliding it in via .is-open. Without this base
   rule the drawer renders as a plain, unstyled block at the top of the page
   on desktop widths. */
.nav-drawer { display: none; }

@media screen and (max-width: 980px) {
  .site-header { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    width: 28px; height: 18px;
    position: relative;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: #fff;
  }
  .nav-toggle::before { top: 0; }
  .nav-toggle span { top: 8px; }
  .nav-toggle::after { top: 16px; }

  .nav-drawer {
    position: fixed; inset: 0;
    background: var(--ink);
    z-index: 600;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 28px;
    transform: translateY(-100%);
    transition: transform .5s ease;
  }
  .nav-drawer.is-open { transform: translateY(0); }
  .nav-drawer a { font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: #efeade; }
  .nav-drawer-heading { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #83816f; margin-top: 6px; }
  .nav-drawer a.nav-drawer-sub { font-size: 14px; opacity: .85; margin-top: -8px; }
  .nav-drawer .close { position: absolute; top: 26px; right: 24px; background: none; border: none; color: #efeade; font-size: 26px; cursor: pointer; }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,10,.35) 0%, rgba(15,15,10,.15) 40%, rgba(15,15,10,.75) 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 48px 90px; }
.hero-content .eyebrow { color: #d8c393; }
.hero-content h1 {
  font-size: 64px;
  line-height: 1.15;
  max-width: 820px;
  letter-spacing: 0.01em;
}
.hero-content .lede { max-width: 520px; margin-top: 22px; font-size: 17px; color: #ded9c8; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 48px; z-index: 2;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #d8c393;
}
@media screen and (max-width: 767px) {
  .hero-content { padding: 0 24px 60px; }
  .hero-content h1 { font-size: 36px; }
  .hero-scroll { left: 24px; }
}

.sub-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.sub-hero-media { position: absolute; inset: 0; }
.sub-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero::after { content: ''; position: absolute; inset: 0; background: rgba(15,15,10,.42); }
.sub-hero-content { position: relative; z-index: 2; }
.sub-hero-content h1 { font-size: 46px; }
.sub-hero-content .eyebrow { color: #d8c393; }
.breadcrumb { position: relative; z-index: 2; margin-top: 14px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #ded9c8; }
.breadcrumb a { color: #ded9c8; border-bottom: 1px solid rgba(255,255,255,.35); }

/* ==========================================================================
   4. Split feature rows
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.split.reverse .split-media { order: 2; }
.split-media { padding: 0 60px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; border-radius: 2px; }
.split-text { padding: 0 90px; }
.split-text .eyebrow { }
.split-text h2 { font-size: 34px; margin-bottom: 22px; }
.split-text p { color: var(--muted); margin-bottom: 26px; }
.split-text .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.split-text .facts span {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 7px 14px; color: var(--ink-soft);
}
@media screen and (max-width: 980px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { padding: 0; }
  .split-text { padding: 56px 24px 0; }
  .split-media img { aspect-ratio: 4/3; }
}

/* ==========================================================================
   5. Cards (grid features / stay / meals)
   ========================================================================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}
.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper);
  position: relative;
  display: block;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 34px 30px; }
.card-body .eyebrow { margin-bottom: 10px; }
.card-body h3 { font-size: 23px; margin-bottom: 14px; }
.card-body p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.card-body .more { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
@media screen and (max-width: 980px) {
  .grid-cards, .grid-cards.cols-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. Stay scenario cards (front + stay index)
   ========================================================================== */
.stay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.stay-card { position: relative; display: block; overflow: hidden; }
.stay-card-media { aspect-ratio: 5/4; overflow: hidden; }
.stay-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.stay-card:hover .stay-card-media img { transform: scale(1.06); }
.stay-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,10,0) 40%, rgba(15,15,10,.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  color: #fff;
}
.stay-card-overlay .eyebrow { color: #d8c393; margin-bottom: 8px; }
.stay-card-overlay h3 { font-size: 24px; margin-bottom: 10px; }
.stay-card-overlay .more { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid #d8c393; padding-bottom: 3px; color: #d8c393; display: inline-block; }
@media screen and (max-width: 980px) {
  .stay-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Facility table
   ========================================================================== */
.fact-table { width: 100%; border-collapse: collapse; max-width: 880px; margin: 0 auto; }
.fact-table th, .fact-table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 300; }
.fact-table th { width: 30%; color: var(--muted); letter-spacing: 0.04em; }
.fact-table td { color: var(--ink-soft); }
@media screen and (max-width: 767px) {
  .fact-table th, .fact-table td { display: block; width: 100%; padding: 6px 0; }
  .fact-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .fact-table th, .fact-table td { border-bottom: none; }
}

/* ==========================================================================
   8. Amenity chip list
   ========================================================================== */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.chip-list span {
  font-size: 12px; letter-spacing: 0.05em;
  border: 1px solid var(--line); padding: 9px 18px; color: var(--ink-soft);
}

/* ==========================================================================
   9. FAQ accordion
   ========================================================================== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 4px; cursor: pointer; font-size: 17px;
  font-family: 'Cormorant Garamond', serif;
}
.faq-q::after { content: '+'; font-size: 22px; color: var(--gold-deep); transition: transform .3s ease; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; color: var(--muted); font-size: 16px; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 26px; }

/* ==========================================================================
   9b. Spot list (Sight Seeing)
   ========================================================================== */
.spot-list { max-width: 920px; margin: 0 auto; }
.spot-item { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; padding: 30px 4px; border-bottom: 1px solid var(--line); }
.spot-thumb { width: 200px; height: 140px; overflow: hidden; border-radius: 2px; background: var(--paper-deep); flex-shrink: 0; }
.spot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-item .num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: 0.1em; color: var(--gold-deep); margin-bottom: 6px; }
.spot-item h3 { font-size: 20px; margin-bottom: 10px; }
.spot-item p { color: var(--muted); font-size: 16px; }
@media screen and (max-width: 767px) {
  .spot-item { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .spot-thumb { width: 100%; height: 200px; }
}

/* ==========================================================================
   9c. Photo gallery (8 + "More")
   ========================================================================== */
.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.photo-item { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.photo-item:hover img { transform: scale(1.06); }
.photo-item.is-hidden { display: none; }
.gallery-more-wrap { text-align: center; margin-top: 40px; }

.gallery-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,15,10,.92);
  z-index: 9999;
  align-items: center; justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.gallery-lightbox.is-active { display: flex; }
.gallery-lightbox img { max-width: 100%; max-height: 90vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gallery-lightbox-close { position: absolute; top: 24px; right: 30px; color: #efeade; font-size: 34px; line-height: 1; cursor: pointer; }

@media screen and (max-width: 980px) {
  .photo-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 600px) {
  .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ==========================================================================
   10. CTA band
   ========================================================================== */
.cta-band {
  background: var(--ink);
  color: #efeade;
  text-align: center;
  padding: 110px 40px;
}
.cta-band .eyebrow { color: #d8c393; }
.cta-band h2 { font-size: 40px; max-width: 760px; margin: 0 auto 26px; }
.cta-band p { color: #ded9c8; max-width: 560px; margin: 0 auto 40px; }
@media screen and (max-width: 767px) {
  .cta-band { padding: 70px 24px; }
  .cta-band h2 { font-size: 28px; }
}

/* ==========================================================================
   11. Map / access
   ========================================================================== */
.map-frame iframe { width: 100%; height: 460px; border: 0; display: block; }
.access-info { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.access-info p { color: var(--muted); margin-bottom: 6px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #ded9c8; }
.footer-top {
  padding: 90px 40px 70px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.footer-brand .brand { font-family: 'Cormorant Garamond', serif; font-size: 24px; letter-spacing: 0.12em; color: #fff; text-transform: uppercase; margin-bottom: 18px; }
.footer-brand p { color: #a9a691; font-size: 13.5px; margin-bottom: 6px; }
.footer-col h4 { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #d8c393; margin-bottom: 22px; font-weight: 400; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a { font-size: 13.5px; color: #ded9c8; }
.footer-col a:hover { color: #d8c393; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #83816f;
}
@media screen and (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; padding: 64px 24px 40px; gap: 40px; }
}

/* ==========================================================================
   13. Reveal-on-scroll (progressive enhancement)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
