/* ============================================================
   SAVIFY — Global Header & Footer Styles
   Upload this file to your root via File Manager
   Then link it in every page's <head>:
   <link rel="stylesheet" href="/savify-header-footer.css">
   ============================================================ */

/* ===== CSS VARIABLES (required by header/footer) ===== */
:root {
  --white: #FAFAF7;
  --white-soft: #F2F2EC;
  --sky: #DCE8FF;
  --blue: #2D5BFF;
  --blue-deep: #1A3FCC;
  --blue-dark: #0E2680;
  --ink: #0A1124;
  --ink-soft: #4A5570;
  --mint: #6EC1A4;
  --amber: #F5B544;
  --rose: #E89B9B;
  --line: rgba(10, 17, 36, 0.1);
  --shadow: 0 30px 80px -20px rgba(45, 91, 255, 0.22);
  --shadow-sm: 0 8px 24px -8px rgba(10, 17, 36, 0.12);
}

/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ===== BASE RESET (only what's needed) ===== */
* { box-sizing: border-box; }
body {
  font-family: 'DM Sans', sans-serif;
  margin: 0;
}

/* ===== TOP BAR ===== */
.sav-topbar {
  background: var(--ink);
  color: var(--white);
  padding: 10px 0;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.04em;
}
.sav-topbar a {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}
.sav-topbar a:hover { text-decoration: underline; }

/* ===== NAVIGATION ===== */
#savify-header nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 16px 60px;
}
.sav-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.sav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--blue);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.sav-logo-mark::after {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 8px;
}
.sav-logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.sav-logo-text em {
  color: var(--blue);
  font-style: normal;
}
.sav-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sav-nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.sav-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.3s;
}
.sav-nav-links a:hover { color: var(--blue); }
.sav-nav-links a:hover::after { width: 100%; }
.sav-nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 100px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.sav-nav-cta:hover {
  background: var(--blue) !important;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
#savify-footer {
  background: var(--ink);
  color: var(--white);
  padding: 80px 60px 30px;
  margin-top: 100px;
}
.sav-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.sav-footer-brand .sav-logo {
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
}
.sav-footer-brand p {
  opacity: 0.7;
  font-size: 14px;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.6;
}
.sav-social-row { display: flex; gap: 10px; }
.sav-social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(250, 250, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 14px;
}
.sav-social-row a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}
.sav-footer-col h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--sky);
  font-weight: 600;
  margin-top: 0;
}
.sav-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sav-footer-col ul li { margin-bottom: 10px; }
.sav-footer-col ul a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.75;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.sav-footer-col ul a:hover {
  opacity: 1;
  color: var(--blue);
  padding-left: 4px;
}
.sav-footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(250, 250, 247, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  #savify-header nav {
    padding: 16px 24px;
  }
  .sav-nav-links { display: none; }
  #savify-footer {
    padding: 60px 24px 24px;
  }
  .sav-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  .sav-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .sav-footer-inner {
    grid-template-columns: 1fr;
  }
}