/*
 * Location  : assets/css/sections.css
 * File      : sections.css
 * Function  : Section-specific styles that COMPLEMENT Bootstrap 5 grid.
 *             Bootstrap handles row/col layout; this file handles
 *             visual design: zones, photos, parallax, components.
 *             No grid overrides – pure appearance.
 * Version   : 2.2.0
 * Generated : 2026-03-17
 * Changelog :
 *   2.0.0 (2026-03-17) – Alternating zones, parallax dividers
 *   2.1.0 (2026-03-17) – Logo wrapper styles
 *   2.2.0 (2026-03-17) – Bootstrap grid integration, service-row full-bleed,
 *                         Bootstrap conflict prevention, DEV meta overlay support
 */

/* ── Bootstrap conflict prevention ────────────────────────────────────────────
   Bootstrap resets some things we override. These declarations restore
   our design system where Bootstrap would override it.
   ─────────────────────────────────────────────────────────────────────────── */
.zone-dark  *, .zone-light *, .zone-light-alt * { box-sizing: border-box; }

/* Bootstrap containers inside our zones inherit zone text colour */
.zone-dark  .container-xl,
.zone-dark  .container-xxl { color: inherit; }
.zone-light .container-xl,
.zone-light .container-xxl { color: var(--zone-light-text); }
.zone-light-alt .container-xl { color: var(--zone-light-text); }

/* h* inside zones */
.zone-light h1,.zone-light h2,.zone-light h3,.zone-light h4,
.zone-light-alt h1,.zone-light-alt h2,.zone-light-alt h3,.zone-light-alt h4 {
  color: var(--zone-light-text);
}

/* Bootstrap p margin-bottom reset for our .intro */
.intro { margin-bottom: 0; }

/* pt/pb section helpers */
.pt-section { padding-top: var(--sp-3xl); }
.pb-section { padding-bottom: var(--sp-3xl); }

/* ══════════════════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__photo-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center 25%;
  filter: brightness(.75) saturate(.9);
  transform: scale(1.03);
  transition: transform 8s ease-out;
  will-change: transform;
}
.hero.loaded .hero__photo-bg { transform: scale(1); }

.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,.05) 0%,
    rgba(8,12,20,.15) 30%,
    rgba(8,12,20,.75) 68%,
    rgba(8,12,20,1.0) 100%
  );
}

/* Bootstrap container sits above overlays */
.hero .container-xxl { position: relative; z-index: 2; }

.hero__content { padding: var(--sp-3xl) 0 var(--sp-2xl); }

.hero__logo { max-width: min(460px,80vw); margin-bottom: var(--sp-lg); }
.hero__logo .logo-wrapper { width: 100%; }

.hero h1 {
  font-size: clamp(2.5rem,5.5vw,5.5rem);
  color: #fff; line-height: 1.0;
  text-shadow: 0 2px 32px rgba(0,0,0,.5);
}
.hero h1 .accent { color: var(--clr-accent); }

.hero__sub {
  font-size: var(--fs-lg); color: rgba(255,255,255,.75);
  max-width: 520px; line-height: 1.65; margin-bottom: var(--sp-lg);
}

.hero__usps {
  list-style: none; padding: 0; margin-bottom: var(--sp-xl) !important;
  font-size: var(--fs-sm); color: rgba(255,255,255,.7);
}
.hero__usps li i { color: var(--clr-accent); font-size: .75rem; }

.hero__actions { margin-bottom: .5rem; }
.hero__microtext { font-size: var(--fs-xs); color: rgba(255,255,255,.45); letter-spacing: .04em; }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.5); font-size: var(--fs-xs);
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite;
}
.hero__scroll i { font-size: 1.4rem; color: var(--clr-accent); }
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

@media (max-width:768px) {
  .hero { align-items: center; }
  .hero__photo-bg { background-position: 60% center; }
  .hero__content { padding: var(--sp-xl) 0 var(--sp-lg); }
}

/* ══════════════════════════════════════════════════════════
   2. EVENTS – Bootstrap cards
══════════════════════════════════════════════════════════ */
.event-card {
  padding: var(--sp-lg) var(--sp-md) !important;
  border-top: 3px solid var(--clr-accent) !important;
  transition: transform var(--base), box-shadow var(--base);
}
.event-card:nth-child(2) { border-top-color: var(--clr-violet) !important; }
.event-card:nth-child(4) { border-top-color: var(--clr-skin) !important; }
.event-card:hover { transform: translateY(-5px); }

.event-card__icon {
  font-size: 2.5rem; color: var(--clr-accent);
  display: block; margin-bottom: var(--sp-sm);
}
/* Nth child icon colours */
.col-sm-6:nth-child(2) .event-card__icon { color: var(--clr-violet); }
.col-sm-6:nth-child(4) .event-card__icon { color: var(--clr-skin); }

