
/* =========================================================
   Rimo Digital LLC - Static Website Styles
   Warm editorial design system for Cloudflare Pages
   ========================================================= */

:root {
  --cream: #F5F0E8;
  --tan: #C9A882;
  --tan-deep: #a9825d;
  --brown: #3B2F24;
  --brown-deep: #2C1F14;
  --gold: #B8966A;
  --white: #FFFFFF;
  --muted: rgba(44,31,20,.72);
  --cream-soft: rgba(245,240,232,.86);
  --border: rgba(44,31,20,.14);
  --shadow: 0 24px 70px rgba(44,31,20,.16);
  --max: 1180px;
  --radius: 28px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--brown-deep);
  background: var(--cream);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3 {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .94;
}

h1 {
  font-size: clamp(4.1rem, 9vw, 8.7rem);
  max-width: 850px;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(3rem, 6vw, 6.2rem);
  max-width: 900px;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.95rem;
  margin-bottom: .75rem;
}

em {
  color: var(--gold);
  font-style: italic;
}

p {
  color: var(--muted);
}

.dark-section p,
.footer p,
.page-hero-dark p {
  color: rgba(245,240,232,.74);
}

/* =========================================================
   Navigation
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.2rem 1.4rem;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.site-header.scrolled {
  background: rgba(59,47,36,.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,.16);
  padding: .7rem 1.4rem;
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid rgba(245,240,232,.22);
  border-radius: 999px;
  padding: .65rem .7rem .65rem .9rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: rgba(44,31,20,.34);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--cream);
  font-weight: 800;
  letter-spacing: .14em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-link {
  color: rgba(245,240,232,.78);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
  padding: .55rem .2rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: .2rem;
  right: .2rem;
  bottom: .25rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  background: var(--cream);
  color: var(--brown-deep);
  padding: .75rem 1.05rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: transform .25s ease, background .25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245,240,232,.25);
  border-radius: 50%;
  background: transparent;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--cream);
  transition: .25s ease;
}

.menu-toggle span:first-child {
  top: 16px;
}

.menu-toggle span:last-child {
  bottom: 16px;
}

.menu-toggle.open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.open span:last-child {
  bottom: 21px;
  transform: rotate(-45deg);
}

.mobile-panel {
  display: none;
}

/* =========================================================
   Buttons and small elements
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: .95rem 1.35rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brown-deep);
  color: var(--cream);
  box-shadow: 0 12px 34px rgba(44,31,20,.2);
}

.btn-primary.light {
  background: var(--cream);
  color: var(--brown-deep);
}

.btn-secondary {
  border-color: rgba(44,31,20,.32);
  color: var(--brown-deep);
  background: rgba(245,240,232,.2);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.6rem;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 10rem 1.4rem 6rem;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(245,240,232,.90) 0%, rgba(245,240,232,.72) 42%, rgba(245,240,232,.18) 100%),
    radial-gradient(circle at 15% 30%, rgba(255,255,255,.28), transparent 32%),
    linear-gradient(0deg, rgba(245,240,232,.42), rgba(245,240,232,.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  max-width: 650px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* =========================================================
   Sections and layouts
   ========================================================= */

.section {
  padding: clamp(5rem, 9vw, 8rem) 1.4rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cream-section {
  background: var(--cream);
}

.tan-section {
  background: linear-gradient(135deg, #d4bb9c, var(--tan));
}

.dark-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(184,150,106,.18), transparent 34%),
    var(--brown);
  color: var(--cream);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 3rem;
}

.split-intro,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split-layout.reverse {
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr);
}

.three-grid,
.feature-grid,
.package-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

.three-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid,
.package-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dark-card,
.feature-card,
.package-card,
.process-card {
  border-radius: var(--radius);
  padding: 1.45rem;
}

.dark-card,
.process-card {
  background: rgba(245,240,232,.07);
  border: 1px solid rgba(245,240,232,.16);
}

.dark-card span,
.feature-card span,
.process-card span {
  display: block;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 1rem;
}

.feature-card,
.package-card {
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(44,31,20,.09);
  box-shadow: 0 16px 44px rgba(44,31,20,.07);
}

.package-card a {
  color: var(--brown-deep);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.package-featured {
  background: var(--brown);
  color: var(--cream);
}

.package-featured p {
  color: rgba(245,240,232,.75);
}

.package-featured a {
  color: var(--gold);
}

.badge {
  display: inline-flex;
  padding: .35rem .65rem;
  border: 1px solid rgba(184,150,106,.5);
  border-radius: 999px;
  color: var(--gold) !important;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--brown-deep);
  color: var(--cream);
}

