/* ============================================================
   CASH DAY USA — COMMON STYLESHEET  (style.css)
   ============================================================ */

/* ── GOOGLE FONT ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --green:         #00B67A;
  --green-d:       #009966;
  --green-light:   #E8FAF3;
  --primary:       #1A6EC7;
  --primary-d:     #1558A8;
  --primary-light: #E8F4FD;
  --bg:            #EDF5FC;
  --bg2:           #D6EBF8;
  --text:          #1C2B3A;
  --muted:         #5A7089;
  --border:        #C8DFF0;
  --white:         #ffffff;
  --gold:          #F4A61B;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); overflow-x: hidden; background: var(--bg); }

/* ══════════════════════════════════════════════════════════
   LOGO  (used in header + footer + mobile)
══════════════════════════════════════════════════════════ */
.site-logo {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}
.site-logo .logo-day  { color: black }
.site-logo .logo-usa  { color: var(--green); }
/* Smaller variant for footer */
.site-logo--sm { font-size: 1.15rem; }

/* ══════════════════════════════════════════════════════════
   STICKY HEADER WRAPPER
══════════════════════════════════════════════════════════ */
.header { position: sticky; top: 0; z-index: 500; }

/* ── TOP BAR ── */
.header__top { background: var(--primary); }
.header__top .container {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 42px; gap: 16px;
}
.topMenu { list-style: none; display: flex; gap: 2px; }
.topMenu li a {
  color: rgba(255,255,255,.82); font-size: .8rem;
  padding: 4px 10px; border-radius: 5px;
  text-decoration: none; transition: all .18s;
}
.topMenu li a:hover          { color: #fff; background: rgba(255,255,255,.12); }
.topMenu li a.active         { color: #fff; background: rgba(255,255,255,.18); font-weight: 600; }

.header__phone a,
.header__support a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.85); font-size: .8rem;
  text-decoration: none; transition: color .18s;
}
.header__phone a:hover,
.header__support a:hover { color: #fff; }
.header__phone .header__icon,
.header__phone .icon,
.header__support .header__icon { display: flex; align-items: center; }

/* SVG icons in top bar — always white on blue bg */
.header__top svg path,
.header__top svg circle { fill: rgba(255,255,255,.85); }

.header__location        { display: flex; align-items: center; gap: 8px; }
.header__location-text   { color: rgba(255,255,255,.75); font-size: .78rem; white-space: nowrap; }
.header__location-form   { display: flex; }
.header__input {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 4px 10px; border-radius: 6px 0 0 6px;
  font-size: .8rem; width: 80px; outline: none; font-family: var(--font);
}
.header__input::placeholder { color: rgba(255,255,255,.5); }
.header__submit {
  background: var(--green); color: #fff; border: none;
  padding: 4px 12px; border-radius: 0 6px 6px 0;
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .18s;
}
.header__submit:hover { background: var(--green-d); }

/* ── BOTTOM BAR ── */
.header__bottom {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 2px 10px rgba(26,110,199,.1);
}
.header__bottom .container {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 20px;
}
.header__logo-wrapper { display: flex; align-items: center; }
.header__apply-btn {
  background: var(--green); color: #fff;
  padding: 9px 20px; border-radius: 9px;
  font-weight: 700; font-size: .87rem;
  text-decoration: none; white-space: nowrap;
  font-family: var(--font); transition: background .18s;
  display: inline-block;
}
.header__apply-btn:hover { background: var(--green-d); }

/* ══════════════════════════════════════════════════════════
   MEGA MENU — DESKTOP
══════════════════════════════════════════════════════════ */
#mega-menu-desktop { position: relative; }
.mega-menu_nav { list-style: none; display: flex; gap: 4px; }
.mega-menu_nav .menu-item { position: relative; }
.menu-pseudo-link,
.mega-menu_nav a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; font-size: .88rem; font-weight: 600;
  color: var(--text); cursor: pointer; border-radius: 8px;
  text-decoration: none; transition: all .18s;
  white-space: nowrap; user-select: none;
}
.menu-pseudo-link:hover,
.mega-menu_nav a:hover,
.mega-menu_nav .menu-item:hover > .menu-pseudo-link {
  background: var(--primary-light); color: var(--primary);
}
.caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-left: 2px; transition: transform .2s;
}
.mega-menu_nav .menu-item:hover .caret { transform: rotate(180deg); }

