/* ==========================================================================
   Collins IP Law — Homepage redesign (v1.54.1)
   Used by front-page.php (EN) and page-templates/page-inicio.php (ES).
   Everything is scoped under .rd so other pages keep their existing styles.
   ========================================================================== */

.rd {
  --rd-klein: #002FA6;
  --rd-navy: #001A5E;
  --rd-navy-2: #0B2A78;
  --rd-copper: #B5501A;
  --rd-copper-deep: #5C2808;
  --rd-peach: #F2C9A0;
  --rd-warm: #FAFAF7;
  --rd-ice: #E8EEF9;
  --rd-ink: #1B2340;
  --rd-body: #3E4666;
  --rd-muted: #4A5270;
  --rd-rule: #E3E4EA;
  --rd-rule-2: #C9CCD8;
  --rd-serif: 'Playfair Display', Georgia, serif;
  --rd-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  background: var(--rd-warm);
  color: var(--rd-ink);
  font-family: var(--rd-sans);
  font-size: 17px;
  line-height: 1.6;
}
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd ul, .rd ol { list-style: none; margin: 0; padding: 0; }
.rd p, .rd h1, .rd h2, .rd h3, .rd h4, .rd figure, .rd blockquote { margin: 0; }
.rd a { color: var(--rd-klein); }
.rd a:hover { color: var(--rd-navy); }
.rd a:focus-visible, .rd button:focus-visible { outline: 3px solid var(--rd-copper); outline-offset: 3px; }

.rd-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.rd-section { padding: 112px 0; }
.rd-section--white { background: #FFFFFF; }
.rd-section--rule { border-top: 1px solid var(--rd-rule); }
.rd-section--white.rd-section--rule { border-bottom: 1px solid var(--rd-rule); }

.rd .rd-eyebrow { font-size: 15px; font-weight: 600; color: var(--rd-copper); }
.rd-h2 {
  font-family: var(--rd-serif);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  line-height: 1.15;
  color: var(--rd-navy);
}
.rd-h3 {
  font-family: var(--rd-serif);
  font-weight: 700;
  font-size: clamp(1.625rem, 2.5vw, 2.125rem);
  line-height: 1.2;
  color: var(--rd-navy);
}
.rd-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 48px; max-width: 760px; }
.rd-lede { font-size: 17px; line-height: 1.6; color: var(--rd-body); }
.rd .rd-small { font-size: 14px; line-height: 1.6; color: var(--rd-muted); }

