/* ===================================================================
   CARMELICIOUS CREATIVE STUDIO — Components
   Reusable building blocks shared across all pages. Loaded globally.
   =================================================================== */

/* ═══ BUTTONS ═══ */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.75rem; border: 1px solid transparent; cursor: pointer;
  border-radius: var(--cc-radius-xl);
  font-family: var(--cc-font-body); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  transition: transform var(--cc-transition), filter var(--cc-transition),
              background var(--cc-transition), color var(--cc-transition),
              border-color var(--cc-transition), box-shadow var(--cc-transition);
}
.cc-btn:hover { transform: translateY(-2px); }
.cc-btn:active { transform: translateY(0); }
.cc-btn:focus-visible {
  outline: 2px solid var(--cc-peach); outline-offset: 3px;
}

/* Primary CTA — a soft peach pill with warm dark ink. A peach→peach-light fill
   keeps the button airy (morning light) while giving the dark label comfortable
   contrast: --cc-on-accent (#2A251E) measures 6.4:1 on --cc-peach and 8.4:1 on
   --cc-peach-light — well past AA 4.5:1 across the whole gradient. (White text
   was rejected: it is only ~2.4:1 on this light peach.) */
.cc-btn--primary {
  background: linear-gradient(95deg, var(--cc-peach), var(--cc-peach-light));
  color: var(--cc-on-accent);
  box-shadow: var(--cc-shadow-peach);
  /* Subtle lift: a touch more saturation + brightness so the peach reads warmer
     and less dull, without tipping into flashy. Darkening the fill only raises
     contrast with the dark --cc-on-accent label, so legibility is unaffected. */
  filter: saturate(1.28) brightness(1.1);
}
.cc-btn--primary:hover { filter: saturate(1.28) brightness(1.14); box-shadow: 0 14px 34px -6px rgba(184,122,78,0.42); }

.cc-btn--ghost {
  background: transparent; color: var(--cc-cream);
  border-color: rgba(184,122,78,0.5);   /* --cc-peach-dark tint */
}
.cc-btn--ghost:hover { border-color: var(--cc-peach-dark); color: var(--cc-peach-dark); }

.cc-btn--teal {
  background: var(--cc-teal); color: var(--cc-champagne);
}
.cc-btn--teal:hover { background: var(--cc-teal-light); }

.cc-btn-row {
  display: flex; flex-wrap: wrap; gap: var(--cc-space-md);
  justify-content: center; margin-top: var(--cc-space-lg);
}

/* ═══ EYEBROW LABEL ═══ */
.cc-eyebrow {
  font-family: var(--cc-font-body); font-weight: 400;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cc-peach-dark); margin-bottom: var(--cc-space-md);
}
/* Centred variant with flanking hairlines */
.cc-eyebrow--lined {
  display: flex; align-items: center; justify-content: center; gap: 1.25rem;
}
.cc-eyebrow--lined::before, .cc-eyebrow--lined::after {
  content: ''; flex: 1; max-width: 70px; height: 1px;
  background: var(--cc-line);
}

/* ═══ HEADINGS ═══ */
.cc-h1 {
  font-family: var(--cc-font-heading); font-style: italic; font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--cc-cream);
}
.cc-h2 {
  font-family: var(--cc-font-heading); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.25rem); line-height: 1.12;
  letter-spacing: -0.015em; color: var(--cc-cream);
}
.cc-h3 {
  font-family: var(--cc-font-heading); font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25;
  color: var(--cc-cream);
}
/* Shimmer treatment — use SPARINGLY, hero headlines only.
   On the light theme the sweep runs between warm dark ink and deep caramel, so
   the headline reads as legible dark type with a soft warm shimmer — no light
   stops that would wash out against the cream. */
