/**
 * Shared partials — template-parts/shared/*.php. These are the small,
 * genuinely-reused pieces every phase-2 page template pulls in: a section
 * heading, a content card, a full-width CTA band and the mobile sticky CTA
 * bar. Kept in their own handle (rather than dist/css/layout.css, which is
 * header/footer/404 chrome) so a page that doesn't use one of these doesn't
 * pay for it — though at this size that's a documentation distinction more
 * than a performance one.
 */

/* =====================================================================
 * Section heading
 * ================================================================== */
.rnta-section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--rn-space-12);
  margin-bottom: var(--rn-space-40);
}
.rnta-section-heading--center {
  align-items: center;
  text-align: center;
}
.rnta-section-heading__title {
  margin: 0;
}
.rnta-section-heading__description {
  margin: 0;
  max-width: 620px;
  font-size: var(--rn-fs-17);
  line-height: 1.6;
}
.rnta-section-heading--center .rnta-section-heading__description {
  margin-inline: auto;
}

/* =====================================================================
 * Archive grid — the responsive grid archive-guide.php / archive-package.php
 * lay .rnta-card tiles into. Three columns down to 1080px, two to 720px,
 * one below that, per the breakpoints in HANDOFF.md §2.
 * ================================================================== */
.rnta-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rn-space-32);
  margin-bottom: var(--rn-space-48);
}
@media (max-width: 1080px) {
  .rnta-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .rnta-archive-grid {
    grid-template-columns: 1fr;
    gap: var(--rn-space-22);
  }
}

/* =====================================================================
 * Card
 * ================================================================== */
.rnta-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--rn-white);
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius-16);
  box-shadow: var(--rn-shadow-card);
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.rnta-card:hover,
.rnta-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--rn-shadow-floating);
  color: inherit;
}
.rnta-card__media {
  position: relative;
  display: block;
  aspect-ratio: 10 / 7;
  overflow: hidden;
  background: var(--rn-surface);
}
.rnta-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rnta-card__badge {
  position: absolute;
  top: var(--rn-space-12);
  left: var(--rn-space-12);
  padding: 6px 12px;
  border-radius: var(--rn-radius-pill);
  background: var(--rn-white);
  color: var(--rn-navy);
  font-family: var(--rn-font-label);
  font-size: var(--rn-fs-11);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rnta-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--rn-space-8);
  padding: var(--rn-space-22);
}
.rnta-card__title {
  font-family: var(--rn-font-display);
  font-size: var(--rn-fs-20);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--rn-navy);
  line-height: 1.25;
}
.rnta-card__excerpt {
  font-size: var(--rn-fs-14);
  line-height: 1.6;
  color: var(--rn-body);
}
.rnta-card__meta {
  font-family: var(--rn-font-label);
  font-size: var(--rn-fs-12);
  font-weight: 600;
  color: var(--rn-blue);
  letter-spacing: 0.02em;
}
.rnta-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--rn-space-8);
  margin-top: var(--rn-space-8);
  font-size: var(--rn-fs-14);
  font-weight: 700;
  color: var(--rn-blue);
}

/* =====================================================================
 * CTA band
 * ================================================================== */
.rnta-cta-band {
  padding: var(--rn-space-56) 0;
}
.rnta-cta-band--navy { background: var(--rn-navy); color: var(--rn-white); }
.rnta-cta-band--blue { background: var(--rn-blue); color: var(--rn-white); }
.rnta-cta-band--gold { background: var(--rn-gold); color: var(--rn-navy); }

.rnta-cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rn-space-32);
  flex-wrap: wrap;
}
.rnta-cta-band__copy {
  min-width: 0;
  flex: 1 1 360px;
}
.rnta-cta-band__eyebrow {
  color: var(--rn-gold);
}
.rnta-cta-band--gold .rnta-cta-band__eyebrow {
  color: var(--rn-navy);
}
.rnta-cta-band__title {
  margin: var(--rn-space-8) 0 0;
  color: inherit;
  font-size: var(--rn-fs-32);
  letter-spacing: -0.8px;
}
.rnta-cta-band__description {
  margin: var(--rn-space-10) 0 0;
  max-width: 480px;
  font-size: var(--rn-fs-16);
  line-height: 1.6;
  color: inherit;
  opacity: 0.86;
}
.rnta-cta-band__actions {
  display: flex;
  gap: var(--rn-space-12);
  flex-wrap: wrap;
}
.rnta-btn--on-dark {
  background: transparent;
  color: var(--rn-white);
  border-color: rgba(255, 255, 255, 0.4);
}
.rnta-btn--on-dark:hover {
  border-color: var(--rn-white);
  color: var(--rn-white);
}
.rnta-cta-band--gold .rnta-btn--on-dark {
  color: var(--rn-navy);
  border-color: rgba(15, 54, 123, 0.3);
}

