/* =========================================================
   JMV & EFTERÅRSHIKE – FOOTER
========================================================= */

:root{
  --fdf-primary:#5F8CB4;--fdf-secondary:#003255;--fdf-orange:#FF733C;--fdf-white:#fff;
  --footer-bg:#fff;--footer-text:#003255;--footer-soft:#5F7286;
  --footer-link:#5F8CB4;--footer-border:#d8e3ec;
}
body.dark-mode{
  --footer-bg:#08141F;--footer-text:#EAF4FF;--footer-soft:#A7C1D8;
  --footer-link:#9CC9EA;--footer-border:#284153;
}

/* FOOTER */
.footer{
  width:100%;margin-top:70px;background:var(--footer-bg);color:var(--footer-text);
  border-top:1px solid var(--footer-border);transition:.3s ease;
}
.footer-grid{
  max-width:1400px;margin:auto;padding:45px 25px;
  display:grid;grid-template-columns:1.1fr 3fr 1fr;gap:45px;
}
.footer h2,.footer h3,.footer h4{color:var(--footer-text);line-height:1.2}
.footer h2{margin:0 0 14px;font-size:clamp(22px,2vw,30px)}
.footer h3{margin:0 0 18px;font-size:18px}
.footer h4{margin:0 0 8px;font-size:15px}
.footer p{margin:7px 0;color:var(--footer-soft);font-size:15px;line-height:1.6; }
.footer a{font-size:clamp(13px,1vw,15px);color:var(--footer-link);text-decoration:none;transition:.2s ease}
.footer-brand p{max-width:380px}

/* NAVIGATION */
.footer-links{min-width:0}
.footer-nav{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:50px;
}
.footer-nav-group{display:flex;flex-direction:column;gap:5px}
.footer-nav-group a:hover,.footer-nav-group a.active{
  color:var(--fdf-orange);transform:translateX(4px);
}
.footer-nav-group i{margin-right:6px}
.footer-contact i{width:18px;margin-right:5px;color:var(--footer-link)}

/* DARK MODE BUTTON */
.theme-button{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-top:15px;
  padding:9px 14px;border:1px solid var(--footer-border);border-radius:8px;
  background:var(--fdf-secondary);color:var(--fdf-orange);
  font:600 15px/1 inherit;white-space:nowrap;cursor:pointer;transition:.25s ease;
}
.theme-button i,.theme-button #themeText{color:var(--fdf-orange);transition:.25s ease}
.theme-button i{font-size:16px}
.theme-button:hover{
  background:var(--fdf-orange);border-color:var(--fdf-orange);color:var(--fdf-white);
  transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.15);
}
.theme-button:hover i,.theme-button:hover #themeText{color:var(--fdf-white)}
.theme-button:hover i{transform:rotate(-15deg)}
.theme-button:active{transform:translateY(0);box-shadow:0 2px 6px rgba(0,0,0,.12)}
.theme-button:focus-visible{outline:3px solid rgba(255,115,60,.35);outline-offset:2px}
body.dark-mode .theme-button{background:var(--fdf-primary);border-color:var(--fdf-primary);color:var(--fdf-white)}
body.dark-mode .theme-button i,body.dark-mode .theme-button #themeText{color:var(--fdf-white)}
body.dark-mode .theme-button:hover{background:var(--fdf-orange);border-color:var(--fdf-orange)}

/* FOOTER BOTTOM */
.footer-bottom{border-top:1px solid var(--footer-border);padding:16px 20px;text-align:center}
.footer-bottom p{margin:0; font-size:13px; text-align: center;}

/* LOADER */
#footer{opacity:0;transition:opacity .3s ease}
#footer.footer-loaded{opacity:1}

/* TABLET */
@media(max-width:1100px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:35px}
  .footer-brand{grid-column:1/-1}
  .footer-brand p{margin:auto}
  .footer-nav{grid-template-columns:repeat(3,1fr)}
}

/* MOBILE */
@media(max-width:700px){
  .footer-grid{
    grid-template-columns:1fr;padding:35px 20px;gap:30px;text-align:center;
  }
  .footer-brand{grid-column:auto}
  .footer-brand p{margin:auto}
  .footer-nav{grid-template-columns:1fr 1fr;gap:25px 15px}
  .footer-nav-group a:hover{transform:none}
}

/* 320PX */
@media(max-width:400px){
  .footer-grid{padding:28px 12px}
  .footer h2{font-size:21px}.footer h3{font-size:16px}.footer h4{font-size:14px}
  .footer p,.footer a{font-size:13px}
  .footer-nav{grid-template-columns:1fr;gap:22px}
  .theme-button{gap:7px;padding:8px 11px;font-size:13px}
  .theme-button #themeText{font-size:13px}.theme-button i{font-size:14px}
  .footer-bottom{padding:14px 10px}.footer-bottom p{font-size:12px}
}

/* REDUCED MOTION */
@media(prefers-reduced-motion:reduce){
  .footer,.footer a,.theme-button,.theme-button i,#footer{transition:none}
}