/* ══════════════════════════════════════════════════════════
   3. SERVICES – full-bleed rows (outside Bootstrap container)
══════════════════════════════════════════════════════════ */
.service-row { width: 100%; overflow: hidden; }
.service-row + .service-row { border-top: 1px solid rgba(255,255,255,.06); }

/* Text half */
.service-row__text {
  padding: var(--sp-3xl) var(--sp-xl);
  display: flex; flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

/* Photo half – full-bleed B&W */
.service-row__photo {
  min-height: 420px;
  overflow: hidden;
}
.service-row__photo picture,
.service-row__photo img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  filter: grayscale(1) brightness(.6) contrast(1.1);
  transition: filter var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
  transform: scale(1.04);
}
.service-row:hover .service-row__photo img {
  filter: grayscale(.08) brightness(.82);
  transform: scale(1.0);
}

.service-item__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background: rgba(61,127,255,.1);
  border: 1px solid rgba(61,127,255,.25);
  border-radius: var(--r-md);
  font-size: 1.6rem; color: var(--clr-accent);
}
.service-row h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-xs); }
.service-row .sub {
  font-family: var(--font-display); font-size: var(--fs-lg);
  color: var(--clr-accent); letter-spacing: .04em;
}
.service-row p { color: var(--zone-dark-muted); line-height: 1.85; }

@media (max-width:991px) {
  .service-row__text { padding: var(--sp-xl) var(--sp-md); min-height: auto; }
  .service-row__photo { min-height: 260px; }
}

