/* Blueway Moving Co. — placeholder coastal-industrial demo
   Design read: trust-first local moving, work-crew language
   Dials: variance 5 / motion 4 / density 4 */

:root {
  --salt: #f7f6f2;
  --ink: #1a1a18;
  --ink-muted: #5c5a54;
  --line: #d4d1c8;
  --charcoal: #1a1a18;
  --charcoal-soft: #2a2a26;
  --signal: #e85d04;
  --signal-deep: #c44d03;
  --white: #ffffff;
  --focus: #e85d04;
  --danger: #9b2c2c;
  --success: #1f6b4a;
  --radius: 2px;
  --font-display: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --section-y: clamp(3.75rem, 8vw, 6rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--salt);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--signal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--charcoal);
  color: var(--salt);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(247, 246, 242, 0.65);
  color: var(--salt);
}

.btn-ghost:hover {
  background: rgba(247, 246, 242, 0.1);
  border-color: var(--salt);
  color: var(--salt);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--salt);
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-solid {
  background: var(--charcoal);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  flex-shrink: 0;
  width: 0.7rem;
  height: 1.55rem;
  background: var(--signal);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(247, 246, 242, 0.35);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-5px);
}

.nav-toggle-bars::after {
  transform: translateY(3px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--signal);
}

.btn-nav {
  min-height: 2.4rem;
  padding-inline: 1rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 50dvh;
  margin-top: calc(var(--header-h) * -1);
  color: var(--salt);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
} 

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 24, 0.45) 0%, rgba(26, 26, 24, 0.35) 40%, rgba(26, 26, 24, 0.88) 100%),
    linear-gradient(90deg, rgba(26, 26, 24, 0.55) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: var(--shell);
  padding: calc(var(--header-h) + 2rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  max-width: 36rem;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--signal);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 32ch;
  font-size: 1.05rem;
  color: rgba(247, 246, 242, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-sentinel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
}

/* Hero entrance */

[data-hero-copy] {
  opacity: 0;
  transform: translateY(1.25rem);
}

[data-hero-copy].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-copy] {
    opacity: 1;
    transform: none;
  }

  [data-hero-copy].is-in {
    transition: none;
  }
}

/* Sections */

.section {
  padding-block: var(--section-y);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 36rem;
}

.section-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-label-light {
  color: var(--signal);
}

.section-head h2,
.care-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  color: var(--ink-muted);
}

/* Services rail */

.services-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.services-rail li {
  display: grid;
  grid-template-columns: 3.75rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.services-rail li:nth-child(odd) {
  padding-right: 1.75rem;
  border-right: 1px solid var(--line);
}

.services-rail li:nth-child(even) {
  padding-left: 1.75rem;
  padding-right: 0;
}

.rail-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--signal);
}

.services-rail h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.services-rail p {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-muted);
}

/* Process timeline */

.section-process {
  background: var(--charcoal);
  color: var(--salt);
}

.section-process .section-lead {
  color: rgba(247, 246, 242, 0.7);
}

.process-timeline {
  --timeline-progress: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(247, 246, 242, 0.18);
}

.process-timeline::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: calc(var(--timeline-progress) * 100%);
  height: 2px;
  background: var(--signal);
  transition: width 0.8s var(--ease);
}

.process-timeline li {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(0.75rem);
}

.process-timeline.is-drawn li {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.process-timeline.is-drawn li:nth-child(1) { transition-delay: 0.05s; }
.process-timeline.is-drawn li:nth-child(2) { transition-delay: 0.15s; }
.process-timeline.is-drawn li:nth-child(3) { transition-delay: 0.25s; }
.process-timeline.is-drawn li:nth-child(4) { transition-delay: 0.35s; }

.timeline-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--charcoal);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--signal);
}

.process-timeline h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.process-timeline p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(247, 246, 242, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .process-timeline li {
    opacity: 1;
    transform: none;
  }

  .process-timeline::after {
    transition: none;
  }

  .process-timeline.is-drawn li {
    transition: none;
  }
}

/* Care band */

.care-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(22rem, 55vw, 32rem);
  color: var(--salt);
  overflow: hidden;
}

