/* ============================================
   THE CUTTING ROOM — Hair Salon, Toronto
   Palette: near-black (#0a0a0a) · warm ivory (#f5f0eb) · deep crimson (#c73e3e)
   Type: Playfair Display (display) · Source Sans 3 (body)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — 3 tones */
  --black: #0a0a0a;
  --ivory: #f5f0eb;
  --crimson: #c73e3e;

  /* Semantic tokens */
  --bg: var(--black);
  --text: var(--ivory);
  --text-muted: rgba(245, 240, 235, 0.55);
  --accent: var(--crimson);
  --accent-hover: #b02e2e;
  --card-bg: rgba(245, 240, 235, 0.06);
  --card-border: rgba(245, 240, 235, 0.1);
  --focus-ring: var(--crimson);

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Type */
  --display: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --content-max: 1200px;
  --content-narrow: 800px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent-hover); }

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

/* --- UTILITY --- */
.section-label {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(245, 240, 235, 0.3);
}
.btn-outline:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-small {
  font-size: 0.875rem;
  padding: 0.65rem 1.3rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(199, 62, 62, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 240, 235, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-narrow);
}

.hero-label {
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.2rem, 12vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-xl);
}

.hero-title .accent-word {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.hero-review {
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  border: none;
  padding: 0;
}

.hero-review p {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.hero-review cite {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  opacity: 0.4;
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   INTRO
   ============================================ */
.intro {
  padding: var(--space-4xl) var(--space-xl);
}

.intro-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  max-width: 65ch;
}

.intro-text:last-of-type {
  margin-bottom: 0;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  padding: var(--space-4xl) var(--space-xl);
  background: rgba(245, 240, 235, 0.03);
}

.reviews-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: var(--space-xl);
  border-radius: 2px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 240, 235, 0.2);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.review-card blockquote {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.review-card blockquote p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.review-card cite {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: var(--space-4xl) var(--space-xl);
}

.gallery-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.gallery-item {
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(0.3) brightness(0.85);
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0) brightness(1);
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  max-height: 55vh;
}

.gallery-item:not(.gallery-item--wide) img {
  aspect-ratio: 4 / 3;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: var(--space-4xl) var(--space-xl);
  background: rgba(245, 240, 235, 0.03);
}

.services-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  padding: var(--space-xl);
  border-left: 3px solid var(--accent);
  transition: padding-left 0.3s ease;
}

.service-card:hover {
  padding-left: var(--space-2xl);
}

.service-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================
   INFO (HOURS + LOCATION)
   ============================================ */
.info {
  padding: var(--space-4xl) var(--space-xl);
}

.info-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours-table td {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
}

.hours-table td:first-child {
  font-weight: 600;
  width: 40%;
  color: var(--text);
}

.hours-table td:last-child {
  color: var(--text-muted);
}

.hours-closed {
  color: var(--accent) !important;
  font-weight: 500;
}

.info-address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.info-address strong {
  color: var(--text);
  font-weight: 600;
}

.info-address a {
  color: var(--accent);
}

.info-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact {
  padding: var(--space-4xl) var(--space-xl);
  background: rgba(245, 240, 235, 0.03);
}

.contact-inner {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.contact-intro a {
  font-weight: 600;
}

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

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

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

.form-row .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.form-row input,
.form-row textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(245, 240, 235, 0.06);
  border: 1px solid rgba(245, 240, 235, 0.15);
  border-radius: 2px;
  color: var(--text);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(245, 240, 235, 0.3);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(245, 240, 235, 0.08);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid rgba(245, 240, 235, 0.08);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.footer-name {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.footer-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-detail a {
  color: var(--text-muted);
}

.attribution {
  font-size: 0.75rem;
  opacity: 0.5;
}

.attribution a {
  color: var(--text-muted);
  text-decoration: none;
}

.attribution a:hover {
  color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet & small desktop */
@media (max-width: 900px) {
  .info-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

/* Mobile */
@media (max-width: 640px) {
  :root {
    --space-4xl: 3rem;
    --space-3xl: 2.5rem;
  }

  .hero {
    min-height: 90vh;
    padding: var(--space-lg) var(--space-md);
  }

  .hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-review p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .gallery-item--wide img {
    max-height: 40vh;
  }

  .gallery-item:not(.gallery-item--wide) img {
    aspect-ratio: 16 / 10;
  }

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

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

  .contact-form .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
}

/* ============================================
   MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
