/*
 * Polish layer. Loaded last (see assets/app.js), so it refines the
 * purchased theme (style.css / responsive.css) without editing it.
 * Brand values are the theme's own: royal blue #3757f7, deep blue #071e93,
 * ink #232f4b.
 */
:root {
  --brand: #3757f7;
  --brand-deep: #071e93;
  --ink: #232f4b;
  --text: #4f555a;
  --placeholder: #646b78;          /* 4.6:1 on the #f4f6fa field fill */
  --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--brand);
  accent-color: var(--brand);
}

/* ---------- Browser surfaces ---------- */
::selection {
  background: var(--brand);
  color: #fff;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
.theme-btn:focus-visible,
.owl-nav button:focus-visible,
.slick-arrow:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

/* ---------- Forms (contact page) ---------- */
.wpo-contact-pg-section form input,
.wpo-contact-pg-section form textarea,
.wpo-contact-pg-section form select {
  font-size: 16px;                 /* stops iOS zooming on focus */
  color: var(--ink);
  transition: border-color .2s ease-out, box-shadow .2s ease-out, background-color .2s ease-out;
}
.wpo-contact-pg-section form ::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.wpo-contact-pg-section form input:focus,
.wpo-contact-pg-section form textarea:focus,
.wpo-contact-pg-section form select:focus {
  background-color: #fff;
  border-color: var(--brand);
  /* the theme forces box-shadow: none !important on these fields */
  box-shadow: 0 0 0 3px rgba(55, 87, 247, .18) !important;
}
.wpo-contact-pg-section form textarea {
  resize: vertical;
}

/* ---------- Contact info cards: equal heights ---------- */
.wpo-contact-pg-section .office-info .row > [class*="col"] {
  display: flex;
}
.wpo-contact-pg-section .office-info-item {
  flex: 1;
}

/* ---------- Rich text on content pages (CKEditor/Trix output) ---------- */
.wpo-about-icon-content > div,
.wpo-about-icon-content > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 70ch;
}
.wpo-about-icon-content ul {
  padding-left: 1.25em;
  margin: .5em 0 1.25em;
  max-width: 70ch;
}
.wpo-about-icon-content ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: .35em;
}
.wpo-about-icon-content ul li::marker {
  color: var(--brand);
}
/* Editors use h1 for sub-headings inside the body; size them below the page h2. */
.wpo-about-icon-content h1,
.wpo-about-icon-content h3 {
  font-size: 32px;
  line-height: 1.2;
  margin: 1.6em 0 .5em;
  text-wrap: balance;
}
.wpo-about-icon-content strong {
  color: var(--ink);
}
@media (max-width: 767px) {
  .wpo-about-icon-content h1,
  .wpo-about-icon-content h3 {
    font-size: 26px;
  }
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  text-wrap: balance;
}
