/* ==========================================================================
   Grand Rapids Trolley Co., LLC — shared stylesheet
   Modern, responsive, accessible design system.
   ========================================================================== */

:root {
  --primary: #9e1b1b;
  --primary-dark: #7a1414;
  --primary-deep: #5e0f0f;
  --accent: #e7b10a;
  --accent-soft: #fbeec3;
  --cream: #faf6ef;
  --ink: #2b2b2b;
  --ink-soft: #4a4a4a;
  --muted: #6d6d6d;
  --line: #e4ddd1;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
}

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

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

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

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

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

/* ---------------- Top utility bar ---------------- */
.topbar {
  background: var(--primary-deep);
  color: #f7ecec;
  font-size: 0.88rem;
}

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

.topbar a {
  color: #fbeec3;
  font-weight: 600;
}

.topbar a:hover {
  color: #fff;
}

.topbar .ph {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--primary);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
}

.brand img {
  width: 52px;
  height: auto;
  border-radius: 6px;
}

.brand .brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.15;
  color: #fff;
}

.brand .brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-soft);
  text-transform: uppercase;
}

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

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  display: block;
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.nav-cta a {
  background: var(--accent);
  color: var(--primary-deep);
}

.nav-cta a:hover {
  background: #f7c531;
  color: var(--primary-deep);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  color: #fff;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-deep);
}

.btn-accent:hover {
  background: #f7c531;
  color: var(--primary-deep);
}

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

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

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
}

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: #fff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 760px;
  margin: 1rem auto 1.8rem;
  color: #f7ecec;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.hero .badge-strip {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--accent-soft);
}

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

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

.section-title {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.4rem;
}

.section-title .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ---------------- Intro / about blocks ---------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.intro-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------------- Cards ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card .icon {
  font-size: 1.9rem;
  margin-bottom: 0.6rem;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ---------------- Service detail rows ---------------- */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.service:last-of-type {
  border-bottom: 1px solid var(--line);
}

/* ---------------- Pricing table ---------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

table.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.96rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.table tbody tr:nth-child(even) {
  background: var(--cream);
}

/* ---------------- Fleet cards ---------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

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

.fleet-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.fleet-card .body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fleet-card ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------------- Photo gallery ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------------- FAQ ---------------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--primary-deep);
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
}

/* ---------------- Checklist ---------------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.check-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.55rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------------- Directory list (Grand Rapids Links) ---------------- */
.dir-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.dir-list li {
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.dir-list li:last-child {
  border-bottom: 0;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
  border-radius: var(--radius);
}

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

.cta-banner p {
  max-width: 720px;
  margin: 0 auto 1.6rem;
  color: #f7ecec;
}

/* ---------------- Contact / info cards ---------------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-card .ic-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.info-card .ic-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-deep);
}

/* ---------------- Form ---------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: #fff;
  color: var(--ink);
}

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

.form-field .radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-field .radio-row label {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status.ok {
  display: block;
  background: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #bfe3c9;
}

.form-status.err {
  display: block;
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c6c2;
}

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 1rem 0 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 0.4rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--primary);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--primary-deep);
  color: #e9dede;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

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

.site-footer ul li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: #e9dede;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: #cfbebe;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .intro-grid,
  .service {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    display: none;
    box-shadow: var(--shadow-lg);
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1rem;
  }

  .main-nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand .brand-sub {
    display: none;
  }

  .topbar .container {
    justify-content: center;
    text-align: center;
  }
}

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