/*
 * Rouge homepage
 *
 * This file contains only the styles used by index.html. Shared site styles
 * remain in core.css, header.css, footer.css, and typography.css.
 */

/* Page foundation and motion */
.rouge-home {
  background: #fff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rouge-home .page-wrapper {
  overflow: clip;
}

.rouge-home a {
  text-decoration: none;
}

.rouge-home .home-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.rouge-home .home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .rouge-home .home-reveal,
  .apple-bento-card,
  .apple-service-card,
  .apple-pill-btn {
    transition: none;
  }
}

/* Homepage navigation appearance */
.rouge-home .rouge-global-header {
  --rouge-nav-ink: #f5f5f7;
  --rouge-nav-muted: #a1a1a6;
  --rouge-nav-accent: #fff;
  --rouge-nav-hairline: transparent;
  background: #1d1d1f;
  border-bottom-color: transparent;
  color: var(--rouge-nav-ink);
}

.rouge-home .rouge-global-header .rouge-support-panel,
.rouge-home .rouge-global-header .rouge-search-panel,
.rouge-home .rouge-global-header .rouge-mobile-menu {
  background: #1d1d1f;
  border-color: #ffffff14;
}

.rouge-home .rouge-global-header .rouge-header-search-button:hover,
.rouge-home .rouge-global-header .rouge-header-search-button:focus-visible,
.rouge-home .rouge-global-header.is-search-open .rouge-header-search-button,
.rouge-home .rouge-global-header .rouge-search-results a:hover {
  background: #ffffff12;
}

.rouge-home .rouge-global-header .rouge-search-close {
  background: #363638;
  color: #f5f5f7;
}

.rouge-home .rouge-global-header .rouge-mobile-support-links a {
  color: #c7c7cc;
}

.rouge-home .rouge-global-header a:focus-visible,
.rouge-home .rouge-global-header button:focus-visible {
  outline: 2px solid #e3a8b7;
  outline-offset: 4px;
}

/* Holiday hero */
.rg-apple-hero {
  padding: 54px 24px 0;
  overflow: hidden;
  color: #f5f5f7;
  background: #000;
  text-align: center;
}

.rg-apple-copy {
  max-width: 1000px;
  margin: 0 auto;
}

.rg-main .rg-apple-hero h1 {
  margin: 0;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.22;
  font-variant-ligatures: none;
}

.rg-apple-location {
  margin: 12px 0 0;
  color: #a5a5ad;
  font-size: 15px;
}

.rg-apple-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.rg-apple-actions a {
  padding: 10px 23px;
  border: 1px solid #a63752;
  border-radius: 999px;
  background: #a63752;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.rg-apple-actions a + a {
  border-color: #bd6b80;
  background: transparent;
  color: #edb5c3;
}

.rg-apple-actions a:hover {
  background: #b4415e;
  color: #fff;
}

.rg-holiday-art {
  position: relative;
  width: min(780px, 100%);
  margin: 20px auto 0;
}

.rg-holiday-art img {
  display: block;
  width: 100%;
  height: auto;
}

.rg-family-art {
  width: min(680px, 100%);
  margin: 32px auto 26px;
}

/* Review carousel controls */
.rouge-home .home-review-controls {
  display: flex;
  gap: 8px;
  margin: 24px auto 0;
}

.rouge-home .home-review-controls button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
  font-size: 20px;
  transition: background .2s ease, transform .2s ease;
}

.rouge-home .home-review-controls button:hover {
  background: #e8e8eb;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .rg-apple-hero {
    padding: 40px 18px 0;
  }

  .rg-main .rg-apple-hero h1 {
    font-size: 36px;
  }

  .rg-apple-location {
    max-width: 270px;
    margin: 12px auto 0;
    font-size: 13px;
  }

  .rg-apple-actions a {
    padding: 10px 18px;
    font-size: 14px;
  }

  .rg-family-art {
    width: 100%;
    margin: 28px auto 24px;
  }
}