.strip-item {
  padding: 1.35rem;
  border-right: 1px solid rgba(245,240,232,.12);
  font-weight: 700;
}

.strip-item span {
  color: var(--gold);
  margin-right: .5rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.tag-cloud span {
  padding: .75rem 1rem;
  background: rgba(245,240,232,.5);
  border: 1px solid rgba(44,31,20,.14);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
}

.care-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--brown);
  color: var(--cream);
  border-radius: 32px;
  padding: 1rem;
}

.care-band div {
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(245,240,232,.07);
}

.care-band strong,
.care-band span {
  display: block;
}

.care-band strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: .5rem;
}

.care-band span {
  color: rgba(245,240,232,.72);
}

.cta-section {
  background: var(--cream);
}

.cta-card,
.contact-card {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-radius: 42px;
  padding: clamp(3rem, 8vw, 6rem);
  background:
    linear-gradient(135deg, rgba(201,168,130,.85), rgba(245,240,232,.9)),
    var(--tan);
  box-shadow: var(--shadow);
}

.cta-mark,
.contact-mark {
  width: 70px;
  margin: 0 auto 1.4rem;
}

/* =========================================================
   Page specific
   ========================================================= */

.page-hero {
  min-height: 76vh;
  padding: 10rem 1.4rem 5rem;
  display: grid;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245,240,232,.95), rgba(201,168,130,.52)),
    var(--cream);
}

.page-hero-dark {
  background:
    radial-gradient(circle at 75% 20%, rgba(184,150,106,.24), transparent 34%),
    var(--brown);
  color: var(--cream);
}

.about-hero {
  min-height: 86vh;
}

.contact-hero {
  min-height: 100vh;
}

.image-frame {
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brown);
}

.image-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.image-frame.tall img {
  height: 680px;
}

.dark-frame {
  border: 1px solid rgba(245,240,232,.15);
}

.quote-panel {
  background: rgba(245,240,232,.55);
  border: 1px solid rgba(44,31,20,.1);
  border-radius: 36px;
  padding: clamp(2rem, 5vw, 4rem);
}

.quote-panel p {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  font-style: italic;
  line-height: 1;
  color: var(--brown-deep);
}

