
:root {
  --navy:         #3286ba;
  --navy-light:   #4a9fd4;
  --navy-dark:    #015284;
  --gold:         #009f03;
  --gold-light:   #22c706;
  --gold-dark:    #007a02;
  --white:        #FFFFFF;
  --off-white:    #f4f9ff;
  --cream:        #eaf4fb;
  --text-dark:    #1A1A2E;
  --text-mid:     #4A4A6A;
  --text-light:   #8A8AA0;
  --border:       #d0e4f0;
  --success:      #2E7D4F;
  --error:        #C0392B;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', 'Segoe UI', sans-serif;
  --max-width:    1200px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-full:  999px;
  --shadow-sm:    0 2px 8px rgba(1,82,132,0.08);
  --shadow-md:    0 8px 30px rgba(1,82,132,0.14);
  --shadow-lg:    0 20px 60px rgba(1,82,132,0.2);
  --ease:         0.3s ease;
  --preheader-h:  40px;
  --header-h:     80px;
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  /* push content below fixed preheader + header */
  padding-top: calc(var(--preheader-h) + var(--header-h));
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ---- Layout --------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section    { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }

/* ---- Typography ----------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: var(--radius-full);
  margin: 0.6rem 0 1.5rem;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ---- Buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary  { background: var(--gold);  color: var(--navy-dark); border-color: var(--gold); }
.btn--primary:hover  { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,159,3,0.4); }
.btn--secondary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy-light); border-color: var(--navy-light); transform: translateY(-2px); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn--outline-white:hover { background: var(--white); color: var(--navy); }
.btn--lg   { padding: 1rem 2.4rem; font-size: 0.82rem; }
.btn--sm   { padding: 0.5rem 1.2rem; font-size: 0.72rem; }
.btn--full { width: 100%; }



.preheader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--preheader-h);
  background: var(--navy-dark);
  display: flex;
  align-items: center;
}
.preheader .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preheader__contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.preheader__contact a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
}
.preheader__contact a:hover { color: var(--gold-light); }
.preheader__contact svg { width: 12px; height: 12px; flex-shrink: 0; }

.preheader__right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.preheader__socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.preheader__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  color: rgba(255,255,255,0.6);
  transition: color var(--ease);
}
.preheader__socials a:hover { color: var(--gold-light); }
.preheader__socials svg { width: 13px; height: 13px; }

.lang-toggle { display: flex; align-items: center; gap: 2px; }
.lang-toggle__btn { display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 8px; border-radius: var(--radius-full); border: 2px solid transparent; background: rgba(255,255,255,0.1); cursor: pointer; transition: all var(--ease); font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.65); }
.lang-toggle__btn img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; display: block; }
.lang-toggle__btn.active { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); color: #ffffff; }
.lang-toggle__btn:hover:not(.active) { background: rgba(255,255,255,0.15); color: #ffffff; }



.header {
  position: fixed;
  top: var(--preheader-h);
  left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: all var(--ease);
}
.header.scrolled { box-shadow: var(--shadow-md); height: 68px; }
.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header__logo img { height: 46px; width: auto; }
.header__logo-text { display: flex; flex-direction: column; }
.header__logo-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.header__logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav__link {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.6rem);
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transition: transform var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after,
.nav__link.active::after { transform: translateX(-50%) scaleX(1); }
.nav__link.active { color: var(--navy); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 4px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: calc(var(--preheader-h) + var(--header-h));
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 998;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav__link {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile .nav__link:last-of-type { border-bottom: none; }
.nav-mobile .btn { margin-top: 0.75rem; width: 100%; }



.hero {
  display: grid;
  grid-template-columns: 460px 1fr;
 
  min-height: calc(100vh - var(--preheader-h) - var(--header-h));
}

/* ------ LEFT panel --------------------------------- */
.hero__left {
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.hero__heading { margin-bottom: 1.5rem; }

.hero__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}
.hero__title span { color: var(--gold); }


.donate-widget {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.donate-widget__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}


.donate-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.donate-amount-btn {
  padding: 0.65rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  cursor: pointer;
  transition: all var(--ease);
  text-align: center;
  font-family: var(--font-body);
}
.donate-amount-btn .amount-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}
.donate-amount-btn .amount-impact {
  display: block;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.3;
}
.donate-amount-btn:hover,
.donate-amount-btn.selected { border-color: var(--gold); background: rgba(0,159,3,0.06); }
.donate-amount-btn.selected .amount-value { color: var(--gold-dark); }

/* Custom amount */
.donate-custom-wrap {
  position: relative;
  margin-bottom: 0.6rem;
}
.donate-custom-wrap .currency-symbol {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  pointer-events: none;
}
.donate-custom-input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 1.7rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--ease);
  outline: none;
}
.donate-custom-input:focus { border-color: var(--gold); background: var(--white); }


