/* ==========================================================
   Shifa Gala — 2026 redesign theme layer
   Loaded after style.css. Reuses the existing brand palette
   (see hex values below) as CSS custom properties instead of
   scattering hex codes through new component rules.
   ========================================================== */
:root {
  --sg-navy: #0c2230;
  --sg-navy-2: #1b3f59;
  --sg-teal: #35758e;
  --sg-teal-light: #4ba5c8;
  --sg-sky: #47b2e4;
  --sg-sky-hover: #73c5eb;
  --sg-gold: #fcd473;
  --sg-gold-2: #fed24d;
  --sg-text: #444;
  --sg-bg-light: #f4f7fb;
  --radius-pill: 50px;
  --radius-card: 14px;
}

/* ---------- Temporarily disabled links (Donate / Buy Tickets / Auction) ----------
   Old links (Eventbrite, OHF donor portal, Trellis auction) are being retired;
   new ones are coming soon. Buttons stay visible/in-place, just inert. */
.disabled-link {
  pointer-events: none;
  opacity: .5;
  cursor: not-allowed;
}

/* ---------- Header solid on scroll (avoid content ghosting through) ---------- */
#header.header-scrolled,
#header.header-inner-pages {
  background: var(--sg-navy-2);
}

/* ---------- Mobile slide-out nav fix ----------
   style.css hardcodes `.navbar-mobile ul { height: 100px }`, which was already
   cramped for 2 links and clips our 4 nav items entirely out of view. The box
   is absolutely positioned with top/right/bottom/left already set, so it only
   needs height:auto to fill that region instead of being capped at 100px. */
.navbar-mobile ul {
  height: auto;
}
.navbar-mobile li {
  margin: 6px 15px;
}
.navbar-mobile .hdr-cta {
  margin-left: 0;
  text-align: center;
}
.navbar-mobile .hdr-donate > a,
.navbar-mobile .hdr-tickets > a,
.navbar-mobile .hdr-sponsor > a,
.navbar-mobile .hdr-gallery > a {
  padding: 10px 20px;
}

/* ---------- Header CTA buttons ---------- */
.navbar .hdr-cta {
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  margin-left: 10px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  transition: .3s;
  white-space: nowrap;
}
.navbar .hdr-cta > a { color: inherit; display: block; }
.navbar .hdr-donate { background: transparent; border: 2px solid var(--sg-gold); }
.navbar .hdr-donate > a { color: var(--sg-gold) !important; }
.navbar .hdr-donate:hover { background: var(--sg-gold); }
.navbar .hdr-donate:hover > a { color: var(--sg-navy) !important; }

.navbar .hdr-tickets { background: var(--sg-gold); }
.navbar .hdr-tickets > a { color: var(--sg-navy) !important; }
.navbar .hdr-tickets:hover { background: var(--sg-gold-2); }

.navbar .hdr-sponsor { background: var(--sg-teal); }
.navbar .hdr-sponsor > a { color: #fff !important; }
.navbar .hdr-sponsor:hover { background: var(--sg-teal-light); }

.navbar .hdr-gallery { background: transparent; border: 2px solid rgba(255,255,255,.6); }
.navbar .hdr-gallery > a { color: #fff !important; }
.navbar .hdr-gallery:hover { background: rgba(255,255,255,.15); border-color: #fff; }

@media (max-width: 1366px) {
  .navbar .hdr-cta { padding: 8px 16px; margin-left: 6px; font-size: 13px; }
}

/* ---------- Ticket pricing buttons ($150/$1,350 "BOOK NOW") ----------
   style.css has border-radius:50px commented out here, so these rendered as
   sharp rectangles while every other CTA site-wide (Donate, hero, header,
   tier cards) uses the pill shape. Bring it in line with that convention. */
#skills .btn-get-started {
  border-radius: var(--radius-pill);
}

/* ---------- Hero background override ----------
   The original hero images (hdr_main_bg.jpg / hdr_mbl_bg.jpg) have last year's
   event copy ("Amanat Ali Live at Shifa Gala 2025 / Nov 29th") baked into the
   photo itself, which would visually clash with the new headline text. Swap in
   the clean Oakville Trafalgar Memorial Hospital photo (no text baked in) with
   a dark scrim for legibility — also reinforces which hospital this supports. */
#hero {
  background: linear-gradient(rgba(12,34,48,.6), rgba(12,34,48,.6)), url(../img/shifagala/hdr-bg.jpg) no-repeat center center;
  background-size: cover;
}
@media (max-width: 768px) {
  #hero {
    background: linear-gradient(rgba(12,34,48,.65), rgba(12,34,48,.65)), url(../img/shifagala/mbl-hdr-bk.jpg) no-repeat center top;
    background-size: cover;
    /* style.css fixes #hero to height:473px + overflow:hidden at this breakpoint, which was
       fine for the old (empty) hero but clips our taller eyebrow/date/venue/3-CTA content. */
    height: auto;
    min-height: 700px;
    overflow: visible;
    padding-bottom: 30px;
  }
  #hero .inr-bg { min-height: auto; }
  #hero .container { min-height: auto; }
  #hero .hdr-hdngs-cont { margin-top: 150px; }
}

