/*!
 * SPDX-FileCopyrightText: © 2026 Rafael Miret Abogados
 * SPDX-License-Identifier: LicenseRef-Proprietary
 * Developed by DataManiacs.ai
 */

/* ══════════════════════════════════════════════
   Rafael Miret Romaguera – Abogado Penalista
   ══════════════════════════════════════════════ */

/* ── Poppins (self-hosted) ── */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-700.woff2') format('woff2'); }

:root {
  --primary: #2B3467;
  --primary-light: #364175;
  --primary-dark: #1e2650;
  --secondary: #C09F50;
  --secondary-light: #d4b46e;
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --white: #ffffff;
  --line: #d5d7dc;
  --danger: #cc3333;
  --success: #2e7d32;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --header-h: 80px;
  --section-px: 10%;
  --section-px-mobile: 5%;
}

/* ── Reset ── */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-icons.woff2') format('woff2');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal; font-style: normal;
  display: inline-block; line-height: 1;
  text-transform: none; letter-spacing: normal; word-wrap: normal; white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Focus-visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.rm-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--primary); color: var(--white); padding: 8px 16px; font-size: 0.9rem;
}
.rm-skip-link:focus { left: 0; }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.rm-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h);
  background: var(--primary); z-index: 100;
  display: flex; align-items: center; padding: 0 var(--section-px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.rm-header-inner {
  display: flex; align-items: center; width: 100%; position: relative;
}
.rm-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); white-space: nowrap; flex-shrink: 0;
  order: 0;
}
.rm-nav { order: 1; }
.rm-lang-dropdown { order: 2; }
.rm-header-cta--desktop { order: 3; }
.rm-nav-toggle { order: 4; }

.rm-logo img {
  height: 56px; width: auto; object-fit: contain; border-radius: 6px;
}

.rm-logo-text {
  font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em;
}

/* Nav — desktop: inline, mobile: sidebar */
.rm-nav {
  display: flex; align-items: center; margin-left: auto; gap: 8px;
}

.rm-nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: 24px;
}

.rm-nav-link {
  padding: 8px 16px; border-radius: 20px;
  color: rgba(255,255,255,0.75); font-size: 0.95rem;
  transition: color 0.3s; white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.rm-nav-link:hover { color: var(--white); }

/* ── Dropdown ── */
.rm-nav-dropdown { position: relative; }

.rm-nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
}

.rm-nav-chevron {
  font-size: 0.65rem; transition: transform 0.25s;
}

.rm-nav-dropdown-toggle[aria-expanded="true"] .rm-nav-chevron {
  transform: rotate(180deg);
}

.rm-nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 12px 8px; min-width: 200px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
  z-index: 120;
}

.rm-nav-dropdown-menu.open { display: flex; flex-direction: column; }

.rm-nav-dropdown-mega.open { display: flex; flex-direction: row; gap: 8px; min-width: 400px; }

.rm-nav-dropdown-col {
  display: flex; flex-direction: column; flex: 1; padding: 4px 8px;
}

.rm-nav-dropdown-heading {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--secondary);
  padding: 6px 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}

.rm-nav-dropdown-menu a {
  padding: 8px 12px; border-radius: 8px;
  color: rgba(255,255,255,0.78); font-size: 0.88rem;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}

.rm-nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.08); color: var(--white);
}

/* Language dropdown */
.rm-lang-dropdown {
  position: relative; margin-left: 12px; flex-shrink: 0;
}
.rm-lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  color: var(--white); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1px; transition: background 0.2s;
}
.rm-lang-toggle:hover { background: rgba(255,255,255,0.15); }
.rm-lang-flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.rm-lang-chevron { font-size: 0.65rem; transition: transform 0.2s; }
.rm-lang-dropdown[aria-expanded="true"] .rm-lang-chevron { transform: rotate(180deg); }

.rm-lang-menu {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--primary); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; padding: 4px; min-width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1001;
}
.rm-lang-dropdown[aria-expanded="true"] .rm-lang-menu { display: flex; flex-direction: column; }

.rm-lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 8px 12px;
  cursor: pointer; color: var(--white); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 1px; border-radius: 6px;
  transition: background 0.2s; white-space: nowrap;
}
.rm-lang-btn img { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); }
.rm-lang-btn:hover { background: rgba(255,255,255,0.12); }
.rm-lang-btn.active { background: rgba(255,255,255,0.08); }

.rm-nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.8rem; cursor: pointer; padding: 8px; line-height: 1;
  margin-left: auto; z-index: 110;
}

