/* ============================================================
   JELEOSINMI — LAYOUT COMPONENTS
   /assets/css/layout.css
   ============================================================
   NOTE: Topbar and Navbar (including the mobile drawer) are now
   fully self-contained inside topbar.php / navbar.php — their own
   <style> blocks own that styling end-to-end. The old duplicate
   rules that used to live here have been removed; keeping both
   in play was causing silent property-level conflicts (fixed
   positioning, sticky offsets, and the drawer's display/transform
   fighting each other).
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   ANNOUNCEMENT BANNER
══════════════════════════════════════════════════════════════ */
.ann-banner {
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  position: relative;
}

.ann-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.ann-banner a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.ann-banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  transition: opacity 0.2s;
}

.ann-banner-close:hover { opacity: 1; }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: 60px 0 0;
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: contain;
  background: var(--cream);
  padding: 2px;
  margin-bottom: var(--sp-4);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.footer-brand-tagline {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-4);
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 280px;
  margin-bottom: var(--sp-5);
}

.footer-socials {
  display: flex;
  gap: var(--sp-2);
}

.footer-social {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: var(--ease);
}

.footer-social:hover {
  background: var(--red);
  color: var(--white);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--sp-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-link {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-link:hover { color: var(--yellow); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--yellow); }
.footer-contact-item svg   { flex-shrink: 0; margin-top: 1px; opacity: 0.6; }

/* Footer bottom bar */
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-copy a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--yellow); }

.footer-made {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* Newsletter strip in footer */
.footer-newsletter {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap; /* FIX: safety net so text+form never force overflow */
}

.footer-newsletter-text {}
.footer-newsletter-text h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: var(--sp-1);
}

.footer-newsletter-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
  flex-wrap: wrap; /* FIX: lets input+button stack instead of overflowing */
}

.footer-newsletter-input {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 10px 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  outline: none;
  transition: var(--ease);
  width: 220px;
  min-width: 0; /* FIX: the actual overflow bug — lets flex:1 (set below
                   at ≤960px) actually shrink the input past its browser-
                   enforced intrinsic minimum instead of forcing the row
                   (and the whole page) wider than the viewport. */
}

.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter-input:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.1);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — FOOTER
══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-newsletter { flex-direction: column; gap: var(--sp-4); }
  .footer-newsletter-form { width: 100%; }
  .footer-newsletter-input { flex: 1; }
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { padding: 0 16px; }
}

@media (max-width: 600px) {
  .footer-newsletter-form { flex-direction: column; align-items: stretch; }
  .footer-newsletter-input { width: 100%; }
}