/* One Planet Migration Law service pages.
   Every selector is scoped under .opm-pg so it wins against Astra/Elementor
   theme styles without touching the rest of the site. */

.opm-pg {
  --navy: #0F172A;
  --gold: #ECD98E;
  --gold-deep: #B9A65E;
  --cream: #FAF5E5;
  --ink: #111111;
  --body: #4A4A4A;
  --card: #FFFFFF;
  --line: #E7DEC6;
  font-family: 'Marcellus', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
}

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

.opm-pg .opm-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Focus styles */
.opm-pg a:focus-visible,
.opm-pg summary:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Buttons */
.opm-pg .opm-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: 'Marcellus', serif;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px 32px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gold-deep);
  transition: background 0.2s ease, transform 0.2s ease;
}
.opm-pg .opm-btn:hover {
  background: var(--gold-deep);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Headings */
.opm-pg .opm-h2 {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
}
.opm-pg .opm-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 10px;
}

/* Rich content typography */
.opm-pg .opm-rich p {
  font-family: 'Marcellus', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 16px;
}
.opm-pg .opm-rich a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.opm-pg .opm-rich a:hover {
  color: var(--gold-deep);
}
.opm-pg .opm-rich strong {
  font-weight: 700;
  color: var(--ink);
}

/* Checklist style for unordered lists */
.opm-pg .opm-rich ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.opm-pg .opm-rich ul li {
  position: relative;
  padding-left: 34px;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.65;
}
.opm-pg .opm-rich ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9A65E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Numbered step timeline for ordered lists */
.opm-pg .opm-rich ol {
  list-style: none;
  counter-reset: opmstep;
  margin: 0 0 18px;
  padding: 0;
}
.opm-pg .opm-rich ol li {
  counter-increment: opmstep;
  position: relative;
  padding-left: 58px;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.65;
}
.opm-pg .opm-rich ol li::before {
  content: counter(opmstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  color: var(--navy);
  font-size: 17px;
  line-height: 38px;
  text-align: center;
}
.opm-pg .opm-rich ol li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: -14px;
  width: 2px;
  background: var(--line);
}
.opm-pg .opm-rich ol li:last-child::after {
  display: none;
}

