:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #2d3e2f;
  --muted: #6b7c6d;
  --primary: #4a7c59;
  --primary-900: #3a5f47;
  --accent: #8db395;
  --warm: #d4a574;
  --warm-light: #f4ead5;
  --ring: rgba(74, 124, 89, 0.2);
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(135deg, var(--bg) 0%, #f5f2ed 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
/* Add subtle natural texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a574' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}


.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,165,116,0.2);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand .brand-icon { display: inline-block; width: 24px; height: 24px; margin-right: 10px; vertical-align: -4px; }
.brand .brand-icon svg { width: 24px; height: 24px; display: block; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}
.nav a:hover { color: var(--text); }

.hero {
  padding: 80px 0 40px;
  background: radial-gradient(ellipse at center, rgba(212,165,116,0.08) 0%, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.hero h1 { 
  font-family: 'Playfair Display', Georgia, serif; 
  font-size: clamp(36px, 6vw, 56px); 
  line-height: 1.1; 
  margin: 0 0 16px;
  color: #2d3e2f;
  font-weight: 700;
}
.subtitle {
  color: #6b7c6d;
  font-size: 19px;
  margin: 0 0 32px;
  line-height: 1.5;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 8px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(74,124,89,0.2);
  text-decoration: none;
  color: var(--primary);
  background: rgba(255,255,255,0.8);
  font-weight: 500;
  transition: transform .03s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.button.small { padding: 10px 16px; font-size: 14px; }
.button:hover { 
  border-color: var(--primary); 
  box-shadow: 0 4px 12px rgba(74,124,89,0.15), 0 0 0 3px var(--ring); 
  transform: translateY(-1px);
}
.button:active { transform: translateY(1px); }
.button.primary { 
  background: linear-gradient(135deg, var(--primary) 0%, #3a5f47 100%); 
  border-color: var(--primary-900); 
  color: #ffffff; 
  font-weight: 600; 
  box-shadow: 0 4px 12px rgba(74,124,89,0.25);
}
.button.ghost { background: transparent; }

.card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(45,62,47,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(45,62,47,0.12); }
.card h3 { margin-top: 0; margin-bottom: 8px; }
.card .muted { color: var(--muted); font-size: 14px; }
.card ul { margin: 0 0 10px 18px; }

.section { padding: 60px 0; }
.section.alt { 
  background: linear-gradient(135deg, var(--warm-light) 0%, #f0e6d2 100%); 
  border-top: 1px solid rgba(212,165,116,0.3); 
  border-bottom: 1px solid rgba(212,165,116,0.3); 
}
.section h2 { 
  font-family: 'Playfair Display', Georgia, serif; 
  font-size: clamp(28px, 4vw, 36px); 
  color: var(--text); 
  margin: 0 0 24px; 
  font-weight: 700;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.narrow { max-width: 800px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.instagram-media { max-width: 100% !important; width: 100% !important; min-width: 0 !important; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { 
  background: rgba(74,124,89,0.1); 
  color: var(--primary-900); 
  border: 1px solid rgba(74,124,89,0.2); 
  padding: 8px 14px; 
  border-radius: 20px; 
  font-size: 14px; 
  font-weight: 500;
}

/* Tooltips for skill badges */
.badge[data-tooltip] {
  position: relative;
  cursor: help;
}
.badge[data-tooltip]:hover::after,
.badge[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: max(220px, 40ch);
  max-width: min(90vw, 520px);
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(74,124,89,0.25);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(45,62,47,0.15);
  z-index: 5;
}
.badge[data-tooltip]:hover::before,
.badge[data-tooltip]:focus::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 100%;
  border: 8px solid transparent;
  border-bottom-color: #fff;
}

