/* ==========================================================
   The Scarlett Life Force Community — shared styles
   Used by index.html, about.html and contact.html
   ========================================================== */

/* ===== COLORS & FONTS (edit these to re-theme the site) ===== */
:root {
  --color-teal: #2f6f68;
  --color-teal-dark: #24564f;
  --color-navy: #1a2e3b;
  --color-amber: #e0a33a;
  --color-amber-dark: #c98b22;
  --color-bg: #f7f4ef;
  --color-white: #ffffff;
  --color-text: #4a5560;
  --color-muted: #8a939b;
  --color-border: #e4ded4;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-sm: 0 2px 8px rgba(26, 46, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 46, 59, 0.10);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
}

a { color: inherit; text-decoration: none; }

.section-padding { padding: 88px 0; }

@media (max-width: 767px) {
  .section-padding { padding: 60px 0; }
}

/* ===== PAGE SECTIONS ===== */
.page-section { display: none; }
.page-section.active-page { display: block; }

.fade-in { animation: fadeIn 0.5s ease both; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ===== NAVBAR ===== */
.navbar-urbem {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}
.navbar-urbem.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-navy);
}
.nav-brand:hover { color: var(--color-navy); }

/* Navbar logo: change height to resize; width scales automatically */
.nav-logo {
  display: block;
  height: 44px;
  width: auto;
}

.nav-links a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-amber);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--color-teal); }
.nav-links a:hover::after,
.nav-links a.nav-active::after { width: 100%; }
.nav-links a.nav-active { color: var(--color-teal); }

.nav-links a.donate-link {
  background: var(--color-amber);
  color: var(--color-navy);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links a.donate-link::after { display: none; }
.nav-links a.donate-link:hover { background: var(--color-amber-dark); color: var(--color-navy); }

/* ===== MOBILE NAV ===== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--color-white);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-nav-overlay.open { transform: translateX(0); }

.mobile-nav-overlay > a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav-overlay > a.donate-link { color: var(--color-amber-dark); font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-urbem {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-urbem:hover { transform: translateY(-1px); }

.btn-amber { background: var(--color-amber); border-color: var(--color-amber); color: var(--color-navy); }
.btn-amber:hover { background: var(--color-amber-dark); border-color: var(--color-amber-dark); color: var(--color-navy); }

.btn-navy { background: var(--color-navy); border-color: var(--color-navy); color: var(--color-white); }
.btn-navy:hover { background: #0f1d26; border-color: #0f1d26; color: var(--color-white); }

.btn-outline-white { background: transparent; border-color: rgba(255, 255, 255, 0.8); color: var(--color-white); }
.btn-outline-white:hover { background: var(--color-white); color: var(--color-navy); }

.btn-outline-navy { background: transparent; border-color: var(--color-navy); color: var(--color-navy); }
.btn-outline-navy:hover { background: var(--color-navy); color: var(--color-white); }

/* ===== HERO (Home) ===== */
.hero-urbem {
  position: relative;
  overflow: hidden;
  min-height: 41vh;
  display: flex;
  align-items: center;
  padding: 40px 5vw;
  background: var(--color-teal);
}

.hero-texture {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 320px;
  padding: 24px 22px;
  background: rgba(26, 46, 59, 0.88);
  border-left: 3px solid var(--color-amber);
  border-radius: var(--radius);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}
.hero-card .eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 8px;
}
.hero-card h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}
.hero-body {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}
/* Smaller buttons inside the hero card */
.hero-card > .flex { margin-top: 0.9rem; gap: 0.5rem; }
.hero-card .btn-urbem {
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
}

/* Macaw logo on the right of the hero; sized from the hero's height so it is never cut off */
.hero-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 6%;
  height: 88%;
  width: auto;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-urbem {
    min-height: auto;
    padding: 28px 20px;
    flex-direction: column;
    gap: 20px;
  }
  .hero-card { padding: 20px 18px; }
  /* On phones the logo sits under the card instead of beside it */
  .hero-logo {
    position: static;
    transform: none;
    height: 220px;
  }
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--color-navy);
  padding: 44px 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
}
.stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1.1;
}
.stat-label {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 767px) {
  .stat-item + .stat-item { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
}

/* ===== SECTION HEADINGS ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
}
.section-subheading {
  max-width: 560px;
  color: var(--color-muted);
  font-size: 1rem;
}

.heading-underline {
  position: relative;
  padding-bottom: 14px;
}
.heading-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--color-amber);
}
.heading-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ===== IMAGE PLACEHOLDERS ===== */
.img-placeholder-teal {
  height: 100%;
  min-height: 440px; /* keeps photo boxes (e.g. the jaguar) from collapsing when columns stack on mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius);
}

/* ===== LISTS & LINKS ===== */
.amber-dash-list {
  list-style: none;
  padding: 0;
}
.amber-dash-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-text);
}
.amber-dash-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 16px;
  height: 2px;
  background: var(--color-amber);
}

