/* ==========================================================================
   Adam Hair Designer Barbershop Studio
   Color System inspired by "A Dictionary of Color" (A. Maerz & M. Rea Paul, 1930)
   - Oxford Blue (Pl. 40):   #132238
   - Prussian Slate:         #1D324E
   - Cordovan (Pl. 7/8):     #82343B / #66242A
   - Old Gold (Pl. 14 K5):   #C9A449
   - Eggshell (Pl. 10):      #F3EDE0
   - Ivory Parchment:        #FAF7F0
   - Olivine (Pl. 18):       #467856
   ========================================================================== */

@font-face {
  font-family: Barlow;
  src: url("assets/Barlow-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Barlow;
  src: url("assets/Barlow-SemiBold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/InstrumentSerif-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --mp-oxford: #132238;
  --mp-prussian: #1d324e;
  --mp-cordovan: #82343b;
  --mp-cordovan-dark: #66242a;
  --mp-cordovan-soft: #f6eaea;
  --mp-old-gold: #c9a449;
  --mp-old-gold-soft: rgba(201, 164, 73, 0.16);
  --mp-eggshell: #f3ede0;
  --mp-ivory: #faf7f0;
  --mp-olivine: #467856;
  --mp-olivine-dark: #2f5a3d;
  --mp-olivine-soft: #e6f2ea;
  --mp-umber: #5b554b;
  --mp-ink-light: #e9e3d5;
  --mp-border: #dfd6c5;
  --mp-amber: #a86b1d;
  --mp-amber-soft: #faefd9;

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-display: Barlow, Arial, sans-serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Barlow, Arial, sans-serif;
  --font-mono: Barlow, Arial, sans-serif;

  --radius-sm: 5px;
  --radius-md: 9px;
  --radius-lg: 12px;
  --shadow-sm: 0 4px 14px rgba(19, 34, 56, 0.06);
  --shadow-md: 0 14px 32px rgba(19, 34, 56, 0.11);
  --shadow-lg: 0 24px 56px rgba(10, 18, 30, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--mp-oxford);
  background: var(--mp-eggshell);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.55rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 0.9rem;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.section {
  padding: clamp(3.6rem, 7vw, 6.5rem) 0;
}

.section-eggshell {
  background: var(--mp-eggshell);
}

.section-ivory {
  background: var(--mp-ivory);
  border-top: 1px solid var(--mp-border);
  border-bottom: 1px solid var(--mp-border);
}

.section-oxford {
  background: var(--mp-oxford);
  color: var(--mp-ink-light);
}

/* Admin Active Ribbon */
.admin-session-bar {
  background: var(--mp-cordovan-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(201, 164, 73, 0.45);
}

.admin-session-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-session-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-badge {
  background: var(--mp-old-gold);
  color: var(--mp-oxford);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

.admin-session-actions {
  display: flex;
  gap: 0.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mp-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-crest {
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.36rem;
  text-transform: uppercase;
  color: var(--mp-oxford);
  line-height: 1;
}

.brand-sub {
  color: var(--mp-umber);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mp-prussian);
}

.nav-links a:hover {
  color: var(--mp-cordovan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-sm);
  background: var(--mp-ivory);
  cursor: pointer;
  padding: 0 9px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--mp-oxford);
  border-radius: 2px;
}

.mobile-drawer {
  border-top: 1px solid var(--mp-border);
  background: var(--mp-ivory);
  padding: 1rem 0 1.35rem;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  font-weight: 600;
  padding: 0.35rem 0;
  color: var(--mp-oxford);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  padding: 0.68rem 1.2rem;
  font-size: 0.92rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-xs {
  padding: 0.34rem 0.72rem;
  font-size: 0.78rem;
}

.btn-sm {
  padding: 0.5rem 0.92rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.45rem;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--mp-oxford);
  color: var(--mp-ivory);
}

.btn-primary:hover {
  background: var(--mp-prussian);
}

.btn-cordovan {
  background: var(--mp-cordovan);
  color: #fff;
  box-shadow: 0 8px 22px rgba(130, 52, 59, 0.32);
}

.btn-cordovan:hover {
  background: var(--mp-cordovan-dark);
}

.btn-gold {
  background: var(--mp-old-gold);
  color: var(--mp-oxford);
}

.btn-gold:hover {
  background: #d8b55d;
}

.btn-outline-light {
  background: transparent;
  color: var(--mp-ivory);
  border-color: rgba(243, 237, 224, 0.36);
}

.btn-outline-light:hover {
  border-color: var(--mp-old-gold);
  background: rgba(201, 164, 73, 0.12);
}

.btn-outline-dark {
  background: transparent;
  color: var(--mp-oxford);
  border-color: var(--mp-border);
}

.btn-outline-dark:hover {
  border-color: var(--mp-oxford);
  background: rgba(19, 34, 56, 0.04);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--mp-prussian);
  border-color: var(--mp-border);
}

.btn-ghost-dark:hover {
  border-color: var(--mp-cordovan);
  color: var(--mp-cordovan);
}

.btn-danger-outline {
  background: transparent;
  color: var(--mp-cordovan);
  border-color: rgba(130, 52, 59, 0.45);
}

.btn-danger-outline:hover {
  background: var(--mp-cordovan-soft);
}

/* Hero and availability snapshot */
.hero {
  position: relative;
  overflow: hidden;
  background: #101c2d;
  color: var(--mp-ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.hero-copy {
  align-self: center;
  padding: clamp(3rem, 6vw, 7rem) 1rem clamp(3rem, 6vw, 6rem) 0;
}

.hero-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.45rem;
  color: #e5c777;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-location span {
  height: 1px;
  width: 1.65rem;
  background: currentColor;
}

.hero-title {
  margin: 0 0 1rem;
  color: var(--mp-ivory);
  font: 700 clamp(5.2rem, 9.7vw, 9rem)/0.75 var(--font-condensed);
  letter-spacing: -0.022em;
  text-transform: uppercase;
}

.hero-title em {
  color: #e5c777;
  font: italic 400 0.92em/0.89 var(--font-serif);
  letter-spacing: -0.055em;
  text-transform: none;
}

.hero-lead {
  max-width: 26rem;
  margin: 1.5rem 0;
  color: #e1dacd;
  font-size: clamp(1.08rem, 1.6vw, 1.23rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-address {
  margin: 1.45rem 0 0;
  color: #c8c1b3;
}

.hero-photo {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #1a1d21;
}

.hero-photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 33%;
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #101c2d 0%, transparent 20%), linear-gradient(0deg, rgba(9, 14, 21, 0.68), transparent 25%);
  pointer-events: none;
}

.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  bottom: 1.15rem;
  right: 1.25rem;
  color: var(--mp-ivory);
  font-size: 0.8rem;
}

.snapshot-strip {
  background: var(--mp-ivory);
  border-block: 1px solid var(--mp-border);
}

.snapshot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.4rem;
}

.snapshot-status,
.snapshot-hours {
  margin: 0;
  color: var(--mp-umber);
  font-size: 0.92rem;
  line-height: 1.35;
}

.snapshot-status {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.status-dot {
  flex: 0 0 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--mp-olivine);
}

.status-dot.is-busy { background: var(--mp-amber); }
.status-dot.is-closed { background: var(--mp-cordovan); }

.kicker-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-cordovan);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.kicker-gold {
  color: var(--mp-old-gold);
}

.hero-card-title {
  margin: 0.22rem 0 0;
  font: 700 1.4rem/1 var(--font-condensed);
  text-transform: uppercase;
}

.sync-badge {
  color: var(--mp-cordovan);
  font-size: 0.87rem;
  font-weight: 700;
}

.snapshot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.36rem;
}

.stat-box {
  display: grid;
  align-content: center;
  min-height: 4.4rem;
  padding: 0.35rem;
  text-align: center;
  background: var(--mp-eggshell);
  border: 1px solid var(--mp-border);
}

.stat-free { background: var(--mp-olivine-soft); }
.stat-busy { background: var(--mp-cordovan-soft); }

.stat-num {
  display: block;
  font: 700 1.3rem/1.15 var(--font-condensed);
  color: var(--mp-oxford);
}

.stat-name {
  display: block;
  color: var(--mp-umber);
  font-size: 0.86rem;
  font-weight: 600;
}

.snapshot-quick-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  margin-bottom: 0.4rem;
  color: var(--mp-umber);
  font-size: 0.91rem;
  font-weight: 600;
}

