:root {
  --primary: #6E8F80;
  --primary-dark: #577469;
  --secondary: #EAF2EE;
  --accent: #2F5D62;
  --accent-dark: #23484C;
  --text: #2B2B2B;
  --muted: #66706B;
  --background: #FAFAF8;
  --white: #FFFFFF;
  --warning-bg: #FFF8E8;
  --warning-text: #74591B;
  --radius: 1rem;
  --pill: 999px;
  --shadow: 0 1rem 3rem rgba(47, 93, 98, .10);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: "Manrope", sans-serif;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 4.85rem);
  line-height: 1.03;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 { font-weight: 700; }
p { color: var(--muted); }
a { color: var(--accent); }
.text-balance { text-wrap: balance; }
.section-padding { padding: 6rem 0; }

.section-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.navbar {
  background: rgba(250, 250, 248, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(47, 93, 98, .08);
}

.navbar-brand {
  color: var(--accent);
  font-weight: 800;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border-radius: 22%;
}

.nav-link {
  color: var(--text);
  font-weight: 600;
}

.nav-link:hover, .nav-link:focus { color: var(--accent); }

.btn {
  border-radius: var(--pill);
  padding: .85rem 1.35rem;
  font-weight: 700;
}

.btn-primary-custom {
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  color: white;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-outline-custom {
  color: var(--accent);
  border: 1px solid rgba(47, 93, 98, .35);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.hero {
  padding: 8.5rem 0 5.5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 35rem;
  height: 35rem;
  top: -13rem;
  right: -10rem;
  border-radius: 50%;
  background: var(--secondary);
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  margin-bottom: 1.5rem;
  border-radius: var(--pill);
  color: var(--accent);
  background: var(--secondary);
  font-size: .9rem;
  font-weight: 700;
}

.hero-lead {
  max-width: 44rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.15rem;
}

.hero-image-wrap {
  position: relative;
  padding: 1.2rem;
}

.hero-image {
  width: 100%;
  min-height: 34rem;
  border-radius: 2rem;
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(110, 143, 128, .12), rgba(47, 93, 98, .06)),
    url("/images/francesca-baccini.webp") center/cover;
}

.hero-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.trust-strip {
  background: white;
  border-top: 1px solid rgba(47, 93, 98, .08);
  border-bottom: 1px solid rgba(47, 93, 98, .08);
}

.trust-item { padding: 1.5rem; }

.icon-circle, .step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: var(--accent);
  background: var(--secondary);
  font-size: 1.35rem;
}

.soft-section { background: var(--secondary); }

.content-card, .service-card, .testimonial-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid rgba(47, 93, 98, .09);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 .7rem 2.2rem rgba(47, 93, 98, .06);
}

.service-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card.featured {
  border: 2px solid rgba(47, 93, 98, .38);
  position: relative;
}

.service-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .35rem .7rem;
  border-radius: var(--pill);
  color: var(--accent);
  background: var(--secondary);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.service-price {
  display: block;
  margin: .75rem 0 1rem;
  font-weight: 800;
  color: var(--accent);
}

.about-image {
  display: block;
  width: 100%;
  height: 31rem;
  object-fit: cover;
  border-radius: 2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  gap: .75rem;
  margin-bottom: .8rem;
  color: var(--muted);
}

.check-list i { color: var(--primary-dark); }

.step-card {
  height: 100%;
  padding: 1.75rem;
  border-left: 1px solid rgba(47, 93, 98, .14);
}

.notice {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid rgba(116, 89, 27, .15);
}

.accordion-item {
  margin-bottom: .8rem;
  overflow: hidden;
  border: 1px solid rgba(47, 93, 98, .1);
  border-radius: 1rem !important;
  background: white;
}

.accordion-button {
  padding: 1.25rem 1.35rem;
  font-weight: 700;
  background: white;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: var(--secondary);
  box-shadow: none;
}

.cta-panel {
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: 2rem;
  color: white;
  background: var(--accent);
  box-shadow: var(--shadow);
}

.cta-panel p { color: rgba(255,255,255,.80); }
.cta-panel .btn-light { color: var(--accent); }

footer {
  color: rgba(255,255,255,.78);
  background: #17383c;
}

footer a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
}

footer a:hover { color: white; }

.mobile-contact-bar { display: none; }

@media (max-width: 991.98px) {
  .hero { padding-top: 7rem; }
  .hero-image { min-height: 27rem; }
}

@media (max-width: 767.98px) {
  body { padding-bottom: 4.8rem; }
  .section-padding { padding: 4rem 0; }
  .hero { padding-bottom: 3.5rem; }
  .hero-image-wrap { padding: 0; }
  .hero-image { min-height: 23rem; border-radius: 1.5rem; }

  .mobile-contact-bar {
    position: fixed;
    z-index: 1050;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: .6rem;
    background: rgba(250, 250, 248, .97);
    border-top: 1px solid rgba(47, 93, 98, .12);
    backdrop-filter: blur(12px);
  }

  .mobile-contact-bar .btn {
    padding: .72rem .5rem;
    font-size: .9rem;
  }
}

/* Booking */
.booking-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(110, 143, 128, .16), transparent 28rem),
    var(--background);
}

