/*
Theme Name: The Good Move
Theme URI: https://thegoodmove.ca
Author: The Good Move
Author URI: https://thegoodmove.ca
Description: A clean, modern theme for The Good Move -- same-day courier, small freight, and furniture delivery across the GTA. Custom-built with a route-line motif, quote-request flow, and full policy pages.
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thegoodmove
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Tell browsers this site controls its own colors -- prevents mobile
     browsers (and OS/browser forced-dark modes) from auto-inverting the
     intentional dark/light palette, which washes out the header/hero. */
  color-scheme: only light;

  --asphalt:   #0F1B2D;
  --asphalt-2: #16263c;
  --amber:     #F5A623;
  --amber-dk:  #d98e12;
  --paper:     #FAFAF7;
  --slate:     #5A6B7B;
  --slate-lt:  #8695a3;
  --line:      #e4e6e2;
  --go:        #2E9E5B;
  --white:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 2px 8px rgba(15,27,45,.05);
  --shadow-md: 0 4px 12px rgba(15,27,45,.08), 0 12px 32px rgba(15,27,45,.08);

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 9px;

  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color-scheme: only light; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--asphalt);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--f-display);
  font-size: .74rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-dk);
  display: inline-block; margin-bottom: 14px;
}
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 500; font-size: .98rem;
  padding: 14px 26px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn--primary { background: var(--amber); color: var(--asphalt); }
.btn--primary:hover { background: var(--amber-dk); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { border-color: rgba(250,250,247,.28); color: var(--paper); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn--dark { background: var(--asphalt); color: var(--paper); }
.btn--dark:hover { background: var(--asphalt-2); transform: translateY(-2px); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--paper);       /* solid, opaque -- no ghosting, matches desktop */
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--asphalt); position: relative; z-index: 3; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand small { display:block; font-family: var(--f-body); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lt); margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--asphalt); transition: color .18s; }
.nav a:hover { color: var(--amber-dk); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; position: relative; z-index: 3; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--asphalt); margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: flex-start;
         background: var(--paper); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
         transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow-md); }
  .nav.open { transform: translateY(0); }
  .nav .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: block; }
}

/* ============================================================
   HERO  -- route-line signature
   ============================================================ */
.hero {
  position: relative; overflow: hidden; z-index: 1;
  background: var(--asphalt);
  color: var(--paper);
  padding: 108px 0 120px;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 20px; }
.hero h1 .hl { color: var(--amber); }
.hero p.lead { font-size: 1.16rem; color: #c3cdd8; max-width: 40ch; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero__meta div { }
.hero__meta strong { font-family: var(--f-display); font-size: 1.5rem; display: block; color: var(--white); }
.hero__meta span { font-size: .82rem; color: var(--slate-lt); letter-spacing: .04em; }

/* route visual */
.route { position: relative; aspect-ratio: 1/1; }
.route svg { width: 100%; height: 100%; overflow: visible; }
.route .path-bg { fill: none; stroke: rgba(255,255,255,.10); stroke-width: 3; stroke-linecap: round; }
.route .path-fg { fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 8 10; animation: dash 3.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -180; } }
.route .node { fill: var(--asphalt); stroke: var(--amber); stroke-width: 3; }
.route .van { fill: var(--amber); }
.route__pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* decorative bg lines */
.hero__lines { position: absolute; inset: 0; opacity: .5; pointer-events: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .route { max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 34px 48px; justify-content: center; padding-top: 30px; padding-bottom: 30px; }
.trust__item { display: flex; align-items: center; gap: 11px; font-weight: 500; color: var(--slate); font-size: .96rem; }
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--go); }
@media (max-width: 860px) {
  .trust .wrap { flex-direction: column; align-items: flex-start; gap: 18px; justify-content: flex-start; }
  .trust__item { align-items: flex-start; width: 100%; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--slate); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon { width: 46px; height: 46px; border-radius: 11px; background: rgba(245,166,35,.14);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--amber-dk); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; }