/* Buttons */
.rd-btn {
  display: inline-block;
  padding: 17px 26px;
  border-radius: 3px;
  background: var(--rd-klein);
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  text-decoration: none;
  border: 2px solid var(--rd-klein);
  transition: background .15s ease, border-color .15s ease;
}
.rd-btn:hover { background: var(--rd-navy); border-color: var(--rd-navy); }
.rd-btn--outline { background: #FFFFFF; color: var(--rd-navy) !important; border-color: var(--rd-navy); }
.rd-btn--outline:hover { background: var(--rd-navy); color: #FFFFFF !important; }
.rd-btn--peach { background: var(--rd-peach); border-color: var(--rd-peach); color: var(--rd-navy) !important; }
.rd-btn--peach:hover { background: #FFFFFF; border-color: #FFFFFF; }
.rd-btn--navy { background: var(--rd-navy); border-color: var(--rd-navy); }
.rd-textlink { font-weight: 600; text-underline-offset: 4px; }
.rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.rd-check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }

/* ---------- Hero ---------- */
.rd-hero { padding: 104px 0 88px; }
.rd-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: center; }
.rd-hero-text { display: flex; flex-direction: column; gap: 24px; }
.rd-hero-kicker { font-size: 15px; font-weight: 500; color: var(--rd-muted); }
.rd-hero h1 {
  font-family: var(--rd-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.06;
  color: var(--rd-navy);
}
.rd-hero h1 em { font-style: italic; color: var(--rd-klein); }
.rd-hero-sub { font-size: 20px; line-height: 1.6; color: var(--rd-body); max-width: 620px; }
.rd-hero-phone { font-weight: 600; font-size: 17px; color: var(--rd-navy) !important; text-decoration: none; }
.rd-hero-guide { font-size: 15px; font-weight: 500; text-underline-offset: 3px; }

/* Two-step price panel */
.rd-price { border: 1px solid var(--rd-rule-2); border-radius: 6px; overflow: hidden; background: #FFFFFF; }
.rd-price-top { padding: 32px 34px 28px; background: var(--rd-navy); color: var(--rd-ice); display: flex; flex-direction: column; gap: 14px; }
.rd-price-step { font-size: 15px; font-weight: 600; color: var(--rd-peach); }
.rd-price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rd-price-amount strong { font-family: var(--rd-serif); font-weight: 700; font-size: clamp(2.75rem, 5vw, 3.75rem); line-height: 1; color: #FFFFFF; }
.rd-price-amount span { font-size: 16px; color: #C9D3EE; }
.rd-price-credit { font-size: 15px; line-height: 1.5; color: var(--rd-peach); }
.rd-price-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px !important; }
.rd-price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.rd-price-top .rd-price-list li { color: #FFFFFF; }
.rd-price-band { padding: 18px 34px; background: var(--rd-peach); display: flex; align-items: center; gap: 12px; }
.rd-price-band p { font-size: 15px; font-weight: 600; line-height: 1.45; color: #3B1A06; }
.rd-price-bottom { padding: 24px 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.rd-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rd-price-row p { font-size: 15px; font-weight: 600; color: var(--rd-muted); }
.rd-price-row strong { font-family: var(--rd-serif); font-size: 26px; font-weight: 700; color: var(--rd-navy); }
.rd-price-bottom .rd-price-list li { color: var(--rd-ink); }
.rd-price-total { margin-top: 6px !important; padding-top: 14px; border-top: 1px solid var(--rd-rule); font-size: 15px; color: var(--rd-body); }
.rd-price-total strong { color: var(--rd-navy); }
.rd-price .rd-btn { padding: 15px 22px; font-size: 16px; }
.rd-price .rd-actions { margin-top: 6px; gap: 14px 20px; }

.rd-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rd-rule); }
.rd-trust h2 { font-family: var(--rd-sans); font-size: 17px; font-weight: 600; color: var(--rd-navy); margin-bottom: 6px; }
.rd-trust p { font-size: 15px; line-height: 1.55; color: var(--rd-muted); }

/* ---------- Attorney ---------- */
.rd-about-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 80px; align-items: start; }
.rd-about-photo { display: flex; flex-direction: column; gap: 16px; }
.rd-about-photo img { width: 360px; max-width: 100%; height: 420px; object-fit: cover; border-radius: 6px; background: var(--rd-ice); }
.rd-about-photo figcaption { display: flex; flex-direction: column; gap: 2px; }
.rd-about-photo figcaption strong { font-family: var(--rd-serif); font-size: 22px; color: var(--rd-navy); }
.rd-about-photo figcaption span { font-size: 15px; color: var(--rd-muted); }
.rd-about-text { display: flex; flex-direction: column; gap: 24px; }
.rd-about-text > p { font-size: 18px; line-height: 1.7; color: var(--rd-body); }
.rd-pull {
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--rd-copper);
  font-family: var(--rd-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--rd-navy);
}
.rd-creds { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }
.rd-creds li { display: flex; align-items: center; gap: 8px; }
.rd-quote { padding: 24px 28px; background: var(--rd-warm); border: 1px solid var(--rd-rule); border-radius: 6px; display: flex; flex-direction: column; gap: 10px; }
.rd-stars { color: var(--rd-copper); letter-spacing: 3px; }
.rd-quote p { font-size: 16px; line-height: 1.6; }
.rd-quote cite { font-style: normal; font-size: 14px; color: var(--rd-muted); }

/* ---------- Pricing ---------- */
.rd-pricing-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; margin-bottom: 48px; }
.rd-pricing-head .rd-eyebrow { grid-column: 1 / -1; }
.rd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rd-card { padding: 44px 40px; border: 1px solid var(--rd-rule-2); border-radius: 4px; display: flex; flex-direction: column; gap: 18px; background: #FFFFFF; }
.rd-card--featured { border: 2px solid var(--rd-navy); }
.rd-card-title { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.rd-card-title h3 { font-family: var(--rd-serif); font-size: 34px; font-weight: 700; color: var(--rd-navy); }
.rd-badge { padding: 5px 10px; border-radius: 3px; background: var(--rd-peach); color: var(--rd-copper-deep); font-size: 13px; font-weight: 600; }
.rd-card-desc { font-size: 16px; color: var(--rd-body); }
.rd-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.rd-card-price span { font-size: 15px; color: var(--rd-muted); }
.rd-card-price strong { font-family: var(--rd-serif); font-size: 52px; font-weight: 700; line-height: 1.1; color: var(--rd-navy); }
.rd-card .rd-btn { align-self: flex-start; padding: 16px 26px; font-size: 16px; }
.rd-card ul { margin-top: 8px; padding: 20px 0 0 20px; border-top: 1px solid var(--rd-rule); display: flex; flex-direction: column; gap: 10px; list-style: disc; font-size: 16px; line-height: 1.45; }
.rd .rd-flatfee { margin-top: 48px; max-width: 900px; font-size: 15px; line-height: 1.6; color: var(--rd-muted); }
.rd-flatfee strong { color: var(--rd-ink); }

.rd-pay { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rd-rule); display: flex; flex-direction: column; gap: 28px; }
.rd-pay-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.rd-steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rd-steps3 li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--rd-navy); }
.rd-steps3 li.rd-steps3-choice { border-top-color: var(--rd-copper); }
.rd-steps3 .rd-step-label { font-size: 14px; font-weight: 600; color: var(--rd-muted); }
.rd-steps3 h4 { font-size: 18px; font-weight: 600; color: var(--rd-navy); }
.rd-steps3 p { font-size: 15px; line-height: 1.55; color: var(--rd-body); }
.rd-steps3 .rd-step-amounts { font-weight: 600; color: var(--rd-navy); }

/* ---------- How it works ---------- */
.rd-steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.rd-steps4 li { display: flex; flex-direction: column; gap: 12px; }
.rd-steps4 .rd-num { font-family: var(--rd-serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--rd-copper); }
.rd-steps4 h3 { font-size: 19px; font-weight: 600; color: var(--rd-navy); }
.rd-steps4 p { font-size: 15px; line-height: 1.6; color: var(--rd-body); }

/* ---------- Risk ---------- */
.rd-risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.rd-risk > div { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--rd-rule-2); }
.rd-risk h3 { font-size: 19px; font-weight: 600; color: var(--rd-navy); }
.rd-risk p { font-size: 15px; line-height: 1.6; color: var(--rd-body); }