.donate-field { margin-bottom: 0.6rem; }
.donate-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.25rem;
}
.donate-field input {
  width: 100%;
  padding: 0.62rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--ease);
  outline: none;
}
.donate-field input:focus { border-color: var(--gold); background: var(--white); }


.stripe-card-element {
  padding: 0.65rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  min-height: 40px;
}
.stripe-card-element.focused { border-color: var(--gold); }


.donate-msg { display: none; padding: 0.6rem 0.85rem; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 500; margin-bottom: 0.6rem; }
.donate-msg.success { display: block; background: rgba(46,125,79,0.1); color: var(--success); border: 1px solid rgba(46,125,79,0.25); }
.donate-msg.error   { display: block; background: rgba(192,57,43,0.1); color: var(--error);   border: 1px solid rgba(192,57,43,0.25); }


.donate-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 0.55rem;
}
.donate-secure svg { width: 11px; height: 11px; color: var(--success); }

/* ------ RIGHT panel (image slider) ----------------- */
.hero__right {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--preheader-h) - var(--header-h));
}
.hero__slides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.hero__slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.active { opacity: 1; }
.hero__slide:nth-child(1) { background-image: url('../images/slide1.webp'); }
.hero__slide:nth-child(2) { background-image: url('../images/slide2.webp'); }
.hero__slide:nth-child(3) { background-image: url('../images/slide3.jpeg'); }

