/*-- Home page-specific styles --*/
/* ──────────────  Hero  ────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/assets/images/paint.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) 0 clamp(6rem, 10vw, 8rem);
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(22, 20, 14, 0.42) 0%, rgba(22, 20, 14, 0.6) 45%, rgba(22, 20, 14, 0.8) 100%);
  z-index: 1;
}
#hero .cs-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  animation: heroFadeUp 0.9s ease both;
  animation-delay: 0.1s;
}
#hero .hero-copy {
  text-align: center;
  max-width: 52rem;
}
#hero .hero-copy .cs-topper {
  color: var(--secondary);
}
#hero .hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
}
#hero .hero-copy h1 em {
  font-style: italic;
  color: var(--primary-light);
  font-weight: 500;
}
.hero-brush {
  display: block;
  margin: 0 auto 2rem;
  width: min(440px, 72%);
  height: auto;
  color: var(--primary);
  overflow: visible;
}
.hero-brush path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: brushDraw 1.3s cubic-bezier(0.3, 0, 0.2, 1) both;
  animation-delay: 0.75s;
}
@keyframes brushDraw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#hero .hero-copy p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}
#hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}
#hero .hero-tag {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#hero .cs-button-solid {
  background: var(--white);
  color: var(--tertiary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
#hero .cs-button-solid:hover {
  background: var(--secondary);
  color: var(--tertiary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
#hero .cs-button-transparent {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
#hero .cs-button-transparent:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
  animation: heroFadeUp 1s ease both;
  animation-delay: 1.5s;
}
.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.9);
}
.hero-scroll svg {
  width: 28px;
  height: 28px;
  animation: scrollBounce 2.2s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}
@media (max-width: 900px) {
  #hero {
    background-position: center top;
  }
}
@media (hover: none) {
  #hero {
    background-attachment: scroll;
  }
}
/* ──────────────  Value props strip  ────────────── */
#values {
  padding: clamp(2.5rem, 5vw, 4rem) 1rem;
  background: var(--bg);
}
#values .values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  #values .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  #values .values-grid {
    grid-template-columns: 1fr;
  }
}
#values .value-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border);
}
#values .value-card .value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--primary-dark);
}
#values .value-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--tertiary);
  margin-bottom: 0.4rem;
}
#values .value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
/* ──────────────  Featured Events  ────────────── */
#featured-events {
  padding: var(--sectionPadding);
  background: var(--bg-alt);
}
#featured-events .section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}
#featured-events .section-head .cs-title {
  margin: 0 auto 1rem;
}
#featured-events .events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  #featured-events .events-grid {
    grid-template-columns: 1fr;
  }
}
#featured-events .no-events {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}
#featured-events .section-foot {
  text-align: center;
  margin-top: 2.5rem;
}
/* ──────────────  Side-by-side (About teaser)  ────────────── */
#about-teaser {
  padding: var(--sectionPadding);
}
#about-teaser .cs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  #about-teaser .cs-container {
    grid-template-columns: 1fr;
  }
}
#about-teaser .about-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--secondary);
  box-shadow: var(--shadow-md);
}
#about-teaser .about-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ──────────────  Services row  ────────────── */
#services-row {
  padding: var(--sectionPadding);
  background: var(--tertiary);
  color: var(--white);
}
#services-row .section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}
#services-row .section-head .cs-title {
  color: var(--white);
  margin: 0 auto 1rem;
}
#services-row .section-head .cs-topper {
  color: var(--secondary);
}
#services-row .section-head p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto;
}
#services-row .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 80rem;
  margin: 0 auto;
}
@media (max-width: 900px) {
  #services-row .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  #services-row .services-grid {
    grid-template-columns: 1fr;
  }
}
#services-row .service {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.75rem 1.4rem;
  border-radius: var(--radius-md);
  transition: background 0.25s ease, transform 0.25s ease;
}
#services-row .service:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
#services-row .service h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
#services-row .service p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
#services-row .service a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#services-row .service a:hover {
  color: var(--white);
}
/* ──────────────  Instagram feed  ────────────── */
#instagram-feed {
  padding: var(--sectionPadding);
  background: var(--bg);
  text-align: center;
}
#instagram-feed .section-head {
  max-width: 38rem;
  margin: 0 auto;
}
#instagram-feed .section-head .cs-title {
  margin: 0 auto 0.75rem;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.375rem;
  margin: 2.5rem 0;
}
@media (max-width: 900px) {
  .ig-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 500px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ig-post {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.ig-post img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ig-post:hover img {
  transform: scale(1.05);
}
.ig-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--bg-alt);
  border: 2px dashed var(--secondary-dark);
  border-radius: var(--radius-sm);
}
.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(63, 75, 59, 0.72);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ig-post:hover .ig-overlay {
  opacity: 1;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.ig-skeleton {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--secondary) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.ig-error {
  grid-column: 1 / -1;
  color: var(--text-muted);
  padding: 2rem;
}
.ig-error a {
  color: var(--primary-dark);
}
#instagram-feed .ig-cta {
  margin-top: 0.5rem;
}
