/*
 Theme Name: Belle Rêve Retreats
 Theme URI: https://bellereveretreats.com/
 Description: Child theme for Belle Rêve Retreats based on Twenty Twenty-Five
 Author: Peet
 Template: twentytwentyfive
 Version: 1.7
*/

/* =========================================================
   Global tweaks on top of theme.json
   ========================================================= */

/* -----------------------------------------------------------
   GLOBAL BODY TYPOGRAPHY — unify paragraph style everywhere
----------------------------------------------------------- */

body,
.entry-content p,
.entry-content ol,
.entry-content ul,
.entry-content li {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;               /* Clean, readable base size */
    line-height: 1.7;
    letter-spacing: 0;             /* Remove theme-wide tightness */
    color: var(--wp--preset--color--br-charcoal);
    margin-bottom: 1.2rem;         /* Even spacing between paragraphs */
}

/* Remove Gutenberg “small”/“large” overrides inside content */
.entry-content p.has-small-font-size,
.entry-content p.has-large-font-size,
.entry-content p.has-medium-font-size {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* Intro paragraphs on booking page */
.br-booking-intro {
    font-size: 1rem !important;    /* Remove oversized intro */
    line-height: 1.7 !important;
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
}

/* Countdown paragraph */
.br-booking-countdown {
    font-size: 1rem !important;
    margin-top: 1.5rem;
}

/* Remove odd <br> spacing */
.br-booking-countdown br {
    display: none;
}

/* Ordered lists — unify spacing + typography */
.entry-content ol {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}
.entry-content ol li {
    margin-bottom: 0.5rem;
    font-size: 1rem !important;
}

/* Booking widget placeholder spacing */
.br-booking-form .wp-block-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Links inside the content */
.entry-content a {
    color: var(--wp--preset--color--br-forest);
    text-decoration: underline;
}
.entry-content a:hover {
    color: var(--wp--preset--color--br-clay);
}


body {
    background: #F7F3EA; /* warm cream */
    color: #202523;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-weight: 300;
}

/* Headings + site title: elegant serif */
h1, h2, h3, h4, h5, h6,
.wp-block-site-title {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: 0;
}

/* Optional: adjust nav to use Inter so it stays sharp & legible */
.wp-block-navigation,
.wp-block-navigation a {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    font-weight: 500;
}

/* Optional: soften paragraph line-height slightly for the new font */
p {
    line-height: 1.75;
}

/* HEADER / NAV
   --------------------------------------------------------- */

.br-header {
    border-bottom: 1px solid rgba(31, 76, 58, 0.08);
}

.br-header .wp-block-site-title a {
    text-decoration: none;
}

/* Hero section helper (if you use a Group with this class) */

.br-hero {
    padding-block: 4rem;
    border-radius: 1.5rem;
    background: radial-gradient(circle at top left, #E9F1EB 0, #F7F3EA 42%, #E9F1EB 100%);
}

/* =========================================================
   Buttons & key CTAs
   ========================================================= */

.wp-block-button__link,
.br-btn-primary {
    background-color: #1F4C3A; /* forest green */
    color: #ffffff;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wp-block-button__link:hover,
.br-btn-primary:hover {
    background-color: #B27D5B; /* clay accent on hover */
    color: #ffffff;
}

/* Secondary / subtle button */

.br-btn-secondary {
    background-color: transparent;
    color: #1F4C3A;
    border-radius: 999px;
    border: 1px solid rgba(31, 76, 58, 0.3);
    padding: 0.7rem 1.4rem;
    font-weight: 500;
}

.br-btn-secondary:hover {
    background-color: rgba(31, 76, 58, 0.06);
}

/* Make the main header CTA stand out */

.br-header-cta .wp-block-button__link {
    background-color: #1F4C3A;
    color: #ffffff;
}

/* =========================================================
   Retreat / events listings (shortcodes & patterns)
   ========================================================= */

.br-retreat-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    margin-block: 2.5rem;
}

@media (min-width: 768px) {
    .br-retreat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.br-retreat-card {
    border-radius: 1rem;
    padding: 1.5rem 1.6rem;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(10, 28, 19, 0.04);
    border: 1px solid rgba(31, 76, 58, 0.08);
}

.br-retreat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.br-retreat-card-title {
    font-weight: 600;
    color: #1F4C3A;
    margin: 0;
}

.br-retreat-card-date {
    font-size: 0.85rem;
    color: rgba(32, 37, 35, 0.8);
}

.br-retreat-card-meta {
    font-size: 0.9rem;
    color: rgba(32, 37, 35, 0.8);
    margin-bottom: 0.8rem;
}

/* Capacity / spaces left */

.br-retreat-card-capacity {
    font-size: 0.85rem;
    color: rgba(32, 37, 35, 0.85);
    margin-bottom: 1rem;
}

.br-retreat-card-capacity span.br-low-spots {
    color: #B27D5B;
    font-weight: 600;
}

/* Booking form container */

.br-booking-form {
    max-width: 540px;
    margin-inline: auto;
    padding: 1.8rem 2rem;
    background: #FFFFFF;
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(10, 28, 19, 0.06);
    border: 1px solid rgba(31, 76, 58, 0.08);
}

.br-booking-form h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #1F4C3A;
}

.br-booking-form p.br-booking-intro {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: rgba(32, 37, 35, 0.9);
}

/* Form fields */

.br-booking-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(32, 37, 35, 0.9);
    margin-bottom: 0.35rem;
}

.br-booking-form input[type="text"],
.br-booking-form input[type="email"],
.br-booking-form select,
.br-booking-form textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(31, 76, 58, 0.25);
    font-size: 0.95rem;
    background-color: #FDFBF6;
}

