/* ============================================================
   COMMUNITIES PAGE — communities.css
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.comm-hero {
  position: relative;
  height: 72vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #0d0a07;
}

.comm-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.65) saturate(0.9);
}

.comm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
}

.comm-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

.comm-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-antique-gold);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  background-color: rgba(237, 223, 186, 0.16);
  border-radius: 999px;
}

.comm-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: var(--color-antique-gold);
  flex-shrink: 0;
}

.comm-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: #fff;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.comm-hero-sub {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.12em;
  max-width: 560px;
}

/* ── Main grid section ────────────────────────────────────── */
.comm-grid-section {
  background-color: var(--color-blush-parchment);
  padding: 5.5rem 2rem 6rem;
}

.comm-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Communities page only — full-width grid (journeys page keeps the 1200px cap) */
.comm-grid-section:not(.journey-grid-section) .comm-grid-inner {
  max-width: 100%;
}

.comm-grid-header {
  text-align: center;
  margin-bottom: 4rem;
}

.comm-grid-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-warm-mauve);
  margin-bottom: 0.5rem;
}

.comm-grid-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--color-dark-rosewood);
  font-weight: 400;
}

/* ── Dzongkhag Cards Grid ─────────────────────────────────── */
.dzongkhag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Individual Card — story-card style ───────────────────── */
.dzongkhag-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
}

.dzongkhag-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.dzongkhag-card:hover img {
  transform: scale(1.06);
}

/* Dark gradient overlay — identical to story card */
.dzongkhag-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 6, 4, 0.92) 0%,
    rgba(10, 6, 4, 0.48) 42%,
    rgba(10, 6, 4, 0.06) 72%,
    transparent 100%
  );
}

/* Text body — CSS grid: region+name left, CTA right, all bottom-aligned */
.dzongkhag-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
  column-gap: 1rem;
}

.dzongkhag-region {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-antique-gold);
  display: block;
  margin-bottom: 0.35rem;
}

.dzongkhag-name {
  grid-column: 1;
  grid-row: 2;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}

/* Arrow button — spans both grid rows, bottom-aligned */
.dzongkhag-cta {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  width: 40px;
  height: 40px;
  background: rgba(250, 244, 239, 0.12);
  border: 1px solid rgba(250, 244, 239, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.dzongkhag-cta:hover {
  background: var(--color-antique-gold);
  border-color: var(--color-antique-gold);
  color: var(--color-dark-rosewood);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dzongkhag-grid { grid-template-columns: repeat(3, 1fr); }
  .dzongkhag-card { height: 380px; }
}

@media (max-width: 768px) {
  .dzongkhag-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .dzongkhag-card { height: 340px; }
  .comm-grid-section { padding: 4rem 1.25rem 5rem; }
}

@media (max-width: 480px) {
  .dzongkhag-grid { grid-template-columns: 1fr; }
  .dzongkhag-card { height: 320px; }
  .comm-hero { height: 60vh; min-height: 380px; }
  .comm-hero-content { padding: 0 1.25rem 3.5rem; }
}


/* ── Font override (matches global index.css rules) ─────────── */
h1, h2, h3, h4, h5, h6,
[class*="-title"], [class*="-heading"], [class*="-name"],
[class*="-number"] {
  font-family: 'Canela', serif !important;
  font-weight: 300 !important;
  font-style: normal !important;
}

p, span, a, button, li, label, small, strong, b, em, i,
[class*="-eyebrow"], [class*="-desc"], [class*="-label"],
[class*="-tag"], [class*="-role"], [class*="-bio"],
[class*="-sub"], [class*="-body"], [class*="-region"],
[class*="-stat"], .btn, .btn-about, .dzongkhag-cta {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}

strong, b { font-weight: 400 !important; }
em, i     { font-style: normal !important; }


/* ── Philosophy Page Body ───────────────────────────────────── */
.phil-body {
  background-color: var(--color-blush-parchment);
  padding: 5.5rem 2rem 6rem;
}

.phil-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Each content block */
.phil-block-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.phil-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-warm-mauve);
  margin-bottom: 0.75rem;
}

.phil-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  color: var(--color-dark-rosewood);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

.phil-body-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--color-body-text);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.phil-closing {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-dark-rosewood);
  line-height: 1.7;
  margin-top: 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--color-antique-gold);
  margin-bottom: 0;
}

.phil-image-wrap { position: relative; }

.phil-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}

/* ── Story Section — combined intro + opening ─────────────── */
.phil-story-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-blush-parchment);
}

.phil-story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: saturate(0.65) brightness(1.05);
}

.phil-story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--color-blush-parchment) 0%,
    rgba(245, 232, 224, 0.92) 38%,
    rgba(245, 232, 224, 0.55) 62%,
    rgba(245, 232, 224, 0.18) 100%
  );
}

.phil-story-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.phil-story-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-warm-mauve);
  margin-bottom: 1.5rem;
}

.phil-story-headline {
  margin-bottom: 2.75rem;
}

.phil-story-line {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--color-dark-rosewood);
}

.phil-story-line-soft {
  font-weight: 300;
  font-style: italic;
}

.phil-story-line-bold {
  font-weight: 600;
}

.phil-story-text {
  max-width: 540px;
}

.phil-story-text p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-body-text);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.phil-story-text p:last-child {
  margin-bottom: 0;
}

.phil-story-highlight {
  color: var(--color-warm-mauve);
  font-size: 0.9rem;
}

.phil-story-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-dark-rosewood);
  text-decoration: none;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-antique-gold);
  transition: color 0.3s ease, border-color 0.3s ease, letter-spacing 0.3s ease;
}

.phil-story-link:hover {
  color: var(--color-warm-mauve);
  border-color: var(--color-warm-mauve);
  letter-spacing: 0.4em;
}

/* Responsive */
@media (max-width: 768px) {
  .phil-block-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .phil-body { padding: 4rem 1.25rem 5rem; }

  .phil-story-section { min-height: auto; }

  .phil-story-overlay {
    background: linear-gradient(
      to top,
      var(--color-blush-parchment) 35%,
      rgba(245, 232, 224, 0.85) 60%,
      rgba(245, 232, 224, 0.35) 100%
    );
  }

  .phil-story-inner { padding: 16rem 1.25rem 4rem; }
}

@media (max-width: 480px) {
  .phil-story-inner { padding: 11rem 1.25rem 3rem; }
}