.quote-panel span {
  display: block;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

.rules-list p {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(245,240,232,.14);
  border-radius: 18px;
  background: rgba(245,240,232,.06);
}

.email-line {
  margin: 2rem auto 1rem;
  display: grid;
  gap: .25rem;
}

.email-line span {
  color: var(--gold);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
}

.email-line a {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.small-note {
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: .95rem;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: 4rem 1.4rem 1.4rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr;
  gap: 2rem;
}

.footer-mark {
  width: 56px;
  margin-bottom: 1rem;
}

.footer-brand h2 {
  font-family: var(--sans);
  font-size: 1.3rem;
  letter-spacing: .25em;
  margin-bottom: .5rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: .65rem;
}

.footer-col h3 {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  color: rgba(245,240,232,.75);
}

.footer-small {
  font-size: .88rem;
}

.footer-bottom {
  max-width: var(--max);
  margin: 3rem auto 0;
  border-top: 1px solid rgba(245,240,232,.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(245,240,232,.55);
  font-size: .86rem;
}

/* =========================================================
   Animation
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 86px 1.4rem auto 1.4rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: .25s ease;
  }

  .mobile-panel.open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-panel-inner {
    background: rgba(59,47,36,.96);
    border: 1px solid rgba(245,240,232,.18);
    border-radius: 28px;
    padding: 1rem;
    display: grid;
    gap: .35rem;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
  }

  .mobile-link {
    color: var(--cream);
    padding: 1rem;
    border-radius: 18px;
    font-weight: 700;
  }

  .mobile-link.active {
    background: rgba(245,240,232,.08);
    color: var(--gold);
  }

  .mobile-cta {
    margin-top: .5rem;
  }

  .split-intro,
  .split-layout,
  .split-layout.reverse {
    grid-template-columns: 1fr;
  }

  .three-grid,
  .feature-grid,
  .package-grid,
  .process-grid,
  .care-band,
  .footer-grid,
  .trust-strip,
  .rules-list {
    grid-template-columns: 1fr;
  }

  .image-frame img,
  .image-frame.tall img {
    height: auto;
    max-height: 720px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: .8rem;
  }

  .nav-shell {
    padding: .55rem .6rem;
  }

  .hero {
    min-height: 92vh;
    padding-top: 8rem;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(245,240,232,.96), rgba(245,240,232,.8));
  }

  .section {
    padding: 4rem 1rem;
  }

  .page-hero {
    padding: 8rem 1rem 4rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  h2 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .footer-bottom {
    flex-direction: column;
  }
}


/* =========================================================
   Rimo V2 Refinements
   Contrast, logo scale, luxury wordmark, and alignment polish
   ========================================================= */

:root {
  --cream-bright: #FFF9EF;
  --gold-light: #D9BC88;
  --muted-strong: rgba(44,31,20,.86);
  --cream-muted: rgba(245,240,232,.80);
}

/* Larger, more memorable logo mark with a lighter luxury wordmark */
.brand {
  gap: .8rem;
  font-weight: 500;
  letter-spacing: .22em;
}

.brand span {
  font-size: 1rem;
  line-height: 1;
}

.brand-mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-shell {
  padding-top: .52rem;
  padding-bottom: .52rem;
}

/* Stronger dark-section contrast */
.dark-section h1,
.dark-section h2,
.dark-section h3,
.page-hero-dark h1,
.page-hero-dark h2,
.page-hero-dark h3 {
  color: var(--cream-bright);
}

.dark-section p,
.page-hero-dark p,
.footer p {
  color: var(--cream-muted);
}

.dark-section .eyebrow,
.page-hero-dark .eyebrow,
.dark-section em,
.page-hero-dark em {
  color: var(--gold-light);
}

.dark-card,
.process-card {
  background: rgba(245,240,232,.09);
  border-color: rgba(245,240,232,.18);
}

.dark-card p,
.process-card p {
  color: rgba(245,240,232,.84);
}

/* Stronger tan-section contrast */
.tan-section {
  background:
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, #DCC2A2 0%, #C9A882 100%);
  color: var(--brown-deep);
}

.tan-section p {
  color: var(--muted-strong);
}

.tan-section .eyebrow {
  color: rgba(44,31,20,.55);
}

/* Card/grid alignment cleanup */
.three-grid,
.feature-grid,
.package-grid,
.process-grid,
.rules-list {
  align-items: stretch;
}

.dark-card,
.feature-card,
.package-card,
.process-card {
  min-height: 100%;
}

.feature-card,
.package-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.62);
  border-color: rgba(44,31,20,.10);
}

.feature-card p,
.package-card p {
  color: var(--muted-strong);
}

.package-card a {
  margin-top: auto;
}

/* More even tag pills without making the page look mechanical */
.tag-cloud {
  align-content: center;
  justify-content: flex-start;
}

.tag-cloud span {
  min-width: 132px;
  text-align: center;
  background: rgba(245,240,232,.62);
  color: var(--brown-deep);
}

/* Care/rules readability */
.care-band span {
  color: rgba(245,240,232,.84);
}

.rules-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-list p {
  min-height: 64px;
  display: flex;
  align-items: center;
  color: rgba(245,240,232,.86);
  background: rgba(245,240,232,.08);
  border-color: rgba(245,240,232,.16);
}

/* Founder quote/contact cards */
.quote-panel {
  background: rgba(245,240,232,.72);
  border-color: rgba(44,31,20,.12);
  box-shadow: 0 18px 50px rgba(44,31,20,.10);
}

.cta-mark,
.contact-mark {
  width: 92px;
}

.footer-mark {
  width: 72px;
}

/* Mobile balance */
@media (max-width: 640px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: .9rem;
  }

  .nav-shell {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  .rules-list {
    grid-template-columns: 1fr;
  }

  .tag-cloud span {
    min-width: unset;
  }
}


/* Rimo V3 Content Removals */
.footer-col:last-child {
  gap: .85rem;
}


/* =========================================================
   Rimo V4 Readability Refinements
   Darker emphasis words on tan/light backgrounds
   ========================================================= */

:root {
  --gold-readable: #8A623D;
  --gold-readable-soft: #9B7048;
}

/* Global emphasis should stay warm but readable on light/tan backgrounds */
em {
  color: var(--gold-readable);
}

/* Eyebrow labels on tan backgrounds also need stronger contrast */
.tan-section .eyebrow {
  color: rgba(44,31,20,.62);
}

/* Keep gold accents readable in headings on tan and cream sections */
.tan-section em,
.cream-section em,
.page-hero em,
.contact-card em,
.cta-card em,
.quote-panel em {
  color: var(--gold-readable);
}

/* Keep dark sections using a lighter gold for contrast against brown */
.dark-section em,
.page-hero-dark em,
.dark-section .eyebrow,
.page-hero-dark .eyebrow {
  color: var(--gold-light);
}

/* Gold rules can stay accent-like, but slightly deeper on tan/light sections */
.tan-section .gold-rule,
.cream-section .gold-rule,
.page-hero .gold-rule {
  background: var(--gold-readable-soft);
}


/* =========================================================
   Rimo V5 Portfolio + Popular Card Refinements
   ========================================================= */

/* Make the featured package/care cards readable and still premium */
.package-featured,
.care-featured {
  background:
    radial-gradient(circle at 82% 12%, rgba(217,188,136,.22), transparent 34%),
    var(--brown) !important;
  color: var(--cream-bright) !important;
  border-color: rgba(217,188,136,.34) !important;
}

.package-featured h3,
.package-featured p,
.care-featured h3,
.care-featured p {
  color: var(--cream-bright) !important;
}

.package-featured .badge,
.care-featured .badge {
  color: var(--gold-light) !important;
  border-color: rgba(217,188,136,.65);
  background: rgba(245,240,232,.08);
}

.package-featured a,
.care-featured a {
  color: var(--gold-light) !important;
}

.care-featured span {
  color: var(--gold-light);
}

/* Our Work page */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.work-card {
  min-height: 280px;
  border-radius: var(--radius);
  padding: 1.45rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(245,240,232,.88));
  border: 1px solid rgba(44,31,20,.10);
  box-shadow: 0 16px 44px rgba(44,31,20,.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.work-card span {
  color: var(--gold-readable);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-bottom: 1rem;
}

.work-card h3 {
  margin-bottom: .65rem;
}

.work-card p {
  color: var(--muted-strong);
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Rimo V6 Navigation Consistency Fix
   Ensures Our Work remains visible across all pages
   ========================================================= */

.desktop-nav {
  gap: .85rem;
}

.nav-link {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: .65rem;
  }

  .nav-link {
    font-size: .68rem;
    letter-spacing: .11em;
  }

  .nav-cta {
    padding-left: .9rem;
    padding-right: .9rem;
  }
}


/* =========================================================
   Rimo V7 Heading Spacing + Mobile Preview Polish
   Prevents large editorial words from visually colliding
   ========================================================= */

/* The original editorial headings were beautiful but too tight at full screen.
   These rules keep the luxury scale while improving readability. */
h1,
h2 {
  line-height: 1.03;
}

h1 em,
h2 em {
  display: inline-block;
  line-height: 1.02;
  padding-inline: .015em;
}

/* Large section headings need a little more breathing room on wide screens. */
.section-heading h2,
.split-intro h2,
.split-layout h2,
.page-hero h1 {
  max-width: 980px;
}

/* Reduce the largest page/section headlines slightly on very wide screens
   so words do not crowd each other in full-screen desktop view. */
@media (min-width: 1300px) {
  h1 {
    font-size: clamp(4.1rem, 7.8vw, 8.1rem);
  }

  h2 {
    font-size: clamp(3rem, 5.25vw, 5.7rem);
  }
}

/* Keep mobile headings dramatic but more controlled. */
@media (max-width: 640px) {
  h1,
  h2 {
    line-height: 1.04;
  }

  h1 em,
  h2 em {
    padding-inline: 0;
  }
}


/* =========================================================
   Rimo V8 Package Detail Section
   Adds clear public scope without showing prices
   ========================================================= */

.package-details {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(44,31,20,.12);
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading.compact h2 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.detail-card {
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(44,31,20,.1);
  box-shadow: 0 16px 44px rgba(44,31,20,.07);
}

.detail-card h3 {
  margin-bottom: .65rem;
}

.detail-card p {
  color: var(--muted-strong);
}

.detail-card ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}

.detail-card li {
  position: relative;
  padding-left: 1.15rem;
  color: rgba(44,31,20,.82);
  font-size: .95rem;
}

.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-readable);
}

.detail-featured {
  background:
    radial-gradient(circle at 82% 12%, rgba(217,188,136,.22), transparent 34%),
    var(--brown);
  color: var(--cream-bright);
  border-color: rgba(217,188,136,.34);
}

.detail-featured h3,
.detail-featured p,
.detail-featured li {
  color: var(--cream-bright);
}

.detail-featured li::before {
  background: var(--gold-light);
}

.detail-featured .eyebrow {
  color: var(--gold-light);
}

@media (max-width: 980px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Rimo V9 Care Plan Detail Section
   Adds clear public support limits without showing prices
   ========================================================= */

.care-details {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid rgba(44,31,20,.12);
}

.care-details-grid {
  margin-top: 1.25rem;
}

.scope-note {
  margin-top: 1rem;
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(44,31,20,.92), rgba(84,60,38,.92)),
    var(--brown);
  border: 1px solid rgba(217,188,136,.28);
  color: var(--cream-bright);
}

.scope-note h3 {
  color: var(--cream-bright);
  margin-bottom: .55rem;
}

.scope-note p {
  color: rgba(255,249,239,.82);
  max-width: 72rem;
}
