/* ===== BARBERSHOP TORONTO COOLCUTZ ===== */
/* Palette: deep charcoal (#1a1a1a), warm ivory (#f5f0eb), aged brass (#c9a96e) */
/* Type: Playfair Display (display) + Inter (body) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root {
  --base: #1a1a1a;
  --base-light: #2a2a2a;
  --foreground: #f5f0eb;
  --foreground-muted: #b5aea6;
  --accent: #c9a96e;
  --accent-hover: #dbbf8a;
  --accent-dim: rgba(201, 169, 110, 0.15);
  --section-light: #f5f0eb;
  --section-light-text: #1a1a1a;
  --section-light-muted: #6b6358;
  --card-bg: rgba(255, 255, 255, 0.04);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-measure: 65ch;
  --max-wide: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--base);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-dark {
  background: var(--base);
  color: var(--foreground);
}

.section-light {
  background: var(--section-light);
  color: var(--section-light-text);
}

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

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 110, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 var(--space-lg);
}

.hero-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.8rem, 10vw, 7rem);
  line-height: 1.05;
  margin: 0 0 var(--space-md) 0;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--foreground-muted);
  max-width: 550px;
  margin: 0 auto var(--space-xl) auto;
  line-height: 1.5;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--base);
  background: var(--accent);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-phone {
  display: block;
  margin-top: var(--space-lg);
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--foreground-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-phone:hover {
  color: var(--accent);
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.review-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: var(--space-lg);
  position: relative;
}

.review-card::before {
  content: '"';
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}

.review-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
  color: var(--foreground);
  position: relative;
  z-index: 1;
}

.review-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.review-stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: var(--space-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
  color: var(--foreground);
}

.service-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--foreground-muted);
  margin: 0;
}

.service-price {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-md);
}

/* ===== HOURS ===== */
.hours-table {
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: var(--space-sm) 0;
  font-size: 0.95rem;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--foreground-muted);
}

.hours-table .today td {
  color: var(--accent);
  font-weight: 600;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--foreground);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--base);
  background: var(--accent);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.contact-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.contact-form button:active {
  transform: translateY(0);
}

.form-status {
  font-size: 0.9rem;
  margin: 0;
  padding: var(--space-sm) 0;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.1;
}

.section-header p {
  font-size: 1rem;
  color: var(--foreground-muted);
  max-width: 500px;
  margin: 0 auto;
}

.section-light .section-header h2 {
  color: var(--section-light-text);
}

.section-light .section-header p {
  color: var(--section-light-muted);
}

/* ===== LIGHT SECTION OVERRIDES ===== */
.section-light .service-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.section-light .service-card:hover {
  border-color: var(--accent);
}

.section-light .service-name {
  color: var(--section-light-text);
}

.section-light .service-desc {
  color: var(--section-light-muted);
}

.section-light .hours-table tr {
  border-color: rgba(0, 0, 0, 0.08);
}

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

.section-light .contact-form input,
.section-light .contact-form textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--section-light-text);
}

.section-light .contact-form input:focus,
.section-light .contact-form textarea:focus {
  border-color: var(--accent);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  font-size: 0.85rem;
  color: var(--foreground-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .address {
  font-style: normal;
  margin-bottom: var(--space-sm);
}

.site-footer .attribution {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: var(--space-md);
}

.site-footer .attribution a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer .attribution a:hover {
  text-decoration: underline;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
  border: none;
  margin: 0;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}

.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 639px) {
  .container {
    padding: 0 var(--space-md);
  }
  .section-pad {
    padding: var(--space-xl) 0;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }
  .hero-cta {
    font-size: 1rem;
    padding: 0.85rem 2rem;
    width: 100%;
    justify-content: center;
  }
  .reviews-grid,
  .services-grid {
    padding: 0 var(--space-md);
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 var(--space-md);
  }
  .gallery-grid img {
    height: 160px;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
}

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