.quick-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.quick-chip {
  min-height: 2.1rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #adc3b1;
  border-radius: var(--radius-sm);
  background: var(--mp-olivine-soft);
  color: var(--mp-olivine-dark);
  font-size: 0.91rem;
  font-weight: 600;
  cursor: pointer;
}

.quick-chip:hover {
  background: var(--mp-olivine-dark);
  color: white;
}

.quick-chip-empty {
  color: var(--mp-umber);
  font-size: 0.91rem;
}

.snapshot-offer {
  display: grid;
  align-content: center;
  gap: 0.12rem;
  align-self: stretch;
  color: var(--mp-ivory);
  background: var(--mp-cordovan);
  padding: 0.75rem 1rem;
}

.snapshot-offer span {
  color: #f5dab0;
  font-size: 0.85rem;
}

.snapshot-offer strong {
  font: 700 1.32rem/1.05 var(--font-condensed);
  text-transform: uppercase;
}

.snapshot-offer:hover strong { text-decoration: underline; }

/* Section Headers */
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mp-cordovan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-title {
  font: 700 clamp(2.7rem, 5.5vw, 5rem)/0.94 var(--font-condensed);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--mp-oxford);
}

.section-kicker.kicker-gold { color: #e3c36e; }

.title-light {
  color: var(--mp-ivory);
}

.section-sub {
  color: var(--mp-umber);
  max-width: 660px;
}

.section-header-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: var(--mp-ivory);
  border: 1px solid var(--mp-border);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.swatch-free { background: var(--mp-olivine); }
.swatch-reserved { background: var(--mp-cordovan); }
.swatch-break { background: var(--mp-amber); }
.swatch-off { background: #a8a296; }

/* Timetable Controls & Board */
.board-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.day-tab {
  border: 1px solid var(--mp-border);
  background: var(--mp-ivory);
  color: var(--mp-oxford);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.day-tab:hover {
  border-color: var(--mp-oxford);
}

.day-tab.is-active {
  background: var(--mp-oxford);
  color: var(--mp-ivory);
  border-color: var(--mp-oxford);
}

.day-tab-top {
  display: block;
  font-size: 0.72rem;
  opacity: 0.78;
  font-weight: 600;
}

.day-tab-date {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.barber-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mp-umber);
}

.barber-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.barber-pill {
  border: 1px solid var(--mp-border);
  background: var(--mp-ivory);
  color: var(--mp-oxford);
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.barber-pill.is-active {
  background: var(--mp-cordovan);
  color: #fff;
  border-color: var(--mp-cordovan);
}

.timetable-board {
  display: grid;
  gap: 1.25rem;
}

.barber-schedule-card {
  background: var(--mp-ivory);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.barber-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--mp-border);
}

.barber-card-title {
  font-size: 1.08rem;
  margin: 0;
}

.barber-card-summary {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--mp-olivine-dark);
  background: var(--mp-olivine-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 0.55rem;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0.62rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-align: left;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.slot-time {
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 600;
}

.slot-state {
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 0.12rem;
}

.slot-free {
  background: var(--mp-olivine-soft);
  border-color: rgba(70, 120, 86, 0.42);
  color: var(--mp-olivine-dark);
  cursor: pointer;
}

.slot-free:hover {
  background: var(--mp-olivine);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(70, 120, 86, 0.22);
}

.slot-booked {
  background: var(--mp-cordovan-soft);
  border-color: rgba(130, 52, 59, 0.26);
  color: var(--mp-cordovan-dark);
  cursor: default;
}

.slot-break {
  background: var(--mp-amber-soft);
  border-color: rgba(168, 107, 29, 0.28);
  color: #7c4d10;
  cursor: default;
}

.slot-off {
  background: #e9e4da;
  border-color: #d6cfc1;
  color: #777166;
  cursor: default;
}

.inline-link {
  color: var(--mp-cordovan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--mp-eggshell);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-featured {
  background: var(--mp-oxford);
  color: var(--mp-ivory);
  border-color: var(--mp-old-gold);
}

.service-card-featured h3,
.service-card-featured .service-price {
  color: var(--mp-ivory);
}

.service-card-featured p {
  color: rgba(243, 237, 224, 0.8);
}

.service-card-featured .service-code,
.service-card-featured .service-cta {
  color: var(--mp-old-gold);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.service-code {
  color: var(--mp-cordovan);
  font-weight: 600;
}

.service-duration {
  opacity: 0.72;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--mp-umber);
  margin-bottom: 1.25rem;
}

.service-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(19, 34, 56, 0.12);
}

.service-card-featured .service-bottom {
  border-top-color: rgba(243, 237, 224, 0.14);
}

.service-price {
  font-weight: 700;
  font-size: 0.9rem;
}

.service-cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--mp-cordovan);
}

/* Loyalty card */
.loyalty {
  background: radial-gradient(ellipse at 76% 38%, #233853, #132238 55%, #0f1b2c);
  overflow: hidden;
}

.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 8vw, 8rem);
  align-items: center;
}

