/* ================================================================
   LOCALMOVER — pages.css
   Services · About · Contact + Block Editor Color Override Fix
   ================================================================ */


/* ================================================================
   FIX: BLOCK EDITOR COLOR OVERRIDES
   Problem: Our blocks.css was too specific, blocking editor color
   changes. These rules ensure any inline has-*-color class wins.
   ================================================================ */

/* Let editor-set text colors always win */
/*[class*="has-"][class*="-color"] {*/
/*  color: var(--wp--custom--color, inherit) !important;*/
/*}*/

/* More surgical: any block with inline color style wins */
/*.wp-block-paragraph[style*="color"],*/
/*.wp-block-heading[style*="color"],*/
/*.wp-block-list[style*="color"],*/
/*.wp-block-group[style*="color"] > p,*/
/*.wp-block-group[style*="color"] > h1,*/
/*.wp-block-group[style*="color"] > h2,*/
/*.wp-block-group[style*="color"] > h3,*/
/*.wp-block-group[style*="color"] > h4 {*/
/*  color: inherit !important;*/
/*}*/

/* Named palette classes always override our defaults */
.has-navy-color          { color: #0A1F44 !important; }
.has-gold-color          { color: #C9A84C !important; }
.has-gold-light-color    { color: #E8C97A !important; }
.has-white-color         { color: #FFFFFF !important; }
.has-off-white-color     { color: #F8F7F4 !important; }
.has-text-color          { color: #1A1A2E !important; }
.has-muted-color         { color: #6B7280 !important; }

/* Background palette overrides */
.has-navy-background-color       { background-color: #0A1F44 !important; }
.has-gold-background-color       { background-color: #C9A84C !important; }
.has-white-background-color      { background-color: #FFFFFF !important; }
.has-off-white-background-color  { background-color: #F8F7F4 !important; }

/* Allow any inline style="color:..." to override our CSS */
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list {
  color: inherit;
}

/* Headings: our theme.json sets navy by default but editor can override */
h1.wp-block-heading,
h2.wp-block-heading,
h3.wp-block-heading,
h4.wp-block-heading {
  color: inherit;
}

/* Inline style always wins (specificity fix) */
[style*="color:"] {
  color: unset;
}
[style*="color:"] {
  color: revert;
}


/* ================================================================
   PAGE HERO (shared across all inner pages)
   ================================================================ */

.lm-page-hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow */
.lm-page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.lm-page-hero .lm-label {
  display: inline-block;
}

/* Gold underline on hero H1 span */
.lm-page-hero h1 span[style*="color:#C9A84C"],
.lm-page-hero h1 span[style*="color: #C9A84C"] {
  position: relative;
  display: inline-block;
}


/* ================================================================
   SERVICES PAGE
   ================================================================ */

.lm-services-page .wp-block-group__inner-container,
.lm-services-page > .wp-block-group__inner-container {
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

/* Service card grid */
.lm-services-page__grid.wp-block-columns {
  align-items: stretch;
}

/* Service card */
.lm-svc-card {
  display: flex;
  flex-direction: column;
}

.lm-svc-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Gold top bar on hover */
.lm-svc-card__inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lm-gold, #C9A84C);
  border-radius: 14px 14px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.lm-svc-card:hover .lm-svc-card__inner {
  border-color: #C9A84C !important;
  box-shadow: 0 12px 40px rgba(10,31,68,0.14);
  transform: translateY(-5px);
}

.lm-svc-card:hover .lm-svc-card__inner::before {
  transform: scaleX(1);
}

/* Service icon */
.lm-svc-icon-wrap {
  display: flex;
  align-items: flex-start;
}

.lm-svc-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lm-svc-card:hover .lm-svc-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* Feature checklist */
.lm-svc-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lm-svc-feature {
  display: flex !important;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem !important;
  color: #374151 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.lm-check-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.lm-check-icon svg {
  width: 16px;
  height: 16px;
}

/* Push button to bottom */
.lm-svc-card__inner .wp-block-buttons {
  margin-top: auto;
}


/* ================================================================
   ABOUT PAGE
   ================================================================ */

.lm-about-story .wp-block-columns {
  align-items: center;
}

/* SVG illustration */
.lm-about-illustration {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Stats row */
.lm-about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.lm-stat {
  min-width: 90px;
}

.lm-stat .wp-block-heading {
  color: #0A1F44 !important;
  margin-bottom: 0.25rem !important;
}

.lm-stat p {
  margin: 0 !important;
}

/* Values cards */
.lm-values .wp-block-columns {
  align-items: stretch;
}

.lm-value-card {
  display: flex;
  flex-direction: column;
}

.lm-value-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.lm-value-card:hover .lm-value-card__inner {
  box-shadow: 0 10px 36px rgba(10,31,68,0.12);
  transform: translateY(-4px);
}

/* Value icon */
.lm-value-icon {
  display: flex;
}

.lm-value-icon svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lm-value-card:hover .lm-value-icon svg {
  transform: scale(1.12);
}

.lm-value-card__inner .wp-block-heading {
  color: #0A1F44 !important;
}

.lm-value-card__inner p {
  color: #6B7280 !important;
}


/* ================================================================
   CONTACT PAGE
   ================================================================ */

.lm-contact-body .wp-block-columns {
  align-items: flex-start;
}

/* ── FORM ── */
.lm-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lm-form__row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.lm-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lm-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.lm-required {
  color: #C9A84C;
  margin-left: 2px;
}

.lm-form__input {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1A1A2E;
  background: #FAFAF9;
  border: 1.5px solid #E2D9C5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.lm-form__input::placeholder {
  color: #9CA3AF;
}

.lm-form__input:focus {
  border-color: #C9A84C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.lm-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.lm-form__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.lm-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2.25rem;
  background: #C9A84C;
  color: #0A1F44;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 16px rgba(201,168,76,0.3);
}

.lm-form__submit:hover {
  background: #0A1F44;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(10,31,68,0.22);
}

.lm-form__submit svg {
  width: 18px;
  height: 18px;
}

.lm-form__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.5;
}

.lm-form__note svg {
  flex-shrink: 0;
}

/* ── CONTACT INFO CARD ── */
.lm-contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.lm-contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.lm-contact-item:hover .lm-contact-item__icon {
  background: rgba(201,168,76,0.22);
}

.lm-contact-item__icon svg {
  width: 18px;
  height: 18px;
}

.lm-contact-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lm-contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lm-contact-item__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1A1A2E;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.lm-contact-item__value:hover {
  color: #C9A84C;
}

/* ── TRUST LIST (dark card) ── */
.lm-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lm-trust-list__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

.lm-trust-list__icon {
  display: flex;
  flex-shrink: 0;
}

.lm-trust-list__icon svg {
  width: 20px;
  height: 20px;
}


/* ================================================================
   RESPONSIVE — PAGES
   ================================================================ */

@media (max-width: 1024px) {
  .lm-services-page__grid.wp-block-columns {
    flex-wrap: wrap !important;
  }
  .lm-svc-card {
    flex-basis: calc(50% - 1rem) !important;
    min-width: calc(50% - 1rem) !important;
  }
}

@media (max-width: 768px) {

  /* Services: single col */
  .lm-services-page__grid.wp-block-columns {
    flex-direction: column !important;
  }
  .lm-svc-card {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  /* About: stack */
  .lm-about-story__inner.wp-block-columns,
  .lm-values .wp-block-columns {
    flex-direction: column !important;
  }
  .lm-about-story__media,
  .lm-about-story__content {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .lm-value-card {
    flex-basis: 100% !important;
  }
  .lm-about-stats {
    gap: 1.25rem;
  }

  /* Contact: stack */
  .lm-contact-body__inner.wp-block-columns {
    flex-direction: column !important;
  }
  .lm-contact-form-col,
  .lm-contact-info-col {
    flex-basis: 100% !important;
    width: 100% !important;
  }
  .lm-form__row--2col {
    grid-template-columns: 1fr;
  }
  .lm-contact-form-wrap {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .lm-about-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .lm-contact-info-card,
  .lm-contact-trust-card {
    padding: 1.5rem !important;
  }
}