.br-booking-form textarea {
    min-height: 90px;
    resize: vertical;
}

/* Confirmation / notices */

.br-booking-notice {
    padding: 0.9rem 1rem;
    border-radius: 0.75rem;
    background: #E9F1EB;
    color: #1F4C3A;
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
}

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

.br-footer {
    border-top: 1px solid rgba(31, 76, 58, 0.12);
    padding-top: 2rem;
    padding-bottom: 2rem;
    font-size: 0.85rem;
    color: rgba(32, 37, 35, 0.8);
}

.br-footer a {
    color: #1F4C3A;
}

.br-footer a:hover {
    color: #B27D5B;
}

/* --- Hero CTAs layout fix --- */

.br-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.br-hero-ctas .br-btn-primary,
.br-hero-ctas .br-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    text-align: center;
    white-space: nowrap;
}

/* Stack buttons nicely on mobile */
@media (max-width: 600px) {
    .br-hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .br-hero-ctas .br-btn-primary,
    .br-hero-ctas .br-btn-secondary {
        width: 100%;
        white-space: normal;
    }
}

/* Layout helpers */
.br-section-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.br-section-wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.br-section-center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.br-small {
  font-size: 0.9rem;
}

/* HERO */
.br-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.br-hero picture,
.br-hero .br-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.br-hero .br-hero-image {
  object-fit: cover;
  object-position: center center;
  max-width: none; /* prevent WP max-width:100% shrinking inside container */
}

.br-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2.5rem 2rem 3rem;
  text-align: center;

  background: rgba(247, 243, 234, 0.85); /* br-cream with transparency */
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #202523; /* dark charcoal for body text */
}

.br-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #1F4C3a;
}

.br-hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 600; /* keep the bold for readability */
  position: relative;
  display: inline-block;
  padding: 0.15em 0.45em; /* tiny breathing space */

  color: #202523;
}

.br-hero-meta {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Hero CTAs (fix overlap) */
.br-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.br-hero-ctas .br-btn-primary,
.br-hero-ctas .br-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .br-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .br-hero-ctas .br-btn-primary,
  .br-hero-ctas .br-btn-secondary {
    width: 100%;
    white-space: normal;
  }
}

.br-hero-ctas .br-btn-secondary:hover {
  background-color: #F7F3EA; /* solid cream on hover */
  color: #1F4C3A;
}

/* Countdown inline */
.br-countdown {
  font-weight: 600;
}

/* Feature tiles */
.br-feature-grid {
  gap: 2rem;
}