/* ---------- Hero announcement badge ---------- */
.hero-eyebrow {
  display: inline-block;
  margin: 0 auto 14px auto;
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  background: rgba(252, 212, 115, 0.15);
  border: 1px solid var(--sg-gold);
  color: var(--sg-gold);
  font-family: 'Lato-Bold';
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}
.hero-venue {
  color: #fff;
  font-family: 'Lato-Regular';
  font-size: 18px;
  text-align: center;
  margin-bottom: 20px;
}
.hero-venue i { color: var(--sg-gold); margin-right: 6px; }
.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
#hero .hero-cta-row .btn-get-started {
  border-radius: var(--radius-pill);
  margin: 0;
}
#hero .hero-cta-row .btn-donate { background: transparent; border: 2px solid var(--sg-gold); color: var(--sg-gold) !important; }
#hero .hero-cta-row .btn-donate:hover { background: var(--sg-gold); color: var(--sg-navy) !important; }
#hero .hero-cta-row .btn-tickets { background: var(--sg-gold); color: var(--sg-navy) !important; }
#hero .hero-cta-row .btn-tickets:hover { background: var(--sg-gold-2); }
#hero .hero-cta-row .btn-sponsor { background: var(--sg-teal); color: #fff !important; }
#hero .hero-cta-row .btn-sponsor:hover { background: var(--sg-teal-light); }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--sg-navy-2);
  padding: 46px 0;
}
.stats-strip .row { --bs-gutter-x: 1.5rem; }
.stat-box { text-align: center; padding: 10px 8px; }
.stat-box .stat-num {
  font-family: 'PlayfairDisplay-Bold';
  color: var(--sg-gold);
  font-size: 40px;
  line-height: 1.1;
  display: block;
}
.stat-box .stat-label {
  color: #eaf1f6;
  font-family: 'Lato-Regular';
  font-size: 14px;
  letter-spacing: .3px;
  margin-top: 6px;
  display: block;
}
@media (max-width: 768px) {
  .stat-box .stat-num { font-size: 30px; }
  .stat-box .stat-label { font-size: 12px; }
}

/* ---------- Auction strip (trimmed banner_buttons.php) ---------- */
.auction-strip {
  background: var(--sg-teal);
  padding: 18px 0;
  text-align: center;
}
.auction-strip h3 {
  display: inline-block;
  color: #fff;
  font-family: 'Lato-Regular';
  font-size: 16px;
  margin: 0 16px 0 0;
  vertical-align: middle;
}
.auction-strip a {
  display: inline-block;
  vertical-align: middle;
  background: var(--sg-gold);
  color: var(--sg-navy);
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  font-family: 'PlayfairDisplay-Bold';
  font-weight: bold;
}
.auction-strip a:hover { background: var(--sg-gold-2); }