.loyalty-lead {
  color: #e0d9cd;
  max-width: 27rem;
  margin: 1.15rem 0 1.4rem;
  font-size: 1.12rem;
}

.stamp-card-wrap {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.card-stage {
  width: min(100%, 27rem);
  min-width: 0;
  perspective: 1050px;
}

.card-tilt,
.card-rotor {
  transform-style: preserve-3d;
}

.card-tilt {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.18s ease-out;
}

.card-rotor {
  display: grid;
  aspect-ratio: 1.65;
  transition: transform 0.5s cubic-bezier(0.24, 1, 0.35, 1);
}

.card-rotor.is-flipped { transform: rotateY(180deg); }

.card-face {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.9rem, 4vw, 1.6rem);
  border: 1px solid #cead59;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px #070c14a8;
  backface-visibility: hidden;
}

.card-face[inert] { pointer-events: none; }

.card-front {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--mp-ivory);
  background: linear-gradient(125deg, #14233a 24%, #233754 56%, #132238 88%);
}

.card-front::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -5% 0 34%;
  background: repeating-linear-gradient(135deg, transparent 0 10px, #e1bd5e41 10px 11px, transparent 11px 14px);
  mask-image: linear-gradient(90deg, transparent 12%, black);
  pointer-events: none;
}

.card-front-line {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: #e4c678;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
}

