/* ==========================================================================
   DirectLine Pavement Services — Global Stylesheet
   Mobile-first. No build step. Edit variables below to adjust brand colors.
   ========================================================================== */

:root {
  --color-black: #141414;
  --color-gold: #D9A400;
  --color-gold-dark: #B58600;
  --color-white: #FFFFFF;
  --color-offwhite: #F7F5F1;
  --color-gray-100: #EFEDE9;
  --color-gray-300: #D8D5CF;
  --color-gray-600: #5A5A5A;
  --color-border: #E3E0D9;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(20, 20, 20, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-black); text-decoration-color: var(--color-gold); text-underline-offset: 3px; }
a:hover { color: var(--color-gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
button { font-family: inherit; }

/* Visible focus ring everywhere — accessibility requirement */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-gold-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

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

.section { padding: 3rem 0; }
.section-alt { background: var(--color-offwhite); }
.section-dark { background: var(--color-black); color: var(--color-white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark a { color: var(--color-gold); }

.eyebrow {
  display: inline-block;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}
.section-dark .eyebrow { color: var(--color-gold); }

.section-intro { max-width: 720px; }
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Road motif divider ---------- */
.road-divider {
  height: 6px;
  width: 72px;
  background-image: repeating-linear-gradient(
    to right,
    var(--color-gold) 0, var(--color-gold) 24px, transparent 24px, transparent 38px
  );
  margin: 0.75rem 0 1.5rem;
  border-radius: 3px;
}
.section-intro.center .road-divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.1;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}
.btn-gold:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-black); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-black); }
.btn-outline-dark {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn-outline-dark:hover { background: var(--color-black); color: var(--color-white); }
.btn-block { width: 100%; }
.btn-lg { padding: 1em 1.75em; font-size: 1.08rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}
.brand img { height: 46px; width: auto; border-radius: 8px; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-black);
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
}
.brand-text-light { color: var(--color-white); }
.brand-text-light small { color: var(--color-gold); }

.footer-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.footer-brand-lockup img { height: 58px; width: auto; border-radius: 10px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-call {
  display: none;
}
.nav-toggle {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  padding: 0.55em 0.7em;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}
.main-nav.open { display: flex; }
.main-nav a {
  display: block;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.main-nav a[aria-current="page"] { color: var(--color-gold-dark); }
.main-nav .nav-cta { padding: 0.9rem 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  position: relative;
  z-index: 2;
}
.hero-stripe {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    100deg,
    transparent, transparent 46px, rgba(217, 164, 0, 0.14) 46px, rgba(217, 164, 0, 0.14) 58px
  );
  z-index: 1;
}
.hero h1 { font-size: 2.15rem; max-width: 18ch; }
.hero .lede { font-size: 1.1rem; color: var(--color-gray-300); max-width: 55ch; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  font-size: 0.92rem;
  color: var(--color-gray-300);
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.hero-badges li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-phone {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-gray-300);
}
.hero-phone a { color: var(--color-gold); font-weight: 700; font-size: 1.15rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4rem; }
.card .icon-badge { margin-bottom: 0.85rem; }
.card a.card-link {
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Why-choose-us list ---------- */
.reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.reasons li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.reasons .icon-badge { margin-top: 0.1rem; }
.reasons h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.reasons p { margin: 0; color: var(--color-gray-600); }

/* ---------- Short checklist (intro highlights) ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
  max-width: 560px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.checklist li::before {
  content: "✓";
  color: var(--color-gold-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Service area list ---------- */
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
}
@media (min-width: 640px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.area-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* ---------- Tables (ADA page) ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.65em 0.9em;
  border: 1px solid var(--color-border);
}
th { background: var(--color-black); color: var(--color-white); font-weight: 700; }
tr:nth-child(even) td { background: var(--color-offwhite); }

/* ---------- Callout / notice boxes ---------- */
.callout {
  border-left: 4px solid var(--color-gold);
  background: var(--color-offwhite);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout strong { display: block; margin-bottom: 0.25em; }

.coming-soon {
  border: 2px dashed var(--color-gray-300);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-gray-600);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-grid .two-col { grid-template-columns: 1fr 1fr; display: grid; gap: 1rem; } }
label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.75em 0.85em;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-black);
}
textarea { min-height: 130px; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.field-hint { font-size: 0.85rem; color: var(--color-gray-600); margin-top: 0.3rem; }
.required-mark { color: var(--color-gold-dark); }
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  background: var(--color-black);
  border-top: 3px solid var(--color-gold);
  padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.6rem;
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
}
@media (min-width: 960px) {
  .mobile-call-bar { display: none; }
}
body { padding-bottom: 74px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-gray-300);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { color: var(--color-gray-300); max-width: 34ch; }
.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--color-gray-300); text-decoration: none; }
.site-footer a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid #2b2b2b;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--color-black);
  color: var(--color-white);
  padding: 2.5rem 0;
}
.page-header h1 { color: var(--color-white); margin-bottom: 0.5rem; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-gray-300);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--color-gray-300); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.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;
}

/* ---------- Larger screens ---------- */
@media (min-width: 780px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2.1rem; }
  h3 { font-size: 1.35rem; }
  .hero h1 { font-size: 3rem; }
  .hero .lede { font-size: 1.25rem; }
  .section { padding: 4.5rem 0; }
  .header-inner { padding: 0.85rem 0; }
  .header-call { display: inline-flex; }
  .nav-toggle { display: none; }
  .main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    border-top: none;
    background: transparent;
    gap: 0.25rem;
  }
  .main-nav a {
    border-bottom: none;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius);
  }
  .main-nav a:hover { background: var(--color-offwhite); }
  .main-nav .nav-cta { padding-left: 0.5rem; }
  .brand img { height: 52px; }
}

@media (min-width: 1080px) {
  .hero h1 { font-size: 3.4rem; }
}

/* Print */
@media print {
  .site-header, .mobile-call-bar, .site-footer { display: none; }
}
