/* ==========================================================================
   Custom Hair Creations — site styles
   Design tokens first. Change colors, spacing, and type here, never inline.
   ========================================================================== */

:root {
  /* Rose scale — muted and dusty, deliberately not bubblegum */
  --rose-50:  #fdf6f7;
  --rose-100: #f8eaee;
  --rose-200: #eecfd7;
  --rose-300: #e0b0bc;
  --rose-400: #c98b98;
  --rose-600: #a85a6e;
  --rose-700: #93475c;
  --rose-800: #7a3549;

  /* Neutrals — warm, never pure black or pure white */
  --cream:    #fffcfa;
  --blush:    #fbf2f3;
  --plum-900: #3f2430;
  --ink:      #4a3a40;
  --muted:    #766068;
  --line:     #ecdde1;
  --surface:  #ffffff;

  --accent:      var(--rose-700);
  --accent-hover: var(--rose-800);
  --on-accent:   #ffffff;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --measure: 62ch;
  --container: 68rem;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(63, 36, 48, 0.06),
               0 2px 8px rgba(63, 36, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(63, 36, 48, 0.08),
               0 12px 32px rgba(63, 36, 48, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream:    #171013;
    --blush:    #1f1619;
    --surface:  #241a1e;
    --plum-900: #f6eaee;
    --ink:      #e6d6db;
    --muted:    #bda6ae;
    --line:     #3b2b31;

    --accent:       #e8a9b8;
    --accent-hover: #f2c2cd;
    --on-accent:    #2a161e;

    --rose-50:  #211619;
    --rose-100: #2b1d22;
    --rose-200: #4a3038;
    --rose-800: #f0bcc8;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--plum-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
  text-wrap: pretty;
}

a {
  color: var(--rose-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--accent-hover); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tint {
  background-color: var(--blush);
}

.section__intro {
  max-width: 46rem;
  margin-bottom: var(--space-xl);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100%;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-xs);
  color: var(--on-accent);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.button--primary {
  background-color: var(--accent);
  color: var(--on-accent);
}

.button--primary:hover {
  background-color: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.button--ghost {
  background-color: transparent;
  border-color: var(--rose-300);
  color: var(--rose-800);
}

.button--ghost:hover {
  background-color: var(--rose-100);
  border-color: var(--accent);
  color: var(--rose-800);
}

.button__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--plum-900);
}

.wordmark__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.wordmark__petals { fill: var(--rose-300); }
.wordmark__center { fill: var(--accent); }

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark__tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
  color: var(--rose-800);
  border-bottom-color: var(--accent);
}

@media (max-width: 56rem) {
  .site-nav__list { display: none; }
}

/* On the narrowest screens the header keeps the mark and an icon-only call
   button. The number stays in the accessibility tree via .visually-hidden. */
@media (max-width: 30rem) {
  .wordmark__tag { display: none; }
  .wordmark__name { font-size: 1.05rem; }

  .site-header .button { padding-inline: 0.85rem; }

  .site-header .button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--rose-100), transparent 60%),
    linear-gradient(180deg, var(--rose-50), var(--cream) 70%);
  padding-block: var(--space-2xl) var(--space-xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero__note {
  margin-top: var(--space-md);
  font-size: 0.92rem;
  color: var(--muted);
}

.hero__figure {
  position: relative;
  margin: 0;
}

/* The wig photos are pre-cropped to 4:3 around the pieces themselves, so the
   ratio here must match the asset. Anything else crops the tops of the wigs. */
.hero__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .hero__figure { order: -1; }
  .hero__lede { max-width: var(--measure); }
}

/* --------------------------------------------------------------------------
   Credentials strip
   -------------------------------------------------------------------------- */

.credentials {
  border-block: 1px solid var(--line);
  background-color: var(--surface);
}

.credentials__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--space-md) var(--space-lg);
  list-style: none;
  margin: 0;
  padding-block: var(--space-lg);
}

.credentials__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.credentials__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: var(--accent);
  margin-top: 0.1rem;
}

.credentials__item strong {
  display: block;
  color: var(--plum-900);
  font-weight: 600;
}

.credentials__item span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__figure {
  margin: 0;
}

.about__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.about__quote {
  border-left: 3px solid var(--rose-300);
  padding-left: var(--space-md);
  margin: 0 0 var(--space-md);
}

.about__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--plum-900);
  font-style: italic;
}

.about__quote p:last-child { margin-bottom: 0; }

.about__signature {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: var(--space-md);
}

.about__signature span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

@media (max-width: 56rem) {
  .about__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .about__figure { max-width: 20rem; }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

/* Four services. Explicit column counts rather than auto-fit, so a wide
   viewport never leaves a single orphan card on its own row. */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 38rem) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .services__grid { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--rose-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: var(--accent);
  margin-bottom: var(--space-sm);
}

.service-card h3 {
  margin-bottom: 0.5rem;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-card > .service-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.service-card__price span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-card__list li {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--rose-800);
  background-color: var(--rose-100);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-md);
}

.gallery__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--surface);
}

.gallery__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.gallery__figure figcaption {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery__note {
  margin-top: var(--space-lg);
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews__panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-lg), 5vw, var(--space-xl));
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Purely ornamental. Deliberately not a row of stars — the site must not
   imply a star rating we have not verified. */
.reviews__ornament {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto var(--space-md);
}

.reviews__ornament .wordmark__petals { fill: var(--rose-200); }

.reviews__panel h2 {
  margin-bottom: var(--space-sm);
}

.reviews__panel p {
  margin-inline: auto;
  color: var(--muted);
}

.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.contact__method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact__method:hover {
  border-color: var(--accent);
  background-color: var(--rose-50);
  color: var(--ink);
}

.contact__method svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: var(--accent);
}

.contact__method-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__method-value {
  display: block;
  font-weight: 600;
  color: var(--plum-900);
  word-break: break-word;
}

.contact__aside h3 {
  margin-bottom: var(--space-xs);
}

.contact__aside p {
  color: var(--muted);
  font-size: 0.98rem;
}

.contact__areas {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.contact__areas li {
  font-size: 0.85rem;
  color: var(--rose-800);
  background-color: var(--rose-100);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

@media (max-width: 56rem) {
  .contact__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--blush);
  border-top: 1px solid var(--line);
  padding-block: var(--space-lg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer p { margin: 0; max-width: none; }

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .hero__actions,
  .reviews__actions,
  .skip-link { display: none; }

  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
}
