/* =========================================================
   [Your Business Name] — Junk Removal, Tyler TX
   Shared stylesheet. Mobile-first, no framework.
   ========================================================= */

:root {
  --color-primary: #1c3d5a;
  --color-primary-dark: #12293e;
  --color-primary-light: #2f5b82;
  --color-accent: #f97316;
  --color-accent-dark: #c2570a;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f8;
  --color-text: #1f2933;
  --color-text-muted: #5b6b79;
  --color-border: #dde3e8;
  --color-danger: #b33a2e;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1160px;
  --radius: 8px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
}

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; }

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

.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: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--color-primary);
  color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.85rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.topbar a {
  color: #fff;
  font-weight: 700;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  color: var(--color-accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.55em 0.9em;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-toggle__icon {
  display: inline-block;
  width: 1.2em;
}

.main-nav {
  width: 100%;
  flex-basis: 100%;
  display: none;
}

.main-nav.is-open {
  display: block;
}

.main-nav__list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border);
}

.main-nav__list > li {
  border-bottom: 1px solid var(--color-border);
}

.main-nav__list a {
  display: block;
  padding: 0.85em 0.25em;
  color: var(--color-text);
  font-weight: 600;
}

.main-nav__list a[aria-current="page"] {
  color: var(--color-primary);
}

.main-nav__cta {
  display: none;
}

/* ---------- Services dropdown ---------- */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0.85em 0.25em;
  color: var(--color-text);
  font-weight: 600;
}

.dropdown-toggle__caret {
  margin-left: 0.5em;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.has-dropdown.is-open .dropdown-toggle__caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1rem;
  display: none;
}

.has-dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-top: 1px solid var(--color-border);
}

.dropdown-menu a {
  display: block;
  padding: 0.75em 0.25em;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  overflow: hidden;
}

.hero__overlay {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  max-width: 680px;
}

.hero--page {
  min-height: 200px;
  display: flex;
  align-items: center;
}

.hero--page .hero__overlay {
  padding: 2.5rem 0;
}

.hero h1 {
  color: #fff;
  font-size: 2.2rem;
}

.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__phone svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__lede {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.85);
}

.breadcrumb a {
  color: #fff;
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section__header p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card__icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.card__body h3 {
  margin-bottom: 0.4em;
}

.card__body p {
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card__link {
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ---------- Service detail sections (Services page) ---------- */
.service-detail {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-of-type {
  border-bottom: none;
}

.service-detail ul {
  color: var(--color-text-muted);
}

.tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ---------- Trust badges ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.badge {
  padding: 1.25rem 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.badge__icon {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.6rem;
  color: var(--color-primary);
}

.badge h3 {
  font-size: 1rem;
  margin-bottom: 0.25em;
}

.badge p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-inline: auto;
}

.cta-band .btn-primary {
  margin-top: 0.5rem;
}

/* ---------- Service area ---------- */
.service-area__list {
  columns: 2;
  color: var(--color-text-muted);
  list-style: none;
  padding: 0;
}

.service-area__list li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 0.5em;
}

/* ---------- Layout with sidebar (Home / Services / Contact) ---------- */
.layout-with-sidebar {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}

/* ---------- Quote form (repeating sidebar widget) ---------- */
.quote-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
}

.quote-form__eyebrow {
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
}

.quote-form h2 {
  font-size: 1.35rem;
  margin-top: 0.25rem;
}

.quote-form__lede {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- Forms ---------- */
.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35em;
  font-size: 0.92rem;
}

.form-field .hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form-required {
  color: var(--color-danger);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.1rem;
}

/* ---------- About page ---------- */
.values-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

/* ---------- Contact page ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-info__icon {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-info__item h3 {
  margin-bottom: 0.15em;
  font-size: 1.05rem;
}

.contact-info__item p {
  margin: 0;
  color: var(--color-text-muted);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table th {
  text-align: left;
  color: var(--color-primary-dark);
  padding-bottom: 0.4rem;
}

.hours-table td,
.hours-table th {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

/* ---------- Floating click-to-call button ---------- */
.float-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.9em 1.1em;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 0.95rem;
}

.float-call:hover,
.float-call:focus {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.float-call svg {
  width: 1.3rem;
  height: 1.3rem;
  flex-shrink: 0;
}

.float-call__label {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 6rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

.footer-grid h2 {
  color: #fff;
  font-size: 1.1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   Responsive breakpoints
   ========================================================= */
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.75rem; }
  .float-call__label { display: inline; }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .main-nav {
    display: block;
    width: auto;
    flex-basis: auto;
  }

  .main-nav__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: none;
    margin: 0;
  }

  .main-nav__list > li {
    border-bottom: none;
  }

  .main-nav__list > li > a {
    padding: 0.4em 0.1em;
  }

  .main-nav__cta {
    display: inline-block;
    margin-left: 0.5rem;
  }

  .dropdown-toggle {
    padding: 0.4em 0.1em;
    width: auto;
  }

  .has-dropdown {
    display: flex;
    align-items: center;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  .has-dropdown.is-open .dropdown-menu,
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    border-top: none;
  }

  .dropdown-menu a {
    border-radius: calc(var(--radius) - 2px);
    padding: 0.6em 0.75em;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus {
    background: var(--color-bg-alt);
    text-decoration: none;
  }

  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .service-area__list { columns: 3; }
  .layout-with-sidebar { grid-template-columns: 1.6fr 1fr; }
}
