/* AreaWise R3 Phase 1B — 3-row footer + header social + mobile drawer + landing header.
   Page-shared styles. Saved Drawer + Account Avatar live in header-shared.css. */

/* ---- Footer: exactly three rows ---- */
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-inner img { height: 27px; width: auto; opacity: 0.95; }

/* Row 1 — navigation + social */
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; align-items: center; }
.footer-links a { font-size: 0.875rem; color: #c6d0dc; text-decoration: none; padding: 6px 4px; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; color: #c6d0dc; border-radius: 8px; }
.footer-links a.footer-social:hover { color: #ffffff; background: rgba(255,255,255,0.08); text-decoration: none; }
.footer-links a.footer-social svg { display: block; }

/* Row 2 — Trustpilot (centred) */
.footer-trustpilot { display: flex; justify-content: center; width: 100%; }
.footer-trustpilot .trustpilot-widget { min-width: 180px; max-width: 100%; overflow: hidden; }

/* Row 3 — copyright + dynamic version */
.footer-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: #8ea0b5; }
.footer-version { display: inline-flex; align-items: center; margin: 0; font-size: 0.72rem; color: #8ea0b5; padding: 0; }

/* ---- Mobile footer: hide Facebook/LinkedIn (they live in the drawer) ---- */
@media (max-width: 767px) {
  .footer-links a.footer-social { display: none; }
  .footer-trustpilot { padding: 0 16px; }
  .footer-trustpilot .trustpilot-widget { min-width: 0; width: 100%; }
}

/* ---- Header: social icons (40×40 clickable, 20px icon) ---- */
.site-header .header-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #667085; border-radius: 8px; }
.site-header .header-social:hover { color: #0B7A3C; background: #f1f7f3; }
.site-header .header-social svg { width: 20px; height: 20px; display: block; }

/* Centre the combined Search + AI Area Insights group; Logo left, actions right.
   Balanced flex-grow on Logo and Actions keeps the middle group horizontally centred. */
@media (min-width: 521px) {
  .site-header { gap: 16px; }
  .site-header .brand { flex: 1 1 0; }
  .site-header .header-search { flex: 0 1 290px; }
  .site-header .ai-insights { flex: 0 0 auto; margin-left: 0; margin-right: 0; }
  .site-header .actions { flex: 1 1 0; display: flex; justify-content: flex-end; }
}

/* ---- Mobile drawer social (below the Account section) ---- */
.mobile-nav-social { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid #e8eeea; }
.mobile-nav-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #667085; border-radius: 8px; }
.mobile-nav-social a:hover { color: #0B7A3C; background: #f1f7f3; }
.mobile-nav-social a svg { width: 20px; height: 20px; display: block; }

/* ---- Landing (homepage) header: social + Saved + account nav ---- */
.site-header .header-inner .actions { display: flex; align-items: center; gap: 10px; }
.site-header .header-inner .actions button { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 0 6px; font-size: 14px; font-weight: 600; color: #10233d; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.site-header .header-inner .actions button:hover { color: #0B7A3C; }
.account-wrap { position: relative; }
.account-wrap #accountBtn { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid #e8eeea; border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16); padding: 8px; display: none; z-index: 7000; }
.account-menu.open { display: block; }
.account-menu-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; border-bottom: 1px solid #f0f2f4; margin-bottom: 4px; }
.account-menu-head .account-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #f1f7f3; flex: 0 0 auto; font-weight: 700; color: #0B7A3C; }
.account-menu-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-menu-id b { font-size: 13px; color: #10233d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-id span { font-size: 12px; color: #667085; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .mobile-nav-item,
.account-menu .account-menu-btn { display: flex; align-items: center; width: 100%; gap: 8px; padding: 8px; border: 0; background: none; border-radius: 8px; font-size: 13.5px; color: #10233d; text-align: left; cursor: pointer; }
.account-menu .mobile-nav-item:hover,
.account-menu .account-menu-btn:hover { background: #f1f7f3; }

/* Landing mobile: keep the social+account group accessible, no floating buttons */
@media (max-width: 520px) {
  .site-header .header-inner .actions { gap: 4px; }
  .site-header .header-inner .actions button { font-size: 12px; }
  .site-header .header-inner .header-social { width: 36px; height: 36px; }
}

/* Google "G" sign-in icon: square + centred (Area Guide account button) */
#accountBtn::before { width: 18px; height: 18px; background-size: 18px 18px; background-position: center; background-repeat: no-repeat; aspect-ratio: 1 / 1; }
#accountBtn.account-avatar-btn::before { display: none; }

/* Remove Google icon from the mobile top header (auth remains via the drawer) */
.mobile-google-btn { display: none; }
