﻿/* =========================================================================
   Elite Golden Care - site-wide components
   -------------------------------------------------------------------------
   Linked on EVERY page, after the inline <style> blocks. index.html also
   links egc-index-design.css after this file, so page-specific refinements
   still win. Everything here is additive and reversible.
   Contents: 1 skip link - 2 button contrast - 3 icon sprite - 4 call bar
   ========================================================================= */

/* 1. Skip link (WCAG 2.4.1) ---------------------------------------------- */
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:99999;
  background:#122632;color:#fff;padding:12px 18px;
  border-radius:0 0 12px 0;font-size:13px;font-weight:600;
}
.skip-link:focus{left:0;outline:3px solid #d8b45a;outline-offset:0}

/* 2. AA-safe gold buttons (WCAG 2.1 AA) ----------------------------------
   White 13-14px label text on the original gradient (#b47f08 -> #d0a21f)
   measures ~2.2:1 - 4.3:1, below the 4.5:1 minimum. Same brand gold, deep
   enough to pass. Delete this block to restore the lighter gradient. */
.btn{
  background:linear-gradient(135deg,#7d5a0f,#8f6712);
  box-shadow:0 10px 24px rgba(122,88,15,.22);
}
.btn:hover{box-shadow:0 14px 30px rgba(122,88,15,.28)}
.btn.light{color:#7d5a0f;border-color:#d9c58f}
.btn.light:hover{background:#fbf7ed}

/* 3. Inline SVG icon sprite ---------------------------------------------- */
main{display:block}
.ico{
  width:1em;height:1em;display:block;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.icon-circle .ico{width:25px;height:25px}
.svc-icon .ico{width:22px;height:22px}

/* 4. Sticky mobile call bar ----------------------------------------------
   This audience phones; keep one tap always reachable on small screens. */
.egc-callbar{display:none}
@media (max-width:900px){
  .egc-callbar{
    position:fixed;left:0;right:0;bottom:0;z-index:9998;
    display:flex;gap:10px;align-items:center;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(9,24,31,.97);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    border-top:1px solid rgba(216,180,90,.30);
    box-shadow:0 -10px 34px rgba(9,24,31,.30);
  }
  .egc-callbar .btn{
    flex:1 1 0;justify-content:center;min-height:50px;
    font-size:13.5px;border-radius:14px;box-shadow:none;
  }
  .egc-callbar .btn.light{background:#fff;border:0;color:#7d5a0f}
  body{padding-bottom:84px}
}
@media print{
  .egc-callbar,.skip-link{display:none}
}


/* 5. Footer (site-wide uplift, Sep 2026) ----------------------------------
   4-column grid: brand / explore / services / contact, CTA band on top,
   SVG icon badges, auto-year span, back-to-top link. Reversible: delete
   this block and the footers fall back to the inline <style> rules. */
.egc-footer-cta{
  background:
    radial-gradient(circle at 88% 20%,rgba(216,180,90,.18),transparent 34%),
    linear-gradient(120deg,#b47f08,#d0a21f);
  border-radius:20px;
  padding:clamp(26px,3.4vw,38px) clamp(24px,3.4vw,40px);
  display:flex;align-items:center;justify-content:space-between;
  gap:22px;flex-wrap:wrap;
  margin-bottom:clamp(30px,4vw,46px);
  box-shadow:0 18px 44px rgba(122,88,15,.28);
}
.egc-footer-cta h2{color:#fff;margin:0 0 6px;font-size:clamp(22px,2.4vw,30px)}
.egc-footer-cta p{color:rgba(255,255,255,.92);margin:0;font-size:14px}
.egc-footer-cta .cta-actions{display:flex;gap:10px;flex-wrap:wrap}
.egc-footer-cta .btn{
  background:#fff;color:#7d5a0f;border:0;box-shadow:none;min-height:50px;
}
.egc-footer-cta .btn:hover{background:#fdf6e3;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.egc-footer-cta .btn.ghost{
  background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.75);
}
.egc-footer-cta .btn.ghost:hover{background:rgba(255,255,255,.14)}
.footer-grid{
  display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;
  gap:clamp(26px,3.4vw,44px);
  padding-bottom:clamp(26px,3vw,36px);
}
.footer-col h2{
  color:#fff;font-family:"DM Sans",system-ui,sans-serif;
  font-size:11.5px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  margin:0 0 16px;
}
.footer-brand p{font-size:13.5px;line-height:1.7;margin:14px 0 0;max-width:30ch}
.footer-brand .logo{background:transparent;border-radius:0;padding:0;width:170px;filter:none;opacity:1}
.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.footer-col ul a{font-size:13.5px;color:#c6d0d4}
.footer-col ul a:hover{color:#f0d18a}
.footer-contact{list-style:none;margin:0;padding:0;display:grid;gap:12px;font-size:13.5px}
.footer-contact li{display:flex;gap:11px;align-items:flex-start;color:#c6d0d4}
.footer-contact .ico-badge{
  width:34px;height:34px;flex:0 0 34px;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(216,180,90,.14);color:#f0d18a;
  border:1px solid rgba(216,180,90,.30);
}
.footer-contact .ico-badge .ico{width:17px;height:17px}
.footer-contact a{color:#e8edef;font-weight:600}
.footer-contact a:hover{color:#f0d18a}
.footer-contact address{font-style:normal;line-height:1.6}
.footer-contact address a{font-weight:400;color:#c6d0d4}
.footer-area{font-size:12.5px;color:#91a1a8;margin-top:4px}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.egc-to-top{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12px;font-weight:700;letter-spacing:.06em;color:#c6d0d4;
  border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:9px 16px;
}
.egc-to-top:hover{color:#f0d18a;border-color:rgba(216,180,90,.5)}
.egc-to-top .ico{width:14px;height:14px}
@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .egc-footer-cta{flex-direction:column;align-items:flex-start}
}
@media (max-width:560px){
  .footer-grid{grid-template-columns:1fr}
  .egc-footer-cta .cta-actions{width:100%}
  .egc-footer-cta .cta-actions .btn{flex:1 1 0;justify-content:center}
}
@media print{
  .egc-footer-cta{display:none}
}
