/* WE Rolloff of Levelland LLC — shared styles
   Palette pulled from the company logo: parchment cream, sunset rust/maroon,
   windmill teal, cotton-gold. Display type is a western woodtype face
   (Rye) to match the hand-lettered logo; body copy stays plain and legible. */

@import url('https://fonts.googleapis.com/css2?family=Rye&family=Karla:wght@400;500;700&display=swap');

:root {
  --cream: #F0EAD6;
  --cream-white: #FBF7EC;
  --charcoal: #2A2018;
  --rust: #A8291F;
  --rust-dark: #7E1E17;
  --teal: #1B8489;
  --teal-dark: #146467;
  --mustard: #D9A441;
  --maroon: #5E1919;
  --line: rgba(42, 32, 24, 0.15);

  --display: 'Rye', serif;
  --body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--rust-dark); }
h3 { font-size: 1.25rem; color: var(--teal-dark); }

p { max-width: 62ch; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream-white);
  border-bottom: 3px solid var(--rust);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--rust-dark);
  line-height: 1.1;
}

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--charcoal);
  padding: 10px 14px;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--teal);
  color: var(--cream-white);
}

.main-nav a.active {
  color: var(--rust-dark);
  border-bottom: 3px solid var(--rust);
  border-radius: 3px 3px 0 0;
}

/* ---------- Star divider (nods to the Texas star in the logo) ---------- */

.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 0;
  color: var(--teal);
  font-size: 0.9rem;
}

.star-divider::before,
.star-divider::after {
  content: "";
  height: 1px;
  width: 72px;
  background: var(--line);
}

/* ---------- Hero bands ---------- */

.hero {
  background: linear-gradient(120deg, var(--mustard) 0%, var(--rust) 48%, var(--maroon) 100%);
  color: var(--cream-white);
  padding: 64px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { color: var(--cream-white); text-shadow: 0 2px 0 rgba(0,0,0,0.18); }

.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--cream-white);
}

.hero-logo {
  background: var(--cream);
  padding: 14px;
  border: 3px solid var(--charcoal);
  border-radius: 6px;
  transform: rotate(-1.5deg);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.18);
}

.hero-small {
  padding: 46px 0 40px;
}

.hero-small .container { max-width: 760px; }
.hero-small h1 { color: var(--cream-white); }
.hero-small p { color: var(--cream-white); }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--charcoal);
  color: var(--cream-white);
}

.btn-primary:hover { box-shadow: 4px 4px 0 rgba(0,0,0,0.25); }

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

.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Badge stamp ---------- */

.badge-stamp {
  display: inline-block;
  border: 3px dashed var(--charcoal);
  border-radius: 50%;
  width: 190px;
  height: 190px;
  padding: 20px;
  text-align: center;
  font-family: var(--display);
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--charcoal);
  background: var(--cream);
  transform: rotate(4deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Sections ---------- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--cream-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.section-head p { margin: 0 auto; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--cream);
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  padding: 26px 20px;
  text-align: center;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 auto 14px;
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--cream-white);
  border-top: 4px solid var(--rust);
  border-radius: 4px;
  padding: 24px 22px;
  box-shadow: 3px 3px 0 rgba(42,32,24,0.08);
}

.card p:last-child { margin-bottom: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--maroon);
  color: var(--cream-white);
  text-align: center;
  padding: 48px 24px;
}

.cta-banner h2 { color: var(--cream-white); }

.cta-phone {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--mustard);
  text-decoration: none;
  display: inline-block;
  margin: 6px 0 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 44px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-grid h4 {
  font-family: var(--display);
  color: var(--mustard);
  font-weight: 400;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.footer-grid p, .footer-grid a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(240,234,214,0.18);
  padding-top: 18px;
  font-size: 0.85rem;
  color: rgba(240,234,214,0.7);
  text-align: center;
}

/* ---------- Contact page ---------- */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.contact-card {
  background: var(--cream-white);
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  padding: 24px;
}

.contact-card .role {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contact-card .name {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--rust-dark);
  margin-bottom: 10px;
}

.contact-card a { text-decoration: none; font-weight: 700; }
.contact-card a:hover { color: var(--rust); }

.contact-card .line { margin: 4px 0; }

.form-wrap {
  background: var(--cream-white);
  border: 2px solid var(--charcoal);
  border-radius: 8px;
  padding: 34px;
  max-width: 680px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  color: var(--charcoal);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-note {
  font-size: 0.88rem;
  color: var(--charcoal);
  opacity: 0.75;
  margin-top: 14px;
}

.form-success {
  display: none;
  background: var(--teal);
  color: var(--cream-white);
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-weight: 700;
}

.form-success.show { display: block; }

/* ---------- About / Rules page ---------- */

.story {
  max-width: 700px;
  margin: 0 auto;
}

.rules-box {
  background: var(--cream-white);
  border: 3px solid var(--rust);
  border-radius: 8px;
  padding: 34px;
  max-width: 900px;
  margin: 0 auto;
}

.rules-box > h2 {
  text-align: center;
  margin-bottom: 6px;
}

.rules-sub {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 28px;
  opacity: 0.85;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.no-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--cream-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.rules-item-title { font-weight: 700; }
.rules-item-ex { font-size: 0.9rem; opacity: 0.75; margin-top: 2px; }

.rules-callout {
  margin-top: 30px;
  text-align: center;
  background: var(--mustard);
  color: var(--charcoal);
  padding: 16px 18px;
  border-radius: 6px;
  font-weight: 700;
}

/* ---------- Towns served strip ---------- */

.towns-strip {
  background: var(--cream-white);
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.towns-strip .container {
  max-width: 900px;
}

.towns-strip h3 {
  text-align: center;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  opacity: 0.55;
  margin: 0 0 10px;
}

.towns-strip p {
  max-width: none;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--charcoal);
  opacity: 0.6;
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-logo { justify-self: center; max-width: 320px; }
  .badge-stamp { margin: 0 auto; }
  .steps, .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .rules-list { grid-template-columns: 1fr; }
  .cta-row { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