.mega-menu_dropdowns { position: absolute; top: calc(100% + 2px); left: 0; z-index: 200; }
.mega-menu_dropdown {
  display: none;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 36px rgba(26,110,199,.12);
  padding: 20px; min-width: 480px; gap: 16px;
}
.mega-menu_dropdown ul { list-style: none; min-width: 180px; }
.mega-menu_dropdown--left {
  border-right: 1px solid var(--border);
  padding-right: 16px; margin-right: 16px;
}
.mega-menu_dropdown li { margin-bottom: 2px; }
.mega-menu_dropdown li a,
.mega-menu_dropdown li .menu-pseudo-link {
  font-size: .84rem; padding: 7px 10px; border-radius: 7px;
  color: var(--text); font-weight: 500; display: block;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.mega-menu_dropdown li a:hover,
.mega-menu_dropdown li .menu-pseudo-link:hover {
  background: var(--primary-light); color: var(--primary);
}
.mega-menu_dropdown li.is-special a    { color: var(--primary); font-weight: 700; }
.mega-menu_dropdown .menu-item_subtitle {
  font-size: .74rem; color: var(--muted); padding: 0 10px 6px; line-height: 1.4;
}
.mega-menu_dropdown--right li       { display: none; }
.mega-menu_dropdown--right li.show  { display: block; }

/* ══════════════════════════════════════════════════════════
   MOBILE BURGER
══════════════════════════════════════════════════════════ */
.mobile-burger { display: none; }
.burger__wrapper {
  background: none; border: none; cursor: pointer;
  padding: 4px; display: flex; flex-direction: column; gap: 5px;
}
.burger__line {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ══════════════════════════════════════════════════════════
   MOBILE MENU (FULLSCREEN)
══════════════════════════════════════════════════════════ */
#mega-menu-mobile {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 1000;
  overflow-y: auto; padding: 24px 20px 40px;
}
#mega-menu-mobile.open { display: block; }

.menuMobile__close {
  background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; float: right; padding: 4px 8px; line-height: 1;
}
.menuMobile__line { height: 1px; background: var(--border); margin: 16px 0; }

.menuMobile__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.menuMobile__accordion-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; color: var(--text); font-size: 1rem; font-weight: 600;
  border-bottom: 1px solid var(--border); cursor: pointer; user-select: none;
}
.menuMobile__accordion-title .arr { font-size: .7rem; color: var(--muted); }
.menuMobile__accordion-body {
  display: none; padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--border);
}
.menuMobile__accordion.open .menuMobile__accordion-body { display: block; }
.menuMobile__accordion.open .arr { transform: rotate(90deg); display: inline-block; }
.menuMobile__accordion-body a {
  display: block; padding: 8px 0; color: var(--muted);
  font-size: .9rem; text-decoration: none; transition: color .18s;
}
.menuMobile__accordion-body a:hover { color: var(--primary); }

.menuMobile__nav { margin-top: 8px; }
.menuMobile__nav a {
  display: block; padding: 12px 0; color: var(--text);
  font-size: .97rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color .18s;
}
.menuMobile__nav a:hover,
.menuMobile__nav a.active { color: var(--primary); }

#mega-menu-mobile .btn {
  display: block; background: var(--green); color: #fff;
  text-align: center; padding: 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none; margin-top: 16px; font-size: .95rem;
}

