/* ============================================
   BRTables — Styles
   ============================================ */

/* --- Light Mode (default) --- */
:root,
[data-theme="light"] {
  --color-bg: #faf9f7;
  --color-bg-alt: #f5f0eb;
  --color-text: #1a1a1a;
  --color-text-secondary: #3a3a3a;
  --color-text-muted: #555;
  --color-accent: #2c3e50;
  --color-accent-light: #3d566e;
  --color-warm: #c0884a;
  --color-border: #d8d4cf;
  --color-card: #ffffff;
  --color-card-shadow: rgba(0,0,0,0.06);
  --color-nav-scrolled-bg: rgba(250, 249, 247, 0.96);
  --color-testimonial-bg: #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg: #121212;
  --color-bg-alt: #1a1a1a;
  --color-text: #e8e4df;
  --color-text-secondary: #ccc;
  --color-text-muted: #a0a0a0;
  --color-accent: #8ba4bf;
  --color-accent-light: #a3bcd5;
  --color-warm: #d4a574;
  --color-border: #333;
  --color-card: #1e1e1e;
  --color-card-shadow: rgba(0,0,0,0.3);
  --color-nav-scrolled-bg: rgba(18, 18, 18, 0.96);
  --color-testimonial-bg: #1e1e1e;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background 0.4s, color 0.4s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ============================================
   Typography — Readability focused
   ============================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-warm);
  margin: 1rem auto 0;
}

.label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-warm);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.7rem; }
.btn-lg { padding: 1.1rem 2.8rem; }

/* ============================================
   Theme Toggle
   ============================================ */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
  flex-shrink: 0;
}
.nav.scrolled .theme-toggle {
  border-color: var(--color-border);
  color: var(--color-text);
}
.theme-toggle:hover {
  border-color: var(--color-warm);
  color: var(--color-warm);
}
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: var(--color-nav-scrolled-bg);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 0 var(--color-border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.4s;
}
.nav.scrolled .nav-logo { color: var(--color-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}
.nav.scrolled .nav-links a { color: var(--color-text-muted); }
.nav-links a:hover { color: var(--color-warm); }
.nav.scrolled .nav-links a:hover { color: var(--color-accent); }

.nav-social {
  display: flex;
  gap: 0.8rem;
  margin-left: 0.5rem;
}
.nav-social a {
  opacity: 0.7;
  transition: opacity 0.3s;
}
.nav-social a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: background 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--color-text); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.45) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.hero-title {
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5), 0 1px 6px rgba(0,0,0,0.3);
}
.hero-title em {
  font-style: italic;
  color: var(--color-warm);
}

/* ============================================
   Services
   ============================================ */
.services {
  padding: 6rem 0;
}
.service-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.service-card:last-child { margin-bottom: 0; }
.service-card--reverse .service-image { order: 2; }
.service-card--reverse .service-text { order: 1; }

.service-image {
  overflow: hidden;
  border-radius: 2px;
}
.service-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover .service-image img {
  transform: scale(1.03);
}
.service-text h3 {
  margin-bottom: 1.2rem;
}
.service-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.85;
}
.service-text .btn { margin-top: 0.5rem; }

/* ============================================
   About Teaser
   ============================================ */
.about-teaser {
  background: var(--color-bg-alt);
  padding: 6rem 0;
  transition: background 0.4s;
}
.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-teaser-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 2px;
}
.about-teaser-text h3 {
  margin-bottom: 1.2rem;
}
.about-teaser-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 6rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.testimonial {
  padding: 2rem;
  background: var(--color-testimonial-bg);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  transition: background 0.4s, border-color 0.4s;
}
.testimonial p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.2rem;
}
.testimonial cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

/* ============================================
   Menu Highlights
   ============================================ */
.menu-highlights {
  background: var(--color-bg-alt);
  padding: 6rem 0;
  transition: background 0.4s;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.menu-item {
  background: var(--color-card);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow var(--transition), background 0.4s;
}
.menu-item:hover {
  box-shadow: 0 8px 30px var(--color-card-shadow);
}
.menu-item-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.menu-item-text {
  padding: 1.5rem;
}
.menu-item-text h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}
.menu-price {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.2rem;
}
.menu-detail {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}
.menu-item-text > p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 6rem 0;
}
.cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-inner h2 {
  margin-bottom: 1rem;
}
.cta-inner p {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #1a2332;
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}
[data-theme="dark"] .footer {
  background: #0a0a0a;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--color-warm); }
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  color: rgba(255,255,255,0.6);
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-social a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   Page Headers (subpages)
   ============================================ */
.page-header {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.page-header-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 2rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  border-radius: 4px;
}
.page-header-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.page-header-content p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-top: 0.8rem;
  color: rgba(255,255,255,0.9);
}

/* ============================================
   About Page
   ============================================ */
.about-section {
  padding: 5rem 0;
  transition: background 0.4s;
}
.about-section:nth-child(even) { background: var(--color-bg-alt); }

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-block--reverse .about-block-image { order: 2; }
.about-block--reverse .about-block-text { order: 1; }

.about-block-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 2px;
}
.about-block-text h2 {
  margin-bottom: 1.2rem;
}
.about-block-text p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-block-text .highlight {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
}

/* ============================================
   Retreat Page
   ============================================ */
.retreat-intro {
  padding: 5rem 0;
  text-align: center;
}
.retreat-intro p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.85;
}
.retreat-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.retreat-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.retreat-includes {
  padding: 5rem 0;
  background: var(--color-bg-alt);
  transition: background 0.4s;
}
.retreat-includes-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.retreat-includes h2 {
  margin-bottom: 2rem;
}
.retreat-list {
  list-style: none;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 3rem;
}
.retreat-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.retreat-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-warm);
}
.retreat-price {
  margin-top: 2.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text);
}

/* ============================================
   Menus Page
   ============================================ */
.menus-gallery {
  padding: 3rem 0;
}
.menus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.menus-gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.menu-section {
  padding: 4rem 0;
  transition: background 0.4s;
}
.menu-section:nth-child(even) { background: var(--color-bg-alt); }
.menu-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.menu-section-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
}
.menu-section-text h2 {
  margin-bottom: 1.5rem;
}
.menu-list {
  list-style: none;
}
.menu-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: border-color 0.4s;
}
.menu-list li:last-child { border-bottom: none; }

/* ============================================
   Contact Page
   ============================================ */
.contact-section {
  padding: 5rem 0;
}
.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  margin-bottom: 1rem;
}
.contact-inner > p {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}
.contact-info {
  margin: 2rem 0;
}
.contact-info a {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  transition: color 0.3s;
}
.contact-info a:hover { color: var(--color-warm); }

.contact-form {
  text-align: left;
  margin-top: 3rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color 0.3s, background 0.4s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form .btn {
  width: 100%;
  text-align: center;
}

/* ============================================
   Reveal Animation
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .service-card,
  .about-teaser-inner,
  .about-block,
  .menu-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-card--reverse .service-image,
  .about-block--reverse .about-block-image { order: 0; }
  .service-card--reverse .service-text,
  .about-block--reverse .about-block-text { order: 0; }

  .testimonials-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .retreat-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .retreat-list {
    grid-template-columns: 1fr;
  }
  .menus-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 101;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    color: var(--color-text) !important;
    font-size: 0.85rem;
  }
  .nav-social {
    margin-left: 0;
    margin-top: 1rem;
  }
  .nav-social svg { stroke: var(--color-text); }
}

@media (max-width: 600px) {
  .retreat-gallery {
    grid-template-columns: 1fr;
  }
  .menus-gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 500px; }
  .page-header { min-height: 300px; height: 50vh; }
}
