/* Market Connect Rentals — A2P Compliance Site */

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

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background: #FFFFFF;
}

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

a {
  color: #1E3A5F;
  text-decoration: underline;
}

a:hover {
  color: #15293f;
}

h1, h2, h3, h4 {
  color: #1E3A5F;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover,
.btn:focus {
  background: #15293f;
  color: #FFFFFF;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  text-decoration: none;
  font-weight: 700;
  color: #1E3A5F;
  font-size: 1.15rem;
  white-space: nowrap;
}

.logo-mark {
  color: #1E3A5F;
}

.primary-nav {
  display: flex;
  gap: 24px;
}

.primary-nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.primary-nav a:hover {
  color: #1E3A5F;
}

.primary-nav a[aria-current="page"] {
  color: #1E3A5F;
  border-bottom-color: #1E3A5F;
}

.header-phone {
  text-decoration: none;
  font-weight: 600;
  color: #1E3A5F;
  white-space: nowrap;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 1.25rem;
  color: #1E3A5F;
  cursor: pointer;
  line-height: 1;
}

/* ----- Hero ----- */
.hero {
  background: #1E3A5F;
  color: #FFFFFF;
  padding: 96px 0;
  text-align: center;
}

.hero h1 {
  color: #FFFFFF;
  font-size: 2.5rem;
  margin-bottom: 0.4em;
}

.hero p.subhead {
  color: #FFFFFF;
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 1.5em;
  opacity: 0.92;
}

.hero .btn {
  background: #FFFFFF;
  color: #1E3A5F;
}

.hero .btn:hover,
.hero .btn:focus {
  background: #F0F0F0;
  color: #1E3A5F;
}

/* ----- Generic Section ----- */
.section {
  padding: 72px 0;
}

.section--tint {
  background: #F8F9FA;
}

.section h2 {
  text-align: center;
  margin-bottom: 1.25em;
}

.section .lead {
  max-width: 820px;
  margin: 0 auto 1.5em;
  text-align: center;
  font-size: 1.05rem;
}

/* ----- Card grid ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
}

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

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

/* ----- Service area pills ----- */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.area-pill {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  color: #1E3A5F;
}

/* ----- About inline section ----- */
.about-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-block .btn {
  margin-top: 16px;
}

/* ----- Footer CTA ----- */
.footer-cta {
  text-align: center;
  padding: 56px 20px;
  background: #F8F9FA;
}

.footer-cta p {
  font-size: 1.15rem;
  margin: 0;
}

/* ----- Compliance / Note box ----- */
.note-box {
  background: #F8F9FA;
  border-left: 4px solid #1E3A5F;
  padding: 20px 24px;
  border-radius: 4px;
  margin: 32px 0;
}

.note-box h3 {
  margin-top: 0;
}

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

/* ----- Footer ----- */
.site-footer {
  background: #1E3A5F;
  color: #FFFFFF;
  padding-top: 56px;
}

.site-footer h3 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}

.site-footer p,
.site-footer li {
  color: #DCE3EC;
}

.site-footer a {
  color: #DCE3EC;
  text-decoration: none;
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

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

.footer-col li {
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ----- Policy pages ----- */
.policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 20px;
}

.policy h1 {
  margin-bottom: 0.2em;
}

.policy .last-updated {
  color: #666666;
  margin-bottom: 2em;
}

.policy h2 {
  margin-top: 2em;
  font-size: 1.4rem;
}

.policy p {
  margin-bottom: 1em;
}

.policy ul {
  margin-bottom: 1em;
}

/* Verbatim compliance block */
.verbatim {
  background: #F8F9FA;
  border-left: 4px solid #1E3A5F;
  padding: 20px 24px;
  border-radius: 4px;
  margin: 1.5em 0;
}

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

/* ----- Contact page ----- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.contact-cards .card {
  text-align: center;
}

.contact-cards h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
  margin-bottom: 0.4em;
}

.contact-cards p {
  font-size: 1.1rem;
  margin: 0;
  color: #1E3A5F;
  font-weight: 600;
}

.contact-cards a {
  color: #1E3A5F;
  text-decoration: none;
}

.chat-callout {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: #333333;
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.45rem; }

  .hero {
    padding: 64px 0;
  }
  .hero h1 { font-size: 1.85rem; }
  .hero p.subhead { font-size: 1rem; }

  .section {
    padding: 40px 0;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .header-inner {
    position: relative;
  }

  .card-grid,
  .card-grid--2,
  .card-grid--4,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