.br-feature-tile figure {
  margin: 0 0 1rem;
}

.br-feature-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

/* Testimonials */
.br-testimonials {
  background: #faf7f3;
}

.br-testimonial-grid {
  gap: 2rem;
}

/* Gallery */
.br-gallery-grid figure {
  margin: 0;
}

.br-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* Masonry-style gallery (Option C) */
.br-gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.br-gallery-grid figure {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.5rem;
  break-inside: avoid;
}

.br-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

/* Smaller masonry variant on retreat page if you keep --mini */
.br-gallery-grid--mini {
  column-count: 3;
  column-gap: 1.5rem;
}

/* Responsive behaviour */
@media (max-width: 1024px) {
  .br-gallery-grid,
  .br-gallery-grid--mini {
    column-count: 2;
  }
}

@media (max-width: 640px) {
  .br-gallery-grid,
  .br-gallery-grid--mini {
    column-count: 1;
  }
}

/* Two-column layout for retreat sections */
.br-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.br-two-column--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.br-two-column-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
}

@media (max-width: 800px) {
  .br-two-column,
  .br-two-column--reverse {
    grid-template-columns: 1fr;
  }
}

/* Rooms & pricing cards */
.br-retreat-list {
  display: grid;
  gap: 1.5rem;
}

.br-retreat-card {
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.br-retreat-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.br-retreat-card-title {
  margin: 0;
}

.br-retreat-card-date {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.br-low-spots {
  color: #b44a2b;
  font-weight: 600;
}

.wp-block-table.retreat-schedule-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table.retreat-schedule-table table,
.wp-block-table.retreat-schedule-table th,
.wp-block-table.retreat-schedule-table td {
    border: none !important;
}

.wp-block-table.retreat-schedule-table td:first-child {
    width: 20% !important;
    vertical-align: top !important;
    text-align: left !important;
    padding: 0.25em 0.75em 0.75em 0 !important;
}

.wp-block-table.retreat-schedule-table td:nth-child(2) {
    width: 80% !important;
    padding: 0.25em 0 0.75em 0 !important;
}

/* Shared styling for itinerary tables */
.wp-block-table table.retreat-schedule-table {
    border-collapse: collapse;
    width: 100%;
    border: none;
}

/* Remove borders from cells (overrides core .wp-block-table td/th) */
.wp-block-table table.retreat-schedule-table td,
.wp-block-table table.retreat-schedule-table th {
    border: none;
    padding: 0.25em 0 0.75em 0;
}

/* First column: top-left aligned, narrower */
.wp-block-table table.retreat-schedule-table td:first-child {
    width: 20%;
    vertical-align: top;
    text-align: left;
    padding-right: 0.75em;
}

/* Second column: takes the rest */
.wp-block-table table.retreat-schedule-table td:nth-child(2) {
    width: 80%;
}


/* Keep itinerary hero image from being taller than the screen */
.itinerary-hero img {
    max-height: 70vh;     /* at most 70% of the viewport height */
    width: auto;          /* keep aspect ratio */
    max-width: 100%;      /* don't overflow horizontally */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Shared styling for itinerary image rows */
.itinerary-photo-row .wp-block-image img,
.wp-block-columns.itinerary-photo-row img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    background-color: #F7F3EA; /* in case image doesn't load */
}

/* Optional: a little breathing room above/below the row */
.itinerary-photo-row {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.br-booking-form ol {
  list-style-position: inside;   /* moves numbers next to the text */
  padding: 0;
  margin: 1.5rem auto;
  text-align: center;
}

.br-booking-form ol li {
  margin: 0.5rem 0;
}

.br-hero-ctas .wp-block-button__link,
.br-hero-ctas .wp-block-button__link:hover {
  color: #ffffff !important;
}

/* === Primary button: force white text, override entry-content link colour === */

.entry-content a.br-btn-primary {
    color: #ffffff !important;
    text-decoration: none;
}

/* If you ever use the Gutenberg Button block as well, keep it consistent: */
.entry-content a.wp-block-button__link {
    color: #ffffff !important;
    text-decoration: none;
}

