/* ============================================================
   A&R Family Trucking — styles
   Palette: deep navy + warm amber, cream neutrals
   Type: Manrope (display) + Inter (body)
   ============================================================ */

:root {
  --navy:    #0d1b2a;
  --navy-2:  #102536;
  --navy-3:  #16314a;
  --amber:   #e0a449;
  --amber-2: #f0bd6c;
  --cream:   #f7f5f1;
  --paper:   #fffdf9;
  --ink:     #14202b;
  --muted:   #5c6b76;
  --line:    #e6e1d8;

  --maxw: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(13, 27, 42, 0.14);
  --shadow-sm: 0 6px 20px rgba(13, 27, 42, 0.08);

  --display: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--muted); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.eyebrow-dark { color: #b07d28; }
.center { text-align: center; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-2); }
.btn-line { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; padding: 9px 20px; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-block { width: 100%; padding: 15px; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 9px; display: block; }
.brand-name { font-family: var(--display); font-weight: 800; color: #fff; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name-sub { font-weight: 600; opacity: 0.7; font-size: 0.9rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.95rem; }
.nav > a:not(.btn):hover { color: #fff; }

/* ----------------------------- Hero ----------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: var(--navy) url("/assets/hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.35) 40%, rgba(13,27,42,0.78) 100%),
    linear-gradient(90deg, rgba(13,27,42,0.7) 0%, rgba(13,27,42,0) 60%);
}
.hero-content { position: relative; padding-top: 90px; padding-bottom: 90px; max-width: 760px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; margin-bottom: 22px; }
.hero-title .accent { color: var(--amber); }
.hero-sub { color: rgba(255,255,255,0.86); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); }
.hero-scroll span {
  display: block; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.5); border-radius: 14px; position: relative;
}
.hero-scroll span::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; background: #fff; border-radius: 2px; animation: scroll 1.6s ease-in-out infinite;
}
@keyframes scroll { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,12px);} 100%{opacity:0;} }

/* ----------------------------- Sections ----------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy h2 { margin-bottom: 22px; }
.about-copy p + p { margin-top: 16px; }
.about-figure img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Values */
.values { background: var(--cream); }
.values-title { margin-bottom: 56px; }
.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--amber);
  font-size: 1.3rem; margin-bottom: 18px;
}
.value-card h3 { color: var(--navy); margin-bottom: 8px; }
.value-card p { font-size: 0.96rem; }

/* ----------------------------- Contact ----------------------------- */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-intro h2 { color: #fff; margin-bottom: 18px; }
.contact-intro p { color: rgba(255,255,255,0.78); }
.contact-points { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-weight: 500; }
.contact-points span { font-size: 1.1rem; }

.contact-form {
  background: var(--paper); border-radius: 18px; padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.85rem; color: var(--navy); margin-bottom: 7px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease; width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,164,73,0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #c0392b; }
#submitBtn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ----------------------------- Footer ----------------------------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,0.7); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { border-radius: 8px; }
.footer-name { font-family: var(--display); font-weight: 700; color: #fff; }
.footer-loc { font-size: 0.9rem; }
.footer-legal { font-size: 0.86rem; }

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 860px) {
  .nav { gap: 16px; }
  .nav > a:not(.btn) { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { order: -1; }
  .value-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .value-cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span::after { animation: none; }
}
