/* =====================================================
   GIVINGTECH  –  Shared Stylesheet  (givingtech.css)
   ===================================================== */

/* RESET & VARIABLES */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --mahogany:   #4a0e00;
  --mahogany-2: #2a0800;
  --terracotta: #fc5936;
  --terra-dark: #e04a28;
  --muted:      #a16556;
  --petal:      #ffe9d9;
  --seashell:   #fff8f3;
  --white:      #ffffff;
  --nav-h: 72px;
  --max-w: 1140px;
  --radius: 16px;
  /* Extended palette — used across multiple pages */
  --mahogany-3: #1a0500;
  --green:        #22c55e;
  --green-bg:     rgba(34,197,94,0.1);
  --green-border: rgba(34,197,94,0.2);
  --amber:        #f59e0b;
  --crm-color:    #4a0e00;
  --email-color:  #fc5936;
  --fund-color:   #7c2d00;
}
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'November', system-ui, sans-serif; color: var(--mahogany); background: var(--seashell); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 0.95rem; border-radius: 100px; padding: 14px 32px; transition: all 0.22s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(252,89,54,0.32); }
.btn-ghost { background: transparent; color: var(--mahogany); border: 2px solid rgba(74,14,0,0.15); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }
.btn-dark { background: var(--mahogany); color: white; }
.btn-dark:hover { background: #5c1a08; transform: translateY(-2px); }
.btn-ghost-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.25); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }
.btn-sm { padding: 10px 24px; font-size: 0.88rem; }
.btn-lg { padding: 18px 44px; font-size: 1.05rem; }

/* SCROLL REVEAL */
.reveal { opacity: 1; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; background: rgba(74,14,0,0.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: box-shadow 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 25px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.active { color: var(--petal); }
.nav-ctas { display: flex; align-items: center; gap: 12px; }
.nav-sign-in { color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 500; padding: 8px 16px; transition: color 0.2s; }
.nav-sign-in:hover { color: white; }

/* MOBILE HAMBURGER */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: none; z-index: 110;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 105;
  background: rgba(42,8,0,0.97); backdrop-filter: blur(10px);
  flex-direction: column; padding: calc(var(--nav-h) + 32px) 32px 40px;
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; }
.nav-mobile-links a {
  display: block; color: rgba(255,255,255,0.75); font-size: 1.15rem; font-weight: 600;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color 0.2s;
}
.nav-mobile-links a:hover, .nav-mobile-links a.active { color: white; }
.nav-mobile-ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.nav-mobile-ctas .btn { width: 100%; justify-content: center; }
.nav-mobile-signin { color: rgba(255,255,255,0.55); font-size: 0.95rem; font-weight: 500; text-align: center; padding: 12px; }

/* PRODUCT BAR */
.product-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--mahogany-2); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.product-bar-links { display: flex; align-items: center; }
.product-bar-links a {
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.5);
  padding: 0 18px; height: 44px; display: flex; align-items: center;
  border-right: 1px solid rgba(255,255,255,0.06); transition: all 0.2s; letter-spacing: 0.01em;
}
.product-bar-links a:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.product-bar-links a.active { color: var(--terracotta); border-bottom: 2px solid var(--terracotta); }

/* ORANGE CTA SECTION */
.cta-section { background: var(--terracotta); padding: 96px 40px; position: relative; overflow: hidden; }
.cta-ell { position: absolute; border-radius: 50%; border-style: solid; border-color: rgba(255,255,255,0.12); pointer-events: none; }
.ce1 { width: 600px; height: 440px; border-width: 1.5px; top: -120px; left: -80px; transform: rotate(15deg); }
.ce2 { width: 380px; height: 280px; border-width: 1px; bottom: -80px; right: -60px; transform: rotate(15deg); }
.cta-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: white; letter-spacing: -0.025em; margin-bottom: 18px; line-height: 1.15; }
.cta-inner p { font-size: 1.02rem; color: rgba(255,255,255,0.75); line-height: 1.72; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { background: var(--mahogany-2); padding: 64px 40px 32px; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 22px; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,233,217,0.4); line-height: 1.75; max-width: 260px; }
.footer-col h4 { color: rgba(255,233,217,0.85); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,233,217,0.45); font-size: 0.85rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--petal); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,233,217,0.25); font-size: 0.8rem; }

/* STICKY CTA */
.sticky-cta {
  position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
  background: var(--mahogany); border-radius: 100px; padding: 14px 20px 14px 28px;
  display: flex; align-items: center; gap: 24px; z-index: 200;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35); transition: bottom 0.4s ease;
  white-space: nowrap;
}
.sticky-cta.visible { bottom: 24px; }
.sticky-cta-left { display: flex; flex-direction: column; gap: 2px; }
.sticky-cta-left strong { color: white; font-size: 0.92rem; display: block; }
.sticky-cta-left span { color: rgba(255,233,217,0.5); font-size: 0.78rem; }
.sticky-cta-buttons, .sticky-cta-btns { display: flex; gap: 8px; }

/* SHARED MOBILE */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  section { padding: 64px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-bar { justify-content: flex-start; }
  .product-bar-links { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; width: 100%; }
  .product-bar-links::-webkit-scrollbar { display: none; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer { padding: 48px 24px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cta-section { padding: 64px 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
  .sticky-cta {
    left: 12px !important; right: 12px !important; transform: none !important;
    border-radius: 20px; padding: 14px 20px; flex-direction: column;
    gap: 12px; white-space: normal; text-align: center; width: calc(100% - 24px);
  }
  .sticky-cta-left { align-items: center; }
  .sticky-cta-buttons, .sticky-cta-btns { justify-content: center; }
}
