@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* Cece's Hair Place — canonical mobile-first public stylesheet */
:root {
  color-scheme: light;
  --wine: #681c35;
  --wine-dark: #36101f;
  --gold: #c9a46a;
  --cream: #faf7f2;
  --ink: #292127;
  --muted: #6d6266;
  --line: #eadfd7;
  --content-width: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.65 'DM Sans', system-ui, sans-serif;
  text-align: center;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--wine); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -90px;
  z-index: 200;
  padding: 10px 15px;
  background: white;
}
.skip:focus { top: 10px; }

/* Shared site header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--wine);
  color: white;
  border-bottom: 1px solid #ffffff22;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, var(--content-width));
  min-height: 76px;
  margin-inline: auto;
  padding: 10px 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: white;
  text-decoration: none;
  text-align: left;
}
.brand-mark {
  flex: none;
  width: 49px;
  height: 49px;
  object-fit: contain;
  border-radius: 50%;
  background: #f7eee7;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.04;
  white-space: nowrap;
}
.brand-copy strong { font: 600 clamp(1.2rem, 5vw, 1.65rem)/1.05 'Playfair Display', Georgia, serif; }
.brand-copy small {
  margin-top: 5px;
  color: #e9c995;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .26em;
}
.desktop-nav, .header-book { display: none; }
.menu-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid #ffffff55;
  border-radius: 12px;
  background: #ffffff12;
  color: white;
}
.menu-bars { display: grid; gap: 5px; }
.menu-bars i { width: 22px; height: 2px; border-radius: 2px; background: white; }
.menu-bars i:last-child { width: 15px; }

/* Mobile slide-out navigation: intentionally left aligned */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #130a10b8;
  backdrop-filter: blur(3px);
}
.menu-backdrop[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(390px, 88vw);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  box-shadow: -18px 0 50px #0003;
  text-align: left;
  transform: translateX(105%);
  transition: transform .28s ease;
}
.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 25px 20px;
  border-bottom: 1px solid var(--line);
}
.menu-title { color: var(--wine); font: 600 1.5rem 'Playfair Display', Georgia, serif; }
.menu-title em { color: #ae7b48; }
.menu-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--wine);
  font-size: 2rem;
  line-height: 1;
}
.mobile-nav { padding: 12px 25px; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.07rem;
  font-weight: 600;
  text-decoration: none;
}
.mobile-nav a span:last-child { color: var(--gold); }
.mobile-nav a[aria-current='page'] { color: var(--wine); }
.mobile-menu-bottom { margin-top: auto; padding: 26px; background: #f2e8e0; }
.mobile-menu-bottom p {
  margin: 0 0 12px;
  color: var(--wine);
  font: italic 1.3rem 'Playfair Display', Georgia, serif;
  text-align: center;
}
.mobile-menu-bottom .button { width: 100%; }
.mobile-menu-bottom small { display: block; margin-top: 14px; color: var(--muted); text-align: center; }

/* Public content — centered by design, not by later overrides */
.container {
  width: min(100%, var(--content-width));
  min-height: 65vh;
  margin-inline: auto;
  padding: 24px 18px 70px;
}
.hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--wine), var(--wine-dark));
  color: white;
}
.hero-content { position: relative; z-index: 1; padding: 44px 25px 38px; text-align: center; }
.eyebrow, .section-eyebrow { color: #e1bd84; font-size: .72rem; font-weight: 700; letter-spacing: .19em; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; margin-right: 8px; background: var(--gold); vertical-align: middle; }
.hero-kicker { margin: 27px 0 6px; color: #e9d5ca; font-size: .92rem; }
.hero h1 {
  margin: 0 0 23px;
  font: 600 clamp(2.55rem, 9vw, 5.8rem)/1.13 'Playfair Display', Georgia, serif;
  letter-spacing: -.035em;
}
.hero h1 em { color: #edc88d; font-weight: 500; }
.hero-description { max-width: 530px; margin: 0 auto 26px; color: #f4e7e7; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 11px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: var(--gold);
  color: #2c1720;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .2s, background .2s;
}
.button:hover { transform: translateY(-2px); background: #dfbb83; }
.button.secondary { background: transparent; color: white; }
.button.secondary:hover { background: #ffffff13; }
.hero-note { margin-top: 27px; color: #e6cbbf; font-size: .79rem; }
.hero-note span { margin-right: 7px; color: var(--gold); }
.hero-visual {
  display: grid;
  place-items: center;
  min-height: 290px;
  padding: 20px;
  background: radial-gradient(circle at center, #ac6e63 0%, #63273a 60%, #3a1323 100%);
}
.hero-visual img {
  display: block;
  width: min(340px, 88%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 16px 40px #14060d55;
}
.welcome-section { display: grid; gap: 14px; padding: 46px 8px 16px; text-align: center; }
.section-eyebrow { color: #9e784b; }
.welcome-section h2 {
  margin: 6px 0;
  font: 600 clamp(2rem, 6vw, 3.5rem)/1.2 'Playfair Display', Georgia, serif;
}
.welcome-section h2 em { color: var(--wine); }
.welcome-section p { margin: 0 0 12px; color: var(--muted); }
.text-link { padding-bottom: 5px; border-bottom: 1px solid var(--gold); font-weight: 700; text-decoration: none; }
.panel { margin-top: 26px; padding: 25px; border-radius: 17px; background: white; box-shadow: 0 8px 28px #0000000a; text-align: center; }
.stage-note { border-top: 4px solid var(--gold); }
.stage-note h2 { font: 600 1.6rem 'Playfair Display', Georgia, serif; }
.footer { padding: 30px 20px; background: #30131e; color: #f8f1e7; text-align: center; }
.footer a { color: #e6c58f; }

/* Forms and administration: intentional readability alignment */
form, form label, form input, form select, form textarea { text-align: left; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 15px; text-align: left; }
.sidebar { display: flex; flex-direction: column; gap: 9px; padding: 18px; border-radius: 12px; background: white; }
.sidebar a { padding: 4px 0; }
.admin-content { min-width: 0; text-align: left; }
.admin-content h1, .admin-content h2, .admin-content h3, .admin-content p { text-align: left; }
.admin-content table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-content th, .admin-content td { text-align: left; }
.login { max-width: 480px; margin: 45px auto; text-align: left; }
.login label { display: block; margin: 12px 0; font-weight: 600; }
.login input { width: 100%; padding: 11px; border: 1px solid #aaa; border-radius: 7px; }
.error { color: #a00020; }

/* Tablet and desktop enhancements */
@media (min-width: 700px) {
  .container { padding: 34px 28px 85px; }
  .hero { grid-template-columns: 1.15fr .85fr; min-height: 510px; }
  .hero-content { align-self: center; padding: 60px 40px; }
  .hero-visual { min-height: 100%; padding: 18px; }
  .hero-visual img { width: min(420px, 96%); }
  .welcome-section { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 65px 10px 20px; }
  .admin-layout { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (min-width: 1000px) {
  .top-inner { padding: 12px 32px; }
  .desktop-nav { display: flex; align-items: center; gap: 17px; margin-left: auto; }
  .desktop-nav a { color: #f8eef1; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: #e6c58f; }
  .header-book { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 8px; background: var(--gold); color: #321823; font-size: .83rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
  .menu-toggle { display: none; }
  .hero-content { padding: 75px 60px; }
  .hero h1 { font-size: clamp(3.4rem, 5vw, 5.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