.card-front-line img {
  width: 2.2rem;
  height: auto;
  border: 1px solid #cfaa51;
}

.card-front p {
  margin: 0.35rem 0;
  font: 400 clamp(3.2rem, 7vw, 5.5rem)/0.69 var(--font-serif);
  letter-spacing: -0.055em;
}

.card-front-caption {
  color: #e4c678;
  font-size: 0.92rem;
  font-weight: 600;
}

.card-back {
  transform: rotateY(180deg);
  color: var(--mp-oxford);
  background: var(--mp-ivory);
  gap: 0.55rem;
}

.stamp-kicker {
  color: var(--mp-cordovan);
  font: 700 clamp(1.18rem, 3vw, 1.55rem)/1 var(--font-condensed);
  text-transform: uppercase;
}

.stamps-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.24rem, 1.1vw, 0.65rem);
}

.stamp-circle {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed #82343b;
  background: var(--mp-ivory);
  color: var(--mp-cordovan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.stamp-circle span {
  font: 700 clamp(1.25rem, 4vw, 1.95rem)/0.9 var(--font-condensed);
}

.stamp-circle small {
  font-size: 0.64rem;
  text-transform: uppercase;
  font-weight: 700;
}

.stamp-free-slot { background: #f0dfb5; }

.stamp-circle.is-stamped {
  background: var(--mp-cordovan);
  border-style: solid;
  color: white;
}

.stamp-circle.stamp-free-slot.is-stamped {
  background: var(--mp-old-gold);
  border-color: #a6822a;
  color: var(--mp-oxford);
}

.stamp-card-foot {
  margin: 0;
  min-height: 2.3em;
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 600;
}

.flip-button { min-height: 2.75rem; }

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.location-details {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mp-border);
}

.detail-row dt {
  font-weight: 700;
  color: var(--mp-cordovan);
  font-size: 0.86rem;
}

.detail-row dd {
  margin: 0;
  font-size: 0.93rem;
}

#studioWhatsappRow[hidden],
#sendWhatsappBookingBtn[hidden] { display: none; }

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-frame-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 5vw, 3rem);
  min-height: 17rem;
  background: var(--mp-cordovan-dark);
  border: 1px solid var(--mp-old-gold);
  color: var(--mp-ivory);
}

