/* shared/shared.css
   BraveLife — shared header, footer, mobile nav, and base styles.
   Include on every page before page-specific CSS. */

/* ========== FONTS ========== */
@font-face { font-family: 'Gilroy'; src: local('Gilroy-Bold'); font-weight: 700; }
@font-face { font-family: 'Gilroy'; src: local('Gilroy-SemiBold'); font-weight: 600; }
@font-face { font-family: 'Gilroy'; src: local('Gilroy-Medium'); font-weight: 500; }
@font-face { font-family: 'Gilroy'; src: local('Gilroy-Regular'); font-weight: 400; }
@font-face { font-family: 'Gilroy'; src: local('Gilroy-Light'); font-weight: 300; }

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.04);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 4px 20px rgba(0,0,0,0.4);
  overflow: visible;
  z-index: 50;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: -40px;
  right: -40px;
  height: 12px;
  background: radial-gradient(ellipse at center,
    rgba(255,92,0,0.5) 0%, rgba(255,92,0,0) 70%),
    radial-gradient(ellipse at center,
    rgba(140,40,220,0.5) 0%, rgba(140,40,220,0) 70%);
  background-size: 50% 100%, 50% 100%;
  background-position: 0% 0, 50% 0;
  background-repeat: no-repeat;
  animation: navGlow 11.2s linear infinite;
  filter: blur(14px);
  pointer-events: none;
}

@keyframes navGlow {
  0%   { background-position: -20% 0, 30% 0; }
  50%  { background-position: 70% 0, 120% 0; }
  100% { background-position: -20% 0, 30% 0; }
}


.header-inner {
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex: 1;
}

.header-nav a {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  transition: color 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a.active { color: #fff; }

/* ========== CTA BUTTON ========== */
.header-cta {
  position: relative;
  width: 191px;
  height: 44px;
  flex-shrink: 0;
}

.btn-conic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Gilroy', 'Inter', sans-serif;
  color: #fff;
  background: conic-gradient(from 0deg, #7B2FBE 5%, #C73EA9 17%, #FF2D72 28%, #FF5C00 40%, #FF8A3D 51%, #FFB347 63%, #FFD60A 74%, #FF8A3D 85%, #FF5C00 95%, #7B2FBE 100%);
  border: none;
  padding: 1px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  z-index: 1;
}

.btn-conic span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0 24px;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.btn-conic:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(255,92,0,0.3);
}

/* ========== HAMBURGER (Mobile) ========== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 60;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== MOBILE NAV ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
  text-decoration: none;
}

.mobile-nav a:hover { color: #FF5C00; }

/* Mobile Give Now button with orbiting glow */
@property --mob-give-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.mobile-give-wrap {
  display: grid;
  place-items: center;
  margin-top: 16px;
}
.mobile-give-glow {
  grid-area: 1 / 1;
  width: 200px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(from var(--mob-give-angle), #FF5C00, #FFB347, #C73EA9, #7B2FBE, #FF5C00);
  animation: mobGiveOrbit 11.2s linear infinite;
  filter: blur(14px);
  opacity: 0.8;
  pointer-events: none;
}
.mobile-give-btn {
  grid-area: 1 / 1;
  width: 180px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(10,10,10,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gilroy', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  z-index: 1;
  cursor: pointer;
}
@keyframes mobGiveOrbit {
  0%   { --mob-give-angle: 0deg; }
  100% { --mob-give-angle: 360deg; }
}

/* ========== FOOTER ========== */
.footer {
  width: 100%;
  padding: 60px 24px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer .container {
  max-width: 1264px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  max-width: 1264px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand p {
  font-size: 16px;
  color: #8a7a6a;
  line-height: 25px;
  margin: 16px 0 24px;
  max-width: 406px;
}

.footer-socials {
  display: flex;
  gap: 24px;
}

.footer-socials a {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

.footer-socials a:hover { color: #fff; }
.footer-socials a svg { width: 27px; height: 27px; }

.footer-col { display: flex; flex-direction: column; }
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #8a7a6a;
  margin-bottom: 8px;
  transition: color 0.3s;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
  line-height: 20px;
  color: #8a7a6a;
  max-width: 1264px;
  margin: 0 auto;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
  color: #8a7a6a;
  font-size: 14px;
  transition: color 0.3s;
  text-decoration: none;
}
.footer-bottom-links a:hover { color: #fff; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header { height: 56px; }
  .header-inner { padding: 0 16px; }
  .header-logo img { height: 28px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
  .mobile-nav { top: 56px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
