/* Dunn's Automotive — Athens
   Palette: workshop blue, a signal amber, warm neutrals. */

:root {
  --navy:      #12344b;
  --navy-deep: #0b2233;
  --navy-edge: #24506d;
  --amber:     #e2711d;
  --amber-deep:#ac5310;
  --cream:     #f7f2e9;
  --sand:      #ece2d2;
  --ink:       #1c1b19;
  --muted:     #57514a;
  --white:     #ffffff;
  --wrap:      1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: var(--amber-deep); }

h1, h2 {
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.04;
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 60;
}
.skip:focus { left: 0; }

/* ---- Row one: the name. Row two: the links. ---- */

.topbar {
  background: var(--cream);
  border-bottom: 3px solid var(--amber);
}

.topbar-in {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 12px;
}

.mark {
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1;
}

.mark-town {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.navband { background: var(--navy); }

.navband-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.navband-list a {
  display: block;
  padding: 13px 20px 13px 0;
  margin-right: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.navband-list a:hover,
.navband-list a:focus { color: var(--amber); }

/* ---- First screen ---- */

.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
}

.hero-pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* The photograph is fetched unseen: the scrim never drops below .86,
   so white clears 5:1 even over a white car. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(8,18,28,0.95) 0%,
    rgba(8,18,28,0.90) 45%,
    rgba(8,18,28,0.86) 100%);
}

.hero-in {
  position: relative;
  padding-top: 58px;
  padding-bottom: 58px;
  max-width: var(--wrap);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 7.2vw, 66px);
  max-width: 17ch;
  text-wrap: balance;
}

.hero-sub {
  color: #eadfd0;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 500;
  margin: 20px 0 30px;
  max-width: 34ch;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn-call {
  background: var(--amber);
  color: var(--ink);
  padding: 15px 30px;
  border-radius: 3px;
  box-shadow: 0 2px 0 var(--amber-deep);
}

.btn-call:hover,
.btn-call:focus { background: #f08427; }

.btn-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.82;
}

.btn-number {
  display: block;
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ---- The short version ---- */

.facts { background: var(--sand); }

.facts-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.fact { min-width: 160px; }

.fact-key {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact-val {
  display: block;
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}

.fact-val a { color: var(--navy); text-decoration: none; }
.fact-val a:hover { color: var(--amber-deep); }

/* ---- Hours ---- */

.hours {
  background: var(--cream);
  padding-top: 52px;
  padding-bottom: 52px;
}

.hours h2 {
  font-size: clamp(30px, 5vw, 42px);
  color: var(--navy);
}

.hours-list {
  margin: 26px 0 0;
  max-width: 460px;
  border-top: 2px solid var(--navy);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #ddd2bf;
}

.hours-row dt { font-weight: 600; }
.hours-row dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-row.is-shut dt,
.hours-row.is-shut dd { color: #8a8279; }

/* ---- Ask us ---- */

.ask {
  background: var(--navy);
  color: var(--white);
  padding-top: 54px;
  padding-bottom: 54px;
}

.ask-in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.ask h2 {
  font-size: clamp(30px, 5vw, 42px);
  color: var(--white);
}

.ask-words p {
  color: #dfe7ee;
  margin: 18px 0 0;
  max-width: 44ch;
}

.ask-phone {
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-size: 34px;
  line-height: 1.1;
}

.ask-phone a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 2px solid rgba(226,113,29,0.45);
}
.ask-phone a:hover { color: #f5913b; }

.ask-form {
  background: var(--cream);
  color: var(--ink);
  padding: 24px;
  border-radius: 3px;
  border-top: 5px solid var(--amber);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--navy);
}

.opt { font-weight: 400; color: var(--muted); letter-spacing: 0; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9ae9c;
  border-radius: 2px;
  padding: 11px 12px;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--navy);
}

.field textarea { resize: vertical; }

.btn-send {
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 34px;
  border-radius: 3px;
  width: 100%;
}

.btn-send:hover,
.btn-send:focus { background: var(--navy-edge); }

/* ---- Foot ---- */

.foot {
  background: var(--navy-deep);
  color: #dcd4c8;
  padding-top: 34px;
  padding-bottom: 34px;
}

.foot-name {
  font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 8px;
}

.foot-line { margin: 2px 0; font-size: 15px; }
.foot-line a { color: var(--amber); text-decoration: none; }
.foot-line a:hover { color: #f5913b; }

/* ---- The phone's call button: fixed, never in a menu ---- */

.callbar { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 68px; }

  .callbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--amber);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-family: 'Barlow Condensed', 'Inter', Arial Narrow, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 14px rgba(11,34,51,0.28);
  }
}

@media (min-width: 861px) {
  .ask-in { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .hero-in { padding-top: 92px; padding-bottom: 92px; }
  .btn-send { width: auto; }
}

@media (max-width: 420px) {
  .mark { font-size: 25px; }
  .btn-call { display: block; text-align: center; }
}
