/* ==========================================================================
   ANNADA — Site chrome (header + footer)
   Namespaced with `an-` so nothing here collides with Bootstrap / theme.css.
   Loaded last in resources/views/app.blade.php.
   ========================================================================== */

.an-header, .an-header *, .an-header *::before, .an-header *::after,
.an-mobile-header, .an-mobile-header *,
.an-drawer, .an-drawer *,
.an-drawer-overlay,
.an-footer, .an-footer *,
.an-to-top, .an-to-top * {
  box-sizing: border-box;
}

.an-header,
.an-mobile-header,
.an-drawer,
.an-footer {
  --an-orange: #F66123;
  --an-dark: #000000;
  --an-heading: 'Poppins', 'Montserrat', sans-serif;
}

/* ── DESKTOP HEADER ─────────────────────────────────────────────────────── */
.an-header {
  background-color: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.an-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 18px;
}

.an-logo { display: block; flex-shrink: 0; }
.an-logo img { height: 58px; width: auto; display: block; }

.an-nav { display: flex; align-items: center; }

.an-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.an-menu__item { position: relative; }

.an-menu__item > a {
  text-decoration: none;
  color: #000000;
  font-family: var(--an-heading);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  padding: 34px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color .2s ease;
}

.an-menu__item > a:hover,
.an-menu__item.is-active > a { color: var(--an-orange); }

.an-caret { width: 9px; height: 9px; fill: currentColor; opacity: .55; flex-shrink: 0; }

.an-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  border-radius: 8px;
  border-top: 3px solid var(--an-orange);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.an-dropdown li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.an-dropdown li a:hover {
  background-color: #fcfcfc;
  color: var(--an-orange);
  padding-left: 24px;
}

.an-menu__item.has-dropdown:hover > .an-dropdown,
.an-menu__item.has-dropdown:focus-within > .an-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Keep the last dropdowns inside the viewport */
.an-menu__item:nth-last-child(-n+2) .an-dropdown { left: auto; right: 0; }

.an-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.an-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--an-heading);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--an-orange);
  transition: all .25s ease;
}

.an-btn--ghost { background-color: transparent; color: #000000; }
.an-btn--ghost:hover { background-color: var(--an-orange); color: #ffffff; }

.an-btn--solid { background-color: var(--an-orange); color: #ffffff; }
.an-btn--solid:hover { background-color: #d64d12; border-color: #d64d12; color: #ffffff; }

.an-header .an-search-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #000000;
  border-radius: 50%;
  text-decoration: none;
  transition: color .2s ease;
}
.an-header .an-search-link:hover { color: var(--an-orange); }

/* ── MOBILE HEADER ──────────────────────────────────────────────────────── */
.an-mobile-header {
  display: none;
  background-color: var(--an-dark);
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: sticky;
  top: 0;
  z-index: 1031;
}

.an-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.an-hamburger span { display: block; width: 24px; height: 2px; background-color: #ffffff; }

.an-mobile-header .an-logo img { height: 46px; }

.an-mobile-header .an-search-link {
  color: #ffffff;
  padding: 10px;
  display: inline-flex;
  text-decoration: none;
}
.an-mobile-header .an-search-link:hover { color: var(--an-orange); }

/* ── MOBILE DRAWER ──────────────────────────────────────────────────────── */
.an-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.an-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.an-drawer {
  position: fixed;
  top: 0;
  left: -340px;
  bottom: 0;
  width: 86%;
  max-width: 330px;
  background-color: var(--an-dark);
  z-index: 1041;
  box-shadow: 10px 0 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  transition: left .3s cubic-bezier(.4, 0, .2, 1);
}
.an-drawer.is-open { left: 0; }

.an-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  flex-shrink: 0;
}
.an-drawer__header img { height: 44px; width: auto; display: block; }

.an-drawer__close {
  background-color: var(--an-orange);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.an-drawer__body { flex: 1; overflow-y: auto; padding: 18px; }

.an-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-drawer__list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--an-heading);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .03);
  transition: all .2s ease;
}
.an-drawer__list > li > a:hover,
.an-drawer__list > li.is-active > a { color: var(--an-orange); }

.an-drawer__toggle {
  background: none;
  border: none;
  padding: 8px;
  margin: -8px -8px -8px 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
}

.an-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform .25s ease;
}
.an-drawer__list > li.is-expanded .an-chevron { transform: rotate(90deg); }

.an-drawer__sub {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 16px;
  display: none;
}
.an-drawer__list > li.is-expanded .an-drawer__sub { display: block; }

