/* ============================================================
   RED TAIL MULTISERVICE, LLC — Main Stylesheet
   Brand Colors: Navy #1B2A4A | Red #C0392B | White #FFFFFF
   Accent: Gold #C9A84C | Light Gray #F5F5F5
   ============================================================ */

/* Design continuity: heritage content uses calm navy fields, sand labels, and restrained red interaction accents; service-first clarity remains primary. */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #1B2A4A;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1B2A4A;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: #F5F7FA; }
.section-dark { background: #1B2A4A; color: #fff; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.text-center { text-align: center; }
.text-red { color: #C0392B; }
.text-gold { color: #C9A84C; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}
.btn-primary:hover { background: #a93226; border-color: #a93226; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,57,43,0.3); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.btn-navy {
  background: #1B2A4A;
  color: #fff;
  border-color: #1B2A4A;
}
.btn-navy:hover { background: #142038; }

.btn-outline {
  background: transparent;
  color: #C0392B;
  border-color: #C0392B;
}
.btn-outline:hover { background: #C0392B; color: #fff; }

.btn-lg { padding: 18px 42px; font-size: 1.1rem; }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }

/* --- Header / Navigation --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1B2A4A;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.header-logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-menu a:hover, .nav-menu a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Legacy visibility: warm heritage accent with a restrained interactive response. */
.nav-menu a.legacy-link {
  color: #E0BF72;
  text-decoration: underline;
  text-decoration-color: rgba(224,191,114,0.46);
  text-underline-offset: 4px;
  transition: color 170ms ease-out, background-color 170ms ease-out, text-decoration-color 170ms ease-out;
}
.nav-menu a.legacy-link:hover,
.nav-menu a.legacy-link:focus-visible {
  color: #fff;
  background: rgba(192,57,43,0.24);
  text-decoration-color: #C0392B;
  outline: 2px solid #E0BF72;
  outline-offset: 2px;
}

.nav-cta {
  background: #C0392B !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 4px;
}
.nav-cta:hover { background: #a93226 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1B2A4A;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-medical-courier.png');
  background-size: cover;
  background-position: right 20% top 10%;
  opacity: 1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,42,74,0.88) 0%, rgba(27,42,74,0.72) 50%, rgba(27,42,74,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #C9A84C;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.badge-icon { font-size: 1rem; }

/* --- Division Split Cards --- */
.divisions { padding: 80px 0; }
.divisions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.division-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.division-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }

.division-img {
  height: 280px;
  overflow: hidden;
  position: relative;
}
.division-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s;
}
.division-card:hover .division-img img { transform: scale(1.04); }

.division-body {
  padding: 32px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.division-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 10px;
}
.division-body h3 { margin-bottom: 12px; }
.division-body p { color: #4a5568; flex: 1; }
.division-body .btn { margin-top: 24px; align-self: flex-start; }

/* --- Trust / Credentials Bar --- */
.trust-bar {
  background: #1B2A4A;
  padding: 32px 0;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
}
.trust-icon {
  width: 36px;
  height: 36px;
  background: rgba(192,57,43,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border-top: 4px solid #C0392B;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); transform: translateY(-3px); }

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.service-card h4 { margin-bottom: 10px; }
.service-card p { color: #4a5568; font-size: 0.95rem; margin: 0; }

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid #e8ecf0;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: #C0392B;
  box-shadow: 0 8px 40px rgba(192,57,43,0.15);
  transform: scale(1.03);
}
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.pricing-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 8px;
}
.pricing-card h3 { margin-bottom: 4px; }
.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1B2A4A;
  margin: 16px 0 4px;
  line-height: 1;
}
.pricing-unit {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 24px;
}
.pricing-features {
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.92rem;
  color: #4a5568;
}
.pricing-features li::before {
  content: '✓';
  color: #C0392B;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pricing-card .btn { width: 100%; }

/* --- About / Owner Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.about-photo img { width: 100%; height: 400px; object-fit: cover; object-position: center top; }

.credential-list { margin: 24px 0; }
.credential-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf0;
  font-size: 0.95rem;
}
.credential-check {
  width: 24px;
  height: 24px;
  background: #C0392B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Service Area Map Section --- */
.service-area {
  background: linear-gradient(135deg, #1B2A4A 0%, #2c4070 100%);
  color: #fff;
  padding: 80px 0;
}
.service-area h2 { color: #fff; }
.service-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.service-area-map {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  height: 380px;
}
.service-area-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(30%) contrast(1.1);
}
.coverage-list { margin-top: 24px; }
.coverage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.coverage-dot {
  width: 8px;
  height: 8px;
  background: #C0392B;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #C0392B 0%, #922b21 100%);
  padding: 72px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Proof of Reliability Trial Banner --- */
.trial-banner {
  background: #F5F7FA;
  border-left: 5px solid #C9A84C;
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 40px 0;
}
.trial-banner h4 { color: #C9A84C; margin-bottom: 6px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.trial-banner p { margin: 0; color: #4a5568; font-size: 0.95rem; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: #C0392B;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h4 { margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: #718096; }
.contact-info-item p { margin: 0; font-size: 1rem; font-weight: 600; }
.contact-info-item a { color: #C0392B; }

/* --- Footer --- */
#site-footer {
  background: #0f1a2e;
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-col ul li a.legacy-link--footer {
  color: #E0BF72;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(224,191,114,0.46);
  text-underline-offset: 4px;
  transition: color 170ms ease-out, text-decoration-color 170ms ease-out;
}
.footer-col ul li a.legacy-link--footer:hover,
.footer-col ul li a.legacy-link--footer:focus-visible {
  color: #fff;
  text-decoration-color: #C0392B;
  outline: 2px solid #E0BF72;
  outline-offset: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }
.footer-vet-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: #C9A84C;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 20px;
}

/* --- About-page Red Tail Legacy teaser --- */
.legacy-teaser {
  background: #1B2A4A;
  border-top: 4px solid #C0392B;
  border-bottom: 1px solid rgba(201,168,76,0.34);
  color: #fff;
  padding: 46px 0;
}
.legacy-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}
.legacy-teaser-kicker {
  display: block;
  color: #E0BF72;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legacy-teaser h2 {
  color: #fff;
  margin-bottom: 10px;
}
.legacy-teaser p {
  color: rgba(255,255,255,0.80);
  max-width: 720px;
  margin: 0;
  line-height: 1.7;
}
.legacy-teaser-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 2px solid #E0BF72;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 170ms ease-out, border-color 170ms ease-out, transform 170ms ease-out;
}
.legacy-teaser-link:hover {
  color: #E0BF72;
  border-color: #C0392B;
  transform: translateX(3px);
}
.legacy-teaser-link:focus-visible {
  color: #fff;
  outline: 2px solid #E0BF72;
  outline-offset: 5px;
  border-color: #C0392B;
}

/* --- Page Hero (inner pages) --- */
/* RTM visual rule: real service imagery lives on the right; the left remains dark and calm for clear white copy. */
.page-hero {
  background-color: #1B2A4A;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 80px 0 64px;
  color: #fff;
}
.page-hero--medical {
  background-image:
    linear-gradient(90deg, rgba(10, 25, 50, 0.98) 0%, rgba(14, 34, 66, 0.96) 42%, rgba(18, 42, 79, 0.67) 69%, rgba(18, 42, 79, 0.42) 100%),
    url("../images/rtm-medical-courier-hero-2026-07-19.png");
}
.page-hero--senior {
  background-image:
    linear-gradient(90deg, rgba(12, 28, 53, 0.98) 0%, rgba(19, 43, 75, 0.96) 42%, rgba(25, 53, 84, 0.68) 69%, rgba(25, 53, 84, 0.42) 100%),
    url("../images/rtm-senior-errands-hero-2026-07-19.png");
}
.page-hero h1 { color: #fff; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(4, 15, 35, 0.36); }
.page-hero p { color: rgba(255,255,255,0.88); font-size: 1.1rem; max-width: 600px; text-shadow: 0 2px 18px rgba(4, 15, 35, 0.30); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-hero--medical,
  .page-hero--senior { background-position: 70% center; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #1B2A4A; padding: 16px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 16px; border-radius: 6px; }
  .nav-toggle { display: flex; }

  .divisions-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { height: 300px; }
  .service-area-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legacy-teaser { padding: 38px 0; }
  .legacy-teaser-inner { align-items: flex-start; flex-direction: column; gap: 22px; }
  .legacy-teaser-link { min-width: 188px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
  .trust-divider { display: none; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}


/* Audit remediation: 44px minimum mobile navigation target. */
@media (max-width: 768px) {
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }
}
