:root{
  --bg0:#070a10;
  --bg1:#0c111a;

  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);

  --soft: rgba(255,255,255,.72);
  --soft2: rgba(255,255,255,.60);

  /* Keep these for internal spacing only */
  --pad: 2rem;        /* panel padding */
  --gap: 1.25rem;     /* spacing between image and text */

  /* Fixed header: use this so py-* on page content gives equal top/bottom rhythm */
  --header-height: 5rem;
}

html{
  overflow-x: hidden;
}
body{
  padding-top: var(--header-height);
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 70% 0%, rgba(201,166,255,.14), transparent 60%),
    radial-gradient(1100px 800px at 10% 50%, rgba(125,211,252,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-repeat: no-repeat;
  background-attachment: fixed;
  color:#fff;
}

.text-soft{ color: var(--soft); }
.text-soft2{ color: var(--soft2); }

.panel{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 1.25rem;
  padding: var(--pad);
}
.panel-strong{
  background: var(--panel2);
  border: 1px solid var(--stroke);
  border-radius: 1.25rem;
  padding: var(--pad);
}

/* HERO */
.hero-wrap{ padding: 0; } /* use Bootstrap py-* for vertical rhythm */
.hero-banner{
  border-radius: 1.25rem;
  overflow:hidden;
  position: relative;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-banner::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(7,10,16,.10), rgba(7,10,16,.88));
}
.hero-content{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  z-index: 2;
  padding: var(--pad);
}

/* SECTIONS */
.section{ padding: 0; } /* use Bootstrap py-* for vertical rhythm */
.section-title{ font-weight: 700; letter-spacing: .2px; }
.section-sub{ max-width: 70ch; }

/* PRODUCT LIST */
.product-row{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 1rem 0;
}
.product-row:first-child{ border-top: none; padding-top: 0; }
.product-row:last-child{ padding-bottom: 0; }

.product-img{
  width: 84px;
  height: 84px;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  object-fit: cover;
  display:block;
}

.tag{
  display:inline-block;
  font-size: .75rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.80);
  margin-right: .35rem;
  margin-top: .35rem;
}

/* Fixed navbar: keep collapsed height equal to --header-height so no sliver scrolls on mobile */
.navbar.fixed-top{
  min-height: var(--header-height);
  box-sizing: border-box;
  /* Vertical padding so single-row height ≈ header-height; no horizontal padding so .container aligns with page */
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  padding-left: 0;
  padding-right: 0;
}
/* Keep container full width so toggler stays right-aligned; min-width: 0 allows shrink only when needed */
.navbar.fixed-top .container{
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Brand link: one transition on the link so logo + text animate in perfect sync */
.navbar a[href="/"] {
  transition: color 0.2s ease;
}
.navbar a[href="/"] .navbar-brand,
.navbar a[href="/"] svg {
  color: inherit;
}

.footer-logos{
  flex-shrink: 0;
}
.footer-logo-img{
  height: 34px;
  width: auto;
  max-width: 100px;  /* keeps both logos similar visual size regardless of source dimensions */
  object-fit: contain;
  display: block;
  opacity: 0.8;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}
/* AAD logo has more text, so scale down slightly to match ASLMS visual weight */
.footer-logo-img--aad{
  height: 28px;
  max-width: 82px;
}
.footer-logo-img:hover{
  opacity: 1;
}

/* CONDITION CARD */
.condition-card{
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}
.condition-card:hover{
  color: inherit;
  text-decoration: none;
}

.condition-card .panel{
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  background-color: #070a10 !important; /* Dark background to mask white image edges */
  background-size: 110% 110%; /* Make background larger to ensure it covers corners */
  background-position: center;
  background-repeat: no-repeat;
  border: none !important; /* Remove border for condition cards */
  border-radius: 1.25rem; /* Explicitly set border-radius */
  /* Ensure background is clipped to border-radius */
  background-clip: border-box;
}

.condition-card .panel::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7,10,16,.3) 50%, rgba(7,10,16,.85) 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
  border-radius: 1.25rem; /* Match parent border-radius */
  pointer-events: none; /* Allow clicks to pass through */
}


.condition-card:hover .panel::before{
  opacity: 0.7; /* Darker overlay on hover */
}

.condition-card .panel > *{
  position: relative;
  z-index: 2;
}

/* HYBRID JUMBOTRON - Minimal CSS for background image overlay only */
.bg-img-overlay{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-img-overlay::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,10,16,.10), rgba(7,10,16,.88));
  z-index: 1;
}
.bg-img-overlay > *{
  position: relative;
  z-index: 2;
}

/* CONTACT PAGE MAP - only apply min-height when it's the actual map (not about-page photo wrapper) */
.contact-map-wrap:has(.contact-map) {
  min-height: 320px;
}
.contact-map {
  width: 100%;
  height: 320px;
  min-height: 320px;
  border-radius: inherit;
  background: var(--bg1);
}
@media (min-width: 992px) {
  .contact-map-wrap { min-height: 100%; }
  .contact-map { height: 100%; min-height: 380px; }
}
.contact-map-wrap .leaflet-popup-content-wrapper {
  background: var(--panel2);
  color: var(--soft);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
}
.contact-map-wrap .leaflet-popup-tip { background: var(--panel2); }
.contact-map-wrap .leaflet-control-zoom a {
  background: var(--panel2) !important;
  color: var(--soft) !important;
  border-color: var(--stroke) !important;
}
.contact-map-wrap .leaflet-control-zoom a:hover {
  background: var(--panel) !important;
  color: #fff !important;
}

/* Contact: address wraps with consistent indent (align under itself on mobile) */
.contact-address-line {
  margin-left: 1.75rem; /* align with text after icon (icon + me-2) */
}