/* ---------- Testimonials ---------- */
.rd-testis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.rd-testis figure { display: flex; flex-direction: column; gap: 16px; }
.rd-testis blockquote { font-family: var(--rd-serif); font-size: 22px; line-height: 1.5; color: var(--rd-ink); }
.rd-testis figcaption { font-size: 15px; color: var(--rd-muted); }
.rd .rd-testis-note { margin-top: 44px; font-size: 13px; color: var(--rd-muted); }

/* ---------- FAQ (uses the existing accordion JS: .faq-list / .faq-item / .faq-q / .faq-a) ---------- */
.rd-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; }
.rd-faq-side { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.rd-faq-side p { font-size: 16px; line-height: 1.6; color: var(--rd-body); }
.rd-faq-side .rd-btn { align-self: flex-start; padding: 15px 24px; font-size: 16px; }
.rd .faq-list { border-top: 1px solid var(--rd-rule-2); }
.rd .faq-item { border-bottom: 1px solid var(--rd-rule-2); }
.rd .faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--rd-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--rd-navy);
  cursor: pointer;
}
.rd .faq-q::after { color: var(--rd-klein); }
.rd .faq-a { padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--rd-body); }

/* ---------- Guide band ---------- */
.rd-guide { margin-top: 112px; }
.rd-guide-box { padding: 64px; background: var(--rd-peach); border-radius: 4px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: center; }
.rd-guide-text { display: flex; flex-direction: column; gap: 18px; }
.rd .rd-guide-text .rd-eyebrow { color: var(--rd-copper-deep); }
.rd-guide-text > p { font-size: 17px; line-height: 1.6; color: #3B1A06; }
.rd-guide-text ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: #3B1A06; }
.rd-guide-note { font-size: 14px; color: var(--rd-copper-deep); max-width: 320px; }
.rd-guide-cover { min-height: 320px; background: var(--rd-navy); border-radius: 3px; padding: 36px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.rd-guide-cover strong { font-family: var(--rd-serif); font-size: 30px; line-height: 1.2; color: #FFFFFF; }
.rd-guide-cover span { font-size: 14px; color: var(--rd-peach); }

/* ---------- Contact ---------- */
.rd-contact { padding: 128px 0 112px; text-align: center; }
.rd-contact-head { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 40px; }
.rd-contact-head h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.rd-contact-head p { max-width: 620px; font-size: 18px; color: var(--rd-body); }
.rd-contact .booking-embed { text-align: left; }
.rd-contact-bar { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 16px; color: var(--rd-body); }
.rd-contact-bar a { color: var(--rd-navy); font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .rd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rd-price { max-width: 560px; }
  .rd-about-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .rd-about-photo img { width: 280px; height: 330px; }
  .rd-steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rd-guide-box { grid-template-columns: minmax(0, 1fr); padding: 48px; }
  .rd-guide-cover { min-height: 0; }
}

@media (max-width: 760px) {
  .rd { font-size: 16px; }
  .rd-inner { padding: 0 1.25rem; }
  .rd-section { padding: 72px 0; }
  .rd-hero { padding: 56px 0 56px; }
  .rd-hero-sub { font-size: 18px; }
  .rd-price-top, .rd-price-bottom { padding-left: 22px; padding-right: 22px; }
  .rd-price-band { padding: 16px 22px; }
  .rd-trust { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 48px; }
  .rd-about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rd-about-photo img { width: 240px; height: 280px; }
  .rd-about-text > p { font-size: 17px; }
  .rd-pricing-head { grid-template-columns: minmax(0, 1fr); }
  .rd-cards { grid-template-columns: minmax(0, 1fr); }
  .rd-card { padding: 32px 24px; }
  .rd-card-price strong { font-size: 44px; }
  .rd-steps3, .rd-steps4, .rd-risk, .rd-testis { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rd-testis blockquote { font-size: 19px; }
  .rd-guide { margin-top: 72px; }
  .rd-guide-box { padding: 32px 22px; border-radius: 0; }
  .rd-guide .rd-inner { padding: 0; }
  .rd-contact { padding: 80px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-btn { transition: none; }
}

/* main.css removes underlines from all links; restore them for in-text links here. */
.rd p a, .rd .rd-textlink, .rd .rd-hero-guide, .rd .rd-small a { text-decoration: underline; text-underline-offset: 3px; }
