/* Minimal fallback rules for every class in the shared contract.
 *
 * Always prepended to the model-generated stylesheet, which overrides it via the normal
 * later-wins cascade. This exists because the stylesheet and the pages are generated by
 * separate model calls, so the stylesheet can omit a contract class -- which used to fail
 * the whole build (a real business, find-dog, died on a missing `btn-primary`). With this
 * in place a missed rule degrades to plain-but-styled instead of destroying the build.
 *
 * Keep these deliberately neutral and low-specificity: they are a safety net, not a design.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Owner-uploaded pictures. Without explicit sizing an <img> renders at its natural size,
 * so a phone photo used as a logo would fill the whole header. */
.logo-mark { height: 2.5rem; width: auto; object-fit: contain; }
.hero-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: .5rem; }
.gallery-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem; }
.about-image { width: 100%; max-width: 420px; border-radius: .5rem; }

.site-header { padding: 1rem 0; }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; }
.logo-text { font-weight: 700; }
.main-nav { display: block; }
.nav-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; }
.nav-link:hover, .nav-link:focus { text-decoration: underline; }
.is-current { font-weight: 700; }

.hero, .page-hero { padding: 3rem 0; }

/* A photo sitting BEHIND the hero text instead of above it. The picture itself is set as
 * an inline `background-image` on the element, because it is per-business data the
 * stylesheet cannot know; these rules supply the darkening overlay and the stacking that
 * keep the heading readable over any photo, light or dark.
 *
 * Exists because an owner asked twice for exactly this and there was no way to express
 * it -- the only picture vocabulary was `.hero-image`, an <img> in the normal page flow. */