/* ══════════════════════════════════════════════════════════
   4. ABOUT
══════════════════════════════════════════════════════════ */
.about__photo { border-radius: var(--r-md); overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo--tall { min-height: 380px; }
@media (max-width:575px) { .about__photo--tall { min-height: 200px; } }

.stat-card { border-radius: var(--r-md); border: 1px solid; padding: var(--sp-md); text-align: center; }
.zone-light .stat-card { border-color: var(--zone-light-border); background: #fff; box-shadow: var(--sh-card); }
.stat-card__number {
  font-family: var(--font-display); font-size: var(--fs-3xl);
  color: var(--clr-accent); line-height: 1; margin-bottom: .25rem; display: block;
}
.stat-card:nth-child(2) .stat-card__number { color: var(--clr-violet); }
.stat-card:nth-child(3) .stat-card__number { color: var(--clr-skin); }
.stat-card__label {
  font-size: var(--fs-xs); letter-spacing: .1em;
  text-transform: uppercase; opacity: .65;
}

/* ══════════════════════════════════════════════════════════
   5. REFERENCES
══════════════════════════════════════════════════════════ */
.testimonial {
  padding: var(--sp-lg); border-radius: var(--r-md); position: relative;
  background: var(--zone-dark-card); border: 1px solid var(--zone-dark-border);
  display: flex; flex-direction: column;
  transition: border-color var(--base);
}
.testimonial:hover { border-color: rgba(61,127,255,.35); }
.testimonial::before {
  content: '\201C'; position: absolute; top: .75rem; right: 1.25rem;
  font-family: var(--font-display); font-size: 5rem;
  color: rgba(61,127,255,.12); line-height: 1;
}
.testimonial__stars { display: flex; gap: 3px; }
.testimonial__stars i { color: var(--clr-accent); font-size: .75rem; }
.testimonial__text {
  font-size: var(--fs-sm); color: var(--zone-dark-muted);
  line-height: 1.85; font-style: italic; flex: 1;
  border: none; padding: 0; margin: var(--sp-sm) 0 var(--sp-md);
}
.testimonial__author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(61,127,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-accent); font-size: 1.25rem; flex-shrink: 0;
}
.testimonial__name { font-size: var(--fs-sm); font-weight: 600; color: #fff; }
.testimonial__role { font-size: var(--fs-xs); color: var(--zone-dark-sub); }

/* ══════════════════════════════════════════════════════════
   6. MEDIA – masonry with Bootstrap rows
══════════════════════════════════════════════════════════ */
.media-masonry .media-item {
  border-radius: var(--r-md); overflow: hidden; margin: 0;
}
.media-masonry .media-item picture,
.media-masonry .media-item img {
  width: 100%;
}
/* Tall items: force taller aspect ratio */
.media-item--tall { aspect-ratio: 3/4 !important; }
.media-item--wide img { min-height: 240px; }

/* Override .photo-cell for consistent height in masonry */
.media-masonry .photo-cell {
  aspect-ratio: 4/3;
  display: block;
}
.media-masonry .photo-cell.media-item--tall { aspect-ratio: 3/4; }
.media-masonry .photo-cell.media-item--wide { aspect-ratio: 16/7; }

/* Video embed */
.video-embed { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--zone-light-border); }
.video-embed__meta { background: var(--zone-light-card); }
.zone-light-alt .video-embed__meta h4 { color: var(--zone-light-text); }
.zone-light-alt .video-embed__meta p  { color: var(--zone-light-muted); }

/* ══════════════════════════════════════════════════════════
   7. PROCESS – Bootstrap col layout
══════════════════════════════════════════════════════════ */
.process-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: linear-gradient(to bottom, var(--clr-accent), rgba(61,127,255,.05));
}
.process-step { display: flex; gap: var(--sp-md); padding-bottom: var(--sp-lg); position: relative; }
.process-step:last-child { padding-bottom: 0; }
.process-step__num {
  flex-shrink: 0; width: 56px; height: 56px;
  border: 2px solid var(--clr-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: var(--fs-xl);
  color: var(--clr-accent); background: var(--zone-light);
  position: relative; z-index: 1;
  transition: background var(--base), color var(--base);
}
.process-step:hover .process-step__num { background: var(--clr-accent); color: #fff; }
.process-step__body { padding-top: .75rem; }
.process-step__body h3 { font-size: var(--fs-lg); margin-bottom: .4rem; }
.process-step__body p  { font-size: var(--fs-sm); color: var(--zone-light-muted); line-height: 1.85; margin: 0; }

/* ══════════════════════════════════════════════════════════
   8. CONTACT
══════════════════════════════════════════════════════════ */
.contact-info__line {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: var(--fs-sm); color: var(--zone-dark-muted);
}
.contact-info__line i { color: var(--clr-accent); width: 16px; text-align: center; flex-shrink: 0; margin-top: 2px; }
.contact-info__line a { color: var(--zone-dark-muted); text-decoration: none; transition: color var(--fast); }
.contact-info__line a:hover { color: var(--clr-accent); }
.contact__form { background: var(--zone-dark-card); border: 1px solid var(--zone-dark-border); border-radius: var(--r-lg); padding: var(--sp-xl); }

/* ══════════════════════════════════════════════════════════
   9. FOOTER
══════════════════════════════════════════════════════════ */
.site-footer { background: #000; border-top: 1px solid rgba(30,42,66,.7); padding-top: var(--sp-3xl); }

.footer__logo .logo-wrapper { width: 200px; max-width: 100%; }

.footer__col-title {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--clr-accent); margin-bottom: var(--sp-md);
}
.footer__link {
  color: var(--zone-dark-muted); text-decoration: none;
  font-size: var(--fs-sm); transition: color var(--fast);
}
.footer__link:hover { color: var(--clr-accent); }

.footer__address {
  font-style: normal; font-size: var(--fs-sm);
  color: var(--zone-dark-muted); line-height: 1.9;
}
.footer__address strong { color: #fff; }
.footer__address a { color: var(--zone-dark-muted); text-decoration: none; transition: color var(--fast); }
.footer__address a:hover { color: var(--clr-accent); }

.footer__social { display: flex; gap: var(--sp-sm); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--zone-dark-2); border: 1px solid var(--zone-dark-border);
  border-radius: var(--r-sm); color: var(--zone-dark-muted); font-size: 1rem;
  text-decoration: none; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.footer__social a:hover { background: rgba(61,127,255,.12); color: var(--clr-accent); border-color: rgba(61,127,255,.3); }

.footer__bottom {
  border-top: 1px solid rgba(30,42,66,.5); padding: var(--sp-md) 0;
}
.footer__copy { font-size: var(--fs-xs); color: var(--zone-dark-sub); }
.footer__legal a { font-size: var(--fs-xs); color: var(--zone-dark-sub); text-decoration: none; transition: color var(--fast); }
.footer__legal a:hover { color: var(--clr-accent); }

/* ══════════════════════════════════════════════════════════
   LOGO WRAPPER (in sections)
══════════════════════════════════════════════════════════ */
.logo-wrapper { display: block; line-height: 0; }
.logo-wrapper svg { width: 100%; height: auto; display: block; }

.logo-dark .madison-letter path,
.logo-transparent .madison-letter path { fill: #ffffff; }
.logo-light .madison-letter path { fill: var(--zone-light-text); }
.logo-accent .madison-letter path { fill: var(--clr-accent); }
.logo-wrapper .madison-discoball ellipse { fill: hsl(0,0%,8%); }

.logo-wrapper:not(.logo-anim-off) .madison-letter { transition: opacity var(--base) var(--ease); }
.logo-wrapper:not(.logo-anim-off):hover .madison-letter { opacity: .88; }

@media (prefers-reduced-motion:reduce) {
  .logo-wrapper .madison-discoball ellipse,
  .logo-wrapper .madison-letter path { transition: none !important; animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   SECTION HEADER utility
══════════════════════════════════════════════════════════ */
.section__header { margin-bottom: var(--sp-xl); }