/* Slide dots */
.hero__indicators {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: none; cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero__dot.active { background: var(--gold); width: 22px; }



.stats { background: var(--navy); padding: 3.5rem 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stats__label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
}



.why { background: var(--white); padding: 6rem 0; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-top: 1.75rem; }
.why__pillar { padding: 0.9rem 1rem; background: var(--white); border-radius: var(--radius-md); border-left: 3px solid var(--gold); }
.why__pillar-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.why__pillar p { font-size: 0.78rem; margin: 0; color: var(--text-mid); }

/* ---- Section 2: Empowering Communities (text right, image left) ---- */
.empower { background: var(--white); padding: 6rem 0; }
.empower__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.empower__img { border-radius: var(--radius-lg); overflow: hidden; max-height: 480px; box-shadow: var(--shadow-lg); }
.empower__img img { width: 100%; height: 480px; object-fit: cover; object-position: top; display: block; }
/* ---- Section 3: Activities (4 cards with image placeholders) ---- */
.activities { background: var(--white); padding: 6rem 0; }
.activities__header { text-align: center; margin-bottom: 3.5rem; }
.activities__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; grid-auto-rows: 210px; align-items: stretch; }
.activity-card { display: grid; grid-template-columns: 180px 1fr; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fafaf7; transition: box-shadow var(--ease); min-height: 210px; max-height: 210px; }
.activity-card:hover { box-shadow: var(--shadow-md); }
.activity-card__img { background: #d0e4f0; overflow: hidden; height: 210px; }
.activity-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-card__body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.activity-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.3; }
.activity-card__desc { font-size: 0.8rem; color: var(--text-mid); margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Section 4: Events ---- */
.events { background: var(--white); padding: 6rem 0; }
.events__header { margin-bottom: 3rem; }
.events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.event-card { display: flex; flex-direction: column; }
.event-card__img { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 1.2rem; background: #d0e4f0; }
.event-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; text-decoration: underline; text-underline-offset: 3px; }
.event-card__meta { display: flex; align-items: center; gap: 1rem; font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
.event-card__meta span { display: flex; align-items: center; gap: 0.3rem; }
.event-card__desc { font-size: 0.83rem; color: var(--text-mid); margin: 0; }

/* Responsive new sections */
@media (max-width: 1100px) {
  .activities__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .why__grid, .empower__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .activities__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .activity-card { grid-template-columns: 160px 1fr; min-height: 160px; max-height: none; height: auto; }
  .activity-card__img { height: 160px; }
  .events__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .why__pillars { grid-template-columns: 1fr; }
  .activities__grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .activity-card { grid-template-columns: 1fr; min-height: auto; max-height: none; height: auto; }
  .activity-card__img { height: 180px; }
  .activity-card__desc { -webkit-line-clamp: unset; overflow: visible; }
}

/* ---- Card inputs ---- */
.stripe-card-element { border: 2px solid var(--border); border-radius: var(--radius-sm); background: #ffffff; overflow: hidden; transition: border-color var(--ease); }
.stripe-card-element:focus-within { border-color: var(--navy); }
.ci { display: block; width: 100%; padding: 0.68rem 0.85rem; border: none; outline: none; background: #ffffff; font-family: var(--font-body); font-size: 0.85rem; color: #1A1A2E; box-sizing: border-box; }
.ci::placeholder { color: #8A8AA0; }
.ci:focus { background: #f4f9ff; }
.ci-full { border-bottom: 1px solid var(--border); }
.ci-row { display: flex; }
.ci-third { flex: 1; }
.ci-third:not(:last-child) { border-right: 1px solid var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 5rem 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__logo img { height: 40px; width: auto; opacity: 0.9; }
.footer__logo-name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.footer__desc { font-size: 0.83rem; line-height: 1.7; color: rgba(255,255,255,0.52); margin-bottom: 1.25rem; }
.footer__socials { display: flex; gap: 0.6rem; }
.footer__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  transition: all var(--ease);
}
.footer__socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.footer__socials svg { width: 14px; height: 14px; }
.footer__col-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: 0.83rem; color: rgba(255,255,255,0.52); transition: color var(--ease); }
.footer__links a:hover { color: var(--gold-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.65rem; font-size: 0.83rem; color: rgba(255,255,255,0.52); }
.footer__contact-item svg { width: 12px; height: 12px; margin-top: 4px; flex-shrink: 0; color: var(--gold); }
.footer__cic {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__cic p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer__bottom { padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.32); margin: 0; }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { font-size: 0.75rem; color: rgba(255,255,255,0.32); transition: color var(--ease); }
.footer__bottom-links a:hover { color: var(--gold-light); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; animation-play-state: paused; }
.fade-up.visible { animation-play-state: running; }
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }



/* --- LG: tablet landscape --- */
@media (max-width: 1200px) {
  .nav__link { padding: 0.45rem 0.55rem; font-size: 0.74rem; }
}

/* --- MD: tablet portrait — swap nav for hamburger --- */
@media (max-width: 900px) {
  .nav, .header__cta { display: none !important; }
  .hamburger { display: flex !important; }
  .header__mobile-donate { display: inline-flex !important; }
  .empower__img { max-height: 360px; }
  .empower__img img { height: 360px; }
  .empower__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .hero__left { padding: 2rem 1.5rem; }
  .hero__right { height: 320px; min-height: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

/* --- SM: large phone --- */
@media (max-width: 600px) {
  .hero__right { height: 220px; min-height: 0; }
  /* Shrink logo text so header fits */
  .header__logo-name { font-size: 0.82rem; }
  .header__logo-sub  { font-size: 0.52rem; }
  .header__logo img  { height: 38px; }
  .header .container { gap: 0.75rem; }
  /* Mobile donate button sizing */
  .header__mobile-donate { padding: 0.4rem 0.85rem; font-size: 0.68rem; }
  /* Footer 2-col */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
  .footer__copy, .footer__bottom-links { font-size: 0.7rem; }
  .footer__bottom-links { gap: 0.75rem; }
  .mission__pillars { grid-template-columns: 1fr; }
}

/* --- XS: small phone (≤420px) --- */
@media (max-width: 420px) {
  .header__logo-name { font-size: 0.72rem; }
  .header__logo-sub  { display: none; }
  .header__logo img  { height: 32px; }
  .header .container { gap: 0.4rem; padding: 0 0.75rem; }
  .header__mobile-donate { padding: 0.3rem 0.55rem; font-size: 0.58rem; letter-spacing: 0.02em; }
  .hamburger { width: 30px; height: 30px; flex-shrink: 0; }
  .hero__right { height: 180px; }
  .preheader__contact .ph-email { display: none; }
  .lang-toggle__btn { padding: 2px 5px 2px 3px; font-size: 0.6rem; }
  .lang-toggle__btn img { width: 16px; height: 11px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer__col-title { font-size: 0.6rem; }
  .footer__links a, .footer__contact-item { font-size: 0.73rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
  .footer__cic { padding: 1.25rem 0.5rem; }
  .footer__cic p { font-size: 0.7rem; line-height: 1.6; }
}

/* --- XXS: very small phone (≤360px) --- */
@media (max-width: 360px) {
  .header__logo-name { font-size: 0.62rem; }
  .header__logo img  { height: 28px; }
  .header .container { gap: 0.3rem; padding: 0 0.6rem; }
  .header__mobile-donate { padding: 0.28rem 0.45rem; font-size: 0.54rem; letter-spacing: 0; }
  .hamburger { width: 26px; height: 26px; }
}

/* --- Below 400px — general layout tightening --- */
@media (max-width: 400px) {
  .container { padding: 0 0.85rem; }
  .section { padding: 3rem 0; }
  .hero__left { padding: 1.5rem 1rem; }
  .donate-widget { padding: 1rem 1rem; }
  .why { padding: 3rem 0; }
  .empower { padding: 3rem 0; }
  .activities { padding: 3rem 0; }
  .events { padding: 3rem 0; }
  .stats { padding: 2rem 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .footer { padding: 3rem 0 0; }
  .preheader .container { padding: 0 0.85rem; }
}

/* Preheader contact: phone number must never break across lines */
.preheader__contact a { white-space: nowrap; }

/* --- Mobile horizontal overflow fix (header + global) --- */
html { overflow-x: hidden; }
body { max-width: 100vw; }

/* footer trust row (FR badge + Trustpilot) — actual rules are appended
   at the end of this file so they win the cascade against the
   unconditional `.footer__fr-badge img` rule defined later below. */

@media (max-width: 420px) {
  /* allow flex children of the header to actually shrink */
  .header .container > * { min-width: 0; }
  .header__logo { min-width: 0; flex-shrink: 1; overflow: hidden; }
  .header__logo-text { min-width: 0; overflow: hidden; }
  .header__logo-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  /* keep donate + hamburger from being pushed off-screen */
  .header__mobile-donate { flex-shrink: 0; white-space: nowrap; }
  .hamburger { flex-shrink: 0; }
}

@media (max-width: 380px) {
  /* very narrow phones: trim further so nothing overflows */
  .header .container { gap: 0.35rem; padding: 0 0.6rem; }
  .header__logo img { height: 30px; }
  /* generous max-width so full "Romanian Contact Point" fits with the
     wide Playfair Display font; tighten the donate button further to
     create the needed space */
  .header__logo-name { font-size: 0.66rem; max-width: 170px; }
  .header__mobile-donate { padding: 0.24rem 0.4rem; font-size: 0.5rem; letter-spacing: 0; }
}

@media (max-width: 340px) {
  /* extremely narrow phones: smaller font + tighter button so the
     full company name still fits on a single line */
  .header__logo-name { font-size: 0.6rem; max-width: 150px; }
  .header__mobile-donate { padding: 0.22rem 0.35rem; font-size: 0.46rem; }
}



.clocks-section {
  background: #ffffff;
  padding: 3rem 0;
  border-top: 1px solid #d0e4f0;
  border-bottom: 1px solid #d0e4f0;
}
.clocks-grid {
  display: grid;
  gap: 2rem;
  justify-items: center;
}
.clocks-grid--3 { grid-template-columns: repeat(3, 1fr); }
.clocks-grid--4 { grid-template-columns: repeat(4, 1fr); }
.clock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.clock-face {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #3286ba;
  box-shadow: 0 4px 20px rgba(50,134,186,0.2);
}
.clock-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.clock-dots span {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  display: flex;
  justify-content: center;
  transform: rotate(calc(var(--n) * 30deg));
  padding-top: 6px;
}
.clock-dots span::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3286ba;
  margin-top: 2px;
}
.clock-dots span:nth-child(3n)::before {
  width: 7px;
  height: 7px;
  background: #009f03;
}
.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(0deg);
  border-radius: 3px;
}
.clock-hour { width: 5px; height: 36px; background: #015284; margin-left: -2.5px; }
.clock-min  { width: 3px; height: 46px; background: #3286ba; margin-left: -1.5px; }
.clock-sec  { width: 2px; height: 52px; background: #009f03; margin-left: -1px; }
.clock-center {
  position: absolute;
  width: 12px; height: 12px;
  background: #015284;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.clock-city {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #015284;
}
.clock-digital {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A2E;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .clocks-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .clocks-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .clock-face { width: 100px; height: 100px; }
  .clock-hour { height: 26px; }
  .clock-min  { height: 34px; }
  .clock-sec  { height: 38px; }
}
@media (max-width: 480px) {
  .clocks-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .clocks-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .clock-face { width: 80px; height: 80px; border-width: 3px; }
  .clock-hour { height: 20px; width: 4px; }
  .clock-min  { height: 27px; width: 2px; }
  .clock-sec  { height: 30px; width: 1.5px; }
  .clock-city { font-size: 0.8rem; }
  .clock-digital { font-size: 0.72rem; }
}

/* ---- Mobile donate button in header ---- */
.header__mobile-donate {
  display: none;
  padding: 0.45rem 1rem;
  font-size: 0.7rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---- Fundraising Regulator badge in footer ---- */
.footer__fr-badge {
  margin-top: 1.25rem;
}
.footer__fr-badge img {
  height: 48px;
  width: auto;
  opacity: 1;
  filter: none;
  object-fit: contain;
}

/* ---- Clickable footer contact links ---- */
.footer__contact-item a {
  color: rgba(255,255,255,0.52);
  transition: color 0.3s;
}
.footer__contact-item a:hover {
  color: var(--gold-light);
}

/* Hero */
.about-hero {
  background: var(--navy-dark);
  padding: 5rem 0 4rem;
  text-align: center;
}
.about-hero__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.about-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Photo Gallery */
.about-gallery {
  background: var(--white);
  padding: 4rem 0;
}
.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.about-gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}
.about-gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.about-gallery__item:hover img { transform: scale(1.04); }

/* Intro */
.about-intro {
  background: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.about-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 700px;
  margin: 0 auto 1.25rem;
}
.about-intro p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Activity Cards */
.about-activities {
  background: var(--white);
  padding: 3rem 0 5rem;
}
.about-activities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.about-act-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.about-act-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.about-act-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--border);
}
.about-act-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.about-act-card:hover .about-act-card__img img { transform: scale(1.04); }
.about-act-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.about-act-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.about-act-card__desc {
  font-size: 0.83rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* Impact Stats */
.about-stats {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.about-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-stats__heading { margin-bottom: 2.5rem; }
.about-stats__heading h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.about-stats__heading p { font-size: 0.9rem; color: var(--text-mid); }
.about-stats__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}
.about-stat-item__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.about-stat-item__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}
.about-stat-item__desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.5;
}
.about-stats__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  align-self: center;
}
.about-stats__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .about-stats__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-activities__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .about-gallery__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .about-gallery__item:last-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
}
@media (max-width: 600px) {
  .about-activities__grid { grid-template-columns: 1fr; }
  .about-stats__numbers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about-gallery__grid { grid-template-columns: 1fr; }
  .about-gallery__item:last-child { grid-column: auto; aspect-ratio: 4/3; }
}


@media (max-width: 900px) {
  .about-hero { padding: 3.5rem 0 3rem; }
  .about-gallery__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .about-gallery__item:last-child { grid-column: 1 / -1; aspect-ratio: 16/7; }
  .about-stats__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-activities__grid { grid-template-columns: 1fr 1fr; }
}

/* SM: 421-600px */
@media (max-width: 600px) {
  .about-hero { padding: 2.5rem 0 2rem; }
  .about-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .about-hero p { font-size: 0.88rem; }
  .about-gallery__grid { grid-template-columns: 1fr; }
  .about-gallery__item:last-child { grid-column: auto; aspect-ratio: 4/3; }
  .about-activities__grid { grid-template-columns: 1fr; }
  .about-stats__numbers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about-stats__heading h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
  .about-stat-item__number { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

/* XS: ≤420px */
@media (max-width: 420px) {
  .about-hero { padding: 2rem 0 1.5rem; }
  .about-hero h1 { font-size: 1.5rem; }
  .about-stats__numbers { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-act-card__body { padding: 1rem 1.1rem 1.25rem; }
  .about-act-card__title { font-size: 0.92rem; }
  .about-intro h2 { font-size: 1.4rem; }
}

.srv-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.srv-hero__video-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.srv-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
}
.srv-hero__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background: rgba(1,82,132,0.45);
}
.srv-hero__content {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.srv-hero__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.srv-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.srv-hero__content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 640px;
}

/* Intro section */
.srv-intro {
  background: var(--white);
  padding: 6rem 0;
}
.srv-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.srv-intro__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.srv-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.srv-intro__text h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.srv-intro__text p {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Services List */
.srv-list {
  background: var(--off-white);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.srv-list__header {
  margin-bottom: 3.5rem;
  max-width: 680px;
}
.srv-list__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.srv-list__header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}
.srv-list__items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Service Card */
.srv-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease), transform var(--ease);
}
.srv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.srv-card__img {
  overflow: hidden;
  background: var(--border);
}
.srv-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.srv-card:hover .srv-card__img img { transform: scale(1.04); }
.srv-card__body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.srv-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.srv-card__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.srv-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
}
.srv-card__meta svg {
  width: 16px;
  height: 16px;
  color: var(--navy);
  flex-shrink: 0;
}
.srv-card__body p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .srv-intro__grid { grid-template-columns: 1fr; gap: 3rem; }
  .srv-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
  .srv-hero { min-height: 70vh; }
  .srv-card { grid-template-columns: 1fr; }
  .srv-card__img { aspect-ratio: 16/9; }
  .srv-card__body { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .srv-hero { min-height: 60vh; }
}



/* MD: 601-900px */
@media (max-width: 900px) {
  .srv-hero { min-height: 70vh; }
  .srv-hero__content { padding: 4rem 1.5rem; }
  .srv-intro__grid { grid-template-columns: 1fr; gap: 3rem; }
  .srv-card { grid-template-columns: 240px 1fr; }
}

/* SM: 421-600px */
@media (max-width: 600px) {
  .srv-hero { min-height: 55vh; }
  .srv-hero__content h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .srv-hero__content p { font-size: 0.88rem; }
  .srv-card { grid-template-columns: 1fr; }
  .srv-card__img { aspect-ratio: 16/9; }
  .srv-card__body { padding: 1.5rem; }
  .srv-list__header { margin-bottom: 2rem; }
}

/* XS: ≤420px */
@media (max-width: 420px) {
  .srv-hero { min-height: 50vh; }
  .srv-hero__content { padding: 3rem 1rem; }
  .srv-hero__content h1 { font-size: 1.5rem; }
  .srv-card__body { padding: 1.1rem; }
  .srv-card__body h3 { font-size: 1.05rem; }
  .srv-card__meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}


/* Hero */
.faq-hero {
  background: var(--navy-dark);
  padding: 5rem 0 4rem;
}
.faq-hero__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.faq-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.faq-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.75;
  margin: 0;
}

/* FAQ Grid */
.faq-section {
  background: var(--white);
  padding: 5rem 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
}
.faq-item {}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.faq-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}

/* Events Section */
.faq-events {
  background: var(--off-white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.faq-events__header {
  margin-bottom: 3.5rem;
}
.faq-events__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  max-width: 600px;
}
.faq-events__header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0;
}
.faq-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.faq-event-card {
  border-top: 3px solid var(--gold);
  padding-top: 1.5rem;
}
.faq-event-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.faq-event-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* Guide Section */
.faq-guide {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.faq-guide__header {
  margin-bottom: 3.5rem;
}
.faq-guide__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  max-width: 600px;
}
.faq-guide__header p {
  font-size: 0.95rem;
  color: var(--text-mid);
  max-width: 500px;
  margin: 0;
}
.faq-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.faq-guide-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-guide-card__icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
}
.faq-guide-card__icon svg {
  width: 100%;
  height: 100%;
}
.faq-guide-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.faq-guide-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.faq-guide-card .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-events__grid { grid-template-columns: 1fr 1fr; }
  .faq-guide__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .faq-events__grid { grid-template-columns: 1fr; }
  .faq-guide__grid { grid-template-columns: 1fr; }
}


@media (max-width: 900px) {
  .faq-hero { padding: 3.5rem 0 3rem; }
  .faq-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .faq-events__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .faq-guide__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* SM: 421-600px */
@media (max-width: 600px) {
  .faq-hero { padding: 2.5rem 0 2rem; }
  .faq-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .faq-hero p { font-size: 0.88rem; }
  .faq-events__grid { grid-template-columns: 1fr; }
  .faq-guide__grid { grid-template-columns: 1fr; }
  .faq-section { padding: 3.5rem 0; }
  .faq-events { padding: 3.5rem 0; }
  .faq-guide { padding: 3.5rem 0; }
}

/* XS: ≤420px */
@media (max-width: 420px) {
  .faq-hero h1 { font-size: 1.5rem; }
  .faq-item h3 { font-size: 1rem; }
  .faq-guide-card .btn { width: 100%; justify-content: center; }
}


/* Hero */
.contact-hero {
  background: var(--navy-dark);
  padding: 5rem 0 4rem;
}
.contact-hero__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.contact-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  line-height: 1.75;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--white);
  padding: 6rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 5rem;
  align-items: start;
}