.site-footer { 
  border-top: 1px solid rgba(212,165,116,0.3); 
  padding: 32px 0; 
  background: linear-gradient(135deg, #f0e6d2 0%, var(--warm-light) 100%); 
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.muted { color: var(--muted); }

/* Small version badge text */
.version-badge { 
  color: var(--muted); 
  font-size: 12px; 
  margin-top: 4px; 
}

/* Treatments grid */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.treat-card {
  position: relative;
  border: 1px solid rgba(212,165,116,0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 6px 25px rgba(45,62,47,0.08);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.treat-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 12px 40px rgba(45,62,47,0.15); 
  border-color: var(--warm); 
}
.treat-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.treat-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 44%;
  background: linear-gradient(180deg, rgba(212,165,116,0.1), transparent);
  pointer-events: none;
}
.treat-body { padding: 16px 18px; }
.treat-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.treat-desc { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.treat-category { 
  display: inline-block; 
  background: rgba(74,124,89,0.1); 
  color: var(--primary-900); 
  padding: 4px 8px; 
  border-radius: 12px; 
  font-size: 12px; 
  font-weight: 500;
  margin-right: 8px;
}
.treat-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}
.treat-card .instagram-media { width: 100% !important; min-width: 0 !important; margin: 0 !important; }

/* Instagram Live Section */
.live-section {
  background: linear-gradient(135deg, rgba(74,124,89,0.05) 0%, rgba(212,165,116,0.08) 100%);
  border-top: 1px solid rgba(74,124,89,0.1);
  border-bottom: 1px solid rgba(74,124,89,0.1);
}

.live-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(74,124,89,0.2);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(45,62,47,0.1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(45,62,47,0.15);
}

.live-schedule {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.live-icon {
  font-size: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.live-details h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.live-time {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px;
  background: rgba(74,124,89,0.1);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
}

.live-description {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.live-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

/* Booking Section */
.booking-section {
  background: linear-gradient(135deg, var(--bg) 0%, #f5f2ed 100%);
}

.booking-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 40px;
  font-size: 18px;
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* Prevent layout from being forced taller than needed */
.time-slots-container,
.calendar-container {
  min-height: initial;
}

/* Calendar Styles */
.calendar-container {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(74,124,89,0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(45,62,47,0.08);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.calendar-nav {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.calendar-nav:hover {
  background: var(--primary-900);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

/* Ensure the days render in a fixed 7-column grid below headers */
#calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 36px);
  gap: 6px;
  grid-column: 1 / -1; /* span full width of the header row */
  margin-top: 10px;
}

.calendar-day-header {
  padding: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  background: rgba(74,124,89,0.1);
}

.calendar-day {
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all .2s ease;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Make calendar compact; no internal scrolling */
.calendar-container {
  max-height: none;
  overflow: visible;
}

.calendar-day:hover:not(.disabled) {
  background: rgba(74,124,89,0.1);
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
}

.calendar-day.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-day.other-month {
  color: var(--muted);
  opacity: 0.3;
  cursor: default;
}

/* Time Slots */
.time-slots-container {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(74,124,89,0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(45,62,47,0.08);
}

.time-slots-container h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.selected-date {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}

.time-slots {
  display: grid;
  gap: 12px;
}

.time-slot {
  padding: 12px 16px;
  border: 2px solid rgba(74,124,89,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all .2s ease;
  font-weight: 500;
  text-align: center;
}

.time-slot:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(74,124,89,0.1);
}

.time-slot.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.time-slot.booked {
  background: rgba(212,165,116,0.2);
  border-color: var(--warm);
  color: var(--muted);
  cursor: not-allowed;
}

/* Booking Form */
.booking-form-container {
  margin-top: 32px;
}

.booking-form-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(74,124,89,0.2);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(45,62,47,0.08);
  max-width: 600px;
  margin: 0 auto;
}

.booking-form-card h4 {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(74,124,89,0.2);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color .2s ease;
  background: rgba(255,255,255,0.8);
}

/* Phone input: country code + number */
.phone-input { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.phone-input .phone-code { appearance: none; background: rgba(74,124,89,0.06); }
.phone-input .phone-number { }

@media (max-width: 520px) {
  .phone-input { grid-template-columns: 1fr; }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.form-group input[readonly] {
  background: rgba(74,124,89,0.1);
  cursor: not-allowed;
}

.booking-summary {
  background: rgba(74,124,89,0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.booking-summary h5 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.booking-summary p {
  margin: 4px 0;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* Treatment Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(74,124,89,0.2);
}

.modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .2s ease;
}

.modal-close:hover {
  background: rgba(74,124,89,0.1);
  color: var(--text);
}

.modal-body {
  padding: 24px 32px 32px;
}

.modal-concept,
.modal-description,
.modal-benefits {
  margin-bottom: 24px;
}

.modal-concept h4,
.modal-description h4,
.modal-benefits h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.modal-concept p,
.modal-description p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.modal-benefits ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.modal-benefits li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.modal-details {
  background: rgba(74,124,89,0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.modal-detail-item {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text);
}

.modal-detail-item:last-child {
  margin-bottom: 0;
}

.modal-detail-item strong {
  color: var(--primary);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: 1fr; }
  .treatments-grid { grid-template-columns: 1fr; }
  
  .live-schedule {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .live-card {
    padding: 24px 20px;
  }
  
  .live-icon {
    font-size: 40px;
  }
  
  .booking-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calendar-container,
  .time-slots-container {
    padding: 20px;
  }
  
  .booking-form-card {
    padding: 24px 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 24px 12px;
  }
  
  .modal-header h3 {
    font-size: 20px;
  }
  
  .modal-body {
    padding: 20px 24px 24px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
}

/* Floating contact button */
.float-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Additional small-screen polish */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .site-header .container { height: auto; padding: 10px 16px; }
  .nav { display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav a { margin-left: 0; font-size: 14px; padding: 6px 0; white-space: nowrap; }
  .hero { padding: 56px 0 24px; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 36px); }
  .subtitle { font-size: 16px; }
  .card { padding: 20px; }
  .section { padding: 44px 0; }
  .float-cta { right: 12px; bottom: 12px; }
  .button.small { padding: 9px 14px; font-size: 13px; }
}