.an-drawer__sub li a {
  display: block;
  padding: 9px 12px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.an-drawer__sub li a:hover { color: var(--an-orange); border-left-color: var(--an-orange); }

.an-drawer__actions {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background-color: rgba(255, 255, 255, .02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.an-drawer__actions .an-btn { width: 100%; padding: 13px 20px; }
.an-drawer__actions .an-btn--ghost { color: #ffffff; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.an-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 72px 0 28px;
  font-family: 'Nunito Sans', Arial, sans-serif;
}

.an-footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.an-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 48px;
}

.an-footer__col { flex: 1; min-width: 280px; display: flex; flex-direction: column; }
.an-footer__col--links { flex: .6; min-width: 180px; }

.an-footer__logo { height: 50px; width: auto; margin-bottom: 22px; display: block; }

.an-footer__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #dddddd;
  margin: 0 0 18px;
}

.an-footer ul { list-style: none; padding: 0; margin: 0; }

.an-footer__reg li {
  font-size: 12px;
  color: #cccccc;
  margin-bottom: 8px;
  line-height: 1.45;
}

.an-footer__title {
  font-family: var(--an-heading);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 22px;
}

.an-footer__links li { margin-bottom: 13px; }
.an-footer__links li a {
  text-decoration: none;
  color: #dddddd;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .2s ease;
}
.an-footer__links li a:hover { color: var(--an-orange); }

.an-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #dddddd;
  margin-bottom: 15px;
}
.an-footer__contact li strong { color: #ffffff; }
.an-footer__contact li a { color: #dddddd; text-decoration: none; transition: color .2s ease; }
.an-footer__contact li a:hover { color: var(--an-orange); }

.an-footer__icon {
  width: 14px;
  height: 14px;
  fill: var(--an-orange);
  flex-shrink: 0;
  margin-top: 4px;
}

.an-footer__marker { color: var(--an-orange); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

.an-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.an-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 13px;
  transition: all .3s ease;
}
.an-social a:hover {
  background-color: var(--an-orange);
  border-color: var(--an-orange);
  color: #ffffff;
  transform: translateY(-3px);
}

.an-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.an-footer__policy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.an-footer__policy a {
  color: var(--an-orange);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.an-footer__policy a:hover { text-decoration: underline; }
.an-footer__policy .sep { color: rgba(255, 255, 255, .2); }

.an-footer__copy { font-size: 13px; color: #ffffff; margin: 0; }

/* ── SCROLL TO TOP ──────────────────────────────────────────────────────── */
.an-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #F66123;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(246, 97, 35, .35);
  z-index: 1020;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
}
.an-to-top.is-visible { opacity: 1; pointer-events: auto; }
.an-to-top:hover { background-color: #d64d12; color: #ffffff; transform: translateY(-3px); }

/* ── BREAKPOINTS ────────────────────────────────────────────────────────── */
@media (max-width: 1350px) {
  .an-menu { gap: 12px; }
  .an-menu__item > a { font-size: 12.5px; }
  .an-btn { padding: 10px 16px; font-size: 12.5px; }
  .an-logo img { height: 50px; }
}

@media (max-width: 1199px) {
  .an-header { display: none; }
  .an-mobile-header { display: flex; }
}

@media (max-width: 991px) {
  .an-footer { padding: 56px 0 24px; }
  .an-footer__grid { flex-direction: column; gap: 36px; }
  .an-footer__col { width: 100%; min-width: 0; }
  .an-footer__bottom { flex-direction: column; text-align: center; align-items: center; }
  .an-footer__policy { justify-content: center; }
}

@media (max-width: 480px) {
  .an-mobile-header .an-logo img { height: 40px; }
  .an-to-top { bottom: 16px; right: 16px; }
}

/* ==========================================================================
   Primary action colour — ANNADA orange (#F66123)
   Declared here, after the $settings->color_default block that app.blade.php
   prints inline, so the brand orange wins whatever colour is stored in
   Panel Admin. Mirrors that block's selectors so specificity matches.
   ========================================================================== */
.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: #F66123;
  border-color: #F66123;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #DD4F14;
  border-color: #DD4F14;
  color: #fff;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 .2rem rgba(246, 97, 35, .35);
}

.btn-outline-primary {
  color: #F66123;
  border-color: #F66123;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  background-color: #F66123;
  border-color: #F66123;
  color: #fff;
}

/* Progress bars / accents that follow the same brand colour. */
.bg-primary {
  background-color: #F66123 !important;
}

/* ==========================================================================
   Page banners (.jumbotron.bg-sections)
   styles.css already builds the banner as an image with a ::before scrim.
   This only swaps in the ANNADA photo, deepens the scrim and forces white
   text. Pages that set their own background-image inline (the donate page
   uses the campaign photo) keep theirs — inline styles win — and still get
   the darker overlay.
   ========================================================================== */
.jumbotron.bg-sections,
.jumbotron-bottom {
  background-image: url('https://annada.bestodesign.com/wp-content/uploads/2025/09/nourish-flourish-bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #232a29;
}

.bg-sections::before,
.bg-cover:before {
  background: rgba(0, 0, 0, .6);
}

.bg-sections > div,
.bg-sections h1,
.bg-sections h2,
.bg-sections .title-site,
.bg-sections .subtitle-site,
.bg-sections p {
  color: #ffffff;
}
