@import url('colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--hm-cream); color: var(--hm-ink); font-family: var(--hm-font-sans); }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* SVG illustrations are single-path silhouettes — color them via filter */
.illo { width: 100%; height: 100%; object-fit: contain; }
.illo-ink { filter: none; }
.illo-red { filter: brightness(0) saturate(100%) invert(30%) sepia(75%) saturate(4900%) hue-rotate(355deg) brightness(101%) contrast(104%); }
.illo-cream { filter: brightness(0) saturate(100%) invert(95%) sepia(8%) saturate(373%) hue-rotate(5deg) brightness(99%) contrast(95%); }
.illo-mustard { filter: brightness(0) saturate(100%) invert(71%) sepia(52%) saturate(565%) hue-rotate(9deg) brightness(96%) contrast(88%); }
.illo-forest { filter: brightness(0) saturate(100%) invert(33%) sepia(14%) saturate(1598%) hue-rotate(98deg) brightness(97%) contrast(86%); }
.illo-clay { filter: brightness(0) saturate(100%) invert(54%) sepia(20%) saturate(1179%) hue-rotate(344deg) brightness(92%) contrast(85%); }
.illo-teal { filter: brightness(0) saturate(100%) invert(75%) sepia(18%) saturate(664%) hue-rotate(141deg) brightness(91%) contrast(86%); }
.illo-sky { filter: brightness(0) saturate(100%) invert(73%) sepia(13%) saturate(738%) hue-rotate(155deg) brightness(89%) contrast(85%); }
.illo-blush { filter: brightness(0) saturate(100%) invert(77%) sepia(15%) saturate(769%) hue-rotate(321deg) brightness(97%) contrast(89%); }

/* Basic utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hm-red); display: inline-block; }
.eyebrow.on-red { color: var(--hm-cream); }
.eyebrow.ink { color: var(--hm-ink); }

.display {
  font-family: var(--hm-font-display);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 0.98;
  color: var(--hm-ink);
  margin: 0;
}
.h2 {
  font-family: var(--hm-font-display);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--hm-ink);
  margin: 0;
}

.lead { font-size: 19px; line-height: 1.5; color: var(--hm-charcoal); margin: 0; }

/* Section padding — tighter than the original */
.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
.section-lg { padding: 88px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: all 0.18s var(--hm-ease-out); text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--hm-red); color: var(--hm-cream); }
.btn-primary:hover { background: var(--hm-red-deep); transform: translateY(-1px); text-decoration: none; opacity: 1; }
.btn-ghost { background: transparent; color: var(--hm-ink); border: 1.5px solid var(--hm-ink); }
.btn-ghost:hover { background: var(--hm-ink); color: var(--hm-cream); text-decoration: none; opacity: 1; }
.btn-reverse { background: var(--hm-cream); color: var(--hm-red); }
.btn-reverse:hover { background: white; opacity: 1; text-decoration: none; }

/* Arrow link */
.arrow-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid rgba(31,20,20,0.12);
  color: var(--hm-ink); font-weight: 500; font-size: 16px; text-decoration: none;
  transition: all 0.18s var(--hm-ease-out);
}
.arrow-link:hover { padding-left: 8px; text-decoration: none; opacity: 1; }
.arrow-link .arrow {
  width: 32px; height: 32px; border-radius: 50%; background: var(--hm-red); color: var(--hm-cream);
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
  transition: transform 0.18s var(--hm-ease-out);
}
.arrow-link:hover .arrow { transform: translateX(4px); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 238, 228, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31,20,20,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--hm-ink); text-decoration: none; transition: color 0.15s; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--hm-red); opacity: 1; text-decoration: none; }
.nav-links a.active { color: var(--hm-red); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--hm-red); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: var(--hm-red); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.nav-phone:hover { opacity: 0.8; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: none; padding: 8px; color: var(--hm-ink);
}
@media (max-width: 960px) {
  .nav-links, .nav-right .btn, .nav-phone { display: none; }
  .nav-toggle { display: block; }
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--hm-cream);
  transform: translateX(100%); transition: transform 0.28s var(--hm-ease-out);
  display: flex; flex-direction: column; padding: 24px 32px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.mobile-menu a { font-size: 32px; font-weight: 900; font-family: var(--hm-font-display); color: var(--hm-ink); text-decoration: none; padding: 14px 0; letter-spacing: -0.02em; border-bottom: 1px solid rgba(31,20,20,0.08); }
