/* ══════════════════════════════════════════════════
   FEMA Pro Services LLC — Shared Styles (all pages)
   ══════════════════════════════════════════════════ */

/* ─── VARIABLES (LIGHT THEME / BASE) ─── */
:root {
  --black:      #F4F6FA; /* Body background */
  --graphite:   #FFFFFF; /* Card/section background */
  --cement:     #525A66; /* Subtext color */
  --blue:       #0A3D8F;
  --blue-mid:   #1E5FC2;
  --blue-vivid: #1A66FF; /* Clear vivid blue on light */
  --white:      #12151E; /* Primary text color */
  --off-white:  #2B313F; /* Secondary text color */
  --muted:      #78808C; /* Muted details */

  /* Semantic UI variables */
  --nav-bg:            rgba(244, 246, 250, 0.85);
  --nav-scrolled-bg:   rgba(255, 255, 255, 0.98);
  --mob-nav-bg:        rgba(255, 255, 255, 0.98);
  --cookie-bg:         rgba(255, 255, 255, 0.98);
  --border-color:      rgba(10, 61, 143, 0.08);
  --card-hover-bg:     #ECEFF4;
  --why-hover-bg:      #ECEFF4;
  --footer-bg:         #E5E9F0;
  
  /* Hero section backgrounds */
  --hero-bg-1:         #EAECEF;
  --hero-bg-2:         #DFE4ED;
  --hero-bg-3:         #D2D9E6;

  /* Form inputs */
  --input-bg:          #FFFFFF;
  --input-border:      rgba(10, 61, 143, 0.15);

  --shadow-color:      rgba(10, 61, 143, 0.08);
  --glow-color:        rgba(10, 61, 143, 0.15);
  --nav-hover:         var(--blue-vivid);
  --btn-outline-color: var(--blue);
  --btn-outline-border: rgba(10, 61, 143, 0.25);
}

/* ─── VARIABLES (DARK THEME OVERRIDES) ─── */
:root[data-theme="dark"] {
  --black:      #090B12; /* original body background */
  --graphite:   #131620; /* original card background */
  --cement:     #9BA1AA; /* original subtext */
  --blue:       #0A3D8F;
  --blue-mid:   #1E5FC2;
  --blue-vivid: #2979FF;
  --white:      #FFFFFF; /* original primary text */
  --off-white:  #E8EBF0; /* original secondary text */
  --muted:      #757B84; /* original muted */

  /* Semantic UI variables */
  --nav-bg:            rgba(9, 11, 18, 0.25);
  --nav-scrolled-bg:   rgba(9, 11, 18, 0.97);
  --mob-nav-bg:        rgba(11, 11, 11, 0.98);
  --cookie-bg:         rgba(15, 15, 15, 0.97);
  --border-color:      rgba(10, 61, 143, 0.12);
  --card-hover-bg:     #101010;
  --why-hover-bg:      #1e1e1e;
  --footer-bg:         #060810;

  /* Hero section backgrounds */
  --hero-bg-1:         #07090F;
  --hero-bg-2:         #0D1726;
  --hero-bg-3:         #091530;

  /* Form inputs */
  --input-bg:          #090B12;
  --input-border:      rgba(255, 255, 255, 0.07);

  --shadow-color:      rgba(0, 0, 0, 0.55);
  --glow-color:        rgba(32, 96, 216, 0.55);
  --nav-hover:         #ffffff;
  --btn-outline-color: #ffffff;
  --btn-outline-border: rgba(255, 255, 255, 0.25);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Premium theme transition */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
img { max-width: 100%; display: block; }
.nav-logo img, .footer-logo img {
  filter: drop-shadow(0 0 12px var(--glow-color));
  transition: filter 0.3s ease;
}
a { text-decoration: none; color: inherit; }

/* ─── THEME TOGGLE (shared) ─── */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(10, 61, 143, 0.15);
  color: var(--cement);
  width: 32px;
  height: 32px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all .25s;
}
[data-theme="dark"] .theme-toggle {
  border-color: rgba(255,255,255,.2);
}
.theme-toggle:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ─── LANGUAGE TOGGLE (shared) ─── */
.lang-toggle { display: flex; gap: 6px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--cement);
  padding: 5px 13px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  transition: all .25s;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ─── FLOATING CTA (index + gallery) ─── */
.float-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab-btn {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.fab-btn:hover { transform: scale(1.12); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
.fab-call { background: var(--blue); }
.fab-wa   { background: #25D366; }
.fab-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(11,11,11,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.fab-btn:hover .fab-tooltip { opacity: 1; }

/* ─── SCROLL REVEAL ─── */
.rv   { opacity: 0; transform: translateY(28px);   transition: opacity .7s ease, transform .7s ease; }
.rv-l { opacity: 0; transform: translateX(-28px);  transition: opacity .7s ease, transform .7s ease; }
.rv-r { opacity: 0; transform: translateX(28px);   transition: opacity .7s ease, transform .7s ease; }
.rv.in, .rv-l.in, .rv-r.in { opacity: 1; transform: translate(0); }

/* ─── ANIMATIONS ─── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(10px); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .25; }
}

/* ─── RESPONSIVE (shared) ─── */
@media (max-width: 768px) {
  .float-cta { bottom: 18px; right: 16px; }
}
