/* ============================================================
   WORDPRESS.CSS — RoadSafe Traffic Planning
   Styles for markup that only exists in the WordPress build:
   menu wrappers, the server-rendered quote form, blog and archive
   layouts, widgets, pagination, comments and the admin bar offset.
   Loads after theme.css and inherits its custom properties.
============================================================ */

/* ------------------------------------------------------------
   Navigation wrapper (menu + CTA button share one flex group)
------------------------------------------------------------ */
.nav__group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__cta {
  padding: 0.5rem 1.3rem;
  font-size: 0.875rem;
  min-height: 40px;
}

/* Mobile overlay: links are wrapped in a <nav>, so reset its box */
.nav__mobile-menu > nav {
  display: block;
  width: 100%;
}

.nav__mobile-list {
  display: block;
}

/* ------------------------------------------------------------
   Breadcrumbs
------------------------------------------------------------ */
.breadcrumbs {
  background: var(--grey-light);
  border-bottom: 1px solid var(--grey-border);
  padding: 0.7rem 0;
  font-size: 0.8125rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(74, 74, 74, 0.75);
}

.breadcrumbs__item a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.breadcrumbs__item a:hover {
  color: var(--orange);
}

.breadcrumbs__item [aria-current="page"] {
  font-weight: 600;
  color: var(--grey-mid);
}

.breadcrumbs__sep {
  color: rgba(74, 74, 74, 0.35);
}

/* ------------------------------------------------------------
   Layout helpers
------------------------------------------------------------ */
.container--narrow {
  max-width: 820px;
}

.page-content-section,
.post-list-section {
  background: var(--white);
  padding: 4.5rem 0 5.5rem;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

/* ------------------------------------------------------------
   Home preview card price line
------------------------------------------------------------ */
.preview-card__price {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   About page featured image
------------------------------------------------------------ */
.about-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.about-intro__text .entry-content > p:last-of-type {
  margin-bottom: 1.75rem;
}

/* ------------------------------------------------------------
   Services page extras
------------------------------------------------------------ */
.services-page__editor {
  max-width: 820px;
  margin: 3rem auto 0;
}

.hire-banner__cta {
  margin-top: 2rem;
  text-align: center;
}

/* ------------------------------------------------------------
   Quote form: honeypot + server-side notices
------------------------------------------------------------ */
.rstp-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 7px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.form-notice--error {
  background: #fdecea;
  border: 1.5px solid #bf3b2d;
  border-left: 5px solid #bf3b2d;
  color: #8a2a1f;
}

.form-notice i {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.btn--submit {
  width: 100%;
}

.btn--submit.is-sending {
  opacity: 0.65;
  cursor: progress;
}

.btn--submit:disabled {
  pointer-events: none;
}

.form-label abbr[title] {
  color: var(--orange);
  text-decoration: none;
  border: 0;
  margin-left: 2px;
}

/* ------------------------------------------------------------
   Entry content typography (WordPress editor output)
------------------------------------------------------------ */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--grey-mid);
}

.entry-content > * + * {
  margin-top: 1.15rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-top: 2.25rem;
}

.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.entry-content a:hover {
  color: var(--orange);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: 0.4rem; }
.entry-content li::marker { color: var(--orange); }

.entry-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 0.25rem 0 0.25rem 1.35rem;
  font-style: italic;
  color: var(--navy);
}

.entry-content img {
  border-radius: 8px;
  height: auto;
}

.entry-content code {
  background: var(--grey-light);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
}

.entry-content pre {
  background: var(--navy-deep);
  color: #e8eefc;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--grey-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.entry-content th {
  background: var(--grey-light);
  color: var(--navy);
  font-weight: 600;
}

.entry-thumbnail {
  margin-bottom: 2rem;
}

.entry-thumbnail img {
  width: 100%;
  border-radius: 10px;
}

/* ------------------------------------------------------------
   Post meta and footer
------------------------------------------------------------ */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(74, 74, 74, 0.7);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-border);
  font-size: 0.875rem;
}

.entry-footer a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-footer a:hover {
  color: var(--orange);
}

/* ------------------------------------------------------------
   Post cards (blog index, archives, search)
------------------------------------------------------------ */
.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow   0.25s var(--ease-out),
    transform    0.25s var(--ease-out);
}

