/* ============================================================================================
   header-footer3.css: the ONE stylesheet for includes/header3.php and includes/footer3.php.
   MOBILE FIRST: the plain rules are the phone layout; min-width queries add the larger layouts.
   Self-contained: needs nothing from new-styles.css, style.css, style-new.css or site-base.css.
   Every rule is scoped under .ecp-header / .ecp-footer, so older stylesheets that still define
   .site-header, .site-nav or .footer-grid cannot change it, whatever order the files load in.
   Class names that the site script relies on are kept: #site-nav, .site-nav, .menu-toggle, .open.
   Palette: navy + brand blue (solid blue = active menu tab) + one amber accent (plus white). No images, no icon font, no JS.
   ============================================================================================ */

.ecp-header,.ecp-footer{
  --ecp-active:#2563eb;--ecp-navy:#0c2344;--ecp-navy2:#0a1d3a;--ecp-blue:#2f6df0;--ecp-sky:#7db4ff;--ecp-amber:#ffc83d;
  --ecp-ink:#f4f8ff;--ecp-text:#c9d6ea;--ecp-mut:#9db4d1;--ecp-line:rgba(255,255,255,.12);
  font-family:'Inter',system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.5;-webkit-text-size-adjust:100%}
.ecp-header *,.ecp-header *::before,.ecp-header *::after,
.ecp-footer *,.ecp-footer *::before,.ecp-footer *::after{box-sizing:border-box;margin:0;padding:0}
.ecp-header .wrap,.ecp-footer .wrap{max-width:1160px;margin:0 auto;padding:0 16px}
.ecp-header a:focus-visible,.ecp-header button:focus-visible,
.ecp-footer a:focus-visible{outline:3px solid var(--ecp-sky);outline-offset:2px;border-radius:8px}

/* ---------- logo: icon on the LEFT, website name with the tagline underneath on the RIGHT ---------- */
.ecp-header .ecp-brand,.ecp-footer .ecp-brand{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;text-decoration:none;flex-shrink:0}
.ecp-header .ecp-brand:hover,.ecp-footer .ecp-brand:hover{text-decoration:none}
.ecp-brand .ecp-brand-icon{display:block;flex:none;width:38px;height:38px;border-radius:10px;box-shadow:0 2px 8px rgba(8,20,48,.45)}
.ecp-brand .ecp-brand-text{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;line-height:1}
.ecp-brand .ecp-brand-name{font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1.05;color:var(--ecp-ink);white-space:nowrap}
.ecp-brand .ecp-calc{color:var(--ecp-amber)}
.ecp-brand .ecp-brand-tagline{font-size:10px;font-weight:500;letter-spacing:.02em;line-height:1.1;color:var(--ecp-mut);white-space:nowrap}
.ecp-brand:hover .ecp-brand-icon{transform:translateY(-1px)}
.ecp-brand .ecp-brand-icon{transition:transform .2s}