/* ══════════════════════════════════════════════════════════
   FOOTER  — light bg, dark text, good contrast
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--primary-light);
  border-top: 2px solid var(--bg2);
  color: var(--muted);
}
.footer__container { max-width: 1280px; margin: 0 auto; padding: 56px 20px 32px; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.footer__logo-wrapper { margin-bottom: 16px; }

.footer__phone         { margin-bottom: 10px; }
.footer__phone a {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  font-size: .87rem; transition: color .18s;
}
.footer__phone a:hover { color: var(--primary); }
.footer__phone .icon   { display: flex; align-items: center; }
/* Phone icon SVG on light footer */
.footer__phone svg path { fill: var(--muted); }

.footer__address {
  display: flex; align-items: flex-start; gap: 8px;
  margin-bottom: 16px; font-size: .84rem;
  color: var(--muted); line-height: 1.5;
}
/* Map pin SVG on light footer */
.footer__address svg path,
.footer__address svg circle { fill: var(--muted); }

.footer__social { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; }
.footer__social li a {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: .8rem;
  background: var(--white); padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--border); transition: all .18s;
}
.footer__social li a:hover { color: var(--primary); border-color: var(--primary); }
/* Social SVG icons on light footer */
.footer__social svg path,
.footer__social svg circle { fill: var(--muted); }

/* Footer nav columns */
.menuList__title {
  font-size: .8rem; font-weight: 700; color: var(--text);
  margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.sub_list { list-style: none; }
.sub_list li { margin-bottom: 6px; }
.sub_list li a {
  color: var(--muted); text-decoration: none;
  font-size: .84rem; transition: color .18s; display: block;
}
.sub_list li a:hover { color: var(--primary); }

.footer__apps {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap;
}
.footer__apps img        { height: 44px; width: auto; opacity: .75; transition: opacity .18s; }
.footer__apps img:hover  { opacity: 1; }
.footer__apps-right      { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.footer__apps-right img  { height: 44px; width: auto; opacity: .6; transition: opacity .18s; }
.footer__apps-right img:hover { opacity: .9; }

.footer__copyright p {
  font-size: .76rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 8px;
}
.footer__copyright a { color: var(--primary) !important; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   SHARED UTILITIES
══════════════════════════════════════════════════════════ */
.pulse {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: pulse-anim 2s infinite; display: inline-block;
}
@keyframes pulse-anim {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .5; }
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 18px;
}
.breadcrumb a        { color: var(--muted); text-decoration: none; transition: color .18s; }
.breadcrumb a:hover  { color: var(--primary); }
.breadcrumb span     { color: var(--border); }

/* On dark/blue hero the breadcrumb needs light text */
.hero-breadcrumb,
.hero-breadcrumb a    { color: rgba(255,255,255,.55); }
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span { color: rgba(255,255,255,.25); }

.stag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: .74rem; font-weight: 700;
  padding: 4px 13px; border-radius: 100px;
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.stag--green { background: var(--green-light); color: var(--green); }

/* FAQ accordion */
.faq-i {
  border: 1.5px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color .22s; cursor: pointer;
}
.faq-i:hover { border-color: rgba(26,110,199,.35); }
.faq-q {
  padding: 16px 18px; font-weight: 700; font-size: .9rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; color: var(--text); user-select: none; background: var(--white);
}
.faq-ic {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  transition: transform .28s, background .22s; font-weight: 700;
}
.faq-i.open .faq-ic { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 18px; color: var(--muted);
  font-size: .87rem; line-height: 1.72; background: var(--white);
}
.faq-i.open .faq-a  { max-height: 300px; padding: 4px 18px 16px; }
.faq-i.open         { border-color: var(--primary); background: var(--primary-light); }
.faq-i.open .faq-q  { color: var(--primary); }

/* Scroll fade-in */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fi.vis { opacity: 1;text-align:center; transform: none; }
.fi1.vis { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header__top .topMenu    { display: none; }
  .header__top .container  { height: auto; min-height: 0; padding: 8px 20px; }
  #mega-menu-desktop        { display: none; }
  .mobile-burger            { display: block; }
  .footer__top              { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .header__location,
  .header__support,
  .header__phone  { display: none; }
  .header__top    { display: none; }
  .footer__top    { grid-template-columns: 1fr; }
}