.map-frame-card img {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: clamp(2.6rem, 6vw, 4.5rem);
  height: auto;
}

.map-frame-card h3 {
  color: var(--mp-ivory);
  font: 400 clamp(3rem, 7vw, 5rem)/0.82 var(--font-serif);
}

.map-frame-card p {
  margin-bottom: 0.75rem;
  color: #f2d7a3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.map-frame-card .inline-link { color: #f2d7a3; }

/* Footer */
.site-footer {
  background: #0d1828;
  color: rgba(243, 237, 224, 0.8);
  padding: 2.25rem 0;
  border-top: 1px solid rgba(201, 164, 73, 0.3);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand-col,
.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-title {
  color: var(--mp-ivory);
  font: 700 1.42rem/1 var(--font-condensed);
  text-transform: uppercase;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-admin-link {
  background: transparent;
  color: var(--mp-old-gold);
  border: 1px solid rgba(201, 164, 73, 0.45);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 20, 34, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(540px, 100%);
  background: var(--mp-ivory);
  color: var(--mp-oxford);
  border-radius: var(--radius-lg);
  border: 1px solid var(--mp-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.modal-card-sm {
  width: min(430px, 100%);
}

.modal-card-xl {
  width: min(1040px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--mp-border);
  background: var(--mp-eggshell);
}

.admin-modal-head {
  background: var(--mp-oxford);
  color: var(--mp-ivory);
  border-bottom-color: rgba(201, 164, 73, 0.4);
}

.admin-modal-head h3 {
  color: var(--mp-ivory);
}

.admin-head-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--mp-umber);
  padding: 0 0.25rem;
}

.modal-close-light {
  color: var(--mp-ivory);
}

.modal-body {
  padding: 1.35rem 1.4rem;
  overflow-y: auto;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--mp-umber);
}

.selected-slot-summary {
  background: var(--mp-olivine-soft);
  border: 1px solid rgba(70, 120, 86, 0.35);
  color: var(--mp-olivine-dark);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.32rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.58rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mp-border);
  background: #fff;
  color: var(--mp-oxford);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(19, 34, 56, 0.22);
  border-color: var(--mp-oxford);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 1rem;
  cursor: pointer;
}

.modal-notice {
  font-size: 0.82rem;
  color: var(--mp-umber);
  background: var(--mp-eggshell);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--mp-umber);
}