.cc-shimmer {
  background: linear-gradient(90deg, var(--cc-cream) 0%, var(--cc-peach-dark) 35%,
              var(--cc-cream) 65%, var(--cc-peach-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: cc-shimmer 6s ease-in-out infinite;
  padding: 0 0.04em 0.06em;
}
/* Keyframes live here (global) so .cc-shimmer animates on every page,
   not only where landing-page.css is loaded. */
@keyframes cc-shimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* ═══ PROSE ═══ */
.cc-lead {
  font-family: var(--cc-font-body); font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.75;
  color: var(--cc-cream-soft);
}
.cc-prose p {
  font-family: var(--cc-font-body); font-weight: 300;
  font-size: 1rem; line-height: 1.8; color: var(--cc-cream-soft);
  margin-bottom: 1.4em;
}
.cc-prose p:last-child { margin-bottom: 0; }

/* ═══ DIVIDER ═══ */
.cc-divider {
  width: 60px; height: 1px; border: none;
  background: rgba(184,122,78,0.45);
  margin: var(--cc-space-lg) auto;
}
.cc-divider--left { margin-inline: 0 auto; }

/* ═══ CARD ═══ */
.cc-card {
  background: var(--cc-charcoal-soft);
  border: 1px solid var(--cc-line-soft);
  border-radius: var(--cc-radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--cc-transition), border-color var(--cc-transition),
              box-shadow var(--cc-transition);
  height: 100%;
}
.cc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184,122,78,0.3);
  box-shadow: var(--cc-shadow-md);
}
.cc-card-num {
  font-family: var(--cc-font-heading); font-style: italic;
  font-size: 2.5rem; line-height: 1; color: rgba(184,122,78,0.4);
  margin-bottom: var(--cc-space-md);
}
.cc-card h3 { margin-bottom: 0.75rem; }
.cc-card p {
  font-family: var(--cc-font-body); font-weight: 400; font-size: 0.925rem;
  line-height: 1.7; color: var(--cc-cream-soft);
}

/* Project-card styles live in page-projects.css (loaded on Projects + Home),
   scoped to the .cc-project component the shared partial renders. */

/* ═══ GRID ═══ */
.cc-grid { display: grid; gap: var(--cc-space-lg); }
.cc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cc-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .cc-grid--3, .cc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cc-grid--2, .cc-grid--3, .cc-grid--4 { grid-template-columns: 1fr; }
}

/* ═══ HONEYPOT (shared: any form with a bot trap) ═══
   Off-screen so real users never see it; bots that fill it are rejected. */
.cc-hp {
  position: absolute; left: -9999px;
  width: 0; height: 0; opacity: 0; overflow: hidden;
}

/* ═══ SECTION HEAD (centred eyebrow + heading intro) ═══ */
.cc-section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--cc-space-xl);
}
.cc-section-head .cc-h2 { margin-top: var(--cc-space-sm); }

/* ═══ CLOSING CTA BAND (shared: Home + About + inner pages) ═══ */
.cc-cta-band { text-align: center; }
.cc-cta-band .cc-lead { margin-top: var(--cc-space-md); }

/* ═══ PAGE HERO (inner pages — not the full-viewport home hero) ═══ */
.cc-page-hero {
  padding-block: calc(var(--cc-header-h) + var(--cc-section-y)) var(--cc-section-y-sm);
  text-align: center; position: relative; overflow: hidden;
  background: var(--cc-charcoal-deep);
}
.cc-page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% -15%,
              rgba(255,255,255,0.6) 0%,
              rgba(216,155,108,0.10) 40%,
              transparent 70%);
}
.cc-page-hero > * { position: relative; }

/* ═══ SCROLL REVEAL ═══ */
[data-cc-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--cc-ease), transform 0.8s var(--cc-ease);
}
[data-cc-reveal].is-visible { opacity: 1; transform: none; }
[data-cc-reveal][data-cc-delay="1"] { transition-delay: 0.1s; }
[data-cc-reveal][data-cc-delay="2"] { transition-delay: 0.2s; }
[data-cc-reveal][data-cc-delay="3"] { transition-delay: 0.3s; }
[data-cc-reveal][data-cc-delay="4"] { transition-delay: 0.4s; }

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