.care-media {
  position: absolute;
  inset: 0;
}

.care-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 26, 24, 0.9) 0%, rgba(26, 26, 24, 0.72) 45%, rgba(26, 26, 24, 0.35) 100%);
}

.care-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.care-copy p:last-child {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(247, 246, 242, 0.88);
}

/* Area */

.area-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.city-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.city-stamps li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.area-address {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.area-map {
  min-height: 22rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.area-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  filter: grayscale(0.35) contrast(1.05);
}

/* Contact / forms */

.callback-dock {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 2px solid var(--ink);
  background: var(--white);
}

.callback-dock h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-intro {
  margin: 0 0 1.35rem;
  color: var(--ink-muted);
}

.site-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.optional {
  color: var(--ink-muted);
  font-weight: 400;
}

.req {
  color: var(--signal-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--salt);
  color: var(--ink);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

.field textarea {
  resize: vertical;
  min-height: 3.5rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 0.25rem;
}

.form-legend {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-status {
  flex: 1 1 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 550;
}

.form-status.is-success {
  color: var(--success);
  background: #eaf6ef;
}

.form-status.is-error {
  color: var(--danger);
  background: #fff0ee;
}

.form-status.is-pending {
  color: var(--charcoal);
  background: #eef2f5;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 0.35rem;
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.25;
}

.field-error:empty {
  display: none;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Footer */

.site-footer {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 calc(5.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--charcoal);
  color: rgba(247, 246, 242, 0.78);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--salt);
}

.footer-brand p,
.footer-contact p {
  margin: 0 0 0.5rem;
}

.footer-contact a,
.site-footer .text-link {
  color: var(--salt);
}

.footer-contact a:hover,
.site-footer .text-link:hover {
  color: var(--signal);
}

.footer-note {
  margin: 0.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 246, 242, 0.15);
  font-size: 0.9rem;
}

/* Mobile call */

.mobile-call {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  border-radius: var(--radius);
  background: var(--signal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(26, 26, 24, 0.28);
}

.mobile-call:hover {
  color: var(--white);
  background: var(--signal-deep);
}

/* Responsive */

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--charcoal);
    border-bottom: 1px solid rgba(247, 246, 242, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(247, 246, 242, 0.1);
  }

  .btn-nav {
    margin-top: 1rem;
    width: 100%;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .process-timeline::before,
  .process-timeline::after {
    display: none;
  }

  .area-layout {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .services-rail {
    grid-template-columns: 1fr;
  }

  .services-rail li,
  .services-rail li:nth-child(odd),
  .services-rail li:nth-child(even) {
    padding: 1.35rem 0;
    border-right: 0;
  }

  .mobile-call {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .site-nav.is-open .btn-nav {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .brand-name {
    max-width: 12rem;
    white-space: normal;
  }

  .services-rail li {
    grid-template-columns: 3.25rem 1fr;
    gap: 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 901px) {
  .mobile-call {
    display: none !important;
  }

  .site-footer {
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    grid-template-areas:
      "brand contact"
      "note note";
    gap: 0 3rem;
    align-items: start;
  }

  .footer-brand {
    grid-area: brand;
  }

  .footer-contact {
    grid-area: contact;
    text-align: right;
  }

  .footer-note {
    grid-area: note;
  }
}

/* Shared demo, form-privacy, and legal-footer styles */
.demo-notice {
  position: relative;
  z-index: 90;
  padding: 0.62rem 1rem;
  border-bottom: 1px solid #d8b84f;
  color: #403612;
  background: #fff3c4;
  font: 700 0.82rem/1.4 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
}

.demo-notice a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.form-legal-note {
  margin: 0.85rem 0 0;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.78;
}

.form-legal-note a {
  color: inherit;
  font-weight: 750;
  text-underline-offset: 0.16em;
}

.legal-footer-bar {
  display: flex;
  width: min(calc(100% - 2rem), 1180px);
  margin-inline: auto;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  font: 600 0.78rem/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0.78;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.legal-footer-bar a {
  color: inherit;
  text-underline-offset: 0.16em;
}

@media (max-width: 680px) {
  .legal-footer-bar {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 5rem;
  }
}