.form-error {
  font-size: 0.84rem;
  color: var(--mp-cordovan);
  font-weight: 600;
}

/* Admin Panel Internals */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem 0;
  background: var(--mp-eggshell);
  border-bottom: 1px solid var(--mp-border);
}

.admin-tab {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  color: var(--mp-umber);
}

.admin-tab.is-active {
  background: var(--mp-ivory);
  color: var(--mp-oxford);
  border-color: var(--mp-border);
  border-bottom-color: var(--mp-ivory);
  margin-bottom: -1px;
}

.admin-tab-pane {
  padding: 1.25rem 1.4rem;
  overflow-y: auto;
}

.admin-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.admin-selectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.admin-paint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  background: var(--mp-eggshell);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mp-border);
}

.paint-label {
  font-size: 0.8rem;
  font-weight: 700;
}

.paint-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.paint-pill {
  border: 1px solid var(--mp-border);
  background: var(--mp-ivory);
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.paint-pill.is-active {
  background: var(--mp-oxford);
  color: var(--mp-ivory);
  border-color: var(--mp-oxford);
}

.admin-bulk-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.bulk-stats {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mp-umber);
}

.bulk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.15rem;
  align-items: start;
}

.admin-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 0.5rem;
}

.admin-slot-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.58rem 0.68rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--mp-border);
  cursor: pointer;
  text-align: left;
  transition: transform 0.1s ease;
}

.admin-slot-btn.is-selected {
  outline: 2px solid var(--mp-oxford);
  outline-offset: 1px;
}

.admin-slot-customer {
  font-size: 0.72rem;
  opacity: 0.86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.admin-inspector {
  background: var(--mp-eggshell);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: 1.05rem;
}

.inspector-empty h4 {
  font-size: 1rem;
}

.inspector-empty p {
  font-size: 0.85rem;
  color: var(--mp-umber);
  margin: 0;
}

.inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--mp-border);
}

.inspector-barber {
  font-size: 0.82rem;
  font-weight: 700;
}

.inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.settings-card {
  background: var(--mp-eggshell);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
}

.settings-card h4 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.settings-actions-stack {
  display: grid;
  gap: 0.55rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 120;
  background: var(--mp-oxford);
  color: var(--mp-ivory);
  border: 1px solid var(--mp-old-gold);
  padding: 0.72rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 920px) {
  .loyalty-grid,
  .location-grid,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  .detail-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .snapshot-stats {
    gap: 0.45rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

:focus-visible {
  outline: 2px solid #9b7522;
  outline-offset: 3px;
}

.hero :focus-visible,
.loyalty :focus-visible,
.site-footer :focus-visible {
  outline-color: #e5c777;
}

.card-back :focus-visible { outline-color: var(--mp-oxford); }

@media (max-width: 1050px) {
  .snapshot-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 2rem); }

  .hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy { padding: 2.7rem 1rem 2rem; }

  .hero-title { font-size: clamp(4.65rem, 16vw, 7.5rem); }

  .hero-photo {
    min-height: auto;
    aspect-ratio: 1.48;
  }

  .hero-photo img { object-position: 49% 32%; }

  .hero-photo::after {
    background: linear-gradient(180deg, #101c2d 0%, transparent 16%), linear-gradient(0deg, #0c131db3, transparent 25%);
  }

  .nav-actions > .btn { display: none; }
  .nav-inner { min-height: 60px; }
  .snapshot-layout { gap: 1rem; }
  .snapshot-offer { padding-inline: 0.7rem; }
}

@media (max-width: 400px) {
  .snapshot-layout { grid-template-columns: minmax(0, 1fr); }

  .hero-location { font-size: 0.76rem; }
  .hero-title { font-size: clamp(3.95rem, 17vw, 4.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-tilt { transform: none; }
  .card-tilt,
  .card-rotor { transition: none; }
}
