/* Shared header + footer styles used by require/header.php and require/footer.php */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
header.top.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(26,36,32,0.06); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1rem; }
.logo { height: 58px; width: auto; }
nav.links { display: flex; gap: 1.6rem; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
nav.links a { color: var(--muted); text-decoration: none; position: relative; }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--red); transition: width 0.25s ease; }
nav.links a:hover, nav.links a.on { color: var(--ink); }
nav.links a:hover::after, nav.links a.on::after { width: 100%; }
.top-actions { display: flex; align-items: center; gap: 0.6rem; }
.top-actions .btn { padding: 0.75rem 1.25rem; font-size: 0.92rem; }
.menu-btn { display: none; position: relative; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--green-tint); cursor: pointer; flex-shrink: 0; }
.menu-btn span { position: absolute; left: 13px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--green-deep); transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 29px; }
.menu-btn.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.mnav { display: none; }
@media (max-width: 1180px) {
  nav.links { display: none; }
  .menu-btn { display: block; }
  .mnav { display: block; max-height: 0; overflow: hidden; background: var(--white); border-top: 1px solid transparent; transition: max-height 0.4s ease, border-color 0.3s ease; }
  .mnav.open { max-height: calc(100dvh - 84px); overflow-y: auto; border-top-color: var(--line); box-shadow: 0 18px 30px rgba(26,36,32,0.08); }
  .mnav-in { max-width: 1160px; margin: 0 auto; padding: 0.5rem 1.25rem 1.25rem; display: grid; }
  .mnav a.l { padding: 0.95rem 0.25rem; font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mnav a.l:hover { color: var(--green-deep); }
  .mnav .btn { margin-top: 1rem; width: 100%; }
}
@media (max-width: 640px) {
  .top-actions .btn { display: none; }
  .logo { height: 46px; }
  .top .wrap { height: 72px; }
  .mnav.open { max-height: calc(100dvh - 72px); }
}
.sf { margin-top: 3rem; border-top: 1px solid var(--line); background: #FAFCFB; color: var(--muted); font-size: 0.92rem; }
.sf .sf-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.sf-brand img { height: 50px; width: auto; margin-bottom: 0.6rem; }
.sf-tag { font-weight: 700; color: var(--green-deep); margin-bottom: 0.4rem; }
.sf h4 { font-family: var(--body); font-size: 0.82rem; color: var(--ink); margin: 0 0 0.7rem; font-weight: 800; }
.sf-grid a { display: block; color: var(--muted); text-decoration: none; padding: 0.22rem 0; }
.sf-grid a:hover { color: var(--green-deep); }
.sf .sf-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; }
@media (max-width: 860px) { .sf .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media print { .sf, .top, .wa, .mobile-cta { display: none !important; } }
.wa { position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,0.4); animation: wiggle 6s ease-in-out infinite; }
.wa svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes wiggle { 0%,88%,100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 93% { transform: rotate(12deg); } 96% { transform: rotate(-8deg); } }
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 0.7rem 5.4rem calc(0.7rem + env(safe-area-inset-bottom, 0px)) 1rem; transform: translateY(110%); transition: transform 0.35s ease; }
.mobile-cta.show { transform: translateY(0); }
@media (max-width: 640px) { .mobile-cta { display: block; } }