/* --------- Global styles & variables --------- */
/* NOTE: When updating CSS, increment the ?v=X version number in all HTML files to bust cache */

:root {
  --bg-main: #f3e7ff;
  --accent: #b28ad6;
  --accent-dark: #8b66ba;
  --text-main: #3d275c;
  --text-muted: #6b5a86;
  --border-radius-lg: 18px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --bg-gradient-start: #f9f2ff;
  --bg-gradient-end: #e8d7f1;
  --header-bg-start: rgba(255, 255, 255, 0.75);
  --header-bg-end: rgba(243, 231, 255, 0.85);
  --card-bg: rgba(255, 255, 255, 0.95);
  --badge-bg: rgba(255, 255, 255, 0.8);
  --badge-border: rgba(139, 102, 186, 0.3);
  --btn-ghost-bg: rgba(255, 255, 255, 0.9);
  --btn-ghost-border: rgba(178, 138, 214, 0.4);
  --nav-hover-bg: rgba(178, 138, 214, 0.12);
  --footer-bg: rgba(255, 255, 255, 0.75);
  --border-color: rgba(255, 255, 255, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-main);
}

/* Enable transitions only when theme is being toggled */
body.theme-transitioning {
  transition: background 0.3s ease, color 0.3s ease;
}

body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* --------- Dark theme --------- */

html.dark-theme,
html.dark-theme body {
  --bg-main: #0f0a1a;
  --accent: #caa6ff;
  --accent-dark: #9a7ad8;
  --text-main: #f5f0ff;
  --text-muted: #b8a9d9;
  --bg-gradient-start: #1b1227;
  --bg-gradient-end: #0f0a1a;
  --header-bg-start: rgba(27, 18, 39, 0.85);
  --header-bg-end: rgba(15, 10, 26, 0.9);
  --card-bg: rgba(27, 18, 39, 0.95);
  --badge-bg: rgba(27, 18, 39, 0.8);
  --badge-border: rgba(154, 122, 216, 0.4);
  --btn-ghost-bg: rgba(27, 18, 39, 0.9);
  --btn-ghost-border: rgba(202, 166, 255, 0.4);
  --nav-hover-bg: rgba(202, 166, 255, 0.15);
  --footer-bg: rgba(27, 18, 39, 0.85);
  --border-color: rgba(202, 166, 255, 0.2);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* --------- Theme toggle button --------- */

.theme-toggle {
  background: var(--btn-ghost-bg);
  border: 1px solid var(--btn-ghost-border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--nav-hover-bg);
  border-color: var(--accent);
}

/* --------- Layout wrappers --------- */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* --------- Header & nav --------- */

header {
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to right,
    var(--header-bg-start),
    var(--header-bg-end)
  );
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-text span:first-child {
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.nav-brand-text span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--nav-hover-bg);
  color: var(--accent-dark);
}

/* --------- Hero section (home) --------- */

.hero {
  padding: 3rem 1.5rem 2rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3rem);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--badge-bg);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2.6rem;
  border-radius: 999px;
  border: none;
  font-size: 1.66rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  width: 80%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff !important;
  box-shadow: var(--shadow-soft);
}

/* Ensure button text color overrides any parent link styles */
.contact-block .btn-primary,
.card .btn-primary {
  color: #fff !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--accent-dark);
  border: 1px solid var(--btn-ghost-border);
}

.btn-ghost:hover {
  background: var(--card-bg);
}

/* --------- Hero image card --------- */

.hero-card {
  background: var(--card-bg);
  border-radius: 26px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* --------- Slideshow --------- */

.slideshow-container {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slideshow-slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* --------- About page logo --------- */

.about-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  display: block;
  margin: 0 auto;
}

.hero-card-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.hero-card-metric {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* --------- Section layout --------- */

.section {
  padding: 2rem 1.5rem 2.5rem;
}

.section-heading {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
}

.section-heading h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* --------- Info cards --------- */

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card a {
  color: var(--accent-dark);
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* --------- About / Services layout --------- */

.two-column {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-start;
}

/* --------- Contact block --------- */

.contact-block {
  background: var(--card-bg);
  padding: 1.3rem 1.4rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  font-size: 0.95rem;
}

.contact-block a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* --------- Footer --------- */

footer {
  border-top: 1px solid var(--border-color);
  background: var(--footer-bg);
  padding: 1rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------- 404 page --------- */

.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.not-found p {
  margin-bottom: 1.5rem;
}

/* --------- Responsive tweaks --------- */

@media (max-width: 768px) {
  .hero-inner,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* --------- FAQ page --------- */

.faq-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
  }
  
  .faq-intro {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
  }
  
  .faq-intro a {
    color: var(--accent-dark);
    text-decoration: none;
  }
  
  .faq-intro a:hover {
    text-decoration: underline;
  }
  
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .faq-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 1rem;
  }
  
  .faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
  }
  
  .faq-item summary::-webkit-details-marker {
    display: none;
  }
  
  .faq-item summary::after {
    content: "＋";
    float: right;
    font-weight: normal;
    color: var(--text-muted);
  }
  
  .faq-item[open] summary::after {
    content: "−";
  }
  
  .faq-item p {
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  /* Base styles for nav toggle (desktop: hidden) */
.nav-toggle {
  display: none;           /* hidden by default */
  background: rgba(139, 102, 186, 0.1);
  border: 1px solid rgba(139, 102, 186, 0.3);
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  color: var(--accent-dark);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  position: relative;
}

.nav-toggle:hover {
  background: rgba(139, 102, 186, 0.2);
  border-color: rgba(139, 102, 186, 0.5);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 3px;
  min-height: 3px;
  border-radius: 999px;
  background: var(--accent-dark);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.15s ease;
  flex-shrink: 0;
  margin: 0;
}

/* Dark mode: use light purple color (same as nav-brand-text secondary) */
html.dark-theme .nav-toggle {
  color: var(--text-muted); /* Light purple in dark mode (#b8a9d9) */
  background: rgba(184, 169, 217, 0.15);
  border-color: rgba(184, 169, 217, 0.4);
}

html.dark-theme .nav-toggle:hover {
  background: rgba(184, 169, 217, 0.25);
  border-color: rgba(184, 169, 217, 0.6);
}

html.dark-theme .nav-toggle-bar {
  background: var(--text-muted); /* Light purple in dark mode (#b8a9d9) */
}

/* ----- Mobile styles ----- */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* Show the hamburger on mobile */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 10;
  }

  /* Hide the nav links by default on mobile */
  .nav-links {
    position: absolute;
    top: 100%;          /* directly under navbar */
    right: 0;
    left: 0;
    display: none;      /* hidden until toggled */
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg, #111);  /* adjust to your theme */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
  }

  .nav-links a,
  .nav-links .theme-toggle {
    width: 100%;
    text-align: left;
  }

  /* When we add the "open" class via JS, show the menu */
  .nav-links.open {
    display: flex;
  }

  /* Increase padding for booking and email sections on mobile */
  #booking-section,
  .email-section .card {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Reduce container padding on mobile for better use of space */
  .section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
