/* ============================================================
   MANSCAPED HAVEN — Main Stylesheet
   Brand: Dark Olive · Silver · Gold · Fijian Tribal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --olive-dark:    #1a1f14;
  --olive-mid:     #222818;
  --olive-light:   #2d3520;
  --gold:          #C9A84C;
  --gold-dark:     #8B7D3A;
  --gold-light:    #e0c068;
  --silver:        #c8cfc0;
  --silver-light:  #e8ede0;
  --white:         #f4f6f0;
  --text:          #d4d8c8;
  --text-muted:    #8a9278;
  --border:        rgba(139,125,58,0.25);
  --radius:        3px;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Jost', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--olive-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

p { max-width: 65ch; }

/* ── Layout ── */
.container { width: 92%; max-width: 1180px; margin: 0 auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 55ch;
  margin-bottom: 48px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26,31,20,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 46px;
  height: 46px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)) brightness(1.1);
  transition: transform .35s ease;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(8deg) scale(1.04); }
.nav-logo-text { white-space: nowrap; }

.nav-logo span { color: var(--gold); }

/* Footer emblem */
.footer-logo {
  width: 104px;
  height: 104px;
  display: block;
  margin-bottom: 16px;
  filter: brightness(1.08);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold);
  color: var(--olive-dark) !important;
  padding: 10px 22px;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}

.nav-cta:hover { background: var(--gold-light); color: var(--olive-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all .3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(139,125,58,0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 20% 80%, rgba(45,53,32,0.8) 0%, transparent 50%),
              linear-gradient(135deg, var(--olive-dark) 0%, #161b10 100%);
}

/* Tribal pattern overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(139,125,58,0.03) 30px,
    rgba(139,125,58,0.03) 31px
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-eyebrow-text {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.hero h1 { color: var(--white); margin-bottom: 8px; }
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-sub {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 50ch;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badge {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* A soft warm glow so the engraved dark areas of the emblem don't
   disappear into the near-black background */
.hero-badge::before {
  content: '';
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(201,168,76,.16) 0%,
              rgba(201,168,76,.06) 52%,
              rgba(201,168,76,0) 72%);
  pointer-events: none;
}
.hero-badge img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)) brightness(1.12) contrast(1.05);
  animation: badge-in 1.1s ease-out both;
}
@keyframes badge-in {
  from { opacity: 0; transform: scale(.88) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge img { animation: none; }
  .nav-logo:hover .nav-logo-mark { transform: none; }
}

.hero-badge-year {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
}

.hero-badge-text {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: all .25s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--olive-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--olive-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--olive-dark);
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--olive-mid);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: border-color .3s, transform .3s;
}

.service-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.service-card.vip {
  border-color: rgba(201,168,76,0.4);
}

.service-card.vip::before {
  content: 'VIP';
  position: absolute;
  top: -1px; right: 20px;
  background: var(--gold);
  color: var(--olive-dark);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 10px;
}

.service-category {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.service-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.service-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 600;
}

.service-freq {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Barbers Section ── */
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.barber-card {
  text-align: center;
  border: 1px solid var(--border);
  padding: 40px 24px 32px;
  background: var(--olive-mid);
  transition: border-color .3s;
}

.barber-card:hover { border-color: var(--gold-dark); }

.barber-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--olive-light);
  border: 2px solid var(--gold-dark);
  margin: 0 auto 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.barber-avatar img { width: 100%; height: 100%; object-fit: cover; }

.barber-avatar-placeholder {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
}

.barber-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 4px;
}

.barber-title {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.barber-bio { font-size: 14px; color: var(--text-muted); }

/* ── Booking Section ── */
.booking-wrap {
  background: var(--olive-mid);
  border: 1px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

.booking-steps {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.booking-step {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  position: relative;
  transition: background .2s;
}

.booking-step:last-child { border-right: none; }

.booking-step.active {
  background: rgba(201,168,76,0.08);
  color: var(--gold);
}

.booking-step.done {
  color: var(--gold-dark);
}

.booking-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: inherit;
  line-height: 1;
  margin-bottom: 4px;
}

.booking-body { padding: 40px; }

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

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--olive-dark);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s;
  appearance: none;
}

.form-control:focus { border-color: var(--gold-dark); }

.form-control option { background: var(--olive-dark); }

