:root{
  --deep-green: #1a5e3d;
  --deep-green-700: #14472e;
  --orange: #ff7a00;
  --light-green: #eaf7ef;
  --light-orange: #fff4eb;
  --muted: #6c757d;
  --card-radius: 12px;
  --shadow-1: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-2: 0 6px 18px rgba(0,0,0,0.12);
  --shadow-3: 0 18px 40px rgba(0,0,0,0.14);
  --glass: rgba(255,255,255,0.06);
  --navbar-height: 60px;
}

/* reset/typography */
*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#222;
  margin:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  background:#fff;
}

/* NAV */
#navbar {
  background: var(--deep-green);
  box-shadow: var(--shadow-1);
  transition: box-shadow .25s, background .25s;
  padding: .65rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
#navbar.scrolled {
  box-shadow: var(--shadow-2);
  background: linear-gradient(90deg,var(--deep-green),var(--deep-green-700));
}
.navbar-brand-text {
  font-weight:700;
  letter-spacing:.4px;
  color:#fff;
  font-size:1.05rem;
}
.navbar .small { color:#e7efe8; opacity:.95; }

/* HERO / layout */
.hero-section {
  padding-top: calc(var(--navbar-height) + 20px);
  padding-bottom: 40px;
}
.card { border-radius: var(--card-radius); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-3); }

/* card backgrounds */
.bg-light-green{ background: var(--light-green); }
.bg-light-orange{ background: var(--light-orange); }

/* buttons */
.btn-orange{
  background: var(--orange);
  color:#fff;
  border:none;
  box-shadow: 0 6px 18px rgba(255,122,0,0.14);
}
.btn-deep-green{
  background: var(--deep-green);
  color:#fff;
  border:none;
}

/* package cards */
.pkg-card {
  border:none;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background: linear-gradient(180deg,#ffffff,#fbfbfb);
  border-radius:12px;
}
.pkg-card .svg-placeholder {
  height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f7f9;
  color:#8a99a6;
  border-radius:10px;
}

/* conditions */
.condition-card{
  min-width:98px;
  max-width:120px;
  padding:12px 10px;
  border-radius:10px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:inherit;
  box-shadow: var(--shadow-1);
  text-align:center;
}
.condition-card .condition-icon { font-size:1.6rem; color:var(--deep-green); line-height:1; }
.condition-card.active { background:var(--deep-green); color:#fff; box-shadow:var(--shadow-3); }
.condition-card.active .condition-icon { color:#fff; }

/* carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width:46px;
  height:46px;
  top:50%;
  transform:translateY(-50%);
  border-radius:50%;
  background:#fff;
  box-shadow:var(--shadow-2);
  z-index:60;
  border:1px solid rgba(0,0,0,0.06);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(25%) sepia(60%) saturate(250%) hue-rotate(85deg);
  width:22px; height:22px;
}

/* floating action button */
.fab{
  position: fixed;
  right:20px;
  bottom:20px;
  z-index:120;
  width:64px;
  height:64px;
  border-radius:50%;
  background: linear-gradient(180deg,var(--orange), #e65b00);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  box-shadow:var(--shadow-3);
  border:none;
  cursor:pointer;
}
.fab .bi{ font-size:1.35rem; }

/* smaller utilities */
.small-note{ font-size:.9rem; color:var(--muted); }
.lead{ font-size:1.05rem; color: #263238; }

/* view-all grid */
#all-conditions-grid { border-radius:10px; padding:14px; background:#fff; }

/* form controls */
.form-control:focus, .btn:focus {
  box-shadow: 0 0 0 4px rgba(26,94,61,0.12);
  outline:none;
  border-radius:8px;
}

/* footer */
footer { border-top:1px solid rgba(255,255,255,0.06); }

/* ===============================
   CAROUSEL RESPONSIVE FIX
   =============================== */
#carouselExample,
#heroCarousel,
.fixed-aspect {
  --carousel-aspect: 4 / 1; /* default aspect ratio */
  margin-top: calc(var(--navbar-height) + 10px); /* add space below navbar */
  margin-bottom: 40px; /* comfortable gap before next section */
}

/* Maintain aspect ratio dynamically */
#carouselExample .carousel-inner,
#heroCarousel .carousel-inner,
.fixed-aspect .carousel-inner {
  position: relative;
  width: 100%;
  aspect-ratio: var(--carousel-aspect);
  background: #f8f9fa;
}

/* Each slide fills the area */
#carouselExample .carousel-item,
#heroCarousel .carousel-item,
.fixed-aspect .carousel-item {
  position: absolute;
  inset: 0;
}

/* Images remain fully visible, never cropped */
#carouselExample .carousel-item img,
#heroCarousel .carousel-item img,
.fixed-aspect .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* full image visible */
  object-position: center;
  display: block;
  background: #fff;
}

/* For smaller screens, adjust height ratio slightly */
@media (max-width: 992px) {
  #carouselExample,
  #heroCarousel,
  .fixed-aspect {
    --carousel-aspect: 3 / 1;
    margin-top: calc(var(--navbar-height) + 6px);
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  #carouselExample,
  #heroCarousel,
  .fixed-aspect {
    --carousel-aspect: 2.2 / 1;
    margin-top: calc(var(--navbar-height) + 2px);
    margin-bottom: 12px;
  }
}

/* Make controls sit over image edges */
.carousel-control-prev,
.carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

/* Footer tweaks */
.site-footer { background: var(--deep-green); color: #fff; }
.site-footer h6 { color: #eaf7ef; font-weight:600; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }

/* Social icon hover */
.site-footer .social-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:8px;
  background: rgba(255,255,255,0.04);
  transition: background .15s, transform .12s;
}
.site-footer .social-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* smaller devices: stack columns nicely */
@media (max-width:767px) {
  .site-footer .logo-large { display:block; margin:0 auto 0.5rem auto; }
  .site-footer .row > div { text-align:center; }
  .site-footer .qr-placeholder { margin: 0 auto; }
}

/* accessibility: visible focus ring */
:focus { outline: none; box-shadow: 0 0 0 4px rgba(26,94,61,0.12); border-radius:6px; }
