/*
Theme Name: Rodina Canada
Theme URI: https://rodinacanada.org/
Author: RODINA – Groupe de danse bulgare au Canada
Description: A lightweight, responsive one-page theme for Rodina's cultural website.
Version: 1.13.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rodina-canada
*/

:root {
  --ink: #171514;
  --paper: #f6f0e5;
  --cream: #fffaf1;
  --red: #a61f2b;
  --red-dark: #7f1520;
  --green: #1e4938;
  --gold: #d9b76c;
  --line: rgba(23, 21, 20, 0.16);
}

* { box-sizing: border-box; }
html, body, main {
  width: 100%;
  max-width: none;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: white;
  color: black;
  padding: .75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 4.5rem);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.wordmark {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .16em;
}
.wordmark-mark { color: var(--gold); font-size: .8rem; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
nav a { color: white; text-decoration: none; font-size: .86rem; font-weight: 700; }
nav a:hover, nav a:focus { text-decoration: underline; text-underline-offset: .35rem; }

.hero {
  position: relative;
  min-height: 780px;
  height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: white;
  background: var(--green);
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 42%; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(20,57,41,.62) 0%, rgba(20,57,41,.30) 48%, rgba(20,57,41,.04) 80%),
    linear-gradient(0deg, rgba(20,57,41,.42) 0%, transparent 52%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  max-width: 960px;
  padding: 9rem clamp(1.25rem, 7vw, 8rem) clamp(5rem, 9vh, 7rem);
}
.eyebrow {
  margin: 0 0 1rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ead8ae;
}
.eyebrow.dark { color: var(--red-dark); }
h1, h2, h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(4rem, 9vw, 8.6rem); }
h2 { font-size: clamp(3rem, 6vw, 6.4rem); }
.hero-copy { max-width: 610px; margin: 1.7rem 0 2rem; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-block;
  padding: .9rem 1.2rem;
  border: 1px solid white;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.button-light { background: white; color: var(--ink); }
.button-outline { background: transparent; color: white; }
.button:hover, .button:focus { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.hero-place {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: clamp(2.5rem, 7vh, 5rem);
  display: grid;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
}
.hero-place strong { font: 500 clamp(2.2rem, 4vw, 4rem)/1 Georgia, serif; letter-spacing: -.04em; }
.hero-photo-note {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 1.3rem;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .68rem;
  letter-spacing: .05em;
}

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.intro { display: grid; grid-template-columns: 1fr minmax(0, 2.2fr); gap: 3rem; }
.section-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--red-dark); padding-top: .7rem; }
.intro-copy { max-width: 980px; }
.intro-copy h2 { margin-bottom: 2.5rem; }
.intro-copy p { max-width: 760px; font-size: 1.06rem; }
.lead { font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.48; }