/* Radio / Checkbox Cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.option-card {
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-label {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--olive-dark);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  color: var(--text);
}

.option-card input:checked + .option-label {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
  color: var(--white);
}

.option-label-name { font-weight: 500; display: block; margin-bottom: 2px; }
.option-label-price { color: var(--gold); font-family: var(--font-display); font-size: 1.1rem; }
.option-label-sub { font-size: 12px; color: var(--text-muted); }

/* Slot Grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.slot-btn {
  padding: 10px;
  border: 1px solid var(--border);
  background: var(--olive-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s;
  text-align: center;
}

.slot-btn:hover, .slot-btn.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  color: var(--gold);
}

.slot-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  opacity: 0.4;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-dark);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-dark);
  transform: rotate(45deg);
}

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-left: 3px solid;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success { border-color: #4a8c5c; background: rgba(74,140,92,0.1); color: #7dbf90; }
.alert-error   { border-color: #8c4a4a; background: rgba(140,74,74,0.1);  color: #bf7d7d; }
.alert-info    { border-color: var(--gold-dark); background: rgba(201,168,76,0.08); color: var(--gold); }

/* ── Tables (Admin) ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 12px 16px;
  background: var(--olive-light);
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(139,125,58,0.1);
  color: var(--text);
  vertical-align: middle;
}

tr:hover td { background: rgba(139,125,58,0.04); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
}

.badge-confirmed { background: rgba(74,140,92,0.2); color: #7dbf90; }
.badge-pending   { background: rgba(201,168,76,0.2); color: var(--gold); }
.badge-cancelled { background: rgba(140,74,74,0.2); color: #bf7d7d; }
.badge-completed { background: rgba(100,130,200,0.2); color: #a0b4e0; }
.badge-paid      { background: rgba(74,140,92,0.2); color: #7dbf90; }
.badge-unpaid    { background: rgba(140,74,74,0.2); color: #bf7d7d; }

/* ── Footer ── */
.footer {
  background: #0f1209;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.footer-about { font-size: 14px; color: var(--text-muted); max-width: 30ch; }

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(139,125,58,0.15);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .hero-badge   { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--olive-dark); padding: 20px; border-bottom: 1px solid var(--border); gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }
  .barbers-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .booking-steps { flex-wrap: wrap; }
  .booking-body { padding: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}

/* ── Tribal Decoration ── */
.tribal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin: 0 0 48px;
}

.tribal-divider::before,
.tribal-divider::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark));
}

.tribal-divider::after {
  background: linear-gradient(to left, transparent, var(--gold-dark));
}

.tribal-divider-icon { color: var(--gold-dark); font-size: 18px; }

/* ── Utility ── */
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.gap-16      { gap: 16px; }
.w-full      { width: 100%; }
.hidden      { display: none; }

.badge-refunded { background: rgba(100,130,200,0.2); color: #a0b4e0; }
.badge-no_show  { background: rgba(140,74,74,0.28); color: #d49090; }

/* ===== Booking: date & time step ===== */
.dt-layout {
  display: grid;
  grid-template-columns: 324px 1fr;
  gap: 32px;
  align-items: start;
}

.calendar {
  background: var(--olive-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  user-select: none;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .5px;
  color: var(--white);
}
.cal-nav {
  width: 30px;
  height: 30px;
  line-height: 1;
  font-size: 20px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.cal-nav:disabled { opacity: .25; cursor: not-allowed; }

.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.cal-dow span {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 6px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: var(--radius);
}
.cal-blank { background: transparent; }

.cal-day {
  background: var(--olive-mid);
  border: 1px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .18s;
  width: 100%;
}
.cal-day:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.12);
  color: var(--gold);
}
.cal-day.is-today { border-color: var(--gold-dark); }
.cal-day.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--olive-dark);
  font-weight: 500;
}
.cal-day.is-disabled {
  background: transparent;
  color: var(--text-muted);
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.is-holiday:disabled {
  opacity: .55;
  color: #bf7d7d;
  text-decoration: line-through;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-dot-open    { background: var(--gold); }
.cal-dot-closed  { background: var(--text-muted); opacity: .5; }
.cal-dot-holiday { background: #bf7d7d; }

@media (max-width: 760px) {
  .dt-layout { grid-template-columns: 1fr; gap: 24px; }
  .calendar  { max-width: 360px; }
}

/* ===== Logo responsiveness ===== */
@media (max-width: 620px) {
  .nav-logo-mark { width: 38px; height: 38px; }
  .nav-logo { font-size: 1.05rem; gap: 9px; }
  .footer-logo { width: 84px; height: 84px; }
}
@media (max-width: 420px) {
  .nav-logo-text { display: none; }
}