/* Apple-style content sections */
.apple-section { 
  padding: 140px 24px; 
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center !important; 
  background: #ffffff; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}
.apple-section.gray { background: #f5f5f7; }
.apple-section.dark { background: #000000; color: #f5f5f7; }
.apple-section--full-bleed { padding-inline: 0; }

.apple-eyebrow { 
  display: block;
  margin: 0 auto 24px auto !important; 
  color: #922c43; 
  font-size: 14px; 
  font-weight: 700; 
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  text-align: center !important;
}
.dark .apple-eyebrow { color: #d7a3af; }

.apple-headline { 
  width: 100%;
  max-width: 980px;
  margin: 0 auto !important; 
  color: #1d1d1f !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(42px, 6vw, 76px) !important; 
  font-weight: 700 !important; 
  letter-spacing: -0.01em !important; 
  line-height: 1.22 !important; 
  font-variant-ligatures: none !important;
  text-wrap: balance !important; 
  text-align: center !important;
}
.dark .apple-headline { color: #f5f5f7 !important; }
.apple-headline--narrow { max-width: 800px; }

.apple-subhead { 
  width: 100%;
  max-width: 760px; 
  margin: 28px auto 0 auto !important; 
  color: #86868b !important;
  font-size: clamp(20px, 2.5vw, 24px) !important; 
  font-weight: 400 !important; 
  letter-spacing: 0 !important;
  line-height: 1.5 !important; 
  text-wrap: balance !important; 
  text-align: center !important;
}

.apple-link-cta { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 8px; 
  margin: 32px auto 0 auto; 
  color: #06c; 
  font-size: 21px; 
  font-weight: 400; 
  text-decoration: none; 
  transition: color 0.2s; 
}
.apple-link-cta:hover { color: #004499; text-decoration: underline; }

/* Bento Grid (Our Approach) */
.apple-bento-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 28px; 
  width: 100%;
  max-width: 1220px; 
  margin: 80px auto 0; 
}
.apple-bento-card { 
  display: flex; 
  flex-direction: column; 
  padding: 56px;
  background: #f5f5f7; 
  border-radius: 36px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s; 
  text-align: left !important; 
  align-items: flex-start;
}
.apple-bento-card:hover { 
  transform: scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.apple-bento-card h3 { 
  margin: 0 0 16px !important; 
  color: #1d1d1f !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 26px !important; 
  font-weight: 600 !important; 
  letter-spacing: 0 !important; 
  line-height: 1.3 !important;
  font-variant-ligatures: none !important;
  text-align: left !important;
}
.apple-bento-card p { 
  margin: 0 !important;
  color: #515154 !important; 
  font-size: 18px !important; 
  line-height: 1.55 !important; 
  text-align: left !important;
}

/* Core Services Grid (Practice Areas) */
.apple-service-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); 
  gap: 24px; 
  width: 100%;
  max-width: 1060px; 
  margin: 80px auto 0; 
}
.apple-service-card { 
  position: relative; 
  display: flex; 
  flex-direction: column; 
  padding: 48px;
  background: #1d1d1f; 
  border-radius: 36px; 
  text-decoration: none !important;
  text-align: left !important;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
.apple-service-card:hover { 
  transform: translateY(-6px); 
  background: #252528; 
}
.apple-service-card h3 { 
  margin: 0 0 12px !important; 
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 28px !important; 
  font-weight: 650 !important; 
  letter-spacing: 0 !important; 
  line-height: 1.3 !important;
  font-variant-ligatures: none !important;
  text-align: left !important;
}
.apple-service-card p { 
  margin: 0 0 40px !important; 
  color: #a1a1a6 !important; 
  font-size: 17px !important; 
  line-height: 1.55 !important; 
  text-align: left !important;
}
.apple-service-link {
  margin-top: auto;
  color: #2997ff;
  font-size: 17px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.apple-service-card:hover .apple-service-link {
  color: #4aa3ff;
}

/* Pill Buttons */
.apple-pill-btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 48px; 
  padding: 18px 36px; 
  background: #ffffff; 
  border-radius: 980px; 
  color: #1d1d1f !important; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 17px !important; 
  font-weight: 600 !important; 
  text-decoration: none !important; 
  transition: transform 0.2s, opacity 0.2s; 
}
.apple-pill-btn:hover { transform: scale(1.03); opacity: 0.9; }

.apple-final-cta .apple-pill-btn { 
  margin: 48px auto 0 auto; 
  background: #1d1d1f; 
  color: #ffffff !important; 
  font-size: 20px !important; 
  padding: 20px 48px; 
}
.apple-final-cta .apple-pill-btn:hover { background: #000000; }

/* Horizontal Review Track */
.apple-review-container {
  width: 100%;
  position: relative;
  margin-top: 40px;
}
.apple-review-track { 
  display: flex; 
  gap: 24px; 
  overflow-x: auto; 
  padding: 20px max(24px, calc((100vw - 1220px) / 2)) 70px max(24px, calc((100vw - 1220px) / 2)); 
  scroll-snap-type: x mandatory; 
  scrollbar-width: none; 
  scroll-behavior: smooth;
}
.apple-review-track::-webkit-scrollbar { display: none; }
.apple-review-card { 
  flex: 0 0 min(85vw, 460px); 
  scroll-snap-align: center; 
  padding: 56px; 
  background: #ffffff; 
  border: 1px solid rgba(0,0,0,0.05); 
  border-radius: 36px; 
  box-shadow: 0 24px 48px rgba(0,0,0,0.03); 
  text-align: left !important;
  display: flex;
  flex-direction: column;
}
.apple-review-card .stars { 
  margin-bottom: 32px;
  color: #1d1d1f; 
  font-size: 20px; 
  letter-spacing: 0.25em; 
}
.apple-review-card blockquote { 
  margin: 0 0 40px !important; 
  color: #1d1d1f !important; 
  font-family: "Source Serif 4", serif !important; 
  font-size: clamp(26px, 3vw, 36px) !important; 
  font-weight: 500 !important; 
  letter-spacing: -0.01em !important; 
  line-height: 1.3 !important; 
}
.apple-review-card .author { 
  margin: auto 0 0 0 !important;
  color: #86868b !important;
  font-size: 17px !important; 
  font-weight: 600 !important; 
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .apple-section { padding: 90px 20px; }
  .apple-section--full-bleed { padding-inline: 0; }
  .apple-bento-card { padding: 40px; }
  .apple-service-card { padding: 40px 32px; border-radius: 32px; }
  .apple-review-card { padding: 40px; border-radius: 28px; }
  .apple-pill-btn { padding: 16px 32px; width: 100%; text-align: center; }
}
/* Holiday Inline Promo Card */
.holiday-inline-promo {
  padding: 40px 0;
  background: #fff; /* Matches standard page background */
}

.holiday-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
  background: #050506;
  background:
    radial-gradient(circle at 10% 10%, rgba(199, 154, 69, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(146, 44, 67, 0.18) 0%, transparent 60%),
    #050506;
  border: 1px solid rgba(199, 154, 69, 0.2);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  color: #fff;
}

.promo-card-content {
  flex: 1;
}

.promo-card-content h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.promo-card-content p {
  margin: 0;
  color: #aaaab0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
}

.promo-card-action {
  flex-shrink: 0;
}

.promo-btn {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(146, 44, 67, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 760px) {
  .holiday-promo-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
  }
  .promo-card-content h2 {
    font-size: 26px;
  }
  .promo-btn {
    width: 100%;
  }
}
/* Reduce the space between the hero and Our Approach */
.rg-apple-hero + .apple-section {
  padding-top: 48px;
}

@media (max-width: 768px) {
  .rg-apple-hero + .apple-section {
    padding-top: 32px;
  }
}

/* add on */
/* Apple-inspired service row */
.rg-service-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 2px 0 0;
  box-sizing: border-box;
  background: #fff;
}

.rg-main .rg-service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 360px;
  box-sizing: border-box;
  padding: 48px 28px 36px;
  border: 0;
  border-radius: 0;
  background: #f5f5f7;
  color: #1d1d1f;
  text-align: center;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  transition: background-color 180ms ease;
}

.rg-main .rg-service-tile:nth-child(even) {
  background: #f2eeee;
}

.rg-service-tile__eyebrow {
  margin: 0 0 14px;
  color: #922c43;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rg-main .rg-service-tile h2 {
  margin: 0;
  color: #1d1d1f;
  font-family: inherit;
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.rg-main .rg-service-tile p {
  max-width: 270px;
  margin: 18px 0 28px;
  color: #626268;
  font-size: 16px;
  line-height: 1.55;
}

.rg-service-tile__link {
  margin-top: auto;
  padding-top: 12px;
  color: #922c43;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.rg-service-tile__link > span {
  display: inline-block;
  margin-left: 4px;
}

.rg-main .rg-service-tile:hover {
  background: #ebe5e7;
}

.rg-service-tile:hover .rg-service-tile__link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rg-service-tile:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid #922c43;
  outline-offset: -5px;
}

/* Keep Our Approach close to the new service row */
.rg-service-tiles + .apple-section {
  padding-top: 56px;
}

@media (max-width: 1024px) {
  .rg-service-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rg-main .rg-service-tile {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .rg-service-tiles {
    grid-template-columns: 1fr;
  }

  .rg-main .rg-service-tile {
    min-height: 280px;
    padding: 36px 24px 30px;
  }

  .rg-main .rg-service-tile h2 {
    font-size: 30px;
  }

  .rg-service-tiles + .apple-section {
    padding-top: 40px;
  }
}
/* Balance headings across lines */
.rg-main .rg-service-tile h2 {
  text-wrap: balance;
}

/* Avoid a short, isolated last line in descriptions */
.rg-main .rg-service-tile p {
  text-wrap: pretty;
}

/* Keep each short service link together */
.rg-service-tile__link {
  white-space: nowrap;
}
.rg-main :is(h1, h2, h3) {
  text-wrap: balance;
}

.rg-main :is(p, .apple-subhead, .rg-apple-location) {
  text-wrap: pretty;
}
/* Hero css new */
.rg-carousel {
  --current: 0;
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  background: #fff;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.rg-carousel__viewport {
  display: grid;
  overflow: hidden;
}
/* Define positions in the stylesheet, not inline HTML styles. */
.rg-carousel__slide:nth-child(1) { --slide: 0; }
.rg-carousel__slide:nth-child(2) { --slide: 1; }
.rg-carousel__slide:nth-child(3) { --slide: 2; }
.rg-carousel__slide:nth-child(4) { --slide: 3; }
.rg-carousel .rg-carousel__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 620px;
  box-sizing: border-box;
  padding: 56px 56px 88px;
  background: #fff;
  text-align: center;
  transform: translateX(calc((var(--slide) - var(--current)) * 100%));
  transition: transform 700ms cubic-bezier(.22,.61,.36,1);
}
.rg-carousel .rg-carousel__slide--holiday {
  justify-content: flex-start;
  background: #000;
  color: #f5f5f7;
}
.rg-carousel .rg-carousel__slide--soft { background: #f4eff0; }
.rg-carousel__copy { width: 100%; max-width: 960px; }
.rg-carousel .rg-carousel__copy :is(h1,h2) {
  margin: 0;
  font-family: inherit;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: inherit;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.rg-carousel .rg-carousel__copy p {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.45;
  color: inherit;
  text-wrap: pretty;
}
.rg-carousel__eyebrow {
  display: block;
  margin-bottom: 20px;
  color: #922c43;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rg-carousel__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 20px;
}
.rg-carousel .rg-carousel__links a {
  padding-block: 8px;
  font-size: 18px;
  line-height: 1.4;
  color: #922c43;
  text-decoration: none;
  text-wrap: balance;
}
.rg-carousel .rg-carousel__slide--holiday a { color: #edb5c3; }
.rg-carousel .rg-carousel__links a:hover { text-decoration: underline; }
.rg-carousel .rg-carousel__image {
  display: block;
  width: min(680px, 100%);
  height: auto;
  margin: 24px auto 0;
}
.rg-carousel__controls {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 30px;
  background: rgb(255 255 255 / .92);
  color: #515154;
}
.rg-carousel__controls[hidden] { display: none; }
.rg-carousel .rg-carousel__controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}
.rg-carousel__dots { display: flex; }
.rg-carousel .rg-carousel__dots button { width: 28px; }
.rg-carousel__dots button::after {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid #737378;
  border-radius: 50%;
  background: #737378;
}
.rg-carousel__dots button[aria-current="true"]::after {
  border-color: #922c43;
  background: transparent;
}
.rg-carousel :is(a,button):focus-visible {
  outline: 3px solid #bb6d83;
  outline-offset: 2px;
}
.rg-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rg-carousel + .apple-section { padding-top: 48px; }
@media (max-width: 600px) {
  .rg-carousel .rg-carousel__slide {
    min-height: 540px;
    padding: 44px 22px 86px;
  }
  .rg-carousel .rg-carousel__links a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-carousel .rg-carousel__slide { transition: none; }
}

/* Show only the carousel dots */
.rg-carousel .rg-carousel__controls > button {
  display: none !important;
}
.rg-carousel__controls {
  background: transparent;
}
/* Appended. */
.rg-carousel .rg-carousel__slide--peace {
  position: relative;
  min-height: 650px;
  justify-content: flex-end;
  padding: 40px 24px 66px;
  background: #080706;
  color: #fff;
}
.rg-carousel .rg-peace-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: 90% center;
}
.rg-peace-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.rg-carousel .rg-peace-copy h1 {
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(36px, 4.1vw, 52px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.rg-carousel .rg-peace-copy a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 26px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  text-wrap: balance;
}
.rg-peace-copy a svg { flex-shrink: 0; }
.rg-carousel .rg-peace-copy a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .rg-carousel .rg-carousel__slide--peace {
    min-height: 540px;
    padding: 36px 20px 76px;
  }
  .rg-carousel .rg-peace-photo { object-position: 65% center; }
}
/* Estate planning holiday slide */
.rg-carousel .rg-carousel__slide--estate-holiday {
  padding: 40px 48px 80px;
  background: #f8f5ef;
  color: #242020;
}

.rg-estate-holiday {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.rg-estate-holiday .rg-carousel__copy {
  min-width: 0;
  text-align: left;
}

.rg-estate-holiday .rg-carousel__eyebrow {
  margin-bottom: 20px;
  color: #922c43;
}

.rg-carousel .rg-estate-holiday h2 {
  max-width: 560px;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.rg-carousel .rg-estate-holiday p {
  max-width: 440px;
  margin: 24px 0 0;
  color: #68605e;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  text-wrap: pretty;
}

.rg-estate-holiday .rg-carousel__links {
  justify-content: flex-start;
  gap: 8px 24px;
  margin-top: 24px;
}

.rg-carousel .rg-estate-holiday__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  margin: 0;
  object-fit: contain;
}

/* Stack the text and illustration on smaller screens */
@media (max-width: 800px) {
  .rg-carousel .rg-carousel__slide--estate-holiday {
    padding: 40px 24px 76px;
  }

  .rg-estate-holiday {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .rg-estate-holiday .rg-carousel__copy {
    text-align: center;
  }

  .rg-carousel .rg-estate-holiday h2,
  .rg-carousel .rg-estate-holiday p {
    margin-inline: auto;
  }

  .rg-estate-holiday .rg-carousel__links {
    justify-content: center;
  }

  .rg-carousel .rg-estate-holiday__image {
    max-width: 440px;
    max-height: 280px;
    margin-inline: auto;
  }
}
/* Final slide: successions */
.rg-carousel .rg-carousel__slide--successions {
  background: radial-gradient(
    ellipse at 50% 35%,
    #743246 0%,
    #461c29 65%,
    #30131c 100%
  );
  color: #faf5ef;
}

.rg-carousel__slide--successions .rg-carousel__copy {
  max-width: 1000px;
}

.rg-carousel__slide--successions .rg-carousel__eyebrow {
  color: #e7bbc6;
  text-wrap: balance;
}

.rg-carousel .rg-carousel__slide--successions h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.rg-carousel .rg-carousel__slide--successions p {
  max-width: 580px;
  margin-top: 24px;
  color: #eadce0;
  text-wrap: pretty;
}

.rg-carousel .rg-carousel__slide--successions a {
  color: #f2cbd5;
}
/* Responsive first slide */
.rg-carousel .rg-carousel__slide--peace {
  position: relative;
  min-height: clamp(440px, 52.8vw, 760px);
  padding: 40px 24px 76px;
  overflow: hidden;
  background: #100b08;
}

/* Scale proportionally to fill the slide */
.rg-carousel .rg-peace-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

/* Keep the text above the photograph */
.rg-carousel .rg-peace-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.rg-carousel .rg-peace-copy h1 {
  font-size: clamp(36px, 4.1vw, 60px);
  line-height: 1.1;
  text-wrap: balance;
}

.rg-carousel .rg-peace-copy a {
  font-size: clamp(16px, 1.5vw, 20px);
  text-wrap: balance;
}

@media (max-width: 600px) {
  .rg-carousel .rg-carousel__slide--peace {
    min-height: 440px;
    padding: 32px 20px 76px;
  }

  .rg-carousel .rg-peace-photo {
    object-position: 50% center;
  }
}
@media (max-width: 600px) {
  .rg-carousel__viewport {
    position: relative;
    display: block;
  }

  .rg-carousel .rg-carousel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    transform: none;
    transition: none;
    visibility: hidden;
    pointer-events: none;
  }

  .rg-carousel .rg-carousel__slide[aria-hidden="false"] {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 440px;
    visibility: visible;
    pointer-events: auto;
  }

  .rg-carousel .rg-carousel__slide--holiday {
    padding: 32px 22px 76px;
  }

  .rg-carousel .rg-carousel__slide--holiday .rg-carousel__image {
    width: min(100%, 380px);
    height: auto;
    margin: 24px auto 0;
  }

  .rg-carousel__controls {
    bottom: 12px;
  }
}
/* Final CTA: two equal buttons, centered */
.apple-final-cta .apple-cta-pair { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; margin-top:48px; }
.apple-final-cta .apple-cta-pair .apple-pill-btn { box-sizing:border-box; width:300px; margin:0; padding:20px 24px; border:2px solid #1d1d1f; }
.apple-final-cta .apple-cta-pair .apple-pill-btn--outline { background:transparent; color:#1d1d1f !important; }
.apple-final-cta .apple-cta-pair .apple-pill-btn--outline:hover { background:#1d1d1f; color:#ffffff !important; opacity:1; }
@media (max-width: 768px) {
  .apple-final-cta .apple-cta-pair { flex-direction:column; align-items:center; }
  .apple-final-cta .apple-cta-pair .apple-pill-btn { width:100%; max-width:360px; }
}