.navbar-brand small { font-family: "Inter", sans-serif; font-size: .68rem; }
.booking-main { min-height: 100vh; padding: 8.5rem 0 5rem; }
.booking-heading { max-width: 48rem; margin-bottom: 3rem; }
.booking-heading h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.booking-shell {
  max-width: 72rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(47, 93, 98, .12);
  border-radius: 1.5rem;
  background: white;
  box-shadow: var(--shadow);
}

.booking-calendar-pane, .booking-form-pane { padding: clamp(1.4rem, 4vw, 2.6rem); }
.booking-calendar-pane { border-right: 1px solid rgba(47, 93, 98, .1); }
.booking-form-pane { background: #fcfdfc; }
.booking-step-label { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.5rem; color: var(--accent); font-weight: 800; }
.booking-step-label span { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: white; background: var(--accent); font-size: .8rem; }

.calendar-toolbar { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; text-align: center; margin-bottom: 1.2rem; }
.calendar-nav { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid rgba(47,93,98,.15); border-radius: 50%; color: var(--accent); background: white; }
.calendar-nav:hover:not(:disabled) { color: white; background: var(--accent); }
.calendar-nav:disabled { opacity: .3; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.calendar-weekdays { margin-bottom: .45rem; text-align: center; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.calendar-day { aspect-ratio: 1; min-width: 0; border: 0; border-radius: .8rem; color: var(--text); background: transparent; font-weight: 700; transition: .15s ease; }
.calendar-day:hover:not(:disabled) { color: var(--accent); background: var(--secondary); }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--primary); }
.calendar-day.selected { color: white !important; background: var(--accent) !important; box-shadow: 0 .4rem 1rem rgba(47,93,98,.2); }
.calendar-day:disabled { color: #b9bfbc; cursor: not-allowed; }
.calendar-day.outside { visibility: hidden; }
.slots-panel { min-height: 9rem; padding: 1.25rem; border-radius: 1rem; background: var(--secondary); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.slot-button { padding: .65rem .35rem; border: 1px solid rgba(47,93,98,.2); border-radius: .7rem; color: var(--accent); background: white; font-weight: 700; }
.slot-button:hover, .slot-button.selected { color: white; background: var(--accent); border-color: var(--accent); }
.form-label { color: var(--text); font-weight: 700; font-size: .88rem; }
.form-control, .form-select { min-height: 3rem; border-color: rgba(47,93,98,.18); border-radius: .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(110,143,128,.14); }
.confirmation-card, .login-card { max-width: 37rem; padding: clamp(2rem, 6vw, 4rem); border: 1px solid rgba(47,93,98,.1); border-radius: 1.5rem; background: white; box-shadow: var(--shadow); }
.confirmation-icon { display: grid; place-items: center; width: 5rem; height: 5rem; margin: 0 auto 1.5rem; border-radius: 50%; color: white; background: var(--accent); font-size: 2.4rem; }
.confirmation-date { display: flex; justify-content: center; align-items: center; gap: .7rem; padding: 1rem; border-radius: 1rem; color: var(--accent); background: var(--secondary); font-weight: 800; }
.login-card { max-width: 28rem; }

/* Admin */
.admin-page { min-height: 100vh; background: #f4f7f5; }
.admin-nav { padding: .8rem 0; background: white; border-bottom: 1px solid rgba(47,93,98,.1); }
.admin-main { padding: 3rem 0 5rem; }
.admin-card { overflow: hidden; border: 1px solid rgba(47,93,98,.1); border-radius: 1rem; background: white; box-shadow: 0 .5rem 1.5rem rgba(47,93,98,.05); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid rgba(47,93,98,.1); }
.admin-count { display: grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border-radius: 999px; color: var(--accent); background: var(--secondary); font-weight: 800; }
.admin-table th { padding: .8rem 1.25rem; color: var(--muted); background: #fafbfa; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.admin-table td { padding: 1rem 1.25rem; }
.admin-table small { color: var(--muted); }
.booking-cancelled { opacity: .58; }
.status-badge { display: inline-block; padding: .35rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.status-booked { color: #246448; background: #e4f5ec; }
.status-cancelled { color: #7a4d4d; background: #f7e9e9; }
.status-pending { color: #8a6414; background: #fbf0dc; }
.status-completed { color: #3d4f4a; background: #e7ebe9; }
.status-noshow { color: #8a2e2e; background: #f7e0e0; }
.admin-datetime { width: 12.5rem; }
.empty-state { padding: 3rem !important; text-align: center; color: var(--muted) !important; }
.empty-state i { display: block; margin-bottom: .5rem; font-size: 1.8rem; }
.modal-content { border: 0; border-radius: 1.2rem; box-shadow: var(--shadow); }

@media (max-width: 991.98px) {
  .booking-calendar-pane { border-right: 0; border-bottom: 1px solid rgba(47, 93, 98, .1); }
}

@media (max-width: 575.98px) {
  .booking-main { padding-top: 7rem; }
  .booking-page .navbar .btn { padding: .6rem .8rem; font-size: .8rem; }
  .booking-page .navbar .btn i { display: none; }
  .calendar-weekdays, .calendar-grid { gap: .15rem; }
  .calendar-day { border-radius: .55rem; font-size: .85rem; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-nav .btn { padding: .6rem .75rem; font-size: 0; }
  .admin-nav .btn i { margin: 0 !important; font-size: 1rem; }
}