.word-meaning {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.word-card {
  position: relative;
  align-self: start;
  min-width: 0;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(166,31,43,.24);
  background: var(--cream);
  container-type: inline-size;
}
.word-card .eyebrow { color: var(--red-dark); }
.word-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -96px;
  bottom: -96px;
  transform: rotate(45deg);
  border: 1px solid rgba(166,31,43,.42);
  box-shadow: 0 0 0 24px rgba(217,183,108,.18), 0 0 0 48px rgba(30,73,56,.07);
}
.word-cyrillic {
  max-width: 100%;
  color: var(--red);
  font-size: clamp(3.2rem, 5.8vw, 6.8rem);
  line-height: .9;
  letter-spacing: -.06em;
  white-space: nowrap;
}
@supports (font-size: 1cqw) {
  .word-cyrillic { font-size: clamp(3rem, 16cqw, 6.8rem); }
}
.pronunciation { margin: 1.2rem 0 0; color: #6b625a; font-size: .74rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.definition { max-width: 440px; margin: 1.3rem 0 0; font: 500 clamp(1.15rem, 2vw, 1.45rem)/1.45 Georgia, serif; }
.meaning-copy { min-width: 0; max-width: 820px; }
.journey { display: grid; grid-template-columns: auto 1fr 16px 1fr auto; gap: .8rem; align-items: center; margin-bottom: 3rem; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.journey-line { height: 1px; background: rgba(30,73,56,.3); }
.journey-diamond { width: 12px; height: 12px; transform: rotate(45deg); background: var(--red); box-shadow: 0 0 0 5px rgba(166,31,43,.22); }
.meaning-lead { margin: 0 0 1.5rem; font: 500 clamp(1.45rem, 2.6vw, 2.2rem)/1.35 Georgia, serif; letter-spacing: -.018em; }
.meaning-copy > p:not(.meaning-lead):not(.aleko-note) { max-width: 760px; color: #5f5751; }
.aleko-note { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: #776d65; font-size: .72rem; font-style: italic; }

.mission {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(4rem, 8vw, 10rem);
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--cream);
  border-block: 1px solid var(--line);
}
.mission-heading > p:last-child { max-width: 640px; font-size: 1.15rem; margin-top: 2rem; }
.pillars { border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1.2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.pillar span { color: var(--red-dark); font-weight: 800; font-size: .75rem; padding-top: .4rem; }
.pillar h3 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.pillar p { grid-column: 2; margin: .5rem 0 0; color: #5f5751; }

.roots { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 760px; background: var(--paper); }
.roots-image-wrap { position: relative; min-height: 600px; overflow: hidden; }
.roots-image-wrap > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.roots-brand-card {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(410px, calc(100% - 2rem));
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,250,241,.94);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(23,21,20,.16);
}
.roots-brand-card:hover, .roots-brand-card:focus { background: white; }
.roots-brand-card img { width: min(185px, 48%); height: auto; flex: 0 0 auto; }
.roots-brand-card span { display: grid; font-size: .72rem; line-height: 1.35; }
.roots-brand-card strong { color: var(--red-dark); letter-spacing: .1em; text-transform: uppercase; }
.photo-context {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: .5rem .7rem;
  background: rgba(30,73,56,.78);
  color: white;
  font-size: .7rem;
  letter-spacing: .04em;
}
.roots-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.roots-copy h2 { margin-bottom: 2rem; }
.roots-copy p { max-width: 610px; }
.roots-links { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; margin-top: .5rem; }
.text-link { display: inline-block; width: fit-content; margin-top: 1rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-underline-offset: .3rem; }

.capital-region {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem);
  background: var(--cream);
  border-block: 1px solid var(--line);
}
.capital-copy { max-width: 710px; }
.capital-copy h2 { margin-bottom: 2rem; font-size: clamp(3rem, 5.3vw, 5.8rem); }
.capital-copy p { max-width: 650px; }
.capital-photo { margin: 0; min-width: 0; }
.capital-photo img {
  width: 100%;
  max-height: 820px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(166,31,43,.18);
}
.capital-photo figcaption {
  margin-top: .75rem;
  color: #6b625a;
  font-size: .7rem;
  letter-spacing: .05em;
}

.community { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); background: var(--green); color: white; }
.community-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.community-heading > p { max-width: 580px; font-size: 1.12rem; }
.action-feature { margin: 0; }
.action-feature img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  object-position: center 48%;
  border: 1px solid rgba(255,255,255,.24);
}
.action-feature figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .35rem 1rem;
  padding-top: .75rem;
  color: #d9e3dc;
  font-size: .75rem;
  letter-spacing: .05em;
}
.action-feature figcaption strong { color: #f0d49a; text-transform: uppercase; letter-spacing: .12em; }
.gallery { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1rem; align-items: stretch; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; max-height: 620px; object-fit: cover; }
.gallery-large img { min-height: 560px; }
.gallery figure:not(.gallery-large) img { min-height: 560px; object-position: center; }
.gallery figcaption { padding: .7rem 0; font-size: .75rem; letter-spacing: .05em; color: #d9e3dc; }
.performance-highlights { margin-top: clamp(3rem, 6vw, 5rem); }
.performance-highlights > h3 {
  margin: 0;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 500;
}
.event-list { border-top: 1px solid rgba(255,255,255,.28); }
.event-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, .26fr) minmax(13rem, .55fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
}
.event-row-pictured {
  grid-template-columns: minmax(7.5rem, .22fr) minmax(13rem, .62fr) minmax(13rem, .52fr) minmax(0, 1fr);
  padding-block: 1.8rem;
}
.event-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}
.event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.event-row p { margin: 0; }
.event-date {
  padding-top: .2rem;
  color: #f0d49a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.event-row h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
}
.event-venue { margin-top: .35rem !important; color: #b9c8bf; font-size: .78rem; }
.event-row > p:last-child { color: #d9e3dc; }
.places { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 3rem; }
.places span { padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: .75rem; }
.photo-credit { margin: 2rem 0 0; color: #b9c8bf; font-size: .7rem; }

.contact { position: relative; overflow: hidden; background: var(--red); color: white; }
.contact-pattern {
  position: absolute;
  inset: 0 0 0 54%;
  opacity: .18;
  background-image:
    linear-gradient(45deg, transparent 42%, white 42% 47%, transparent 47% 53%, white 53% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, white 42% 47%, transparent 47% 53%, white 53% 58%, transparent 58%);
  background-size: 76px 76px;
}
.contact-inner { position: relative; z-index: 1; padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.contact h2 { max-width: 930px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 310px)); gap: 2rem; margin: 3.5rem 0; }
.contact-grid div { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.4); }
.contact-grid span { display: block; margin-bottom: .45rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }
.contact-grid a, .contact-grid p { margin: 0; font-size: 1.12rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  padding: 2.5rem clamp(1.25rem, 4vw, 4.5rem);
  background: var(--ink);
  color: #cfc8c0;
  font-size: .75rem;
}
.site-footer div { display: grid; }
.site-footer strong { color: white; letter-spacing: .16em; }
.site-footer p { margin: 0; text-align: right; }

@media (max-width: 1050px) {
  .word-meaning { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .mission, .roots, .capital-region, .community-heading { grid-template-columns: 1fr; }
  .roots-image-wrap { min-height: 520px; }
  .capital-copy { max-width: 820px; }
  .capital-photo { width: min(100%, 720px); }
  .action-feature img { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery-large img, .gallery figure:not(.gallery-large) img { min-height: 0; height: auto; max-height: none; }
  .event-row-pictured { grid-template-columns: minmax(7.5rem, .25fr) minmax(12rem, .65fr) minmax(0, 1fr); }
  .event-row-pictured .event-date { grid-column: 1; }
  .event-row-pictured .event-photo { grid-column: 2; grid-row: 1 / span 2; }
  .event-row-pictured > div, .event-row-pictured > p:last-child { grid-column: 3; }
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  nav { display: none; }
  .hero { min-height: 680px; height: 92svh; }
  .hero-content { padding-bottom: 7rem; }
  h1 { max-width: 100%; font-size: clamp(2.45rem, 11vw, 3rem); }
  .hero-content .eyebrow { max-width: 270px; line-height: 1.5; }
  .hero-copy { max-width: 300px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 250px); }
  .hero-actions .button { width: 100%; text-align: center; }
  .hero-place { left: 1.25rem; right: auto; bottom: 3.1rem; text-align: left; }
  .hero-photo-note { bottom: .8rem; max-width: calc(100% - 2.5rem); }
  .intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .journey { grid-template-columns: auto 1fr 12px 1fr auto; gap: .45rem; }
  .word-card { padding: clamp(1.6rem, 7vw, 2.5rem); }
  .word-cyrillic { font-size: clamp(2.85rem, 16cqw, 5.5rem); }
  .roots-brand-card { align-items: flex-start; }
  .roots-brand-card img { width: min(165px, 46%); }
  .photo-context { right: 1rem; }
  .event-row, .event-row-pictured { grid-template-columns: 1fr; gap: .7rem; align-items: start; }
  .event-row-pictured .event-date,
  .event-row-pictured .event-photo,
  .event-row-pictured > div,
  .event-row-pictured > p:last-child { grid-column: 1; grid-row: auto; }
  .event-photo { width: 100%; aspect-ratio: 16 / 10; margin-block: .25rem .45rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { display: grid; }
  .site-footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