/* Form */
.contact-form-wrap { width: 100%; }

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.contact-form__field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.contact-form__field input,
.contact-form__field textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--ease), background var(--ease);
  outline: none;
  resize: none;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--navy);
  background: var(--white);
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder { color: var(--text-light); }
.contact-form__error {
  font-size: 0.72rem;
  color: var(--error);
  margin-top: 0.3rem;
  min-height: 1rem;
}

/* Submit button */
.contact-btn__icon {
  width: 16px;
  height: 16px;
  margin-left: 0.4rem;
}

/* Sending state */
.contact-form__sending {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-mid);
}
.contact-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success message */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
}
.contact-success__icon {
  width: 60px; height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.contact-success__icon svg {
  width: 30px; height: 30px;
  stroke: var(--white);
}
.contact-success h3 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.contact-success p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: 0;
}

/* Right side info */
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.contact-info__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info__icon {
  width: 40px; height: 40px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info__icon svg {
  width: 18px; height: 18px;
  stroke: var(--navy);
}
.contact-info__item-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.contact-info__item a,
.contact-info__item span {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--ease);
}
.contact-info__item a:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-info__img { flex: 1 1 100%; }
  .contact-info__details { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}
@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-info__details { flex-direction: column; }
}


@media (max-width: 900px) {
  .contact-hero { padding: 3.5rem 0 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .contact-info__img { flex: 1 1 100%; }
  .contact-info__details { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

/* SM: 421-600px */
@media (max-width: 600px) {
  .contact-hero { padding: 2.5rem 0 2rem; }
  .contact-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .contact-hero p { font-size: 0.88rem; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-info__details { flex-direction: column; }
  .contact-section { padding: 3.5rem 0; }
}

/* XS: ≤420px */
@media (max-width: 420px) {
  .contact-hero h1 { font-size: 1.5rem; }
  .contact-info__item { gap: 0.75rem; }
  .contact-info__icon { width: 34px; height: 34px; }
  .contact-info__icon svg { width: 15px; height: 15px; }
}

.tp-hero {
  background: var(--navy-dark);
  padding: 5rem 0 4rem;
}
.tp-hero__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.tp-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}
.tp-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

/* Sections */
.tp-section { background: var(--white); padding: 5rem 0; }
.tp-section--alt { background: var(--off-white); }
.tp-section__header { margin-bottom: 3rem; }
.tp-section__header p { color: var(--text-mid); font-size: 0.92rem; max-width: 600px; margin-top: 0.5rem; }

/* Empty state */
.tp-empty { color: var(--text-light); font-size: 0.9rem; padding: 2rem 0; }

/* Videos Grid */
.tp-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.tp-video-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--ease);
}
.tp-video-card:hover { box-shadow: var(--shadow-md); }
.tp-video-card__thumb { aspect-ratio: 16/9; background: var(--navy-dark); overflow: hidden; }
.tp-video-card__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-video-card__body { padding: 1.25rem 1.5rem; }
.tp-video-card__body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.tp-video-card__body p { font-size: 0.83rem; color: var(--text-mid); margin: 0; }

/* Photos Grid */
.tp-photos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tp-photo-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
}
.tp-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.tp-photo-item:hover img { transform: scale(1.05); }