.card p { color: var(--slate); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS  -- genuine sequence, so numbers earn their place
   ============================================================ */
.process { background: var(--asphalt); color: var(--paper); }
.process .section-head h2 { color: var(--white); }
.process .section-head p { color: #b9c4cf; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 2px solid rgba(245,166,35,.4); }
.step__n { font-family: var(--f-display); font-size: .8rem; letter-spacing: .16em; color: var(--amber); display:block; margin-bottom: 12px; }
.step h3 { font-size: 1.24rem; color: var(--white); }
.step p { color: #b9c4cf; font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   QUOTE FORM
   ============================================================ */
.quote { background: var(--white); }
.quote__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.quote__aside h2 { font-size: clamp(1.9rem,3.4vw,2.6rem); }
.quote__aside p { color: var(--slate); font-size: 1.05rem; }
.quote__aside .email { display:inline-flex; align-items:center; gap:9px; margin-top: 10px; font-weight:600; color: var(--asphalt); font-family: var(--f-display); max-width: 100%; word-break: break-word; }
.quote__aside .email svg { width: 20px; height: 20px; color: var(--amber-dk); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-family: var(--f-display); font-weight: 500; font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: 1rem; background: var(--white); color: var(--asphalt);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { font-size: .82rem; color: var(--slate-lt); margin: 14px 0 0; text-align: center; }
.form__ok { background: rgba(46,158,91,.1); border: 1px solid rgba(46,158,91,.4); color: #1c6b3d;
  padding: 14px 16px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 18px; display:none; }
@media (max-width: 860px) { .quote__grid { grid-template-columns: 1fr; gap: 34px; } .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE CONTENT (policies, about)
   ============================================================ */
.page-hero { background: var(--asphalt); color: var(--paper); padding: 74px 0 66px; }
.page-hero h1 { font-size: clamp(2rem,4vw,3rem); margin: 0; }
.page-hero p { color: #b9c4cf; margin: 12px 0 0; font-size: 1.05rem; }
.prose { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: #2c3a49; font-size: 1.02rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--slate-lt); font-size: .9rem; font-family: var(--f-display); letter-spacing: .04em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--asphalt); color: #aeb9c4; padding: 60px 0 34px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--paper); margin-bottom: 14px; }
.site-footer p { font-size: .94rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--f-display); color: var(--paper); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: var(--slate-lt); }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 30px; } }

/* currency + security notes */
.quote__ccy { font-size: .92rem; color: var(--slate); font-weight: 500; margin-top: -4px; }
.form__secure { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: var(--slate);
  margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.form__secure svg { width: 18px; height: 18px; flex: none; color: var(--go); margin-top: 1px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact__box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px; box-shadow: var(--shadow-sm); }
.contact__box h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact__box > div:first-child p { color: var(--slate); font-size: 1.05rem; margin: 0; }
.contact__email { display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.28rem; color: var(--asphalt);
  padding: 14px 20px; background: rgba(245,166,35,.12); border-radius: var(--radius-sm);
  transition: background .2s, transform .15s;
  max-width: 100%; word-break: break-word; }
.contact__email:hover { background: rgba(245,166,35,.2); transform: translateY(-2px); }
.contact__email svg { width: 24px; height: 24px; color: var(--amber-dk); flex: none; }
.contact__meta { list-style: none; padding: 0; margin: 22px 0 0; }
.contact__meta li { font-size: .96rem; color: var(--slate); padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__meta li:last-child { border-bottom: 0; }
.contact__meta strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--asphalt); margin-bottom: 3px; }
@media (max-width: 860px) {
  .contact__box { grid-template-columns: 1fr; gap: 30px; padding: 32px 24px; }
  .contact__email { font-size: 1.05rem; padding: 12px 16px; gap: 9px; }
  .contact__email svg { width: 20px; height: 20px; }
}

/* accessibility */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--asphalt); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