.mobile-menu a:hover { color: var(--hm-red); opacity: 1; text-decoration: none; }
.mobile-menu .mm-foot { margin-top: auto; padding-top: 32px; }
.mobile-menu .mm-foot .btn { width: 100%; justify-content: center; }
.mobile-menu .mm-phone { display: block; margin-top: 16px; color: var(--hm-red); font-weight: 600; font-size: 16px; }

/* Ticker */
.ticker { background: var(--hm-red); color: var(--hm-cream); padding: 24px 0; overflow: hidden; }
.ticker-track { white-space: nowrap; font-family: var(--hm-font-display); font-weight: 900; font-size: 44px; letter-spacing: -0.02em; animation: scroll 30s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-track span { display: inline-block; padding: 0 28px; }

/* Footer */
.footer { background: var(--hm-red-deep); color: var(--hm-cream); padding: 64px 0 32px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--hm-font-sans); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.65; margin: 0 0 14px; font-weight: 700; color: var(--hm-cream); }
.footer-logo img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-acknowledgement { font-size: 13px; line-height: 1.6; opacity: 0.8; max-width: 300px; margin: 0; }
.footer-list { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 2; }
.footer-list a { color: var(--hm-cream); text-decoration: none; opacity: 0.9; }
.footer-list a:hover { opacity: 1; color: white; text-decoration: underline; }
.footer-bar { border-top: 1px solid rgba(244,235,221,0.18); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; opacity: 0.7; }

/* Walking mascot — fully SVG. Body bobs, legs pivot from hip. */
.walker-svg { overflow: visible; }
.walker-svg .walker-body-svg {
  transform-origin: 200px 200px;
  animation: walker-body-bob 0.9s ease-in-out infinite;
}
.walker-svg .walker-leg-back {
  transform-origin: 175px 305px;
  animation: walker-leg-back-kf 0.9s ease-in-out infinite;
}
.walker-svg .walker-leg-front {
  transform-origin: 225px 305px;
  animation: walker-leg-front-kf 0.9s ease-in-out infinite;
}
.walker-svg .walker-ground {
  transform-box: fill-box;
  transform-origin: center;
  animation: walker-ground-kf 0.9s ease-in-out infinite;
}
@keyframes walker-body-bob {
  0%, 50%, 100% { transform: translateY(0); }
  25%, 75%     { transform: translateY(-6px); }
}
@keyframes walker-leg-back-kf {
  0%   { transform: rotate(-22deg); }
  50%  { transform: rotate(22deg); }
  100% { transform: rotate(-22deg); }
}
@keyframes walker-leg-front-kf {
  0%   { transform: rotate(22deg); }
  50%  { transform: rotate(-22deg); }
  100% { transform: rotate(22deg); }
}
@keyframes walker-ground-kf {
  0%, 50%, 100% { transform: scaleX(1);    opacity: 0.35; }
  25%, 75%     { transform: scaleX(0.78); opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
  .walker-svg .walker-body-svg,
  .walker-svg .walker-leg-back,
  .walker-svg .walker-leg-front,
  .walker-svg .walker-ground { animation: none; }
}
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-legal a { color: var(--hm-cream); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* Common section styling */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head p { max-width: 520px; }

/* Page header (for non-home pages) */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid rgba(31,20,20,0.08); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-family: var(--hm-font-display); font-weight: 900; font-size: clamp(52px, 8vw, 96px); letter-spacing: -0.03em; line-height: 0.96; margin: 0 0 20px; max-width: 12ch; }
.page-hero .lead { font-size: 20px; max-width: 620px; }

/* Responsive base */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
  .nav-inner { padding: 14px 20px; }
  .ticker-track { font-size: 32px; }
}