/* Documents List */
.tp-docs__list { display: flex; flex-direction: column; gap: 1rem; }
.tp-doc-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease);
}
.tp-doc-row:hover { box-shadow: var(--shadow-md); }
.tp-doc-row__icon { color: var(--navy); }
.tp-doc-row__icon svg { width: 36px; height: 36px; }
.tp-doc-row__body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.tp-doc-row__body p { font-size: 0.83rem; color: var(--text-mid); margin: 0; }
.tp-doc-row__btn { white-space: nowrap; }

/* Modal */
.tp-modal__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}
.tp-modal__backdrop.open { display: block; }
.tp-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: 90%;
  max-width: 480px;
}
.tp-modal.open { display: block; }
.tp-modal__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.tp-modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  cursor: pointer;
  color: var(--text-light);
  width: 32px; height: 32px;
}
.tp-modal__close svg { width: 20px; height: 20px; }
.tp-modal__box h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 0.5rem; }
.tp-modal__doc { font-weight: 600; color: var(--navy); font-size: 0.9rem; margin-bottom: 0.75rem; }
.tp-modal__box > p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 1.5rem; }
.tp-modal__field { margin-bottom: 1rem; }
.tp-modal__field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.35rem; }
.tp-modal__field input { width: 100%; padding: 0.7rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; font-family: var(--font-body); outline: none; transition: border-color var(--ease); background: var(--off-white); }
.tp-modal__field input:focus { border-color: var(--navy); background: var(--white); }
.tp-modal__error { font-size: 0.78rem; color: var(--error); margin-bottom: 0.75rem; min-height: 1rem; }
.tp-modal__success { display: none; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; padding: 1rem 0; }
.tp-modal__success svg { width: 52px; height: 52px; stroke: var(--gold); }
.tp-modal__success h4 { font-size: 1.2rem; color: var(--navy); margin: 0; }
.tp-modal__success p { font-size: 0.88rem; color: var(--text-mid); margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .tp-videos__grid { grid-template-columns: repeat(2, 1fr); }
  .tp-photos__grid { grid-template-columns: repeat(3, 1fr); }
  .tp-doc-row { grid-template-columns: 1fr auto; }
  .tp-doc-row__icon { display: none; }
}
@media (max-width: 600px) {
  .tp-videos__grid { grid-template-columns: 1fr; }
  .tp-photos__grid { grid-template-columns: repeat(2, 1fr); }
  .tp-doc-row { grid-template-columns: 1fr; gap: 1rem; }
}




