/* Site footer: deep navy, a brand block and four link columns, a contact row,
   then the legal row. Appears on every page, so base.html loads this file
   after site.css and theme.css. Selectors carry .site-footer so they win over
   the older footer rules in site.css whatever the load order. */

.site-footer { position: relative; background: var(--hero-grad); color: #c3d6ea; font-size: .95rem; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.site-footer a { color: #d5e1f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline: 3px solid #8fd3ad; outline-offset: 3px; border-radius: 6px; }

.site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-block: clamp(56px, 7vw, 88px) clamp(32px, 4vw, 48px); }

/* Brand block */
.site-footer .footer-brand img { width: auto; height: 48px; margin-bottom: 20px; }
.site-footer .footer-brand .motto { margin-bottom: 8px; color: #fff; font-size: 1.05rem; font-weight: 700; }
.site-footer .footer-brand p { max-width: 34ch; margin-bottom: 0; }
.site-footer .footer-est { margin: -6px 0 14px; color: #c7d4e8; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.site-footer .footer-contact-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.site-footer .footer-contact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; font-size: .92rem; line-height: 1.5; }
.site-footer .footer-contact-list .icon { box-sizing: content-box; width: 15px; height: 15px; margin-top: 2px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #c7d4e8; }
.site-footer .footer-contact-list a { color: inherit; }
.site-footer .footer-contact-list a:hover { color: #fff; }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.site-footer .social a { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(255, 255, 255, .04); color: #c3d6ea; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.site-footer .social a:hover, .site-footer .social a:focus-visible { border-color: transparent; background: var(--grad); color: #fff; text-decoration: none; transform: translateY(-2px); }
.site-footer .social .icon { width: 18px; height: 18px; }

/* Link columns */
.site-footer .footer-col h2 { margin-bottom: 18px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer .footer-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-col a { display: inline-block; padding-block: 5px; line-height: 1.4; }

/* Contact row */
.site-footer .footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin: 0; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.site-footer .footer-contact span, .site-footer .footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
.site-footer .footer-contact .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--green-400); }

/* Legal row */
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.site-footer .footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.site-footer .footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer .footer-bottom li a, .site-footer .footer-bottom .link-button { display: inline-block; padding-block: 4px; }
.site-footer .footer-bottom .link-button { color: #d5e1f0; text-decoration: none; }
.site-footer .footer-bottom .link-button:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-status { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--pill); background: rgba(255, 255, 255, .04); font-weight: 600; }
.site-footer .footer-status:hover { border-color: rgba(255, 255, 255, .3); text-decoration: none; }
.site-footer .footer-status .dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.site-footer .footer-shipped { color: #a9bad1; font-size: .82rem; }
.site-footer .footer-shipped code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: #d5e1f0; font-size: .78rem; }

@media (max-width: 1040px) {
  .site-footer .footer-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand p { max-width: 52ch; }
}
@media (max-width: 720px) {
  .site-footer .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .site-footer .footer-contact { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer .social a { transition: none; }
  .site-footer .social a:hover, .site-footer .social a:focus-visible { transform: none; }
}
@media (forced-colors: active) { .site-footer::before { display: none; } }
.site-footer .footer-label { margin-right: 4px; color: #fff; font-weight: 700; }

/* ---- Newsletter sign-up (growth app) ----
   The form (.nl-form) is shared by the footer and the Insights pages, so its own
   rules are not tied to .site-footer; the rules after them fit it to the navy footer. */
.nl-fields { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.nl-field { min-width: 0; }
.nl-submit { min-height: 50px; }
.nl-consent { margin-top: 16px; }
.nl-consent.has-error .check { color: var(--red-700); }
.nl-note { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.nl-elsewhere { margin: 0; }
@media (max-width: 640px) {
  .nl-fields { grid-template-columns: 1fr; }
  .nl-submit { width: 100%; }
}

/* A standalone navy banner band, just above the footer: copy left, form inset right. */
.newsletter-banner { padding-block: 56px 28px; }
.newsletter-banner .nl-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 24px; background: linear-gradient(130deg, #0b3b73 0%, #0a2f5e 46%, #071d38 100%); color: #fff; box-shadow: 0 26px 64px -34px rgba(7, 29, 56, .7); }
.newsletter-banner .nl-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(19, 184, 98, .18); color: #7fe0ae; font-size: .8rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
.newsletter-banner .nl-eyebrow .icon { width: 16px; height: 16px; }
.newsletter-banner h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; text-transform: none; }
.newsletter-banner h2 .nl-accent { color: #45c97e; }
.newsletter-banner .nl-copy > p { margin: 0 0 14px; max-width: 42ch; color: #cfe0f2; line-height: 1.6; }
.newsletter-banner .nl-copy::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #13b862, #1677cc); }
.newsletter-banner .nl-form { padding: clamp(18px, 2.4vw, 24px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: rgba(255, 255, 255, .055); }
.newsletter-banner .nl-fields { gap: 14px; align-items: end; }
.newsletter-banner .nl-field label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #cfe0f2; font-size: .85rem; font-weight: 600; }
.newsletter-banner .nl-field label::before { content: ""; flex: none; width: 16px; height: 16px; background: center / contain no-repeat; }
.newsletter-banner .nl-field:nth-of-type(1) label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb6ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.newsletter-banner .nl-field:nth-of-type(2) label::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fb6ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 20c1.5-4 5-5 8-5s6.5 1 8 5'/%3E%3C/svg%3E"); }
.newsletter-banner .nl-field .optional { color: #93a9c6; font-weight: 400; }
.newsletter-banner .nl-form input[type="email"], .newsletter-banner .nl-form input[type="text"] { min-height: 48px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.newsletter-banner .nl-form input[type="email"]:focus, .newsletter-banner .nl-form input[type="text"]:focus { border-color: #45c97e; box-shadow: 0 0 0 3px rgba(69, 201, 126, .25); outline: none; }
.newsletter-banner .nl-submit { min-height: 48px; gap: 8px; border: 0; background: linear-gradient(135deg, #16c46a, #0f9e52); color: #fff; box-shadow: 0 12px 24px -12px rgba(15, 158, 82, .8); transition: transform .2s var(--ease), box-shadow .2s; }
.newsletter-banner .nl-submit:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(15, 158, 82, .9); }
.newsletter-banner .nl-submit::before { content: ""; width: 17px; height: 17px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4z'/%3E%3C/svg%3E"); }
.newsletter-banner .nl-consent { margin-top: 14px; }
.newsletter-banner .nl-consent .check { color: #cfe0f2; font-size: .86rem; }
.newsletter-banner .nl-consent a, .newsletter-banner .nl-note a { color: #7fe0ae; text-decoration: underline; }
.newsletter-banner .nl-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: #9fb6d4; font-size: .85rem; }
.newsletter-banner .nl-note::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe0ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8-7 9-3.5-1-7-4-7-9V6z'/%3E%3C/svg%3E"); }
.newsletter-banner .nl-form .errorlist, .newsletter-banner .nl-consent.has-error .check { color: #ffb4ab; }
@media (max-width: 960px) { .newsletter-banner .nl-card { grid-template-columns: 1fr; padding: 26px 20px; } }
/* ---- end newsletter sign-up ---- */