.hero-bg { position: relative; background-size: cover; background-position: center;
  padding: 5rem 0; overflow: hidden; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.hero-bg > * { position: relative; z-index: 1; }
.hero-bg .hero-title, .hero-bg .hero-subtitle { color: #fff; }
.hero-inner { display: flex; flex-direction: column; gap: 1rem; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }
.hero-subtitle { margin: 0; font-size: 1.125rem; }

.section { padding: 3rem 0; }
.section-alt { padding: 3rem 0; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-intro { margin: 0 0 1.5rem; max-width: 60ch; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { padding: 1.25rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.card-text { margin: 0; }

.steps { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; }
.step-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.step-text { margin: 0; }

/* FAQ items are <details>/<summary>: they expand on click with no JavaScript. */
html { scroll-behavior: smooth; }
.faq-list { display: grid; gap: 1rem; margin: 0; padding: 0; }
.faq-item { padding: 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.faq-question { margin: 0; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-weight: 700; flex: 0 0 auto; }
details[open] > .faq-question::after { content: "\2212"; }
.faq-answer { margin: .75rem 0 0; }

.cta-band { padding: 3rem 0; text-align: center; }
.cta-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cta-text { margin: 0 0 1.25rem; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: .4rem; text-decoration: none;
  border: 1px solid currentColor; cursor: pointer; }
.btn:hover, .btn:focus { opacity: .85; }
.btn-primary { font-weight: 600; }
.btn-secondary { font-weight: 500; background: transparent; }

.contact-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.contact-item { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-label { font-weight: 600; }
.contact-value { }

.site-footer { padding: 2rem 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-col { }
.footer-title { margin: 0 0 .5rem; font-size: 1rem; }
.footer-note { margin: 0; font-size: .9rem; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .step { flex-direction: column; }
}

/* ---- generated ---- */
:root {
  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
  --color-bg: #f7f1ee;
  --color-surface: #efe4df;
  --color-ink: #2a2320;
  --color-muted: #86807d;
  --color-border: #d8d2cf;
  --color-accent: #b23a48;
  --color-accent-ink: #ffffff;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
}

h1, h2, h3,
.hero-title, .section-title, .card-title, .cta-title, .step-title, .footer-title, .logo-text {
  font-family: var(--font-display);
}

/* ============================================
   Looksalon — shared stylesheet
   ============================================ */

:root {
  /* palette */
  --color-bg: #f7f1ee;
  --color-surface: #efe4df;
  --color-text: #2a2320;
  --color-text-secondary: #86807d;
  --color-border: #d8d2cf;
  --color-accent: #b23a48;
  --color-accent-ink: #ffffff;

  /* type */
  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;

  /* spacing scale */
  --space-2xs: 0.4rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  /* radii */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 28px;

  /* shadow */
  --shadow-card: 0 18px 40px -20px rgba(42, 35, 32, 0.35);
  --shadow-card-hover: 0 24px 48px -18px rgba(42, 35, 32, 0.45);

  /* motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;
}

/* ============================================
   Reset & base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--color-text);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0 0 1em;
  max-width: 38em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

/* ============================================
   Layout
   ============================================ */

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

/* ============================================
   Signature device — the curved comb-sweep rule
   ============================================ */

.section-title,
.hero-title,
.card-title,
.faq-question,
.logo-text {
  position: relative;
}

.section-title::after,
.card-title::after,
.faq-question::after {
  content: "";
  display: block;
  width: 64px;
  height: 18px;
  margin-top: var(--space-xs);
  border-bottom: 4px solid var(--color-accent);
  border-radius: 0 0 50% 50%;
}

.card-title::after {
  width: 40px;
  height: 12px;
  margin-top: var(--space-2xs);
  border-bottom-width: 3px;
}

.faq-question::after {
  display: none;
}

.hero-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 24px;
  margin-top: var(--space-sm);
  border-bottom: 5px solid var(--color-accent-ink);
  border-radius: 0 0 50% 50%;
  opacity: 0.9;
}

.hero:not(.hero-bg) .hero-title::after {
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--dur-med) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(42, 35, 32, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.logo-text::after {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-2xs) 0;
  position: relative;
  transition: color var(--dur-fast) var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease);
}

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

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-link.is-current {
  color: var(--color-accent);
}

.nav-link.is-current::after {
  transform: scaleX(1);
}

/* mobile nav toggle support (class-based, JS optional) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2xs);
}

.main-nav.is-open .nav-list {
  display: flex;
}

/* ============================================
   Hero
   ============================================ */

.hero,
.page-hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--color-surface);
  overflow: hidden;
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-bg {
  background-size: cover;
  background-position: center;
  color: var(--color-accent-ink);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 35, 32, 0.55), rgba(42, 35, 32, 0.65));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-bg .hero-inner {
  color: var(--color-accent-ink);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600;
}

.page-hero .hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.hero-subtitle {
  margin-top: var(--space-sm);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--color-text-secondary);
  max-width: 34em;
}

.hero-bg .hero-subtitle {
  color: rgba(255, 255, 255, 0.88);
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-card);
}

/* ============================================
   Sections
   ============================================ */

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

.section-alt {
  background: var(--color-surface);
}

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.section-intro {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 42em;
  margin-bottom: var(--space-lg);
}

/* ============================================
   Cards
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-2xs);
}

.card-text {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   Process steps
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: var(--space-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-2xs);
}

.step-text {
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 46rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: border-color var(--dur-fast) var(--ease);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-item[open] {
  border-color: var(--color-accent);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::before {
  transform: rotate(45deg);
}

.faq-answer {
  padding-top: var(--space-sm);
  color: var(--color-text-secondary);
}

/* ============================================
   CTA band
   ============================================ */

.cta-band {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-accent-ink);
}

.cta-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 18px;
  margin: var(--space-xs) auto 0;
  border-bottom: 4px solid var(--color-accent-ink);
  border-radius: 0 0 50% 50%;
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 34em;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-accent-ink);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.cta-band .btn-secondary {
  border-color: var(--color-accent-ink);
  color: var(--color-accent-ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

.cta-band .btn-secondary:hover,
.cta-band .btn-secondary:focus-visible {
  background: var(--color-accent-ink);
  color: var(--color-accent);
}

/* ============================================
   Contact details
   ============================================ */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.contact-value {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--color-text);
}

.contact-value a {
  color: inherit;
}

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

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-bg);
  margin-bottom: var(--space-2xs);
}

.footer-col a {
  color: rgba(247, 241, 238, 0.75);
}

.footer-col a:hover {
  color: var(--color-bg);
}

.footer-note {
  grid-column: 1 / -1;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(247, 241, 238, 0.15);
  color: rgba(247, 241, 238, 0.55);
  font-size: 0.85rem;
}

/* ============================================
   Scroll reveal + carousel state hooks
   ============================================ */

.is-visible {
  animation: reveal-up var(--dur-med) var(--ease) both;
}

[data-reveal] {
  opacity: 1;
}

[data-reveal].js-hidden {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-active {
  outline: 2px solid var(--color-accent);
}

/* back to top */
.back-to-top {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-md);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-fast) var(--ease);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal].js-hidden {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Media queries
   ============================================ */

/* Large screens: slightly roomier hero */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .hero-inner {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-2xl: 5rem;
    --space-xl: 3.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    gap: var(--space-sm);
    width: 100%;
    justify-content: flex-start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-col:first-child {
    grid-column: auto;
  }

  .hero,
  .page-hero {
    padding: var(--space-xl) 0 var(--space-lg);
    text-align: left;
  }

  .cta-band .container {
    padding: 0 var(--space-md);
  }

  .back-to-top {
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}