@media (max-width: 900px) {
  .tp-hero { padding: 3.5rem 0 3rem; }
  .tp-videos__grid { grid-template-columns: repeat(2, 1fr); }
  .tp-photos__grid { grid-template-columns: repeat(3, 1fr); }
  .tp-doc-row { grid-template-columns: 1fr auto; }
  .tp-doc-row__icon { display: none; }
}


@media (max-width: 600px) {
  .tp-hero { padding: 2.5rem 0 2rem; }
  .tp-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .tp-hero p { font-size: 0.88rem; }
  .tp-videos__grid { grid-template-columns: 1fr; }
  .tp-photos__grid { grid-template-columns: repeat(2, 1fr); }
  .tp-doc-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; }
  .tp-doc-row__btn { width: 100%; justify-content: center; }
  .tp-section { padding: 3.5rem 0; }
}

/* XS: ≤420px */
@media (max-width: 420px) {
  .tp-hero h1 { font-size: 1.5rem; }
  .tp-photos__grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .tp-modal__box { padding: 1.75rem 1.25rem; }
}

/* ---- Transparency - Useful Links ---- */
.tp-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tp-link-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  min-width: 0;
  overflow: hidden;
}
.tp-link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--navy);
}
.tp-link-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.tp-link-card__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tp-link-card__body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-link-card__body p {
  font-size: 0.73rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-link-card__arrow {
  width: 14px;
  height: 14px;
  color: var(--navy);
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--ease), transform var(--ease);
  margin-top: 4px;
}
.tp-link-card:hover .tp-link-card__arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