/* ---------- Homepage "Moments from Past Galas" section ---------- */
.gallery-preview { background: var(--sg-bg-light); padding: 70px 0; }
.gallery-preview .section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.gallery-preview .section-heading h2 {
  font-family: 'PlayfairDisplay-Bold';
  color: var(--sg-navy-2);
  font-size: 36px;
}
.gallery-preview .section-heading p {
  color: var(--sg-text);
  font-size: 16px;
}
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-preview-grid a { display: block; border-radius: var(--radius-card); overflow: hidden; }
.gallery-preview-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-preview-grid a:hover img { transform: scale(1.06); }
@media (max-width: 991px) {
  .gallery-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-preview-grid img { height: 160px; }
}
@media (max-width: 575px) {
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
.gallery-preview .view-full-gallery {
  display: block;
  width: fit-content;
  margin: 34px auto 0 auto;
  background: var(--sg-teal);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-family: 'Lato-Bold';
  letter-spacing: .5px;
}
.gallery-preview .view-full-gallery:hover { background: var(--sg-teal-light); }

.highlights-row { margin-top: 50px; }
.highlights-row h4 {
  text-align: center;
  font-family: 'PlayfairDisplay-Bold';
  color: var(--sg-navy-2);
  margin-bottom: 24px;
}
.highlights-row .video-container { margin-bottom: 15px; }

/* ---------- Masonry gallery (full gallery page + shared include) ---------- */
.gallery-year { margin-top: 40px; }
.gallery-title { text-align: center; font-weight: 600; margin-bottom: 20px; }
.masonry { column-gap: 15px; }
@media (max-width: 480px) { .masonry { column-count: 2; } }
@media (min-width: 481px) and (max-width: 991px) { .masonry { column-count: 3; } }
@media (min-width: 992px) { .masonry { column-count: 4; } }
.masonry-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  margin-bottom: 15px;
  display: inline-block;
  width: 100%;
}
.gallery-card {
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  transition: transform .25s ease;
}
.gallery-card img { width: 100%; height: auto; display: block; object-fit: contain; }
.gallery-card:hover { transform: scale(1.02); }

/* ---------- Sponsor tier cards (packages.php + sponsors.php 2026 tab) ---------- */
.sponsor-2026-intro { text-align: center; max-width: 760px; margin: 0 auto 40px auto; }
.sponsor-2026-intro h2 { font-family: 'PlayfairDisplay-Bold'; color: var(--sg-navy-2); font-size: 32px; }
.sponsor-2026-intro p { color: var(--sg-text); font-size: 16px; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  margin: 20px 0 40px 0;
}
.tier-card {
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: 0 4px 16px rgba(12,34,48,.06);
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card-featured {
  border: 2px solid var(--sg-gold);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sg-gold);
  color: var(--sg-navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}
.tier-name { font-family: 'PlayfairDisplay-Bold'; color: var(--sg-navy-2); font-size: 20px; text-align: center; margin-bottom: 4px; }
.tier-price { font-family: 'PlayfairDisplay-Bold'; color: var(--sg-teal); font-size: 28px; text-align: center; margin-bottom: 10px; }
.tier-note { font-size: 13px; color: var(--sg-text); text-align: center; font-style: italic; margin-bottom: 10px; }
.tier-benefits { list-style: none; padding: 0; margin: 0 0 20px 0; flex-grow: 1; }
.tier-benefits li { font-size: 14px; color: var(--sg-text); margin-bottom: 10px; display: flex; gap: 8px; align-items: flex-start; }
.tier-benefits li i { color: var(--sg-teal); margin-top: 3px; flex-shrink: 0; }
.tier-cta {
  display: block;
  text-align: center;
  background: var(--sg-teal);
  color: #fff !important;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-family: 'Lato-Bold';
}
.tier-cta:hover { background: var(--sg-teal-light); }

.sponsor-auction-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: var(--sg-text);
  font-size: 15px;
}

@media (max-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .tier-grid { grid-template-columns: 1fr; }
}

/* ---------- Sponsor logo year tabs re-skin ---------- */
#sponsers .nav-tabs > li > a.tab-2026 { background: var(--sg-gold); color: var(--sg-navy) !important; }

/* Mobile menu sits on a white box (see .navbar-mobile ul above) — the plain
   Gallery link needs a dark color here, overriding the white nav-link color
   used against the dark desktop header. Placed last to win the cascade tie
   against the equal-specificity `.navbar .hdr-gallery > a` rule above. */
.navbar-mobile .hdr-gallery > a {
  color: var(--sg-navy-2) !important;
  font-weight: 600;
  justify-content: center;
}
.navbar-mobile .hdr-gallery {
  border-color: var(--sg-navy-2);
}
.navbar-mobile .hdr-gallery:hover {
  background: var(--sg-bg-light);
}
