/* ============================================
   AHEA — Absolute Heavy Equipment Appraisals
   ============================================ */

:root {
  --navy: #0A2540;
  --navy-soft: #173655;
  --terra: #E07856;
  --terra-deep: #C45F3D;
  --teal: #1B5E70;
  --cream: #F8F7F4;
  --cream-2: #F1EEE7;
  --white: #FFFFFF;
  --ink: #1A1A1A;
  --slate: #525B6B;
  --slate-light: #8A93A1;
  --border: #E5E1D8;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04), 0 2px 8px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.06), 0 12px 32px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.14);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: clamp(72px, 10vw, 120px) 0; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub {
  margin-top: 14px;
  color: var(--slate);
  font-size: 1.05rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; color: var(--navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin-bottom: 18px;
}

.accent-text { color: var(--terra-deep); font-style: italic; }

p { color: var(--slate); }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.18);
}
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-ghost {
  color: var(--navy);
  background: transparent;
  padding: 14px 18px;
}
.btn-ghost:hover { color: var(--terra-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); }
.brand-sub { font-size: 0.72rem; color: var(--slate); letter-spacing: 0.04em; }

.primary-nav { display: flex; gap: 30px; }
.primary-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.primary-nav a:hover { color: var(--terra-deep); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }

.header-cta { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--pad-x) 24px;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.mobile-nav a.btn { border-bottom: 0; margin-top: 12px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 9vw, 112px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 110% -10%, rgba(224, 120, 86, 0.10), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(27, 94, 112, 0.10), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy h1 { margin: 4px 0 22px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.hero-proof {
  list-style: none;
  padding: 0;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero-proof li { display: flex; flex-direction: column; gap: 4px; }
.hero-proof strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1;
}
.hero-proof span { font-size: 0.85rem; color: var(--slate); }

.hero-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.photo-frame {
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream-2);
  box-shadow:
    0 2px 4px rgba(10, 37, 64, 0.06),
    0 12px 24px rgba(10, 37, 64, 0.10),
    0 36px 80px rgba(10, 37, 64, 0.22);
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.photo-caption {
  text-align: center;
  display: flex;
  flex-direction: column;
}
.caption-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}
.caption-role { font-size: 0.85rem; color: var(--slate); letter-spacing: 0.02em; }

/* ---------- About ---------- */
.about { background: var(--cream-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-body p + p { margin-top: 18px; }
.about-body p { font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(10, 37, 64, 0.12);
}
.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--terra-deep);
  border-radius: 12px;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.96rem; }

/* ---------- Why AHEA ---------- */
.why { background: var(--navy); color: var(--cream); }
.why .eyebrow { color: var(--terra); }
.why h2 { color: var(--white); }
.why p { color: rgba(248, 247, 244, 0.78); }
.why-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.why-copy > p { max-width: 580px; margin-top: 10px; font-size: 1.05rem; }
.value-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 28px;
}
.value-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.value-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--terra);
  border-top: 1px solid rgba(248, 247, 244, 0.2);
  padding-top: 8px;
  line-height: 1;
}
.value-list h4 { color: var(--white); margin-bottom: 6px; font-size: 1.05rem; }
.value-list p { font-size: 0.95rem; color: rgba(248, 247, 244, 0.7); }

.why-card {
  background: linear-gradient(180deg, var(--navy-soft), #102f4f);
  border: 1px solid rgba(248, 247, 244, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: sticky;
  top: 100px;
}
.why-quote {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.25;
}
.why-attribution {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(248, 247, 244, 0.72);
  line-height: 1.55;
}
.why-cta { margin-top: 28px; background: var(--terra); color: var(--navy); }
.why-cta:hover { background: var(--terra-deep); color: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy > p { max-width: 460px; margin-top: 12px; }
.contact-list {
  list-style: none; padding: 0;
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate-light);
  font-weight: 600;
}
.contact-list a { color: var(--navy); font-weight: 500; border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.contact-list a:hover { border-color: var(--terra); }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(10, 37, 64, 0.08);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form .btn { justify-self: start; margin-top: 6px; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--teal); }
.form-status.is-error { color: var(--terra-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(248, 247, 244, 0.7);
  padding: 48px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: rgba(248, 247, 244, 0.55); }
.footer-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
}
.footer-nav a { font-size: 0.92rem; color: rgba(248, 247, 244, 0.75); }
.footer-nav a:hover { color: var(--terra); }
.footer-meta { font-size: 0.82rem; color: rgba(248, 247, 244, 0.55); text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-photo { order: -1; }
  .why-card { position: static; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { flex-wrap: wrap; }
  .footer-meta { text-align: center; }
}

@media (max-width: 760px) {
  .primary-nav,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-proof { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .service-card { padding: 26px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
