/**
 * Homepage hero — photo background + brand overlay (color adjustable).
 */

.civs-hero {
  --civs-hero-overlay: rgba(61, 43, 31, 0.58);
  --civs-hero-overlay-2: rgba(107, 78, 61, 0.42);
  --civs-hero-tint: rgba(249, 245, 240, 0.12);
  --civs-hero-filter: brightness(0.78) saturate(0.92) contrast(1.05);
  --civs-hero-text: #f9f5f0;
  --civs-hero-muted: rgba(249, 245, 240, 0.88);
  --civs-hero-accent: #f0e6dc;
  position: relative;
  isolation: isolate;
  min-height: clamp(28rem, 72vh, 40rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4.5rem, 10vw, 7.5rem) 1.25rem;
  overflow: hidden;
  background: #3d2b1f;
  color: var(--civs-hero-text);
  font-family: var(--civs-font-body, "Bricolage Grotesque", "Noto Sans TC", sans-serif);
}

.civs-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #2a1d15;
  background-image: var(--civs-hero-image, none);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  filter: var(--civs-hero-filter);
  transform: scale(1.04);
}

.civs-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg, var(--civs-hero-overlay) 0%, var(--civs-hero-overlay-2) 48%, rgba(45, 32, 24, 0.72) 100%),
    linear-gradient(0deg, var(--civs-hero-tint), var(--civs-hero-tint));
  pointer-events: none;
}

.civs-hero__inner {
  position: relative;
  z-index: 2;
  width: min(42rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.civs-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(0.78rem, 1.6vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--civs-hero-accent);
  opacity: 0.92;
}

.civs-hero__title {
  margin: 0 0 0.35rem !important;
  font-family: var(--civs-font-display, "Bricolage Grotesque", "Noto Sans TC", sans-serif) !important;
  font-size: clamp(2rem, 5.5vw, 3.15rem) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: 0.01em;
  color: var(--civs-hero-text) !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* EN brand under ZH title: eyebrow font style + subtitle size/position */
.civs-hero__brand-en {
  margin: 0 0 1.35rem !important;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem) !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--civs-hero-accent) !important;
  opacity: 0.95;
  line-height: 1.35 !important;
}

.civs-hero__subtitle {
  margin: 0 0 1.35rem !important;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  color: var(--civs-hero-muted) !important;
}

.civs-hero__copy {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.75;
  color: var(--civs-hero-muted);
}

.civs-hero__copy p {
  margin: 0;
}

.civs-hero__copy .civs-hero__line {
  display: block;
}

.civs-hero__copy .civs-hero__line + .civs-hero__line {
  margin-top: 0.2rem;
}

.civs-hero__copy .civs-hero__tagline {
  display: block;
  margin-top: 0.85rem;
  font-weight: 500;
  font-size: 1.05em;
  color: #fff;
  letter-spacing: 0.02em;
}

.civs-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.55rem;
  border-radius: 999px;
  background: #f9f5f0;
  color: #3d2b1f !important;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.civs-hero__cta:hover,
.civs-hero__cta:focus-visible {
  background: #fff;
  color: #2a1d15 !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  outline: none;
}

/* Full-bleed breakout from content card / Elementor boxed */
.home .civs-hero,
.page-id-600 .civs-hero,
.elementor-element-section-hero .civs-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Soften Elementor section padding when hero is inside */
.elementor-element-section-hero {
  padding: 0 !important;
  background: transparent !important;
}

.elementor-element-section-hero > .elementor-container {
  max-width: none !important;
  padding: 0 !important;
}

@media (max-width: 640px) {
  .civs-hero {
    min-height: clamp(24rem, 78vh, 34rem);
    padding-top: 5.25rem;
    padding-bottom: 4rem;
  }
  .civs-hero__bg {
    background-position: center 30%;
  }
}
