/* ============================================
   TheColorCo. — Base styles + global typography
   ============================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "kern";
}

::selection {
  background: var(--burgundy);
  color: var(--cream);
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--burgundy);
  margin: 0 0 var(--sp-3);
}

h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); margin: 0 0 var(--sp-2); }

p, li {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
}
p { margin: 0 0 var(--sp-3); }
span { font-family: inherit; color: inherit; }

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

button { font-family: inherit; cursor: pointer; }

.pre-label {
  font-family: var(--font-sans);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Image placeholder shared pattern */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 16px;
}

/* ============================================
   Logo
   ============================================ */
.logo-img {
  display: block;
  width: 136px;
  height: 136px;
  object-fit: contain;
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
}
.site-nav.scrolled .logo-img {
  width: 104px;
  height: 104px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link:hover .logo-img { transform: scale(1.04); }

@media (max-width: 768px) {
  .logo-img { width: 96px; height: 96px; }
  .site-nav.scrolled .logo-img { width: 80px; height: 80px; }
}

/* Footer variant — transparent PNG re-tinted to white via filter so the
   burgundy elements stand out against the burgundy-dark footer. */
.footer-logo-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ============================================
   Global buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.35s ease,
              transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.45s ease,
              border-color 0.35s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--burgundy);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 6px rgba(107, 31, 42, 0.12);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(107, 31, 42, 0.28);
}

.btn-rose {
  background: var(--rose);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 6px rgba(196, 83, 106, 0.18);
}
.btn-rose:hover {
  background: #a8384f;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(196, 83, 106, 0.32);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
}
.btn-ghost:hover {
  background: var(--burgundy);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: white;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* ============================================
   Scroll-reveal utility
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero trust line (below CTAs)
   ============================================ */
.hero-trust {
  margin: var(--sp-4) 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
}