/* Tables */
.opm-pg .opm-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
}
.opm-pg .opm-rich thead th {
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-align: left;
  padding: 12px 16px;
}
.opm-pg .opm-rich tbody td,
.opm-pg .opm-rich tbody th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.opm-pg .opm-rich tbody tr:nth-child(even) {
  background: var(--cream);
}
@media (max-width: 640px) {
  .opm-pg .opm-rich table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Hero */
.opm-pg .opm-hero {
  background: linear-gradient(160deg, #141E33 0%, var(--navy) 60%);
  color: #FFFFFF;
  padding: 72px 0 84px;
}
.opm-pg .opm-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.opm-pg .opm-hero .opm-h1 {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  color: #FFFFFF;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.opm-pg .opm-hero .opm-hero-text p {
  color: #D8DCE6;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.opm-pg .opm-hero .opm-hero-text a {
  color: #FFFFFF;
  text-decoration-color: var(--gold-deep);
}
.opm-pg .opm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 28px;
}
.opm-pg .opm-link-arrow {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 4px;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.opm-pg .opm-link-arrow:hover {
  color: #FFFFFF;
}
.opm-pg .opm-hero-media {
  margin: 0;
  text-align: center;
}
.opm-pg .opm-hero-media img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(236, 217, 142, 0.35);
  margin: 0 auto;
}
.opm-pg .opm-hero-caption {
  margin-top: 12px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Trust strip */
.opm-pg .opm-trust {
  background: var(--cream);
  padding: 0 0 8px;
}
.opm-pg .opm-trust-inner {
  list-style: none;
  margin: -44px auto 0;
  padding: 26px 32px;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.opm-pg .opm-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.opm-pg .opm-trust-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold-deep);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.opm-pg .opm-trust-icon svg {
  width: 22px;
  height: 22px;
}
.opm-pg .opm-trust-text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.3px;
}

/* Services grid */
.opm-pg .opm-services {
  background: var(--cream);
  padding: 64px 0 72px;
}
.opm-pg .opm-services .opm-h2 {
  max-width: 720px;
}
.opm-pg .opm-svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.opm-pg .opm-svc {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.opm-pg .opm-svc:hover,
.opm-pg .opm-svc:focus-within {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
  border-color: var(--gold-deep);
}
.opm-pg .opm-svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.opm-pg .opm-svc-icon svg {
  width: 26px;
  height: 26px;
}
.opm-pg .opm-svc-title {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin: 0 0 10px;
}
.opm-pg .opm-svc-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 16px;
}
.opm-pg .opm-svc-more {
  margin-top: auto;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.opm-pg .opm-svc-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}
.opm-pg .opm-svc-more:hover {
  color: var(--gold-deep);
}
.opm-pg .opm-svc-arrow {
  text-decoration: none;
}

/* Feature block */
.opm-pg .opm-feature {
  background: #FFFFFF;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.opm-pg .opm-feature-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.opm-pg .opm-feature-media {
  margin: 0;
  position: sticky;
  top: 32px;
}
.opm-pg .opm-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Content sections */
.opm-pg .opm-section {
  padding: 64px 0;
}
.opm-pg .opm-section--white {
  background: #FFFFFF;
}
.opm-pg .opm-section--cream {
  background: var(--cream);
}
.opm-pg .opm-section-inner {
  max-width: 860px;
}

/* Slim inline CTA bar */
.opm-pg .opm-inline-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 26px 34px;
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.opm-pg .opm-inline-cta-text {
  font-family: 'Marcellus', serif;
  color: #FFFFFF;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin: 0;
}

/* CTA band */
.opm-pg .opm-cta {
  background: linear-gradient(160deg, #141E33 0%, var(--navy) 60%);
  padding: 84px 0;
  text-align: center;
}
.opm-pg .opm-cta-inner {
  max-width: 760px;
}
.opm-pg .opm-cta-h2 {
  font-family: 'Marcellus', serif;
  font-weight: 400;
  color: #FFFFFF;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin: 0 0 18px;
}
.opm-pg .opm-cta-text p {
  color: #D8DCE6;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.opm-pg .opm-cta-text a {
  color: #FFFFFF;
  text-decoration-color: var(--gold-deep);
}
.opm-pg .opm-cta-btn {
  margin-top: 14px;
}

/* FAQ accordion */
.opm-pg .opm-faq {
  background: var(--cream);
  padding: 72px 0 84px;
}
.opm-pg .opm-faq-inner {
  max-width: 820px;
}
.opm-pg .opm-faq-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.opm-pg .opm-faq-item {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 0;
  margin: 0;
}
.opm-pg .opm-faq-item:first-child {
  border-top: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
}
.opm-pg .opm-faq-item:last-child {
  border-radius: 0 0 12px 12px;
}
.opm-pg .opm-faq-item[open] {
  border-color: var(--gold-deep);
}
.opm-pg .opm-faq-q {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 60px 20px 24px;
  min-height: 44px;
  font-family: 'Marcellus', serif;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0.3px;
  color: var(--ink);
  display: flex;
  align-items: center;
}
.opm-pg .opm-faq-q::-webkit-details-marker {
  display: none;
}
.opm-pg .opm-faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--gold-deep);
  color: var(--gold-deep);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  flex: 0 0 auto;
}
.opm-pg .opm-faq-item[open] .opm-faq-q::after {
  content: "\2212";
  background: var(--gold);
  color: var(--navy);
}
.opm-pg .opm-faq-a {
  padding: 0 24px 22px;
}
.opm-pg .opm-faq-a p:last-child {
  margin-bottom: 0;
}

/* Responsive: tablet */
@media (max-width: 1024px) {
  .opm-pg .opm-svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .opm-pg .opm-trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .opm-pg .opm-hero-inner,
  .opm-pg .opm-feature-inner {
    gap: 40px;
  }
}

/* Responsive: mobile */
@media (max-width: 720px) {
  .opm-pg .opm-hero {
    padding: 48px 0 64px;
  }
  .opm-pg .opm-hero-inner {
    grid-template-columns: 1fr;
  }
  .opm-pg .opm-hero-media {
    order: 2;
  }
  .opm-pg .opm-hero-media img {
    max-width: 320px;
  }
  .opm-pg .opm-hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .opm-pg .opm-trust-inner {
    grid-template-columns: 1fr;
    margin-top: -32px;
    padding: 22px 24px;
  }
  .opm-pg .opm-svc-grid {
    grid-template-columns: 1fr;
  }
  .opm-pg .opm-feature-inner {
    grid-template-columns: 1fr;
  }
  .opm-pg .opm-feature-media {
    position: static;
    order: 2;
  }
  .opm-pg .opm-inline-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .opm-pg .opm-services,
  .opm-pg .opm-feature,
  .opm-pg .opm-section,
  .opm-pg .opm-faq {
    padding: 48px 0;
  }
  .opm-pg .opm-cta {
    padding: 56px 0;
  }
  .opm-pg .opm-faq-q {
    font-size: 16.5px;
  }
}

/* Live-site overrides (theme link underline on buttons, clear the site header) */
.opm-pg a.opm-btn,
.opm-pg a.opm-btn:visited,
.opm-pg a.opm-btn:hover,
.opm-pg a.opm-btn:focus {
  text-decoration: none !important;
}
.opm-pg .opm-hero {
  padding-top: calc(80px + clamp(32px, 4vw, 64px));
}