@media (max-width: 900px) {
  .tp-links__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tp-links__grid { grid-template-columns: 1fr; }
  .tp-link-card__body p { -webkit-line-clamp: unset; }
}

/* ---- Photo Lightbox ---- */
.tp-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}
.tp-lightbox.open { display: flex; }
.tp-lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.tp-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.tp-lightbox__close svg { width: 20px; height: 20px; }
.tp-lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.tp-lightbox__caption {
  margin-top: 1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-body);
}
.tp-photo-item { cursor: pointer; }
.tp-photo-item:hover img { transform: scale(1.05); opacity: 0.9; }

/* ==============================================================
   MOBILE HEADER OVERRIDES — must come AFTER the unconditional
   .header__mobile-donate base rule above to win the cascade.
   These ensure the donate button shrinks enough on narrow phones
   so the full "Romanian Contact Point" logo text remains visible.
   ============================================================== */
@media (max-width: 600px) {
  .header__mobile-donate { padding: 0.4rem 0.85rem; font-size: 0.68rem; }
}
@media (max-width: 420px) {
  .header__mobile-donate { padding: 0.32rem 0.55rem; font-size: 0.58rem; letter-spacing: 0.02em; }
}
@media (max-width: 380px) {
  .header__mobile-donate { padding: 0.26rem 0.4rem; font-size: 0.5rem; letter-spacing: 0; }
  .header__logo-name { font-size: 0.66rem; max-width: 200px; }
  .header__logo img { height: 30px; }
  .header .container { gap: 0.35rem; padding: 0 0.6rem; }
}
@media (max-width: 340px) {
  .header__mobile-donate { padding: 0.22rem 0.32rem; font-size: 0.46rem; }
  .header__logo-name { font-size: 0.6rem; max-width: 160px; }
}

