/* AZ family shell: the shared header and footer for every AZ product website
   (webaz.ca, bookaz.ca, seoaz.ca, POS AZ). Same layout, sizes and wording everywhere;
   each product only sets its own colours below. Copy this file as-is into each product.
   No JavaScript: the phone menu is a <details> element. */

/* ---- Per product: set these (Web AZ values shown) ---- */
:root {
  --az-brand: #3F7D2C;        /* main colour: buttons, links, active menu */
  --az-brand-dark: #2E5B22;   /* footer background */
  --az-bg: #FAF8EF;           /* page / header background */
  --az-ink: #1F2A1B;          /* text */
  --az-muted: #4E5A48;        /* menu and small text */
  --az-line: #E4E6DA;         /* header bottom border */
  --az-font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --az-width: 1440px;         /* widest content; full screen below that */
  --az-gutter: clamp(16px, 4vw, 48px);
}

/* ---- Header (sticky) ---- */
.az-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--az-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--az-line); font-family: var(--az-font); }
.az-header-in { max-width: var(--az-width); margin: 0 auto; padding: 0 var(--az-gutter); min-height: 72px; display: flex; align-items: center; gap: 20px; }
.az-logo { display: block; flex: none; }
.az-logo img { display: block; height: 36px; width: auto; }
.az-nav { display: flex; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; font-size: 16px; font-weight: 500; }
.az-nav a { color: var(--az-muted); text-decoration: none; padding: 6px 0; }
.az-nav a:hover, .az-nav a[aria-current="page"] { color: var(--az-brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.az-actions { display: flex; align-items: center; gap: 10px; }
.az-login { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; color: var(--az-brand); padding: 0 16px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--az-brand) 35%, transparent); }
.az-login:hover { background: color-mix(in srgb, var(--az-brand) 10%, transparent); border-color: var(--az-brand); }
.az-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 700; text-decoration: none; color: #fff; background: var(--az-brand); padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--az-brand); }
.az-cta:hover { background: var(--az-brand-dark); border-color: var(--az-brand-dark); }

/* Phone menu (no script): a button that opens a panel under the header. */
.az-menu { display: none; position: relative; }
.az-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--az-line); background: #fff; color: var(--az-ink); }
.az-menu > summary::-webkit-details-marker { display: none; }
.az-menu > summary span, .az-menu > summary span::before, .az-menu > summary span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.az-menu > summary span::before, .az-menu > summary span::after { content: ""; position: absolute; left: 0; }
.az-menu > summary span::before { top: -6px; }
.az-menu > summary span::after { top: 6px; }
.az-menu[open] > summary span { background: transparent; }
.az-menu[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.az-menu[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
.az-menu-panel { position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 340px); padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--az-line); box-shadow: 0 24px 60px -20px rgba(31, 42, 27, .35); display: grid; gap: 2px; }
.az-menu-panel a { display: block; padding: 14px 16px; border-radius: 12px; color: var(--az-ink); font-size: 18px; font-weight: 600; text-decoration: none; }
.az-menu-panel a:hover { background: color-mix(in srgb, var(--az-brand) 10%, transparent); color: var(--az-brand); }
.az-menu-panel .az-cta, .az-menu-panel .az-login { display: flex; justify-content: center; text-align: center; margin-top: 6px; }
.az-menu-panel .az-cta { color: #fff; }

/* ---- Footer ---- */
.az-footer { background: var(--az-brand-dark); color: rgba(255, 255, 255, .82); font-family: var(--az-font); font-size: 15px; }
.az-footer-in { max-width: var(--az-width); margin: 0 auto; padding: 48px var(--az-gutter) 32px; }
.az-footer a { color: #fff; text-decoration: none; }
.az-footer a:hover { text-decoration: underline; }
.az-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.az-footer-logo img { display: block; height: 28px; width: auto; }
.az-family { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.az-family li:first-child { color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; }
.az-family a { text-decoration: none; font-weight: 600; }
.az-family a:hover { text-decoration: underline; }
.az-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; }
.az-footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .az-nav, .az-actions { display: none; }
  .az-menu { display: block; margin-left: auto; }
}
@media (max-width: 640px) {
  .az-footer-top, .az-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Footer on one line (logo · © · AZ family · legal) ---- */
.az-footer-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; padding-top: 28px; padding-bottom: 28px; }
.az-footer-left { display: flex; align-items: center; gap: 16px; margin: 0; }
.az-footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.az-footer-right a { font-weight: 600; }
.az-label { color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 600; }
.az-sep { color: rgba(255, 255, 255, .35); }
.az-plain { font-weight: 600; color: rgba(255, 255, 255, .7); }
@media (max-width: 640px) { .az-footer-line { flex-direction: column; align-items: center; text-align: center; } .az-footer-left { flex-direction: column; gap: 10px; } .az-footer-right { justify-content: center; } }