.post-card:hover {
  border-color: var(--navy);
  box-shadow: 0 14px 36px rgba(27, 58, 107, 0.10);
  transform: translateY(-3px);
}

.post-card--search {
  grid-template-columns: 1fr;
}

.post-card__thumb {
  display: block;
  align-self: stretch;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.5rem 1.75rem 1.5rem 0;
}

.post-card--search .post-card__body {
  padding: 1.5rem 1.75rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin-bottom: 0.4rem;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  color: var(--orange);
}

.post-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--grey-mid);
}

.post-card__excerpt p {
  margin: 0;
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s var(--ease-out);
}

.post-card__more:hover {
  color: var(--orange);
  gap: 0.7rem;
}

.post-card__more i {
  font-size: 0.75em;
}

.entry-type {
  background: var(--orange-warm);
  color: var(--orange);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* ------------------------------------------------------------
   Pagination and post navigation
------------------------------------------------------------ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1.5px solid var(--grey-border);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pagination .page-numbers:hover {
  border-color: var(--navy);
  background: var(--grey-light);
}

.pagination .page-numbers.current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy-deep);
}

.pagination .page-numbers.dots {
  border-color: transparent;
}

.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  text-decoration: none;
  display: block;
}

.nav-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.post-navigation a:hover .nav-title {
  color: var(--orange);
}

.page-links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.9375rem;
}

.page-links__label {
  font-weight: 600;
  color: var(--navy);
  margin-right: 0.3rem;
}

/* ------------------------------------------------------------
   Sidebar widgets
------------------------------------------------------------ */
.widget-area {
  position: sticky;
  top: 96px;
}

.widget {
  background: var(--grey-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.widget-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.widget ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.widget li {
  font-size: 0.9375rem;
}

.widget a {
  color: var(--grey-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.widget a:hover {
  color: var(--orange);
}

/* ------------------------------------------------------------
   Search form
------------------------------------------------------------ */
.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  margin: 1.25rem 0;
}

.search-form label {
  flex: 1;
  display: block;
}

.search-form .search-field {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--grey-mid);
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  min-height: 48px;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.search-form .search-field:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

.search-form .search-submit {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--navy);
  border-radius: 6px;
  padding: 0 1.5rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.search-form .search-submit:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

/* ------------------------------------------------------------
   No results and 404
------------------------------------------------------------ */
.no-results,
.error-404 {
  text-align: center;
  padding: 2rem 0 1rem;
}

.no-results__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.no-results__body,
.error-404__body {
  font-size: 1rem;
  color: var(--grey-mid);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.no-results .search-form,
.error-404 .search-form {
  max-width: 480px;
  margin: 0 auto 2rem;
}

.no-results__actions,
.error-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Comments
------------------------------------------------------------ */
.comments-area {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--grey-border);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-body {
  background: var(--grey-light);
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
}

.comment-author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9375rem;
}

.comment-metadata {
  font-size: 0.8125rem;
  color: rgba(74, 74, 74, 0.65);
  margin-bottom: 0.6rem;
}

.comment-metadata a {
  color: inherit;
}

.comment-content {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--grey-mid);
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  width: 100%;
  min-height: 48px;
  margin-bottom: 1rem;
}

.comment-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.comment-form .submit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  background: var(--orange);
  color: var(--navy-deep);
  border: none;
  border-radius: 6px;
  padding: 0.9rem 2rem;
  min-height: 52px;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form .submit:hover {
  background: #d97b22;
}

/* ------------------------------------------------------------
   WordPress admin bar offset for the sticky header
------------------------------------------------------------ */
.admin-bar header {
  top: 32px;
}

.admin-bar .nav__mobile-menu {
  top: 104px;
}

.admin-bar .widget-area {
  top: 128px;
}

@media screen and (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }

  .admin-bar .nav__mobile-menu {
    top: 118px;
  }
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .widget-area {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav__group {
    display: none;
  }

  .page-content-section,
  .post-list-section {
    padding: 3rem 0 4rem;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-card__thumb img {
    height: 200px;
  }

  .post-card__body,
  .post-card--search .post-card__body {
    padding: 1.35rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .search-submit {
    padding: 0.85rem 1.5rem;
  }
}