/* ---------- header (phone: logo + menu button, menu opens as a panel under the bar) ---------- */
.ecp-header{position:sticky;top:0;z-index:200;padding:8px 0;background:linear-gradient(180deg,#0e2a50,#0a2040);box-shadow:0 4px 18px rgba(4,12,28,.35)}
.ecp-header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--ecp-blue),var(--ecp-sky) 55%,var(--ecp-amber))}
.ecp-header .header-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ecp-header .logo{min-width:0;flex-shrink:1}
.ecp-header .menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:none;width:44px;height:44px;border:1px solid var(--ecp-line);border-radius:12px;background:rgba(255,255,255,.05);cursor:pointer;transition:background .2s}
.ecp-header .menu-toggle:hover{background:rgba(255,255,255,.1)}
.ecp-header .menu-toggle span{display:block;width:20px;height:2px;border-radius:2px;background:var(--ecp-text);transition:transform .25s,opacity .25s}
.ecp-header .menu-toggle[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ecp-header .menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
.ecp-header .menu-toggle[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.ecp-header .site-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:2px;max-height:calc(100vh - 64px);overflow-y:auto;padding:10px 12px 16px;background:var(--ecp-navy2);box-shadow:0 12px 28px rgba(4,12,28,.45)}
.ecp-header .site-nav.open{display:flex}
.ecp-header .site-nav a{display:block;padding:13px 14px;border-radius:12px;color:var(--ecp-text);font-size:1rem;font-weight:600;text-decoration:none;transition:background .2s,color .2s}
.ecp-header .site-nav a:hover{color:#fff;background:rgba(255,255,255,.07);text-decoration:none}
.ecp-header .site-nav a.active,.ecp-header .site-nav a.active:hover{color:#fff;background:var(--ecp-active);box-shadow:0 2px 8px rgba(37,99,235,.25)}

/* ---------- footer (phone: one column) ---------- */
.ecp-footer{position:relative;padding:36px 0 20px;background:var(--ecp-navy2);color:var(--ecp-mut)}
.ecp-footer::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--ecp-blue),var(--ecp-sky) 55%,var(--ecp-amber))}
.ecp-footer .footer-grid{display:grid;grid-template-columns:1fr;gap:26px;margin-bottom:26px}
.ecp-footer .footer-about .ecp-brand{margin-bottom:14px}
.ecp-footer .footer-desc{max-width:36em;margin-bottom:16px;color:var(--ecp-mut);font-size:.84rem;line-height:1.7}
.ecp-footer .social-links{display:flex;gap:10px}
.ecp-footer .social-link{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--ecp-line);border-radius:12px;background:rgba(255,255,255,.05);text-decoration:none;transition:background .2s,border-color .2s}
.ecp-footer .social-link:hover{background:var(--ecp-blue);border-color:var(--ecp-blue);text-decoration:none}
.ecp-footer .social-link svg{width:17px;height:17px;fill:#c9d6ea}
.ecp-footer .social-link svg path{fill:#c9d6ea}
.ecp-footer .social-link:hover svg,.ecp-footer .social-link:hover svg path{fill:#fff}
.ecp-footer .footer-col h3{margin-bottom:8px;color:var(--ecp-ink);font-size:.74rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.ecp-footer .footer-col a{display:block;padding:5px 0;color:var(--ecp-mut);font-size:.88rem;text-decoration:none;transition:color .2s}
.ecp-footer .footer-col a:hover{color:#fff;text-decoration:none}
.ecp-footer .footer-bottom{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--ecp-line)}
.ecp-footer .footer-bottom p{color:var(--ecp-mut);font-size:.78rem}
.ecp-footer .footer-links{display:flex;flex-wrap:wrap;gap:2px 16px}
.ecp-footer .footer-links a{padding:5px 0;color:var(--ecp-mut);font-size:.78rem;text-decoration:none}
.ecp-footer .footer-links a:hover{color:#fff;text-decoration:none}

/* ---------- bigger phones ---------- */
@media (min-width:360px){
  .ecp-brand .ecp-brand-name{font-size:20px}
  .ecp-brand .ecp-brand-tagline{font-size:10.5px}
}
@media (min-width:480px){
  .ecp-header .wrap,.ecp-footer .wrap{padding:0 20px}
  .ecp-header .ecp-brand,.ecp-footer .ecp-brand{gap:11px}
  .ecp-brand .ecp-brand-icon{width:42px;height:42px;border-radius:11px}
  .ecp-brand .ecp-brand-name{font-size:23px}
  .ecp-brand .ecp-brand-tagline{font-size:11px}
  .ecp-header .site-nav{padding:10px 20px 18px}
}

/* ---------- tablets: footer in two columns ---------- */
@media (min-width:560px){
  .ecp-footer .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
  .ecp-footer .footer-about{grid-column:1/-1}
  .ecp-footer .footer-bottom{flex-direction:row;align-items:center;justify-content:space-between}
}
@media (min-width:880px){
  .ecp-footer .footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .ecp-footer .footer-about{grid-column:auto}
}

/* ---------- desktop: the menu sits in the bar. Measured with Inter: logo + 7 items need about 1090px.
   "Home" is hidden here (the logo already links home) and stays in the phone menu. ---------- */
@media (min-width:1200px){
  .ecp-header{padding:10px 0}
  .ecp-header .menu-toggle{display:none}
  .ecp-header .site-nav{display:flex;position:static;flex-direction:row;align-items:center;gap:2px;max-height:none;overflow:visible;padding:0;background:none;box-shadow:none}
  .ecp-header .site-nav .nav-home{display:none}
  .ecp-header .site-nav a{padding:8px 10px;border-radius:9px;font-size:.86rem;font-weight:500;white-space:nowrap}
  .ecp-header .site-nav a.active{border-radius:8px;font-weight:600}
}

@media (prefers-reduced-motion:reduce){.ecp-header *,.ecp-footer *{transition:none!important}}
@media print{.ecp-header{position:static;box-shadow:none}.ecp-header::after,.ecp-footer::before{display:none}.ecp-header .site-nav,.ecp-header .menu-toggle,.ecp-footer .social-links{display:none}}
