/* ===== MWR Office Suite – Page Styles ===================================== */

.office-hero {
  background: linear-gradient(135deg, #1a4a7a 0%, #0d2d4e 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.office-hero .container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.office-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .85rem;
  margin-bottom: .75rem;
}
.office-hero h1 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin: 0 0 .5rem; font-weight: 700; }
.office-hero p  { opacity: .85; font-size: 1.05rem; margin: 0; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.office-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
@media (max-width: 800px) {
  .office-layout { grid-template-columns: 1fr; }
}

/* ─── Info Cards ─────────────────────────────────────────────────────────── */
.office-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.office-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a4a7a;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.office-card h2 .icon { font-size: 1.15rem; }

/* Contact table */
.office-contact-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.office-contact-table tr td { padding: .45rem .25rem; vertical-align: top; }
.office-contact-table tr td:first-child {
  font-weight: 600;
  color: #374151;
  width: 110px;
  white-space: nowrap;
}
.office-contact-table a { color: #1a4a7a; text-decoration: none; }
.office-contact-table a:hover { text-decoration: underline; }

/* Opening hours table */
.office-hours-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.office-hours-table tr td { padding: .4rem .3rem; border-bottom: 1px solid #f3f4f6; }
.office-hours-table tr:last-child td { border-bottom: none; }
.office-hours-table .day { font-weight: 600; color: #374151; width: 110px; }
.office-hours-table .closed { color: #9ca3af; font-style: italic; }
.office-hours-table .open  { color: #059669; font-weight: 500; }

/* Services list */
.office-services { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.office-services li {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .85rem;
  font-weight: 500;
}

/* ─── Map ────────────────────────────────────────────────────────────────── */
.office-map-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 1.25rem;
}
.office-map-card iframe { display: block; width: 100%; height: 300px; border: none; }
.office-map-link {
  display: block;
  text-align: center;
  padding: .85rem;
  background: #1a4a7a;
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.office-map-link:hover { background: #0d2d4e; }
.office-map-link::before { content: '🗺️  '; }

/* ─── Sidebar stat cards ─────────────────────────────────────────────────── */
.office-stat-card {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: #0c4a6e;
}
.office-stat-card strong { display: block; font-size: 1.4rem; color: #1a4a7a; margin-bottom: .25rem; }

/* ─── Directions ─────────────────────────────────────────────────────────── */
.office-directions { font-size: .9rem; color: #374151; line-height: 1.65; }

/* ─── Source box ─────────────────────────────────────────────────────────── */
.office-source-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #1a4a7a;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: #6b7280;
  margin-top: 1.5rem;
  line-height: 1.5;
}
.office-source-box strong { color: #374151; }

/* ─── Related links ──────────────────────────────────────────────────────── */
.office-related { list-style: none; padding: 0; margin: 0; }
.office-related li { border-bottom: 1px solid #f3f4f6; }
.office-related li:last-child { border-bottom: none; }
.office-related a {
  display: block;
  padding: .65rem .25rem;
  color: #1a4a7a;
  text-decoration: none;
  font-size: .9rem;
  transition: padding-left .15s;
}
.office-related a:hover { padding-left: .5rem; color: #0d2d4e; }
.office-related a::before { content: '→ '; color: #9ca3af; }

/* ─── SEO content area ───────────────────────────────────────────────────── */
.office-seo-content { margin-top: 2rem; }
.office-seo-content h2 { font-size: 1.2rem; color: #1a4a7a; margin-top: 1.5rem; }
.office-seo-content p { color: #374151; line-height: 1.7; }

@media (max-width: 767px) {
  .office-hero {
    padding: 1.5rem 0 1.25rem;
    margin-bottom: 1.2rem;
  }

  .office-hero .container,
  .office-layout {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .office-layout {
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .office-card,
  .office-stat-card {
    padding: 1rem;
    border-radius: 0.8rem;
  }

  .office-card h2 {
    font-size: 1rem;
  }

  .office-contact-table,
  .office-hours-table {
    font-size: 0.88rem;
  }

  .office-contact-table tr td:first-child,
  .office-hours-table .day {
    width: 88px;
    white-space: normal;
  }

  .office-contact-table a,
  .office-directions,
  .office-seo-content p {
    overflow-wrap: anywhere;
  }

  .office-services li {
    font-size: 0.82rem;
    padding: 0.34rem 0.72rem;
  }

  .office-map-card iframe {
    height: 240px;
  }

  .office-map-link {
    min-height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .office-hero-badge {
    font-size: 0.7rem;
  }

  .office-hero p {
    font-size: 0.95rem;
  }

  .office-contact-table tr td,
  .office-hours-table tr td {
    padding: 0.32rem 0.2rem;
  }

  .office-source-box {
    padding: 0.85rem 0.95rem;
  }
}

@media (max-width: 360px) {
  .office-card,
  .office-stat-card {
    padding: 0.85rem;
  }

  .office-contact-table,
  .office-hours-table,
  .office-contact-table tbody,
  .office-hours-table tbody {
    display: block;
    width: 100%;
  }

  .office-contact-table tr,
  .office-hours-table tr {
    display: block;
    border-bottom: 1px solid #eef2f7;
    padding: 0.35rem 0;
  }

  .office-contact-table tr:last-child,
  .office-hours-table tr:last-child {
    border-bottom: 0;
  }

  .office-contact-table tr td,
  .office-hours-table tr td {
    display: block;
    width: 100%;
    padding: 0.16rem 0;
  }

  .office-contact-table tr td:first-child,
  .office-hours-table .day {
    width: 100%;
    font-size: 0.8rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .office-hours-table .open,
  .office-hours-table .closed {
    font-size: 0.88rem;
  }

  .office-map-card iframe {
    height: 210px;
  }
}