/* ==============================================================
   FOOTER TRUST ROW — appended at end so it beats the unconditional
   .footer__fr-badge img rule defined earlier in this file and the
   inline style="height:48px" on the <img> in HTML (uses !important
   to override inline styles).

   Goal: keep FR badge + Trustpilot side-by-side at all mobile widths
   AND match their visual heights so the row looks balanced.
   The Trustpilot widget renders as a 52px-tall iframe (set by its
   data-style-height attribute), so the FR badge is set to the same
   52px height at all mobile breakpoints. The badge wrapper has a
   max-width that scales down for narrower viewports to keep the row
   on a single line; below 340px the row stacks gracefully.
   ============================================================== */

@media (max-width: 600px) {
  .footer__brand > div:has(> .footer__fr-badge) {
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
  }
  .footer__fr-badge {
    max-width: 190px;
    overflow: hidden;
    flex-shrink: 1;
    display: flex;
    align-items: center;
  }
  .footer__fr-badge img {
    height: 52px !important;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
  }
}

@media (max-width: 430px) {
  .footer__brand > div:has(> .footer__fr-badge) {
    gap: 0.5rem !important;
  }
  .footer__fr-badge { max-width: 150px; }
}

@media (max-width: 380px) {
  .footer__brand > div:has(> .footer__fr-badge) {
    gap: 0.4rem !important;
  }
  .footer__fr-badge { max-width: 130px; }
}

@media (max-width: 340px) {
  /* Very narrow phones: stack vertically so neither element gets
     unreadably small. */
  .footer__brand > div:has(> .footer__fr-badge) {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
  }
  .footer__fr-badge { max-width: 100%; }
}
