/* SammyO's Moving Company
   Palette: strap blue, deep navy, packing-tape yellow, cool paper, ink */
:root {
  --blue: #1e3a5f;
  --navy: #13263e;
  --yellow: #f2b705;
  --yellow-dark: #d9a200;
  --paper: #f3f6f9;
  --white: #ffffff;
  --ink: #1b1f24;
  --muted: #55606c;
  --line: #c9d2dc;
  --wrap: 1120px;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; display: block; }

a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
  margin: 0 0 1rem;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.6rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.btn-outline { color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-phone { background: var(--blue); color: var(--white); white-space: nowrap; }
.btn-phone:hover { background: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--blue); text-decoration: underline; }

/* Hero: solid strap blue, a band of packing tape along the bottom edge */
.hero {
  background: var(--blue);
  color: var(--white);
  border-bottom: 14px solid var(--yellow);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.hero-text { padding-bottom: clamp(3rem, 6vw, 5rem); }
/* Photo sits on the tape line, like it's standing on it */
.hero-photo {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 30%;
  border: 6px solid var(--white);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  align-self: end;
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-stretch: 62%;
  font-weight: 900;
  max-width: 12ch;
  letter-spacing: -.01em;
}
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 40ch; margin: 0 0 2rem; color: #dce5ef; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.25rem; }
.hero-area { margin: 0; font-size: 1rem; color: #b9c8d8; max-width: 60ch; }

/* About */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding-top: 4.5rem; padding-bottom: 4.5rem;
  align-items: start;
}
.values { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--blue); max-width: 12ch; }
.about-text p { margin: 0 0 1rem; max-width: 60ch; }
.promises { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.promises li {
  font-weight: 700;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: .35rem .8rem;
  border-radius: 4px;
}

/* Services */
.services { background: var(--paper); padding: 4.5rem 0; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.service { background: var(--white); border-top: 6px solid var(--blue); }
.service img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.service-body { padding: 1.5rem 1.5rem 1.75rem; }
.service-body p { margin: 0 0 .75rem; color: var(--muted); }
.service-body ul { margin: 0; padding-left: 1.2rem; }
.service-body li { margin: .2rem 0; }

/* Gallery */
.gallery-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; background: var(--line); }

/* Reviews */
.reviews { padding: 4.5rem 0; }
.review-columns { columns: 3 280px; column-gap: 2rem; margin-top: 2rem; }
.review { break-inside: avoid; margin: 0 0 2rem; padding-left: 1rem; border-left: 4px solid var(--yellow); }
.review blockquote { margin: 0 0 .5rem; }
.review figcaption { font-family: var(--display); font-stretch: 87.5%; font-weight: 700; color: var(--blue); }

/* Quote: the form is a moving label */
.quote { background: var(--navy); color: var(--white); padding: 4.5rem 0; }
.quote-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.quote-intro p { color: #c9d6e4; max-width: 36ch; }
.quote-direct { font-size: 1.2rem; line-height: 1.7; }
.quote-direct a { color: var(--yellow); font-weight: 700; }

.label {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 6px;
}
.label-head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--ink); color: var(--white);
  font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.35rem;
  padding: .6rem 1rem;
}
.label-head span:last-child { color: var(--yellow); }
.label-row { padding: 1rem; border-bottom: 2px solid var(--ink); }
.label-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.label-row.addresses { gap: 0; padding: 0; }
.label-row.addresses .field { padding: 1rem; }
.label-row.addresses .field + .field { border-left: 2px dashed var(--ink); }
.label-row.addresses label { font-size: 1.4rem; font-stretch: 62%; font-weight: 900; }

.field label {
  display: block;
  font-family: var(--display); font-stretch: 87.5%; font-weight: 700;
  margin-bottom: .3rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  padding: .6rem .7rem;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.field textarea { resize: vertical; }

.label-check { padding: 1rem 1rem 0; overflow-x: auto; }
.label-foot { padding: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fine { margin: 0; font-size: .9rem; color: var(--muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1rem; padding: .8rem 1rem; border-radius: 4px; font-weight: 600; }
.form-status.error { background: #fdecea; color: #8a1c13; border: 1.5px solid #e2a19a; }

/* Footer */
.site-footer { background: var(--ink); color: #c7ced6; padding: 2rem 0; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }

/* Thank-you page */
.thanks { min-height: 60vh; display: flex; align-items: center; background: var(--blue); color: var(--white); border-bottom: 14px solid var(--yellow); }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-stretch: 62%; font-weight: 900; }
.thanks p { color: #dce5ef; max-width: 46ch; }
.thanks .btn { margin-top: 1rem; }

/* Phone-only pieces (hidden on larger screens) */
.mobile-bar, .reviews-more { display: none; }

/* Responsive */
@media (max-width: 860px) {
  .nav { display: none; }
  .btn-phone { margin-left: auto; }
  .about-inner, .quote-inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-text { padding-bottom: 2.5rem; }
  .hero-photo { max-height: 420px; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-row img { aspect-ratio: 3 / 2; }

  /* Header: logo only; actions live in the bottom bar */
  .site-header .btn-phone { display: none; }
  .header-inner { justify-content: center; }

  /* Bottom action bar */
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--line);
    transition: transform .2s ease;
  }
  .mobile-bar .btn { margin: 0; text-align: center; padding: .85rem .5rem; min-height: 48px; }
  .mobile-bar.away { transform: translateY(110%); }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }

  /* Reviews: first 3, then a button */
  .review-columns.collapsible:not(.open) .review:nth-child(n+4) { display: none; }
  .reviews-more { display: inline-block; background: var(--white); color: var(--blue); border-color: var(--blue); }
  .reviews-more[hidden] { display: none; }

  /* Bigger tap targets for text links */
  .quote-direct a, .site-footer a { display: inline-block; padding: .5rem 0; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .mobile-bar { transition: none; }
}
@media (max-width: 560px) {
  .brand img { height: 44px; }
  .btn-phone { padding: .6rem .9rem; font-size: 1rem; }
  .label-row.two { grid-template-columns: 1fr; }
  .label-check { padding: 1rem .5rem 0; }
  .label-row.addresses .field + .field { border-left: 0; border-top: 2px dashed var(--ink); }
}
