/* ==========================================================================
   Shifa Gala — site design layer (2026)
   Loaded after style.css / theme.css. Owns the shared chrome (header, hero,
   donate band, contact, footer) and the home page sections. Palette is taken
   from the Shifa Gala logo: deep teal + mint, with the heart-and-hands icon
   colours (yellow, pink, cyan, orange) used as small accents only.
   Type: Playfair Display (headings) + Lato (text), both served locally.
   ========================================================================== */

@font-face { font-family: 'SG Display'; src: url('../fonts/PlayfairDisplay-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SG Display'; src: url('../fonts/PlayfairDisplay-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'SG Display'; src: url('../fonts/PlayfairDisplay-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'SG Text'; src: url('../fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'SG Text'; src: url('../fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'SG Text'; src: url('../fonts/Lato-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --sg-ink: #0c2b2a;
  --sg-text: #33504e;
  --sg-muted: #566f6d;
  --sg-teal: #017d78;
  --sg-teal-dark: #02625e;
  --sg-deep: #033836;
  --sg-deeper: #022826;
  --sg-mint: #00c09b;
  --sg-mint-soft: #e5f6f1;
  --sg-yellow: #fcd734;
  --sg-orange: #f67e17;
  --sg-pink: #f06194;
  --sg-cyan: #4dd1e2;
  --sg-cream: #f7f5ee;
  --sg-line: #d3e4e0;
  --sg-radius: 16px;
  --sg-pad: 88px;
  --sg-gap-head: 48px;
  --sg-display: 'SG Display', 'Playfair Display', Georgia, serif;
  --sg-sans: 'SG Text', 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (max-width: 768px) {
  :root { --sg-pad: 60px; --sg-gap-head: 36px; }
}

/* ---------- Shared building blocks ---------- */
.sg-header, .sg-hero, .sg-section, .sg-footer {
  font-family: var(--sg-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--sg-text);
  -webkit-font-smoothing: antialiased;
}
.sg-section { position: relative; padding: var(--sg-pad) 0; }
.sg-section h1, .sg-section h2, .sg-section h3, .sg-section h4,
.sg-hero h1, .sg-footer h4 { letter-spacing: 0; text-transform: none; }

.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font: 700 14px/1.3 var(--sg-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sg-teal);
}
.sg-eyebrow::before { content: ""; width: 36px; height: 3px; border-radius: 2px; background: var(--sg-mint); }
.sg-title {
  margin: 0 0 18px;
  font: 700 clamp(32px, 4.2vw, 48px)/1.15 var(--sg-display);
  color: var(--sg-ink);
}
.sg-lead { margin: 0; font-size: 18px; color: var(--sg-text); }
.sg-head { max-width: 760px; margin: 0 auto var(--sg-gap-head); text-align: center; }
.sg-head .sg-eyebrow { justify-content: center; }
.sg-head .sg-title:last-child { margin-bottom: 0; }

.on-dark { color: #e3f2ef; }
.on-dark .sg-eyebrow { color: var(--sg-yellow); }
.on-dark .sg-eyebrow::before { background: var(--sg-yellow); }
.on-dark .sg-title { color: #fff; }
.on-dark .sg-lead { color: #d3e9e5; }

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 15px/1 var(--sg-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.sg-btn:hover { transform: translateY(-2px); }
.sg-btn--gold { background: var(--sg-yellow); color: var(--sg-deep) !important; }
.sg-btn--gold:hover { background: #ffe466; }
.sg-btn--ghost { border-color: rgba(255,255,255,.75); color: #fff !important; background: transparent; }
.sg-btn--ghost:hover { background: #fff; color: var(--sg-deep) !important; border-color: #fff; }
.sg-btn--teal { background: var(--sg-teal); color: #fff !important; }
.sg-btn--teal:hover { background: var(--sg-teal-dark); }
.sg-btn--outline { border-color: var(--sg-teal); color: var(--sg-teal) !important; background: transparent; }
.sg-btn--outline:hover { background: var(--sg-teal); color: #fff !important; }
.sg-btn.disabled-link { opacity: .55; pointer-events: none; cursor: not-allowed; }

/* ---------- Header ---------- */
.sg-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 997;
  padding: 18px 0;
  background: transparent;
  transition: background .3s, padding .3s, box-shadow .3s;
}
.sg-header.header-scrolled {
  padding: 10px 0;
  background: rgba(3, 56, 54, .97);
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
.sg-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sg-brand { display: flex; align-items: center; gap: 20px; text-decoration: none; padding: 8px 0; }
.sg-brand .sg-logo { display: block; height: 54px; width: auto; }
.sg-brand .sg-ohf { display: block; height: 46px; width: auto; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.35); }
@media (min-width: 992px) {
  .sg-header.header-scrolled .sg-logo { height: 46px; }
  .sg-header.header-scrolled .sg-ohf { height: 40px; }
}

.sg-nav { padding: 0; }
.sg-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-nav li { margin: 0; }
.sg-header .sg-nav a.nav-link {
  display: block;
  padding: 10px 16px;
  font: 700 15px/1.2 var(--sg-sans);
  letter-spacing: .03em;
  color: #fff;
}
.sg-header .sg-nav a.nav-link:hover { color: var(--sg-yellow); }
.sg-header .sg-nav a.sg-btn { padding: 12px 24px; font-size: 13px; margin-left: 6px; }

@media (max-width: 991px) {
  .sg-brand .sg-logo { height: 40px; }
  .sg-brand .sg-ohf { height: 34px; padding-left: 14px; }
  .sg-brand { gap: 14px; }
  .sg-nav ul { display: none; }
  .sg-nav .mobile-nav-toggle { display: block; color: #fff; font-size: 32px; padding: 6px; margin: -6px -6px -6px 0; }
  .sg-nav.navbar-mobile { display: block; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(2, 40, 38, .98); z-index: 999; overflow-y: auto; }
  .sg-nav.navbar-mobile .mobile-nav-toggle { position: absolute; top: 22px; right: 20px; }
  .sg-nav.navbar-mobile ul {
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    position: static; width: 100%; height: auto; background: transparent; box-shadow: none;
    padding: 110px 28px 40px;
  }
  .sg-header .sg-nav.navbar-mobile a.nav-link { font-size: 24px; font-family: var(--sg-display); padding: 12px 0; text-align: center; color: #fff; }
  .sg-header .sg-nav.navbar-mobile a.sg-btn { margin: 6px 0 0; padding: 16px 24px; font-size: 14px; }
}
@media (max-width: 520px) {
  .sg-brand .sg-logo { height: 34px; }
  .sg-brand .sg-ohf { height: 30px; padding-left: 12px; }
  .sg-brand { gap: 12px; }
}
@media (max-width: 420px) {
  .sg-brand .sg-logo { height: 32px; }
  .sg-brand .sg-ohf { height: 28px; padding-left: 10px; }
  .sg-brand { gap: 10px; }
}
@media (max-width: 380px) {
  .sg-header__inner { gap: 12px; }
  .sg-brand .sg-logo { height: 28px; }
  .sg-brand .sg-ohf { height: 24px; padding-left: 8px; }
  .sg-brand { gap: 8px; }
  .sg-nav .mobile-nav-toggle { font-size: 28px; }
}

/* ---------- Hero ---------- */
.sg-hero {
  position: relative;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(3,56,54,.74) 0%, rgba(2,40,38,.88) 100%),
    url(../img/shifagala/hdr-bg.jpg) center / cover no-repeat;
  padding: calc(var(--hdr-h, 90px) + var(--sg-pad)) 0 var(--sg-pad);
}
.sg-hero__pill {
  display: inline-block;
  margin: 0 0 22px;
  padding: 9px 22px;
  border: 1.5px solid var(--sg-yellow);
  border-radius: 999px;
  font: 700 14px/1.2 var(--sg-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sg-yellow);
}
.sg-hero h1 {
  margin: 0 0 16px;
  font: 700 clamp(42px, 7.2vw, 86px)/1.05 var(--sg-display);
  color: #fff;
}
.sg-hero__sub {
  margin: 0 auto 14px;
  max-width: 820px;
  font: italic 400 clamp(21px, 2.6vw, 30px)/1.35 var(--sg-display);
  color: #fff;
}
.sg-hero__venue { margin: 0 0 36px; font-size: 18px; color: #d9eeea; }
.sg-hero__venue i { color: var(--sg-yellow); margin-right: 8px; }
.sg-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Featured artist ---------- */
.sg-artist { background: var(--sg-deep); overflow: hidden; }
.sg-artist::after {
  content: ""; position: absolute; left: -130px; bottom: -170px;
  width: 280px; height: 280px; border-radius: 50%;
  border: 32px solid var(--sg-mint); opacity: .85;
}
.sg-artist .container { position: relative; z-index: 1; }
.sg-artist__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.sg-artist__eyebrow { color: var(--sg-yellow); }
.sg-artist__name {
  margin: 0 0 20px;
  font: 700 clamp(52px, 7.4vw, 100px)/1 var(--sg-display);
  color: #fff;
}
.sg-artist__blurb { margin: 0; max-width: 560px; font-size: 19px; color: #d3e9e5; }
.sg-artist__photo { position: relative; isolation: isolate; justify-self: center; width: min(330px, 100%); margin-right: 30px; }
.sg-artist__photo::after {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%;
  width: 158%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--sg-yellow);
}
.sg-artist__photo::before {
  content: ""; position: absolute; z-index: -1; top: 18px; left: -18px; right: 18px; bottom: -18px;
  background: var(--sg-mint);
}
.sg-artist__photo img {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%;
  border: 6px solid #fff;
}

/* ---------- Event details ---------- */
.sg-info { background: var(--sg-cream); }
.sg-info__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.sg-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 18px 32px;
  background: #fff;
  border: 1px solid var(--sg-line);
  border-top: 5px solid var(--c, var(--sg-mint));
  border-radius: var(--sg-radius);
}
.sg-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 50%;
  background: var(--sg-mint-soft);
  background: color-mix(in srgb, var(--c, var(--sg-mint)) 22%, #fff);
  color: var(--sg-ink);
  font-size: 24px;
}
.sg-card__label { margin: 0 0 10px; font: 700 14px/1.3 var(--sg-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sg-teal); }
.sg-card__big { margin: 0; font: 700 28px/1.3 var(--sg-display); color: var(--sg-ink); }
.sg-card__big small { display: block; font: 400 16px/1.5 var(--sg-sans); color: var(--sg-muted); }
.sg-card__price { margin: 0; font: 700 44px/1.1 var(--sg-display); color: var(--sg-ink); }
.sg-card__price small { display: block; margin-top: 4px; font: 400 16px/1.5 var(--sg-sans); color: var(--sg-muted); }
.sg-card__addr { margin: 0; font-size: 18px; color: var(--sg-ink); }
.sg-card .sg-btn { margin-top: auto; }
.sg-card__price + .sg-btn { margin-top: 20px; }

/* ---------- Impact ---------- */
.sg-impact { background: var(--sg-teal); color: #fff; }
.sg-impact__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.sg-stat { padding: 0 10px; }
.sg-stat::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 16px; border-radius: 50%; background: var(--dot, var(--sg-yellow)); }
.sg-stat__num { display: block; font: 700 clamp(38px, 4.6vw, 58px)/1.1 var(--sg-display); color: #fff; }
.sg-stat__label { display: block; margin-top: 8px; font-size: 17px; color: #d9f0ec; }
.sg-impact__auction {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.28);
  font-size: 19px;
}

/* ---------- Gallery ---------- */
.sg-gallery { background: #fff; }
.sg-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sg-gallery__grid a { position: relative; display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: var(--sg-mint-soft); }
.sg-gallery__grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.sg-gallery__grid a:hover img { transform: scale(1.06); }
.sg-gallery__more { text-align: center; margin-top: 40px; }
.sg-highlights { margin-top: 64px; }
.sg-highlights h3 { margin: 0 0 28px; text-align: center; font: 700 clamp(26px, 3vw, 34px)/1.2 var(--sg-display); color: var(--sg-ink); }
.sg-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sg-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--sg-deep); }
.sg-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
.sg-about { background: var(--sg-mint-soft); }
.sg-about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.sg-about .sg-title { margin-bottom: 0; }
.sg-about__body { padding-left: 32px; border-left: 4px solid var(--sg-mint); }
.sg-about__body p { margin: 0 0 22px; font-size: 18px; color: var(--sg-text); }
.sg-about__body p:last-child { margin-bottom: 0; }

/* ---------- Donate band ---------- */
.sg-donate { background: var(--sg-yellow); }
.sg-donate__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.sg-donate h2 { margin: 0; max-width: 760px; text-wrap: balance; font: 700 clamp(28px, 3.6vw, 42px)/1.2 var(--sg-display); color: var(--sg-ink); }
.sg-donate .sg-btn--teal { background: var(--sg-deep); }
.sg-donate .sg-btn--teal:hover { background: var(--sg-ink); }

/* ---------- Contact ---------- */
.sg-contact { background: #fff; }
.sg-contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: stretch; }
.sg-contact__info {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  padding: 52px 44px; border-radius: 20px; color: #d3e9e5;
  background:
    radial-gradient(circle at 12% 12%, rgba(0,192,155,.38) 0, rgba(0,192,155,0) 46%),
    radial-gradient(circle at 100% 100%, rgba(252,215,52,.20) 0, rgba(252,215,52,0) 42%),
    radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(155deg, #04504c 0%, #033836 60%, #022826 100%);
}
.sg-contact__info::before {
  content: ""; position: absolute; z-index: -1; right: -70px; top: -70px;
  width: 210px; height: 210px; border-radius: 50%;
  border: 26px solid var(--sg-yellow); opacity: .9;
}
.sg-contact__info::after {
  content: ""; position: absolute; z-index: -1; left: 38px; bottom: -46px;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--sg-pink); opacity: .85;
}
.sg-contact__info h3 { margin: 0; font: 700 clamp(26px, 2.6vw, 34px)/1.2 var(--sg-display); color: #fff; }
.sg-contact__info p { margin: 0; font-size: 18px; }
.sg-contact .sg-title { margin-bottom: 26px; }
.sg-field { margin-bottom: 20px; }
.sg-field label { display: block; margin-bottom: 8px; font: 700 15px/1.3 var(--sg-sans); color: var(--sg-ink); }
.sg-field .form-control {
  width: 100%; padding: 14px 16px;
  font: 400 17px/1.4 var(--sg-sans); color: var(--sg-ink);
  background: #fff; border: 1.5px solid #b9d0cc; border-radius: 12px;
  box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.sg-field .form-control:focus { border-color: var(--sg-teal); box-shadow: 0 0 0 4px rgba(0,192,155,.2); outline: 0; }
.sg-field textarea.form-control { min-height: 120px; resize: vertical; }
.sg-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sg-contact .alert { font-size: 16px; border-radius: 12px; }

/* ---------- Footer ---------- */
.sg-footer { background: var(--sg-deeper); color: #cfe6e2; padding: var(--sg-pad) 0; }
.sg-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.16); }
.sg-footer__logo img { display: block; height: 56px; width: auto; }
.sg-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.sg-footer__nav a { display: inline-block; padding: 11px 0; font: 700 15px/1.4 var(--sg-sans); letter-spacing: .04em; color: #fff; text-decoration: none; }
.sg-footer__nav a:hover { color: var(--sg-yellow); }
.sg-footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: 36px; }
.sg-footer__copy { margin: 0; font-size: 15px; line-height: 44px; color: #b9d4cf; }
.sg-footer__copy strong { color: #fff; }
.sg-social { display: flex; align-items: flex-end; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sg-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%;
  background: transparent; color: #fff; font-size: 20px; line-height: 1;
  transition: color .25s, background .25s, border-color .25s;
}
.sg-social a:hover { background: var(--sg-yellow); border-color: var(--sg-yellow); color: var(--sg-deep); }

/* back to top */
.back-to-top { background: var(--sg-yellow) !important; }
.back-to-top i { color: var(--sg-deep) !important; }

/* ---------- Auction strip (inner pages still include it) ---------- */
.auction-strip { background: var(--sg-teal); padding: 22px 0; text-align: center; }
.auction-strip h3 { color: #fff; font: 400 18px/1.4 var(--sg-sans); }
.auction-strip a { background: var(--sg-yellow); color: var(--sg-deep); font: 700 14px/1 var(--sg-sans); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sg-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-impact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .sg-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-artist__inner { grid-template-columns: 1fr; gap: 64px; }
  .sg-artist__photo { order: -1; margin-right: 0; margin-left: 18px; }
  .sg-artist__photo::after { width: 135%; }
  .sg-artist::after { left: auto; right: -130px; bottom: -190px; }
  .sg-about__inner { grid-template-columns: 1fr; gap: 28px; }
  .sg-contact__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .sg-form-row { grid-template-columns: 1fr; gap: 0; }
  .sg-videos { grid-template-columns: 1fr; }
  .sg-contact__info { padding: 32px 26px; }
  .sg-about__body { padding-left: 20px; }
  .sg-donate__inner { justify-content: center; text-align: center; }
  .sg-footer__top, .sg-footer__bottom { justify-content: center; text-align: center; }
  .sg-footer__bottom { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .sg-info__grid { grid-template-columns: 1fr; }
  .sg-gallery__grid { gap: 10px; }
  .sg-hero__sub br { display: none; }
}

@media (max-width: 640px) { .sg-card__addr { font-size: 16px; } .sg-card__big { font-size: 24px; } }
@media (max-width: 640px) {
  .sg-contact__info { padding: 36px 26px 72px; }
  .sg-contact__info::before { right: -80px; top: -80px; width: 150px; height: 150px; border-width: 20px; }
  .sg-contact__info::after { left: auto; right: 26px; bottom: -42px; width: 84px; height: 84px; }
}
.sg-card__venue { margin-bottom: 10px; font-size: 22px; line-height: 1.3; }
@media (max-width: 640px) { .sg-card__venue { font-size: 19px; } }

/* ---------- 2026 sponsors (sponsors page) ---------- */
.sg-sponsors { margin: 8px 0 64px; font-family: var(--sg-sans); }
.sg-tier { margin-bottom: 48px; }
.sg-tier__name {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0 0 24px; font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--sg-display); color: var(--sg-ink);
}
.sg-tier__name::before, .sg-tier__name::after { content: ""; width: 56px; height: 3px; border-radius: 2px; background: var(--c, var(--sg-mint)); }
.sg-tier--gold { --c: var(--sg-yellow); }
.sg-tier--silver { --c: #b8c4c6; }
.sg-tier--bronze { --c: var(--sg-orange); }
.sg-tier__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.sg-logo-card {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 calc((100% - 60px) / 4);
  height: 130px; padding: 22px 26px;
  background: #fff; border: 1px solid var(--sg-line); border-radius: 14px;
}
.sg-logo-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sg-tier--gold .sg-logo-card { flex-basis: calc((100% - 40px) / 3); height: 160px; border-top: 4px solid var(--sg-yellow); }
.sg-tier--silver .sg-logo-card { flex-basis: calc((100% - 40px) / 3); height: 150px; border-top: 4px solid #b8c4c6; }
@media (max-width: 991px) {
  .sg-logo-card, .sg-tier--gold .sg-logo-card, .sg-tier--silver .sg-logo-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 480px) {
  .sg-tier__grid { gap: 12px; }
  .sg-logo-card, .sg-tier--gold .sg-logo-card, .sg-tier--silver .sg-logo-card { flex-basis: calc((100% - 12px) / 2); height: 110px; padding: 16px; }
}

/* ---------- Small-screen safety nets ---------- */
.sg-brand { min-width: 0; flex: 0 1 auto; }
.sg-brand img { flex-shrink: 1; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
.sg-nav .mobile-nav-toggle { flex-shrink: 0; }
@media (max-width: 991px) { .sg-nav .mobile-nav-toggle { padding: 4px; margin: -4px -4px -4px 0; } }

/* package cards (sponsors / packages pages): readable sizes + site palette */
.tier-badge { font-size: 12px; padding: 5px 14px; background: var(--sg-yellow); color: var(--sg-deep); }
.tier-note { font-size: 14px; }
.tier-name { color: var(--sg-ink); }
