/* ============================================================
   Walking Walter Enterprises
   Palette matched to the logo: royal purple + slate gray
   ============================================================ */

:root {
  --purple:        #5b2c86;
  --purple-deep:   #3c1d5b;
  --purple-soft:   #efe8f6;
  --gray:          #54545a;
  --ink:           #221d29;
  --muted:         #6b6573;
  --bg:            #ffffff;
  --bg-alt:        #f7f4fb;
  --line:          #e7e0f0;
  --accent:        #b8893b;   /* warm cartographic gold, used sparingly */

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(60, 29, 91, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-deep); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: 0.2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--purple); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 12px 24px -14px rgba(91, 44, 134, 0.8); }
.btn-primary:hover { background: var(--purple-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--purple); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-deep); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(60, 29, 91, 0.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 56px; width: auto; }

.nav-menu { list-style: none; display: flex; align-items: center; gap: 34px; }
.nav-menu a { color: var(--gray); font-weight: 500; font-size: 0.96rem; position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--purple-deep); }
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--purple); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--purple-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--purple-soft) 0%, rgba(239,232,246,0) 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
  padding: clamp(64px, 11vw, 130px) 0 clamp(70px, 10vw, 120px);
}
.hero-path { position: absolute; inset: 0; color: var(--purple); opacity: 0.22; pointer-events: none; }
.hero-path svg { width: 100%; height: 100%; }
.hero-inner { position: relative; max-width: 880px; }

.eyebrow {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: 0.3px; }
.accent-word { color: var(--purple); font-style: italic; }
.hero-lede {
  margin-top: 26px; font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--muted);
  max-width: 620px;
}

.motto {
  margin: 38px 0 6px; padding-left: 22px; border-left: 3px solid var(--accent);
}
.motto blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--purple-deep); }
.motto figcaption { font-size: 0.9rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; }
.motto-latin-note { font-style: italic; }
.motto-en { color: var(--gray); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* ---------- Strip ---------- */
.strip { background: var(--purple-deep); color: #fff; }
.strip .container { padding-top: 30px; padding-bottom: 30px; }
.strip p { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 860px; color: rgba(255,255,255,0.86); }
.strip strong { color: #fff; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center;
  border-radius: 12px; background: var(--purple-soft); color: var(--purple); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.42rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.99rem; }

/* ---------- Approach / route ---------- */
.route { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: route; }
.route-step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); }
.route-step::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 0 5px var(--bg-alt);
}
.route-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: 6px; }
.route-step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.route-step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-mark {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, var(--purple-soft) 0%, var(--bg-alt) 70%);
  border-radius: var(--radius); padding: 40px;
}
.about-mark img { max-width: 320px; mix-blend-mode: multiply; }
.about-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 22px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-motto { color: var(--ink) !important; font-family: var(--serif); font-size: 1.25rem; }
.about-motto em { color: var(--purple); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(900px 460px at 12% 110%, var(--purple-soft) 0%, rgba(239,232,246,0) 60%),
    var(--bg);
}
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px;
}
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 44, 134, 0.12);
}
.contact-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.95rem; font-weight: 500; margin: 0; }
.form-status.ok { color: var(--purple); }
.form-status.err { color: #b3261e; }
.contact-form.sending .btn-primary { opacity: 0.65; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 56px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { height: 60px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer-motto { font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,0.85); }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.85rem; color: rgba(255,255,255,0.5); width: 100%; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .route { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-mark { order: -1; }
  .about-mark img { max-width: 240px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 24px 24px; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height 0.35s var(--ease), opacity 0.25s, padding 0.35s;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 12px 0; width: 100%; }
  .nav-menu.open { max-height: 360px; opacity: 1; pointer-events: auto; }
  .nav-cta { display: inline-block; margin-top: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
