/* ===== Villa GREG – PHP responsive ===== */
:root {
  --bg: #f6f1ea;
  --bg2: #fff;
  --bg3: #efe7dc;
  --text: #2c2824;
  --muted: #6b635a;
  --accent: #c67b5c;
  --accent-d: #a35f45;
  --sea: #1e4a56;
  --radius: 14px;
  --header: 64px;
  --shadow: 0 8px 30px rgba(44,40,36,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}
.narrow { width: min(620px, calc(100% - 2rem)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: 0.2s;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-book {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header);
  background: rgba(246,241,234,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198,123,92,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo.light { color: #fff; }
.logo.light span { color: #e8a88a; }

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  top: var(--header);
  left: 0; right: 0;
  background: var(--bg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  box-shadow: var(--shadow);
}
.nav.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: calc(var(--header) + 2rem) 1rem 3rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: #3a4a52 url('../img/placeholder-1.svg') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,40,48,0.4), rgba(30,40,48,0.72));
}
.hero-content { position: relative; z-index: 1; max-width: 34rem; }
.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-bottom: 0.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  margin-bottom: 0.9rem;
}
.hero-text {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg2); }
.section-warm { background: linear-gradient(180deg, var(--bg), var(--bg3)); }

.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}
.label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
}
.section-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}
.check-list {
  list-style: none;
  margin-top: 1.25rem;
}
.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.45rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #ddd;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.gallery-item {
  border: none;
  padding: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  background: #ddd;
}
.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,18,16,0.93);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 88svh;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.card {
  background: var(--bg2);
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(44,40,36,0.04);
}
.card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* Calendar */
.calendar-box {
  background: var(--bg2);
  border-radius: 18px;
  padding: 1.4rem 1rem 1.8rem;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-inline: auto;
}
.calendar-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.cal-nav button {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--bg3);
  font-size: 1.2rem;
  cursor: pointer;
}
.cal-nav h3 { font-size: 1.1rem; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.cal-dow {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  padding: 0.35rem 0;
}
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
}
.cal-day.empty { visibility: hidden; }
.cal-day.free { background: #e8f5e9; color: #2e7d32; }
.cal-day.booked { background: #fce4e4; color: #c62828; text-decoration: line-through; }
.cal-day.today { outline: 2px solid var(--accent); outline-offset: -2px; }

.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.1rem;
  font-size: 0.82rem;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.dot.free { background: #81c784; }
.dot.booked { background: #e57373; }
.dot.today { background: var(--accent); }

.calendar-cta {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--bg3);
}
.note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.center-text {
  text-align: center;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Footer */
.site-footer {
  background: var(--sea);
  color: #c5d0d4;
  padding-top: 2.8rem;
}
.footer-inner {
  display: grid;
  gap: 1.4rem;
  padding-bottom: 1.8rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-links a {
  text-decoration: none;
  color: #c5d0d4;
}
.footer-links a:hover { color: #e8a88a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 0;
    background: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0;
    font-size: 0.92rem;
    color: var(--muted);
  }
  .nav a:hover { color: var(--accent); }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
  .calendar-box { padding: 1.8rem; max-width: 440px; }
  .footer-inner {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .gallery { gap: 0.9rem; }
}

.gallery-note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 36rem;
  margin-inline: auto;
}
.gallery-note code {
  background: var(--bg3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 2;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.28); }

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }
}