.rm-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); color: var(--primary-dark);
  padding: 8px 14px; font-size: 0.9rem; font-weight: 600;
  transition: transform 0.3s, background 0.3s; white-space: nowrap;
  border-radius: 6px; margin-left: 12px;
}
.rm-header-cta:hover { transform: translateX(4px); background: var(--secondary-light); }
.rm-header-cta--mobile { display: none; }
.rm-cta-short { display: none; }
@media (max-width: 480px) {
  .rm-header-cta .rm-cta-long { display: none; }
  .rm-header-cta .rm-cta-short { display: inline; }
  .rm-logo-text { display: none; }
}

/* ══════════════════════════════════════════════
   HERO — full-width background image with gradient fade
   ══════════════════════════════════════════════ */
.rm-hero {
  min-height: 100vh; background: var(--primary); color: var(--white);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-top: var(--header-h);
}

/* Portrait desktop: don't force 100vh — avoids huge blue gap */
@media (orientation: portrait) and (min-width: 961px) {
  .rm-hero { min-height: auto; }
}

.rm-hero-inner {
  display: flex; gap: 40px;
  padding: 80px var(--section-px) 0;
  flex: 1; align-items: center; justify-content: space-between;
}

.rm-hero-content { display: flex; flex-direction: column; gap: 24px; max-width: 650px; }

.rm-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
}

.rm-hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 550px; line-height: 1.7;
}

.rm-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.rm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; font-size: 1rem; font-weight: 500; border-radius: 6px;
  transition: transform 0.3s, background 0.3s; border: none; cursor: pointer; font-family: var(--font);
}
.rm-btn-primary { background: var(--secondary); color: var(--primary-dark); font-weight: 600; }
.rm-btn-primary:hover { transform: translateX(4px); background: var(--secondary-light); }
.rm-btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.rm-btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.rm-btn-dark { background: var(--primary); color: var(--white); padding: 12px 22px; }
.rm-btn-dark:hover { background: var(--primary-light); }

/* Hero background image with gradient */
.rm-hero-image {
  position: relative; width: 100%; height: 500px;
  overflow: hidden; margin-top: 40px; flex-shrink: 0;
}
.rm-hero-image img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center center;
}
.rm-hero-image-gradient {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(43,52,103,0.3) 40%, rgba(43,52,103,0.15) 70%, rgba(43,52,103,0.6) 100%);
}

/* Hero quote cards */
.rm-hero-quotes {
  display: flex; gap: 0; width: 100%;
  padding: 0; margin: 0;
}

.rm-hero-quote {
  flex: 1 1 0;
  min-width: 0;
  background: var(--secondary); color: var(--white);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 8px;
}
.rm-hero-quote p { font-size: 1.05rem; font-style: italic; line-height: 1.5; }
.rm-hero-quote span { font-size: 0.85rem; font-weight: 600; margin-top: auto; }

/* ══════════════════════════════════════════════
   GUIDANCE (sales section)
   ══════════════════════════════════════════════ */
.rm-guidance-grid {
  display: flex; gap: 60px; align-items: center;
}

.rm-guidance-media { flex-shrink: 0; position: relative; }

.rm-guidance-img-main {
  width: 420px; height: 350px; overflow: hidden; border-radius: 12px;
}
.rm-guidance-img-main img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.rm-guidance-img-main--portrait {
  width: 320px;
  height: auto;
  aspect-ratio: auto;
}

