/* =============================== */
/* GLOBAL THEME VARIABLES          */
/* =============================== */

:root[data-theme="dark"] {
  --bg: #050607;
  --text: #e8faff;
  --card-bg: rgba(0,0,0,0.45);
  --border-neon: rgba(0,255,255,0.25);
  --neon-glow: rgba(0,255,255,0.45);
  --switch-bg: rgba(0,0,0,0.55);
  --switch-toggle: #e8faff;
  --switch-toggle-shadow: rgba(0,255,255,0.45);

  /* DARK HERO — SHOOTING STARS */
  --hero-bg: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee');
}

:root[data-theme="light"] {
  --bg: #f7faff;
  --text: #000000;
  --card-bg: rgba(255,255,255,0.85);
  --border-neon: rgba(0,150,255,0.35);
  --neon-glow: rgba(0,150,255,0.45);
  --switch-bg: rgba(255,255,255,0.95);
  --switch-toggle: #000000;
  --switch-toggle-shadow: rgba(0,150,255,0.45);

  /* LITE HERO — BAD WEATHER */
  --hero-bg: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d');
}

/* =============================== */
/* BODY                            */
/* =============================== */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}

/* =============================== */
/* HERO HEADER                     */
/* =============================== */

.freeney-hero {
  width: 100%;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.freeney-hero h1 {
  font-size: 3rem;
  color: #e8faff;
  text-shadow: 0 0 22px var(--neon-glow);
  z-index: 2;
}

.freeney-hero p {
  font-size: 1.2rem;
  opacity: 0.85;
  color: #e8faff;
  margin-top: 10px;
  z-index: 2;
}

/* SHARDS */
.shard {
  position: absolute;
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--neon-glow), rgba(0,0,0,0));
  filter: blur(22px);
  opacity: 0.55;
  transform: rotate(35deg);
  animation: shardFloat 6s infinite ease-in-out;
}

@keyframes shardFloat {
  0% { transform: translateY(0) rotate(35deg); }
  50% { transform: translateY(-20px) rotate(35deg); }
  100% { transform: translateY(0) rotate(35deg); }
}

/* =============================== */
/* GRID                            */
/* =============================== */

.mb-grid {
  max-width: 1400px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 26px;
}

/* =============================== */
/* CARDS                           */
/* =============================== */

.mb-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-neon);
  border-radius: 18px;
  padding: 28px;
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 22px var(--border-neon),
    inset 0 0 18px rgba(0,0,0,0.45);
  transition: 0.3s ease;
  cursor: pointer;
}

.mb-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 32px var(--neon-glow),
    inset 0 0 22px rgba(0,0,0,0.55);
}

.mb-card strong {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 10px;
  color: #7dfcff;
  text-shadow: 0 0 12px var(--neon-glow);
}

.mb-card span {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.45rem;
}

/* =============================== */
/* MODALS                          */
/* =============================== */

.mb-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.mb-modal-content {
  width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border-neon);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 0 32px var(--neon-glow);
}

.mb-modal-content h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: #7dfcff;
  text-shadow: 0 0 12px var(--neon-glow);
}

.mb-modal-content label {
  display: block;
  margin: 10px 0 6px;
  opacity: 0.85;
}

.mb-modal-content input,
.mb-modal-content select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-neon);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  margin-bottom: 14px;
}

.mb-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00eaff, #0077ff);
  border: none;
  color: #001015;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 18px var(--neon-glow);
}

.mb-close {
  margin-top: 14px;
  text-align: center;
  cursor: pointer;
  opacity: 0.75;
}

/* =============================== */
/* SPECIAL CARD COLORS             */
/* =============================== */

/* RED — I Have a Claim */
.claim-card {
  background: rgba(255, 0, 0, 0.25);        /* red */
  border-color: rgba(255, 0, 0, 0.45);
}
.claim-card:hover {
  box-shadow: 0 0 32px rgba(255, 0, 0, 0.55);
  transform: translateY(-2px);
}

/* GREEN — Get a Quote */
.quote-card { 
  background: rgba(0, 255, 0, 0.25);        /* green */
  border-color: rgba(0, 255, 0, 0.45);
}
.quote-card:hover {
  box-shadow: 0 0 32px rgba(0, 255, 0, 0.55);
  transform: translateY(-2px);
}

/* YELLOW — Give a Quote */
.give-quote-card { 
  background: rgba(255, 255, 0, 0.25);      /* yellow */
  border-color: rgba(255, 255, 0, 0.45);
}
.give-quote-card:hover {
  box-shadow: 0 0 32px rgba(255, 255, 0, 0.55);
  transform: translateY(-2px);
}




/* =============================== */
/* WALL SWITCH                     */
/* =============================== */

.switch-wrapper {
  margin: 60px auto 40px;
  text-align: center;
}

.wall-switch {
  width: 90px;
  height: 150px;
  background: var(--switch-bg);
  border-radius: 16px;
  margin: auto;
  position: relative;
  box-shadow:
    inset 0 0 18px var(--border-neon),
    0 0 22px var(--neon-glow);
  border: 1px solid var(--border-neon);
  cursor: pointer;
  transition: 0.3s ease;
}

.wall-switch:hover {
  box-shadow:
    inset 0 0 22px var(--neon-glow),
    0 0 32px var(--neon-glow);
}

.switch-toggle {
  width: 50px;
  height: 60px;
  background: var(--switch-toggle);
  border-radius: 10px;
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.45),
    0 0 18px var(--switch-toggle-shadow);
  transition: 0.3s ease;
}

.wall-switch.dark .switch-toggle {
  top: 72px;
}

.switch-label {
  margin-top: 14px;
  font-size: 1rem;
  opacity: 0.85;
  color: #7dfcff;
  text-shadow: 0 0 12px var(--neon-glow);
}

/* =============================== */
/* BOTTOM NAV                      */
/* =============================== */

.fi-bottom-nav {
  width: 100%;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid var(--border-neon);
  box-shadow: 0 -0 22px var(--neon-glow);
  padding: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.fi-nav-item {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4rem;
  padding: 10px 16px;
  border-radius: 12px;
  transition: 0.3s ease;
  display: inline-block;
}

.fi-nav-item span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* GREEN HOVER */
.fi-nav-item:hover {
  background: rgba(0,255,0,0.25);
  box-shadow: 0 0 22px rgba(0,255,0,0.55);
  transform: translateY(-4px);
}

/* =============================== */
/* FOOTER                          */
/* =============================== */

.fi-footer {
  width: 100%;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid var(--border-neon);
  box-shadow: 0 -0 22px var(--neon-glow);
  padding: 18px 0;
  position: relative; /* IMPORTANT: allows page scroll */
  margin-top: 60px;   /* pushes footer below content */
  text-align: center;
  backdrop-filter: blur(12px);
}

.fi-footer-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.fi-footer-inner span {
  color: var(--text);
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.3s ease;
}

/* GREEN HOVER */
.fi-footer-inner span:hover {
  background: rgba(0,255,0,0.25);
  box-shadow: 0 0 22px rgba(0,255,0,0.55);
  transform: translateY(-3px);
}

.coverage-card {
    border-left: 4px solid #00ff9d;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coverage-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0,255,157,0.4);
    cursor: pointer;
}

