/* Dirt City Group Inc. — site styles
   Palette: navy #1e2a4a, slate #4a5468, off-white #f7f7f5, accent gold #c99a4b
*/

:root {
  --navy: #1e2a4a;
  --navy-dark: #141d33;
  --slate: #4a5468;
  --paper: #f7f7f5;
  --white: #ffffff;
  --accent: #c99a4b;
  --border: #e3e3df;
  --radius: 6px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

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

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.88; }

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

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

.hero {
  padding: 88px 0 64px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

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

.hero-visual {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #33456f 55%, var(--accent) 130%);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg { width: 60%; max-width: 420px; opacity: 0.92; }

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

section { padding: 72px 0; }
section.alt { background: var(--paper); }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-heading p { color: var(--slate); margin: 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Pricing cards ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--navy);
  box-shadow: 0 12px 32px rgba(30, 42, 74, 0.12);
  position: relative;
}

.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 3px;
}

.price-card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.price-card .price { font-size: 2.6rem; font-weight: 700; margin: 8px 0 2px; }
.price-card .price span.unit { font-size: 1rem; font-weight: 500; color: var(--slate); }
.price-card .cadence { color: var(--slate); font-size: 0.85rem; margin-bottom: 18px; }
.price-card .desc { color: var(--slate); font-size: 0.92rem; margin-bottom: 24px; }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
}
.price-card li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.service-card {
  padding: 8px 0;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 18px;
}

.service-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.service-card p { color: var(--slate); margin: 0; font-size: 0.94rem; }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.testimonial-card .stars { color: var(--accent); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; margin: 0 0 20px; }
.testimonial-card .attribution { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .attribution span { display: block; font-weight: 400; color: var(--slate); font-size: 0.85rem; }

.placeholder-note {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  background: #fff7e6;
  border: 1px solid #f0d99b;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.88rem;
  color: #6b5423;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 { margin-top: 0; }
.contact-info .detail { margin-bottom: 20px; }
.contact-info .detail .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 4px; }
.contact-info .detail .value { font-size: 1.05rem; font-weight: 600; }

form.stacked-form { display: flex; flex-direction: column; gap: 18px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.newsletter-box {
  margin-top: 20px;
  padding: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}
.newsletter-box h3 { margin-top: 0; }
.newsletter-box p { color: #cbd3e3; font-size: 0.92rem; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
}
.newsletter-form button {
  flex: 0 0 auto;
}

.form-success {
  display: none;
  background: #e7f6ec;
  border: 1px solid #b6e3c4;
  color: #235c34;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { margin-top: 0; text-transform: uppercase; }
.cta-band p { color: #cbd3e3; max-width: 520px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); }
.cta-band .btn-primary:hover { opacity: 0.9; }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; color: var(--slate); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---------- Page header (interior pages) ---------- */

.page-header {
  padding: 64px 0 40px;
  text-align: center;
}
.page-header h1 { text-transform: uppercase; margin: 0 0 12px; font-size: clamp(2rem, 5vw, 2.8rem); }
.page-header p { color: var(--slate); max-width: 560px; margin: 0 auto; }