.rm-guidance-img-main--portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.rm-guidance-text {
  flex: 1; display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.rm-guidance-text p {
  font-size: 1.05rem; color: var(--ink-soft); text-align: justify; line-height: 1.8;
}

/* ══════════════════════════════════════════════
   SECTIONS (generic)
   ══════════════════════════════════════════════ */
.rm-section { padding: 80px var(--section-px); scroll-margin-top: var(--header-h); }
.rm-section-alt { background: var(--bg-alt); }
.rm-section-dark { background: var(--primary); color: var(--white); }
.rm-section-dark + .rm-section-dark {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.rm-section-kicker {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #8B7632; margin-bottom: 8px;
}
.rm-section-dark .rm-section-kicker { color: var(--secondary); }
.rm-section-title {
  font-size: 2.6rem; font-weight: 700; color: var(--primary);
  line-height: 1.2; margin-bottom: 24px;
}
.rm-section-dark .rm-section-title { color: var(--white); }

/* ══════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════ */
.rm-about-grid { display: flex; gap: 60px; align-items: flex-start; }

.rm-about-photo { flex-shrink: 0; width: 320px; }
.rm-about-photo img { width: 100%; object-fit: cover; border-radius: 12px; }

.rm-about-photo-overlay { position: relative; }
.rm-about-photo-overlay::after {
  content: ""; position: absolute; bottom: -16px; left: -16px;
  width: 100%; height: 100%; border: 3px solid var(--secondary); z-index: -1;
  border-radius: 12px;
}

.rm-about-text { flex: 1; }
.rm-about-text p {
  font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 16px;
  text-align: justify; line-height: 1.8;
}

/* ══════════════════════════════════════════════
   PRACTICE AREAS
   ══════════════════════════════════════════════ */
.rm-areas-header { text-align: center; margin-bottom: 48px; }
.rm-areas-divider { width: 80px; height: 4px; background: var(--secondary); margin: 0 auto 16px; }

.rm-areas-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
@media (max-width: 1200px) {
  .rm-areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rm-area-card {
  display: flex; gap: 16px; background: var(--white); padding: 24px;
  transition: box-shadow 0.3s; border: 1px solid transparent; border-radius: 12px;
}
.rm-area-card:hover { box-shadow: var(--shadow); }

.rm-area-icon {
  flex-shrink: 0; width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 72px; color: var(--secondary);
}

.rm-area-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.rm-area-content p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; text-align: justify; overflow-wrap: break-word; hyphens: auto; }

/* ══════════════════════════════════════════════
   NEWS / CASE STUDIES
   ══════════════════════════════════════════════ */
.rm-news-title {
  font-size: 2.4rem; font-weight: 600; color: var(--secondary);
  text-align: center; margin-bottom: 40px;
}

.rm-news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.rm-news-card {
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.3s;
}
.rm-news-card:hover { transform: translateY(-4px); }

.rm-news-img {
  height: 220px; overflow: hidden; border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
}
.rm-news-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s; border-radius: 12px 12px 0 0;
}
.rm-news-img img[src$=".svg"] {
  width: 50%; height: 50%; object-fit: contain; border-radius: 0;
}
.rm-section-dark .rm-news-img img[src$=".svg"] {
  filter: invert(1) brightness(2);
}
.rm-blog-list .rm-news-img img[src$=".svg"] {
  filter: brightness(0) saturate(100%) invert(67%) sepia(50%) saturate(500%) hue-rotate(8deg) brightness(92%);
}
.rm-news-card:hover .rm-news-img img { transform: scale(1.04); }

.rm-news-body h4 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-top: 8px; }
.rm-news-category { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.rm-news-date { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

/* ══════════════════════════════════════════════
   CREDENTIALS
   ══════════════════════════════════════════════ */
.rm-credentials-list { display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }

.rm-credential { display: flex; gap: 24px; align-items: flex-start; }
.rm-credential-marker {
  flex-shrink: 0; width: 4px; background: var(--secondary);
  border-radius: 2px; align-self: stretch;
}
.rm-credential-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.rm-credential-body .rm-credential-period { font-size: 0.85rem; color: var(--secondary); margin: 4px 0; }
.rm-credential-body p { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-top: 4px; }

.rm-credential-badges { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; align-items: stretch; }
.rm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--secondary);
  padding: 0 20px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  height: 54px; box-sizing: border-box;
}
.rm-badge-link {
  text-decoration: none; transition: background 0.3s, border-color 0.3s;
}
.rm-badge-link:hover {
  background: rgba(192,159,80,0.15); border-color: var(--secondary);
}
.rm-icav-link, .rm-esade-link {
  display: inline-flex; align-items: center;
  border-radius: 6px; padding: 6px 12px;
  opacity: 0.9; transition: opacity 0.3s;
  height: 54px;
}
.rm-icav-link { background: #fff; }
.rm-esade-link { background: #fff; overflow: hidden; }
.rm-icav-link:hover, .rm-esade-link:hover { opacity: 1; }
.rm-icav-logo { width: 140px; height: auto; }
.rm-esade-logo { width: auto; height: 100%; border-radius: 0; }

/* ══════════════════════════════════════════════
   HERO BADGES (Google + ICAV)
   ══════════════════════════════════════════════ */
.rm-hero-badges {
  display: flex; gap: 12px; align-self: flex-start; align-items: center;
}
.rm-google-badge, .rm-icav-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 24px; border-radius: 8px;
  color: var(--white); text-decoration: none;
  transition: background 0.3s;
}
.rm-google-badge:hover, .rm-icav-badge:hover { background: rgba(255,255,255,0.18); }
.rm-google-badge .bi-google { font-size: 1.5rem; }
.rm-google-badge-info { text-align: left; }
.rm-google-badge-stars { color: #FBBC04; font-size: 1.2rem; letter-spacing: 2px; }
.rm-google-badge-text { font-size: 0.9rem; opacity: 0.9; }
html[lang="de"] .rm-google-badge-text { font-size: 0.78rem; }
.rm-icav-badge { padding: 0; background: none; border: none; overflow: hidden; border-radius: 8px; }
.rm-icav-badge:hover { background: none; }
.rm-icav-badge-logo { height: 82px; width: auto; display: block; border-radius: 8px; }

@media (min-width: 961px) {
  .rm-hero-inner { position: relative; }
  .rm-hero-badges {
    position: absolute;
    right: var(--section-px);
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
  }
  .rm-google-badge {
    padding: 18px 28px; gap: 14px; width: 220px; box-sizing: border-box;
  }
  .rm-icav-badge { padding: 0; width: 130px; box-sizing: border-box; }
  .rm-google-badge .bi-google { font-size: 1.8rem; }
  .rm-google-badge-stars { font-size: 1.3rem; letter-spacing: 3px; }
  .rm-google-badge-text { font-size: 0.95rem; white-space: nowrap; }
  .rm-icav-badge-logo { height: auto; width: 100%; }
}

@media (max-width: 960px) {
  .rm-hero-buttons { order: 2; }
  .rm-hero-content .rm-hero-badges { order: 1; }
}

/* ══════════════════════════════════════════════
   REVIEWS (Google)
   ══════════════════════════════════════════════ */
.rm-reviews-header {
  text-align: center; margin-bottom: 40px;
}
.rm-testimonials-heading {
  font-size: 2rem; font-weight: 600; color: var(--primary);
  text-align: center; margin-bottom: 16px;
}
.rm-reviews-google-summary {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
  transition: opacity 0.2s;
}
.rm-reviews-google-summary:hover { opacity: 0.7; }
.rm-reviews-google-summary .bi-google { font-size: 1.1rem; color: #4285F4; }
.rm-reviews-stars { color: #FBBC04; font-size: 1.1rem; letter-spacing: 2px; }
.rm-reviews-score { color: var(--ink-soft); }

.rm-reviews-carousel {
  position: relative; overflow: hidden;
  max-width: 1200px; margin: 0 auto;
}
.rm-reviews-track {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 16px;
}
.rm-reviews-track::-webkit-scrollbar { display: none; }

.rm-review-card {
  flex: 0 0 calc(50% - 12px);
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: var(--bg-alt);
  border-left: 4px solid var(--secondary);
  border-radius: 8px;
  min-height: 200px;
}
.rm-review-stars { color: #FBBC04; font-size: 1rem; letter-spacing: 2px; }
.rm-review-card blockquote { margin: 0; }
.rm-review-card blockquote p {
  font-size: 0.95rem; font-style: italic; color: var(--ink-soft); line-height: 1.7;
}
.rm-review-card cite {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.9rem; font-style: normal; font-weight: 600; color: var(--primary);
  margin-top: auto;
}
.rm-review-meta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 400; color: var(--ink-soft);
}
.rm-review-meta .bi-google { color: #4285F4; }

.rm-reviews-nav {
  display: flex; justify-content: center; gap: 12px; margin-top: 20px;
}
.rm-reviews-btn {
  width: 40px; height: 40px; border: 2px solid var(--line);
  background: var(--white); color: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; transition: all 0.2s;
}
.rm-reviews-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
.rm-contact-grid { display: flex; gap: 60px; align-items: stretch; }

.rm-contact-map { flex: 1; min-width: 300px; display: flex; }
.rm-contact-map iframe { width: 100%; min-height: 450px; height: 100%; border: 0; border-radius: 12px; }

.rm-contact-form-wrap { flex: 1; min-width: 300px; }
.rm-contact-form-wrap h2 { font-size: 2.2rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.rm-contact-subtitle { color: var(--ink-soft); margin-bottom: 24px; font-size: 0.95rem; }

.rm-contact-info {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  margin-bottom: 28px;
}
.rm-contact-info-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s;
}
.rm-contact-info-item:hover { color: var(--primary); }
.rm-contact-info-item i { color: var(--secondary); font-size: 1.1rem; }

.rm-form { display: flex; flex-direction: column; gap: 16px; }
.rm-form-row { display: flex; gap: 12px; }
.rm-form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rm-form-label { font-size: 0.85rem; color: var(--ink-soft); }

.rm-form-input {
  width: 100%; padding: 10px 12px; border: 2px solid var(--line); border-radius: 6px;
  font-size: 0.95rem; font-family: var(--font); transition: border-color 0.3s;
  min-width: 0;
}
.rm-form-input:focus { border-color: var(--primary); outline: 2px solid var(--secondary); outline-offset: 1px; }
textarea.rm-form-input { resize: vertical; min-height: 100px; max-height: 250px; }

.rm-form-submit {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--primary); color: var(--white); padding: 12px 22px;
  border: none; font-size: 0.95rem; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: transform 0.3s, background 0.3s;
  border-radius: 6px;
}
.rm-form-submit:hover { transform: translateX(4px); background: var(--primary-light); }

.rm-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rm-form-legal { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.5; margin: 0; flex: 1; }
.rm-form-legal a { color: var(--ink-soft); text-decoration: underline; }
.rm-form-legal a:hover { color: var(--primary); }
@media (max-width: 600px) {
  .rm-form-footer { flex-direction: column; align-items: stretch; }
}

.rm-form-status { font-size: 0.9rem; padding: 8px 0; }
.rm-form-status.success { color: var(--success); }
.rm-form-status.error { color: var(--danger); }
.rm-form-status.info { color: var(--ink-soft); }

/* ══════════════════════════════════════════════
   COMMITMENTS BAR
   ══════════════════════════════════════════════ */
.rm-commitments {
  background: var(--surface); padding: 48px var(--section-px);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.rm-commitments-title {
  text-align: center; font-size: 1.3rem; font-weight: 700;
  color: var(--primary); margin-bottom: 32px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rm-commitments-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.rm-commitment {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
}
.rm-commitment-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(1800%) hue-rotate(200deg);
}
.rm-commitment-text {
  font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; margin: 0;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.rm-footer {
  background: var(--primary); color: var(--white);
  padding: 48px var(--section-px) 24px;
}

.rm-footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(4, minmax(130px, 1fr));
  gap: 40px 24px;
  align-items: flex-start;
}

.rm-footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.rm-footer-brand img {
  width: 260px; padding: 16px; border-radius: 12px;
  background: rgba(255,255,255,0.08);
}
.rm-footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

.rm-footer-col { display: flex; flex-direction: column; gap: 12px; }
.rm-footer-col h3 { font-size: 1.2rem; margin-bottom: 4px; }
.rm-footer-subtitle {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}
.rm-footer-link { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.3s; }
.rm-footer-link:hover { color: var(--secondary); }

.rm-footer-social { display: flex; gap: 16px; margin-top: 8px; }
.rm-footer-social a { color: rgba(255,255,255,0.6); font-size: 1.2rem; transition: color 0.3s; }
.rm-footer-social a:hover { color: var(--white); }

.rm-footer-bottom {
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rm-footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.rm-footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-footer-legal-link { color: rgba(255,255,255,0.5); font-size: 0.8rem; transition: color 0.3s; }
.rm-footer-legal-link:hover { color: var(--secondary); }
.rm-footer-legal-sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

.rm-footer-credit {
  margin-top: 8px; font-size: 0.75rem; color: rgba(255,255,255,0.35); text-align: right;
}
.rm-footer-credit a { color: rgba(255,255,255,0.45); transition: color 0.3s; }
.rm-footer-credit a:hover { color: var(--secondary); }

/* ── Back to top button ── */
.rm-back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
}
.rm-back-to-top.rm-visible { opacity: 0.85; visibility: visible; pointer-events: auto; }
.rm-back-to-top:hover { background: var(--secondary); opacity: 1; }

/* ── Section CTA (centered button below grids) ── */
.rm-section-cta { text-align: center; margin-top: 40px; }
.rm-section-cta--sm { text-align: center; margin-top: 24px; }
.rm-icon-sm { font-size: 0.8em; }

/* ── Landing pages ── */
.rm-subhero {
  padding: calc(var(--header-h) + 56px) var(--section-px) 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, #445089 100%);
  color: var(--white);
}

.rm-subhero-inner {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: space-between;
}

.rm-subhero-content {
  flex: 1;
  max-width: 680px;
}

.rm-subhero .rm-section-kicker {
  color: rgba(255,255,255,0.72);
  margin-bottom: 12px;
}

.rm-subhero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.rm-subhero p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.rm-subhero-media {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rm-subhero-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.rm-subhero--icon .rm-subhero-media {
  flex: 0 0 380px;
}

.rm-hero-visual {
  position: relative;
  width: 100%;
  min-height: 380px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(circle at 20% 20%, rgba(192,159,80,0.26), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.12), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(17,24,63,0.92), rgba(43,52,103,0.9) 55%, rgba(68,80,137,0.84));
  box-shadow: 0 22px 56px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.rm-hero-visual::before,
.rm-hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 0;
}

.rm-hero-visual::before {
  width: 210px;
  height: 210px;
  right: -42px;
  top: -54px;
}

.rm-hero-visual::after {
  width: 156px;
  height: 156px;
  left: -34px;
  bottom: -48px;
}

.rm-hero-visual-badge,
.rm-hero-visual-icon,
.rm-hero-visual-tags {
  position: relative;
  z-index: 1;
}

.rm-hero-visual-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-hero-visual-icon {
  align-self: center;
  margin: 24px 0;
  font-size: clamp(6rem, 10vw, 8rem);
  line-height: 1;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.rm-hero-visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rm-hero-visual-tags span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
}

.rm-hero-visual--detention {
  background:
    repeating-linear-gradient(-48deg, rgba(255,240,240,0.08) 0 10px, transparent 10px 28px),
    radial-gradient(circle at 18% 18%, rgba(233,95,95,0.26), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(255,255,255,0.11), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(38,22,54,0.94), rgba(76,35,83,0.88) 54%, rgba(141,58,66,0.84));
}

.rm-hero-visual--detention .rm-hero-visual-badge,
.rm-hero-visual--detention .rm-hero-visual-tags span {
  background: rgba(255,233,233,0.1);
}

.rm-hero-visual--detention::before,
.rm-hero-visual--detention::after {
  border-style: dashed;
  border-color: rgba(255,229,229,0.18);
}

.rm-hero-visual--fasttrack {
  background:
    repeating-linear-gradient(-12deg, rgba(255,239,204,0.09) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 18% 18%, rgba(255,184,79,0.3), transparent 35%),
    radial-gradient(circle at 78% 28%, rgba(255,255,255,0.1), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(67,36,16,0.94), rgba(124,71,18,0.88) 54%, rgba(184,118,33,0.84));
}

.rm-hero-visual--fasttrack::before,
.rm-hero-visual--fasttrack::after {
  transform: scaleX(1.28) rotate(-18deg);
}

.rm-hero-visual--debt {
  background:
    repeating-linear-gradient(0deg, rgba(228,255,246,0.08) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(228,255,246,0.06) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 18% 18%, rgba(96,196,155,0.3), transparent 34%),
    radial-gradient(circle at 80% 26%, rgba(255,255,255,0.11), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(13,61,56,0.94), rgba(21,101,88,0.88) 54%, rgba(35,141,111,0.84));
}

.rm-hero-visual--debt::before,
.rm-hero-visual--debt::after {
  border-radius: 18px;
  border-color: rgba(223,255,245,0.12);
}

.rm-hero-visual--inheritance {
  background:
    linear-gradient(64deg, transparent 46%, rgba(255,239,214,0.12) 48%, transparent 50%),
    linear-gradient(-58deg, transparent 46%, rgba(255,239,214,0.1) 48%, transparent 50%),
    linear-gradient(0deg, transparent 42%, rgba(255,239,214,0.08) 44%, transparent 46%),
    radial-gradient(circle at 18% 18%, rgba(216,184,119,0.3), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(255,255,255,0.11), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(64,42,18,0.94), rgba(99,67,26,0.88) 54%, rgba(153,112,51,0.84));
}

.rm-hero-visual--inheritance::before,
.rm-hero-visual--inheritance::after {
  border-radius: 36% 64% 52% 48% / 48% 38% 62% 52%;
  border-color: rgba(255,239,214,0.14);
}

.rm-hero-visual--contracts {
  background:
    linear-gradient(90deg, rgba(224,236,255,0.12) 0 3px, transparent 3px 100%),
    repeating-linear-gradient(0deg, rgba(224,236,255,0.08) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 18% 18%, rgba(92,156,236,0.28), transparent 34%),
    radial-gradient(circle at 82% 26%, rgba(255,255,255,0.11), transparent 24%),
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    linear-gradient(135deg, rgba(19,38,83,0.94), rgba(31,65,130,0.88) 54%, rgba(51,97,174,0.84));
}

.rm-hero-visual--contracts::before,
.rm-hero-visual--contracts::after {
  border-radius: 20px;
  transform: rotate(-8deg);
  border-color: rgba(224,236,255,0.14);
}

.rm-subhero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 28px;
}

.rm-subhero-points li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,0.88);
}

.rm-subhero-points li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
}

.rm-landing-copy {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.8;
  text-align: justify;
}

.rm-landing-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.rm-landing-list li {
  background: var(--bg-alt);
  border-left: 4px solid var(--secondary);
  padding: 16px 18px;
  color: var(--ink-soft);
}

.rm-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.rm-faq-item {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.rm-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-weight: 600;
  position: relative;
}

.rm-faq-item summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  transition: transform 0.25s;
  opacity: 0.7;
}

