/*
 * Bedford Landings Global Styles
 * Persistent site-specific CSS for Elementor pages and theme templates.
 * Brand: #243D2F primary, #A8794F secondary, #1F2A24 text, #4F7F8C accent.
 */

/* 01. Brand variables and base typography */
:root {
  --color-primary: #243D2F !important;
  --color-secondary: #A8794F !important;
  --color-accent: #4F7F8C !important;
  --color-header-bg: #ffffff !important;
  --color-header-text: #1F2A24 !important;
  --color-footer-bg: #2f241c !important;
  --color-footer-text: #f4eadc !important;
  --bl-primary: #243D2F !important;
  --bl-secondary: #A8794F !important;
  --bl-accent: #4F7F8C !important;
  --bl-text: #1F2A24 !important;
  --bl-cream: #f5f0e8 !important;
  --bl-surface: #fffaf2 !important;
  --bl-border: rgba(36, 61, 47, 0.14) !important;
  --bl-shadow: 0 18px 42px rgba(31, 42, 36, 0.1) !important;
}

body {
  color: var(--bl-text);
  font-family: Lato, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

/* 02. Elementor page spacing and homepage section rhythm */
.elementor-page .e-con.e-parent,
.elementor-page .elementor-section {
  scroll-margin-top: 96px;
}

body.home .elementor-section,
body.home .e-con.e-parent,
body.page-id-547 .elementor-section,
body.page-id-547 .e-con.e-parent {
  --container-default-padding-top: clamp(56px, 7vw, 92px);
  --container-default-padding-bottom: clamp(56px, 7vw, 92px);
}

body.home .e-con > .e-con-inner,
body.page-id-547 .e-con > .e-con-inner {
  width: min(1170px, calc(100% - 40px));
}

body.home .elementor-heading-title,
body.page-id-547 .elementor-heading-title {
  color: inherit;
}

body.home img,
body.page-id-547 img {
  max-width: 100%;
  height: auto;
}

/* 03. Global buttons and Elementor button consistency */
.elementor-button,
.wp-block-button__link,
.bedford-footer-button,
a[class*="button"],
button[class*="button"] {
  border-radius: 999px;
  font-family: Lato, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.elementor-button,
.wp-block-button__link {
  background-color: var(--bl-primary);
  color: #ffffff;
}

.elementor-button:hover,
.elementor-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background-color: var(--bl-secondary);
  color: #ffffff;
}

/* 04. Guest room cards on homepage and accommodations grids */
.bl-room-card,
.bl-guest-room-card,
body.home [class*="room-card"],
body.page-id-547 [class*="room-card"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bl-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 42, 36, 0.08);
}

.bl-room-card img,
.bl-guest-room-card img,
body.home [class*="room-card"] img,
body.page-id-547 [class*="room-card"] img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bl-room-card .elementor-widget-button,
.bl-guest-room-card .elementor-widget-button,
body.home [class*="room-card"] .elementor-widget-button,
body.page-id-547 [class*="room-card"] .elementor-widget-button {
  margin-top: auto;
}

/* 05. Room page overview layout */
.bl-room-overview-layout,
.bl-room-overview-layout.e-con,
.bl-room-overview-layout > .e-con-inner,
.bl-room-overview-layout .elementor-container {
  align-items: flex-start !important;
}

.bl-room-overview-layout > .e-con-inner,
.bl-room-overview-layout.e-con {
  gap: clamp(24px, 4vw, 48px) !important;
}

.bl-room-overview,
.bl-room-overview.e-con {
  background: #ffffff;
}

.bl-room-overview .e-con-inner {
  align-items: flex-start;
}

.bl-room-overview h2,
.bl-room-overview h3 {
  color: var(--bl-primary);
}

/* 06. Reserve This Room card */
.bl-room-reservation-card,
.bl-room-reservation-card *,
.bl-reserve-card-live,
.bl-reserve-card-live * {
  box-sizing: border-box;
}

.bl-room-reservation-card,
.bl-reserve-card-live {
  display: flex !important;
  flex-direction: column !important;
  align-self: flex-start !important;
  width: 100%;
  max-width: 380px;
  margin: 0 !important;
  padding: 24px !important;
  gap: 12px !important;
  border: 1px solid var(--bl-border);
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: var(--bl-shadow);
}

