/* =============================================
   BONSAI STAYS — Shared Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --green-deep:    #2C4A1E;
  --green-mid:     #3D6B2C;
  --green-sage:    #7BA05B;
  --green-light:   #B8D4A0;
  --green-tint:    #EEF4E8;
  --cream:         #F7F3EC;
  --cream-dark:    #EDE8DF;
  --gold:          #C9A45A;
  --gold-light:    #E8CC8A;
  --charcoal:      #1C1C1A;
  --gray-mid:      #5A5A58;
  --gray-light:    #9A9A96;
  --gray-pale:     #E8E5DF;
  --white:         #FEFCF8;
  --shadow-soft:   0 4px 24px rgba(44, 74, 30, 0.10);
  --shadow-card:   0 2px 16px rgba(44, 74, 30, 0.08);
  --shadow-hover:  0 8px 40px rgba(44, 74, 30, 0.18);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-xl:     40px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }
p { font-size: 1rem; color: var(--gray-mid); }

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

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 12px;
  display: block;
}
.section-header { margin-bottom: 56px; }
.section-header p { max-width: 560px; margin: 16px auto 0; font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--green-deep);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8903e;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; border-radius: var(--radius-md); }

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(254, 252, 248, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--gray-pale);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--green-sage); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-mid);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--green-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 4px;
}
.nav-badge.guest { background: var(--green-tint); color: var(--green-deep); }
.nav-badge.partner { background: #FEF3E2; color: #8A5C0E; }

/* --- Hero / Shared --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,48,20,0.72) 0%, rgba(30,48,20,0.35) 60%, rgba(30,48,20,0.1) 100%);
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--gray-pale);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tag-green { background: var(--green-tint); color: var(--green-deep); }
.tag-gold { background: #FEF3E2; color: #8A5C0E; }
.tag-gray { background: var(--gray-pale); color: var(--gray-mid); }

/* --- Star Rating --- */
.stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; }

/* --- Divider --- */
.divider { width: 48px; height: 3px; background: var(--green-sage); border-radius: 2px; margin: 20px auto; }
.divider-left { margin-left: 0; }

/* --- Footer --- */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo span { color: var(--green-light); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--white);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green-sage); }
.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* --- Hamburger (mobile) --- */
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: var(--transition); }
/* Animate hamburger → X when open */
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* Shrink nav CTA buttons on tablets so they don't overflow */
  .nav-cta .btn { padding: 8px 12px; font-size: 0.78rem; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 0.85rem; }
}
@media (max-width: 768px) {
  /* Prevent horizontal scroll globally */
  body { overflow-x: hidden; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Buttons shouldn't overflow */
  .btn { white-space: normal; text-align: center; }

  /* Tables */
  table { font-size: 0.8rem; }
  table th, table td { padding: 8px 10px; }

  /* Mobile nav open state */
  .nav.nav-open { background: var(--white) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.12); }
  .nav.nav-open .nav-hamburger span { background: var(--green-deep) !important; }
  .nav.nav-open .nav-links {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 4px 24px 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-top: 1px solid var(--gray-pale);
    z-index: 200;
  }
  .nav.nav-open .nav-links li { border-bottom: 1px solid var(--gray-pale); }
  .nav.nav-open .nav-links li:last-child { border-bottom: none; }
  .nav.nav-open .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 1rem;
    color: var(--charcoal) !important;
    font-weight: 500;
  }
  /* CTA buttons appended inside dropdown by nav.js */
  .nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 4px;
    border-top: 1px solid var(--gray-pale);
    margin-top: 4px;
  }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; text-align: center; }
}