.rm-faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.rm-faq-item summary::-webkit-details-marker { display: none; }

.rm-faq-item p {
  padding: 0 20px 18px;
  color: rgba(255,255,255,0.82);
}

.rm-cta-panel {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.rm-cta-panel-text {
  max-width: 720px;
}

.rm-cta-panel-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.rm-cta-panel-text p {
  color: var(--ink-soft);
}

.rm-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.rm-section-cta .rm-related-links {
  justify-content: center;
}

.rm-related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary);
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
}

.rm-related-link:hover {
  background: rgba(43,52,103,0.05);
  border-color: var(--primary);
}

.rm-related-links--city {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px;
}
.rm-related-col {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rm-related-heading {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--secondary); margin-bottom: 4px;
}

/* ── 404 ── */
.rm-404 { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.rm-404 h1 { font-size: 5rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.rm-404 p { font-size: 1.3rem; color: var(--ink-soft); margin-bottom: 32px; }
.rm-404-langs { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.rm-404-lang { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 300px; }
.rm-404-lang img { border-radius: 3px; }
.rm-404-lang p { font-size: 1rem; margin-bottom: 16px; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1175px) {
  :root { --section-px: 5%; }

  .rm-nav-toggle { display: block; margin-left: 0; }
  .rm-lang-dropdown { display: none; }
  .rm-nav .rm-lang-dropdown { display: block; margin: 12px 0 0; align-self: flex-end; }
  .rm-header-cta--desktop { margin-left: auto; }

  .rm-nav {
    display: none;
    position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
    background: var(--primary-dark); flex-direction: column;
    padding: 100px 24px 32px; gap: 16px; z-index: 105;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }
  .rm-nav.open { display: flex; animation: slideIn 0.3s ease; }

  .rm-nav.open .rm-nav-links {
    flex-direction: column; align-items: flex-end; gap: 4px; width: 100%;
  }

  /* Mobile dropdowns: inline, no absolute positioning */
  .rm-nav-dropdown { width: 100%; }
  .rm-nav-dropdown-toggle { width: 100%; justify-content: flex-end; text-align: right; }
  .rm-nav-dropdown-menu {
    position: static; transform: none;
    background: rgba(0,0,0,0.15); border: none; border-radius: 8px;
    box-shadow: none; min-width: 0; padding: 8px 0; margin-top: 4px;
  }
  .rm-nav-dropdown-mega.open { flex-direction: column; min-width: 0; gap: 0; }
  .rm-nav-dropdown-col { padding: 4px 0; }
  .rm-nav-dropdown-menu a { text-align: right; padding: 6px 16px; font-size: 0.85rem; }
  .rm-nav-dropdown-heading { text-align: right; padding: 6px 16px 4px; }

  .rm-nav.open .rm-header-cta--mobile {
    display: inline-flex; margin-left: 0; margin-bottom: 8px; justify-content: center;
  }

  .rm-nav .rm-lang-dropdown { display: block; margin: 0 0 16px; align-self: flex-end; order: 0; }
  .rm-nav .rm-header-cta--mobile { order: 0; }
  .rm-nav .rm-nav-links { order: 0; }

  .rm-commitments-grid { grid-template-columns: repeat(2, 1fr); }

  .rm-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
  .rm-hero-subtitle { font-size: 1rem; }
  .rm-hero-inner { flex-direction: column; align-items: flex-start; }
  .rm-subhero-inner { flex-direction: column; align-items: flex-start; }
  .rm-subhero-media { flex-basis: auto; width: 100%; }
  .rm-subhero-media img { height: 320px; }
  .rm-hero-visual {
    min-height: 300px;
    padding: 24px;
    border-radius: 20px;
  }
  .rm-hero-visual-icon { font-size: clamp(5rem, 18vw, 7rem); }
  .rm-hero-visual-tags span { padding: 9px 12px; font-size: 0.84rem; }
  .rm-subhero-points { grid-template-columns: 1fr; }

  .rm-hero-quotes { flex-direction: column; }
  .rm-hero-quote { max-width: 100%; }

  .rm-hero-image { height: 300px; }
  .rm-hero-image img { object-position: 45% center; }

  .rm-guidance-grid { flex-direction: column; gap: 32px; }
  .rm-guidance-img-main { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 12px; }
  .rm-guidance-img-main img { border-radius: 12px; }
  .rm-guidance-img-main--portrait { width: 100%; max-width: 400px; aspect-ratio: auto; margin: 0 auto; }
  .rm-guidance-img-main--portrait img { height: auto; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

  .rm-about-grid { flex-direction: column; gap: 32px; }
  .rm-about-photo { width: 100%; max-width: 400px; margin: 0 auto; }
  .rm-about-photo-overlay::after { display: none; }
  .rm-about-photo img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

  .rm-news-grid { grid-template-columns: 1fr; }

  .rm-review-card { flex: 0 0 calc(100% - 8px); }

  .rm-contact-grid { flex-direction: column; }
  .rm-contact-form-wrap { order: -1; }
  .rm-contact-map { min-width: 0; width: 100%; }
  .rm-contact-map iframe { width: 100%; height: 350px; }

  .rm-section-title { font-size: 2rem; }
  .rm-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .rm-footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .rm-areas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {

  .rm-commitments-grid { grid-template-columns: 1fr; gap: 24px; }
  .rm-commitments { padding: 36px var(--section-px-mobile); }
  .rm-hero h1 { font-size: clamp(1.6rem, 5vw, 1.9rem); }
  .rm-hero-buttons { flex-direction: column; }
  .rm-form-row { flex-direction: column; }
  .rm-section { padding: 48px var(--section-px-mobile); }
  .rm-section-title { font-size: 1.6rem; }
  .rm-hero-inner { padding: 56px var(--section-px-mobile) 0; }
  .rm-subhero { padding-bottom: 56px; }
  .rm-subhero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .rm-cta-panel { padding: 24px; }
  .rm-footer-inner { grid-template-columns: 1fr; }
  .rm-hero-visual {
    min-height: 260px;
    padding: 20px;
  }
  .rm-hero-visual-badge {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
  .rm-hero-visual-icon {
    margin: 18px 0;
    font-size: clamp(4.1rem, 20vw, 5.6rem);
  }
  .rm-hero-visual-tags { gap: 8px; }
  .rm-hero-visual-tags span {
    padding: 8px 11px;
    font-size: 0.78rem;
  }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ══════════════════════════════════════════════
   BLOG
   ══════════════════════════════════════════════ */
.rm-blog-list {
  padding: 120px var(--section-px) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.rm-blog-list .rm-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.rm-blog-list .rm-news-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
}

.rm-blog-list .rm-news-img {
  background: rgba(192, 159, 80, 0.08);
}

.rm-blog-article {
  padding: 120px var(--section-px) 80px;
  max-width: 780px;
  margin: 0 auto;
}

.rm-blog-header {
  margin-bottom: 40px;
}

.rm-blog-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 24px;
}

.rm-blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.rm-blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rm-blog-hero-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

.rm-blog-hero-img[src$=".svg"] {
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.rm-blog-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}

.rm-blog-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
}

.rm-blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 12px;
}

.rm-blog-content p {
  margin-bottom: 16px;
}

.rm-blog-content ul, .rm-blog-content ol {
  margin: 12px 0 20px 24px;
}

.rm-blog-content li {
  margin-bottom: 6px;
}

.rm-blog-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(43,52,103,0.03);
  border-radius: 0 8px 8px 0;
  color: var(--ink-soft);
  font-style: italic;
}

.rm-blog-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rm-blog-content a:hover {
  color: var(--secondary);
}

.rm-blog-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.rm-blog-content code {
  background: rgba(43,52,103,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.rm-blog-content pre {
  background: var(--primary-dark);
  color: var(--white);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.rm-blog-content pre code {
  background: none;
  padding: 0;
  font-size: 0.88rem;
  color: inherit;
}

.rm-blog-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .rm-blog-article { padding-top: 100px; }
  .rm-blog-header h1 { font-size: 1.6rem; }
  .rm-blog-list { padding-top: 100px; }
  .rm-blog-list .rm-news-body h2 { text-align: center; }
  .rm-blog-list .rm-news-category,
  .rm-blog-list .rm-news-date { text-align: center; }
  .rm-news-body h4 { text-align: center; }
  .rm-news-category,
  .rm-news-date { text-align: center; }
}

/* ══════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════ */
.rm-legal-page {
  padding: 120px var(--section-px) 80px;
  min-height: 60vh;
}
.rm-legal-content {
  max-width: 780px; margin: 0 auto;
  font-size: 0.95rem; line-height: 1.8; color: var(--ink-soft);
}
.rm-legal-content h1 {
  font-size: 2.2rem; font-weight: 700; color: var(--primary);
  margin-bottom: 32px;
}
.rm-legal-content h2 {
  font-size: 1.3rem; font-weight: 600; color: var(--primary);
  margin-top: 40px; margin-bottom: 12px;
}
.rm-legal-content p { margin-bottom: 16px; }
.rm-legal-content .rm-legal-note { margin-top: 24px; }
.rm-legal-content a { color: var(--primary); text-decoration: underline; }
.rm-legal-content a:hover { color: var(--secondary); }
.rm-legal-back { margin-top: 48px; }
.rm-legal-back a { text-decoration: none; font-weight: 500; }
.rm-legal-content ul { padding-left: 24px; margin-bottom: 16px; }
.rm-legal-content li { margin-bottom: 8px; }
.rm-legal-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary); margin-top: 28px; margin-bottom: 12px; }
.rm-legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 32px; font-size: 0.9rem; }
.rm-legal-table th, .rm-legal-table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; line-height: 1.6; }
.rm-legal-table th { background: var(--bg-alt); font-weight: 600; color: var(--primary); }
.rm-legal-table code { background: var(--bg-alt); padding: 2px 6px; font-size: 0.85rem; }