.bl-room-reservation-card .elementor-widget,
.bl-reserve-card-live .elementor-widget {
  margin-block-end: 0 !important;
}

.bl-room-reservation-card .elementor-heading-title,
.bl-reserve-card-live .elementor-heading-title {
  margin: 0 !important;
  color: var(--bl-primary);
  line-height: 1.15;
}

.bl-room-reservation-card .elementor-widget-text-editor p,
.bl-reserve-card-live .elementor-widget-text-editor p {
  margin: 0 !important;
  color: rgba(31, 42, 36, 0.72);
  line-height: 1.45;
}

.bl-room-reservation-card .elementor-button,
.bl-reserve-card-live .elementor-button {
  width: 100%;
  justify-content: center;
  padding: 13px 18px;
}

.bl-room-reservation-card .elementor-icon-list-items,
.bl-reserve-card-live .elementor-icon-list-items {
  display: grid !important;
  gap: 10px !important;
  margin: 4px 0 0 !important;
  padding: 0 !important;
}

.bl-room-reservation-card .elementor-icon-list-item,
.bl-reserve-card-live .elementor-icon-list-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  color: var(--bl-text);
  line-height: 1.35;
}

.bl-room-reservation-card .elementor-icon-list-icon,
.bl-reserve-card-live .elementor-icon-list-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  color: var(--bl-accent);
}

/* 07. Fishing Room image spacing correction */
@media (min-width: 1025px) {
  body.page-id-69 .bl-room-overview + .e-con {
    width: min(380px, calc(100% - 40px)) !important;
    max-width: 380px !important;
    margin-top: -216px !important;
    margin-right: max(20px, calc((100vw - 1170px) / 2)) !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    padding: 24px 0 48px !important;
    align-items: stretch !important;
  }

  body.page-id-69 .bl-room-overview + .e-con .elementor-widget-image,
  body.page-id-69 .bl-room-overview + .e-con img {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-id-69 .bl-room-overview + .e-con img {
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
  }
}

/* 08. Event and gathering page cards */
.bl-event-card,
.bl-events-card,
.bl-private-event-card,
[class*="event-card"] {
  border: 1px solid var(--bl-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 42, 36, 0.08);
}

.bl-event-card .elementor-heading-title,
.bl-events-card .elementor-heading-title,
.bl-private-event-card .elementor-heading-title,
[class*="event-card"] .elementor-heading-title {
  color: var(--bl-primary);
}

/* 09. Footer support */
.bedford-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.bedford-footer__inner {
  align-items: flex-start;
  gap: clamp(28px, 4vw, 52px);
}

.bedford-footer__column {
  min-width: 0;
}

.bedford-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bedford-footer__logo {
  max-width: 190px;
  height: auto;
}

.bedford-footer__badges,
.bedford-footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 28px auto 0;
}

.bedford-footer__badges img,
.bedford-footer-badges img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
}

/* 10. Mobile and tablet responsiveness */
@media (max-width: 1024px) {
  .bl-room-overview-layout,
  .bl-room-overview-layout.e-con,
  .bl-room-overview-layout > .e-con-inner {
    gap: 28px !important;
  }

  .bl-room-reservation-card,
  .bl-reserve-card-live {
    max-width: 420px;
  }
}

@media (max-width: 767px) {
  body.home .e-con > .e-con-inner,
  body.page-id-547 .e-con > .e-con-inner {
    width: min(100% - 28px, 1170px);
  }

  .elementor-page .e-con.e-parent,
  .elementor-page .elementor-section {
    scroll-margin-top: 72px;
  }

  .bl-room-overview-layout,
  .bl-room-overview-layout.e-con,
  .bl-room-overview-layout > .e-con-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .bl-room-reservation-card,
  .bl-reserve-card-live {
    max-width: none;
    width: 100%;
    padding: 22px !important;
  }

  .bedford-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bedford-footer__column,
  .bedford-footer__menu {
    align-items: center;
    text-align: center;
  }
}