.text-link-amber {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-amber-dark);
  border-bottom: 2px solid var(--color-amber);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.text-link-amber:hover { color: var(--color-navy); }

/* ===== TESTIMONIALS ===== */
.testimonials-dark {
  background: var(--color-navy);
  color: var(--color-white);
  padding-bottom: 120px;
}
.testimonial-card-urbem {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 24px;
}
.big-quote {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-amber);
  margin-bottom: 8px;
}
.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
}
.attribution {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber);
}

.carousel-arrow-urbem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.carousel-control-prev:hover .carousel-arrow-urbem,
.carousel-control-next:hover .carousel-arrow-urbem {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-navy);
}
.testimonials-dark .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}
.testimonials-dark .carousel-indicators .active { background-color: var(--color-amber); }

@media (max-width: 991px) {
  /* Arrows sit outside the carousel on desktop; hide them where there is no room */
  .testimonials-dark .carousel-control-prev,
  .testimonials-dark .carousel-control-next { display: none; }
}

/* ===== CTA BANNER ===== */
.cta-banner-urbem {
  background: var(--color-amber);
}

/* ===== INNER PAGE HERO (About, Contact) ===== */
.page-hero-urbem {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 80px 0 64px;
}
.page-hero-urbem h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
}

.breadcrumb-urbem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.breadcrumb-urbem li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.breadcrumb-urbem a { color: var(--color-amber); cursor: pointer; }
.breadcrumb-urbem a:hover { color: var(--color-white); }

/* ===== TIMELINE (About) ===== */
.timeline-track-urbem {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}
.timeline-track-urbem::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-border);
}
.timeline-item-urbem {
  position: relative;
  flex: 1;
  text-align: center;
}
.timeline-dot-urbem {
  width: 18px;
  height: 18px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--color-amber);
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-amber);
}
.timeline-year-urbem {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
}
.timeline-desc-urbem {
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .timeline-track-urbem {
    flex-direction: column;
    gap: 24px;
    padding-left: 32px;
  }
  .timeline-track-urbem::before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .timeline-item-urbem { text-align: left; }
  .timeline-dot-urbem {
    position: absolute;
    left: -33px;
    top: 4px;
    margin: 0;
  }
}

/* ===== CARDS ===== */
.card-urbem {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-urbem:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===== TEAM (About) ===== */
.team-avatar-urbem {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

/* ===== PARTNERS (About) ===== */
.partner-box-urbem {
  width: 130px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.partner-box-urbem:hover {
  color: var(--color-teal);
  border-color: var(--color-teal);
}

/* ===== CONTACT ===== */
.map-placeholder-urbem {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius);
  text-align: center;
  padding: 24px;
}

.form-input-urbem {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-navy);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-input-urbem::placeholder { color: var(--color-muted); }
.form-input-urbem:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(47, 111, 104, 0.15);
}

/* ===== FOOTER ===== */
.footer-urbem {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
}
.footer-urbem h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-white);
  margin-bottom: 16px;
}
.footer-urbem a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.footer-urbem a:hover { color: var(--color-amber); }

.footer-social-urbem a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social-urbem a:hover {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-navy);
}

/* ===== EVENTS (Home — calendar rendered by scripts/events.js) ===== */
/* One horizontal row of day columns; pages snap into place. */
.card-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0.25rem 1rem;
  scrollbar-width: thin;
}
.card-track > .day-col { flex: 0 0 calc((100% - 3rem) / 4); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1199.98px) { .card-track > .day-col { flex-basis: calc((100% - 2rem) / 3); } }
@media (max-width: 991.98px)  { .card-track > .day-col { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 575.98px)  { .card-track > .day-col { flex-basis: 100%; } }

.day-head { border-bottom: 2px solid var(--color-border); }
.day-col.today .day-head { border-color: var(--color-amber); }
.day-col.past { opacity: 0.65; }

/* --c is an optional per-event color set by events.js; falls back to the site teal */
.event-card {
  border-left: 5px solid var(--c, var(--color-teal)) !important;
  transition: transform 0.12s, box-shadow 0.12s;
}
.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }
.event-time { color: var(--c, var(--color-teal)); }

.text-break-word { word-break: break-word; }