@media (max-width: 720px) {
  .rnta-cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================================
 * Sticky mobile CTA bar — appears only at the 720px breakpoint (HANDOFF.md §3)
 * ================================================================== */
.rnta-sticky-cta {
  display: none;
}
@media (max-width: 720px) {
  .rnta-sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    gap: 1px;
    background: var(--rn-line);
    box-shadow: 0 -4px 16px rgba(15, 54, 123, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}
.rnta-sticky-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 56px;
  background: var(--rn-white);
  color: var(--rn-navy);
  font-size: var(--rn-fs-13);
  font-weight: 700;
}
.rnta-sticky-cta__btn--call {
  color: var(--rn-navy);
}
.rnta-sticky-cta__btn--whatsapp {
  color: var(--rn-green);
}
.rnta-sticky-cta__btn--primary {
  background: var(--rn-blue);
  color: var(--rn-white);
  flex: 1.4;
}

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

/* =====================================================================
 * Search form (searchform.php)
 * ================================================================== */
.rnta-search-form {
  display: flex;
  align-items: center;
  gap: var(--rn-space-10);
  max-width: 480px;
  margin-bottom: var(--rn-space-32);
  padding: 6px 6px 6px 18px;
  background: var(--rn-white);
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius-pill);
  box-shadow: var(--rn-shadow-card);
}
.rnta-search-form__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: var(--rn-fs-15);
  color: var(--rn-ink);
}
.rnta-search-form__input::placeholder {
  color: var(--rn-body);
}
.rnta-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--rn-blue);
  color: var(--rn-white);
}
.rnta-search-form__submit:hover {
  background: var(--rn-blue-hover);
}

/* =====================================================================
 * Single guide / package article shell — shared minimal reading layout for
 * single-guide.php and single-package.php (neither has a dedicated .dc.html;
 * built to the same tokens per HANDOFF.md's "use good design-token-consistent
 * judgment" note).
 * ================================================================== */
.rnta-guide,
.rnta-package {
  padding-top: var(--rn-space-32);
  padding-bottom: var(--rn-space-72);
}
.rnta-guide__header {
  max-width: 760px;
  margin: 0 auto var(--rn-space-32);
}
.rnta-guide__title {
  margin: var(--rn-space-12) 0 var(--rn-space-12);
}
.rnta-guide__meta {
  display: flex;
  gap: var(--rn-space-8);
  font-size: var(--rn-fs-14);
  color: var(--rn-body);
}
.rnta-guide__hero {
  max-width: 900px;
  margin: 0 auto var(--rn-space-40);
  border-radius: var(--rn-radius-16);
  overflow: hidden;
  box-shadow: var(--rn-shadow-card);
}
.rnta-guide__hero img {
  width: 100%;
  height: auto;
}
.rnta-guide__content {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--rn-fs-17);
  line-height: 1.75;
}
.rnta-guide__content > * + * {
  margin-top: var(--rn-space-22);
}
.rnta-guide__content h2 {
  font-size: var(--rn-fs-28);
  letter-spacing: -0.6px;
}
.rnta-guide__content h3 {
  font-size: var(--rn-fs-22);
}
.rnta-guide__content img {
  border-radius: var(--rn-radius-12);
}
.rnta-guide__content ul,
.rnta-guide__content ol {
  padding-left: 1.4em;
  list-style: revert;
}

.rnta-itinerary {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--rn-space-18);
}
.rnta-itinerary > li {
  padding: var(--rn-space-18);
  background: var(--rn-surface);
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-radius-12);
}
.rnta-itinerary__facts {
  display: flex;
  gap: var(--rn-space-16);
  margin-top: var(--rn-space-8) !important;
  font-size: var(--rn-fs-13);
  color: var(--rn-blue);
  font-weight: 600;
}

.rnta-package__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rn-space-32);
}
.rnta-package__compare ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--rn-space-8);
}
.rnta-package__compare li {
  display: flex;
  align-items: flex-start;
  gap: var(--rn-space-8);
}
@media (max-width: 720px) {
  .rnta-package__compare {
    grid-template-columns: 1fr;
  }
}
