/* ============================================================
   Property Deal Tools — Site header & footer CSS
   Drop-in additions for calculator-styles.css.
   Targets the markup injected by header.js and footer.js.

   Conventions match the existing token set:
   --secondary (#0E2A47), --brand-blue (#097BC0), --accent (#F5A623),
   --font-display (DM Sans), --font-body (Inter).
   ============================================================ */

/* ============================================================
   HEADER
   ============================================================ */
.pdt-site-header {
  background: var(--brand-blue);
  color: white;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  padding: 0;   /* neutralize legacy `header { padding }` from calculator-styles.css — height is owned by .pdt-header-inner */
}
.pdt-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 56px;                  /* logo ↔ nav breathing room */
}

/* Logo — reuses .logo / .logo-mark / .logo-word lockup */
.pdt-header-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
  font-family: var(--font-display);
  color: white; line-height: 1;
}
.pdt-header-logo .logo-mark {
  width: 32px; height: 32px;
  background: white; color: var(--secondary);
  border-radius: 7px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 3px; flex-shrink: 0; line-height: 0.92;
}
.pdt-header-logo .logo-mark .lm-ltrs {
  font-weight: 700; font-size: 15px; letter-spacing: -0.04em;
}
.pdt-header-logo .logo-mark .lm-rule {
  display: block; width: 14px; height: 2px; border-radius: 99px;
  background: var(--accent); margin-top: 3px;
}
.pdt-header-logo .logo-word {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 19px; color: white;
  letter-spacing: -0.012em; line-height: 1;
}
.pdt-header-logo .logo-word .logo-dot {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 99px; background: var(--accent); flex-shrink: 0;
}

/* Nav — centered in the header. Equal auto margins on both sides
   absorb the free space evenly, so the gap from logo to nav and
   from nav to search are visually identical. */
.pdt-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}
.pdt-header-nav a {
  position: relative;
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  opacity: 0.88;
  padding: 16px 2px;            /* tall hit area, underline anchors to baseline */
  transition: opacity 0.15s;
}
.pdt-header-nav a:hover { opacity: 1; }
.pdt-header-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1);
}
.pdt-header-nav a:hover::after { transform: scaleX(0.4); opacity: 0.7; }
.pdt-header-nav a.is-active { opacity: 1; }
.pdt-header-nav a.is-active::after { transform: scaleX(1); opacity: 1; }

/* Search — recessive at rest, white on focus */
.pdt-header-search {
  position: relative;
  width: 220px;               /* narrower so nav can shift right */
  flex-shrink: 0;
}
.pdt-header-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.65);
  pointer-events: none;
  transition: color 0.15s;
}
.pdt-header-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: white;
  font-family: var(--font-body);
  font-size: 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.pdt-header-search input::placeholder { color: rgba(255,255,255,0.62); }
.pdt-header-search:hover input {
  background: rgba(255,255,255,0.20);
  border-color: rgba(255,255,255,0.28);
}
.pdt-header-search:hover .pdt-header-search-icon { color: rgba(255,255,255,0.85); }
.pdt-header-search input:focus {
  outline: none;
  background: white;
  border-color: white;
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.35);
}
.pdt-header-search input:focus::placeholder { color: var(--light-ink); }
.pdt-header-search input:focus + .pdt-header-search-icon,
.pdt-header-search input:focus ~ .pdt-header-search-icon { color: var(--secondary); }

/* Mobile hamburger — hidden on desktop */
.pdt-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.pdt-mobile-toggle:hover { border-color: rgba(255,255,255,0.4); }
.pdt-mobile-toggle-bar {
  display: block;
  width: 18px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.15s;
}
.pdt-mobile-toggle[aria-expanded="true"] .pdt-mobile-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.pdt-mobile-toggle[aria-expanded="true"] .pdt-mobile-toggle-bar:nth-child(2) { opacity: 0; }
.pdt-mobile-toggle[aria-expanded="true"] .pdt-mobile-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.pdt-mobile-drawer {
  display: none;
  background: var(--brand-blue);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.pdt-mobile-drawer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.pdt-mobile-drawer .pdt-header-search {
  width: 100%;
}
.pdt-mobile-nav {
  display: flex; flex-direction: column;
}
.pdt-mobile-nav a {
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center;
  position: relative;
}
.pdt-mobile-nav a:last-child { border-bottom: none; }
.pdt-mobile-nav a.is-active {
  color: var(--accent);
}
.pdt-mobile-nav a.is-active::before {
  content: '';
  position: absolute;
  left: -16px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 880px) {
  .pdt-header-nav,
  .pdt-header-inner > .pdt-header-search { display: none; }
  .pdt-mobile-toggle { display: inline-flex; }
  .pdt-site-header.is-menu-open .pdt-mobile-drawer { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.pdt-site-footer {
  background: var(--brand-blue);
  color: white;
  padding: 56px 0 0;
}
.pdt-footer-inner {
  max-width: 1280px;           /* matches header + page content width */
  margin: 0 auto;
  padding: 0 28px;
}
.pdt-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

/* Brand column */
.pdt-footer-brand .pdt-footer-logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1;
  margin-bottom: 18px;
  font-family: var(--font-display);
  color: white;
}
.pdt-footer-brand .pdt-footer-logo .logo-mark {
  width: 32px; height: 32px;
  background: white; color: var(--secondary);
  border-radius: 7px;
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding-top: 3px; flex-shrink: 0; line-height: 0.92;
}
.pdt-footer-brand .pdt-footer-logo .logo-mark .lm-ltrs {
  font-weight: 700; font-size: 15px; letter-spacing: -0.04em;
}
.pdt-footer-brand .pdt-footer-logo .logo-mark .lm-rule {
  display: block; width: 14px; height: 2px; border-radius: 99px;
  background: var(--accent); margin-top: 3px;
}
.pdt-footer-brand .pdt-footer-logo .logo-word {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; font-size: 19px; color: white;
  letter-spacing: -0.012em; line-height: 1;
}
.pdt-footer-brand .pdt-footer-logo .logo-word .logo-dot {
  display: inline-block; width: 5px; height: 5px;
  border-radius: 99px; background: var(--accent); flex-shrink: 0;
}

.pdt-footer-brand h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  margin: 4px 0 12px;
  color: white;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.pdt-footer-brand p {
  color: rgba(255,255,255,0.74);
  font-size: 14px;             /* bumped from 13.5px */
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

/* Link columns */
.pdt-footer-col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;             /* stays small — intentional "label" treatment */
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin: 0 0 18px;
}
.pdt-footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 11px;                   /* slightly more breathing room */
}
.pdt-footer-col ul a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14.5px;           /* BUMPED from 13.5px */
  line-height: 1.4;
  transition: color 0.12s;
}
.pdt-footer-col ul a:hover { color: white; }
.pdt-footer-col ul a.see-all {
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}
.pdt-footer-col ul a.see-all:hover { color: var(--accent-hover, #E89610); }

/* Bottom bar */
.pdt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.66);
}
.pdt-footer-bottom-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.pdt-footer-bottom-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  position: relative;
  transition: color 0.12s;
}
.pdt-footer-bottom-links a:hover { color: white; }
.pdt-footer-bottom-links a + a::before {
  content: '·';
  position: absolute;
  left: -13px;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
}

@media (max-width: 880px) {
  .pdt-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .pdt-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .pdt-footer-inner { padding: 0 20px; }
  .pdt-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }
  .pdt-footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
