/* ============================================================
   sections.css — hero, generic sections, decorative ornaments
   ============================================================ */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 8px 0 24px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(0.5px);
}

.hero::before {
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--clay-soft) 0%, transparent 70%);
  opacity: 0.5;
}

.hero::after {
  bottom: -160px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.18;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero__copy {
  order: 2;
  position: relative;
}

.hero__title {
  margin: 0 0 18px;
  font-weight: 500;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}

.hero__lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-item::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hero__figure {
  order: 1;
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  isolation: isolate;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1200ms var(--ease-out);
}

.hero__figure:hover .hero__image { transform: scale(1.03); }

.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,30,28,0.18) 100%);
  pointer-events: none;
}

.hero__badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.hero__badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(107,122,90,0.18);
  animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(107,122,90,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(107,122,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(107,122,90,0); }
}

@media (min-width: 960px) {
  .hero { padding: 16px 0 40px; }
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
  }
  .hero__copy { order: 1; }
  .hero__figure { order: 2; }
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
  position: relative;
}

.section + .section { border-top: 1px solid var(--line-soft); }

.section--neutral { background: var(--surface-2); border-top: 0; }
.section--quiet   { padding: 24px 0; }
.section--cta     { padding: 64px 0; background: var(--surface-2); }

.section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.section__inner--single { max-width: var(--container-narrow); margin: 0 auto; }

.section--split .section__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-2);
  isolation: isolate;
  position: relative;
}

.section--split .section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease-out);
}

.section--split .section__media:hover .section__image { transform: scale(1.04); }

.section__media-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.section__title {
  margin-bottom: 14px;
  position: relative;
}

.section__lead {
  color: var(--text-soft);
  margin-bottom: 22px;
  font-size: 1.05rem;
  max-width: 52ch;
}

.section__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

@media (min-width: 960px) {
  .section { padding: 72px 0; }
  .section--split .section__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }
}

/* ---------- Quiet band (positioning quote) ---------- */

.band {
  padding: 40px 0;
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band__text {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.32;
  color: var(--text);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
}

.band__text em {
  color: var(--clay);
  font-style: italic;
}

.band__ornament {
  display: block;
  margin: 0 auto 22px;
  width: 56px;
  height: auto;
  color: var(--clay);
}

/* ---------- CTA section ---------- */

.section--cta { text-align: left; }

.section--cta-narrow {
  padding: 40px 0 8px;
  text-align: center;
}

@media (min-width: 960px) {
  .section--cta-narrow { text-align: left; }
}

/* ---------- Decorative ornaments ---------- */

.ornament {
  display: inline-block;
  color: var(--clay);
  opacity: 0.85;
}

.ornament--corner {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.3;
}

.ornament--top-left {
  top: 24px; left: 24px;
}

.ornament--bottom-right {
  bottom: 24px; right: 24px;
  transform: rotate(180deg);
}
