/* ==========================================================================
   LivingBrush — Brand tokens & styles
   ========================================================================== */

:root {
  --primary:    hsl(280, 60%, 35%);
  --accent:     hsl(45, 70%, 55%);
  --bg:         hsl(240, 8%, 6%);
  --fg:         hsl(40, 20%, 92%);
  --fg-muted:   hsl(40, 10%, 55%);
  --fg-dim:     hsl(40, 8%, 38%);
  --border:     hsl(240, 8%, 12%);
  --gap:        2px;
}

/* === Reset ================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* === Page-load reveal ===================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Wordmark + headline section ========================================== */

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3.75rem;
  background: var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
  text-align: center;
}

.wordmark img {
  width: 210px;
  height: auto;
  opacity: 0.95;
}

.headlines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 26ch;
}

.subheadline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 56ch;
  line-height: 2;
}

/* === Gallery ============================================================== */

.gallery-section {
  background: #000;
  width: 100%;
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0a0a0a;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition:
    transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.65s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
  opacity: 0.85;
}

.gallery-img--top {
  object-position: center top;
}

/* === About ================================================================ */

.about-section {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  background: var(--bg);
}

.about-inner {
  max-width: 54ch;
  text-align: center;
}

.about-text {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.85;
  color: var(--fg-muted);
}

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

.contact-section {
  padding: 0 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.btn-contact {
  display: inline-block;
  padding: 0.875rem 2.75rem;
  background: var(--accent);
  color: hsl(240, 8%, 6%);
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.22s ease, transform 0.22s ease;
}

.btn-contact:hover {
  background: hsl(45, 70%, 63%);
  transform: translateY(-1px);
}

.link-facebook {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s ease;
}

.link-facebook:hover {
  color: var(--fg-muted);
}

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

.site-footer {
  padding: 1.75rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* === Mobile =============================================================== */

@media (max-width: 767px) {
  .hero-section {
    padding: 1.75rem 1.5rem 1.625rem;
  }

  .hero-inner {
    gap: 2.5rem;
  }

  .wordmark img {
    width: 175px;
  }

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

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .about-section {
    padding: 4rem 1.5rem;
  }

  .contact-section {
    padding: 0 1.5rem 4rem;
  }
}

/* === Tablet =============================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item {
    aspect-ratio: 3 / 4;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery-img {
    transition: none;
  }

  .btn-contact {
    transition: none;
  }
}
