@tailwind base;
@tailwind components;
@tailwind utilities;

/* Banner content text color fixes */
.banner-content h1 {
  color: #1f2937 !important; /* Dark gray for mobile */
}

/* Page banner headings: keep readable on light images */
.banner-title-pop{
  display: inline-block;
  padding: 0.12em 0.35em;
  border-radius: 0.35em;
  background: var(--rgba-primary-8);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  text-shadow: 0 3px 18px rgba(0,0,0,0.80);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Desktop - white text on dark background */
@media (min-width: 1024px) {
  .banner-content h1 {
    color: white !important;
  }
}

/* Paragraph text color */
.banner-content p {
  color: #666666 !important; /* Dark gray for mobile */
}

/* Desktop - white text for paragraph */
@media (min-width: 1024px) {
  .banner-content p {
    color: white !important;
  }
}

/* Ensure text-bodycolor is defined */
.text-bodycolor {
  color: #666666 !important;
}

/* Mobile background should be white with dark text */
@media (max-width: 1023px) {
  .banner-inner3 {
    background-color: white !important;
  }
  
  .banner-content h1,
  .banner-content p {
    color: #1f2937 !important;
  }
}

/* Desktop background should be dark with white text */
@media (min-width: 1024px) {
  .banner-inner3 {
    background-color: var(--secondary) !important;
  }
  
  .banner-content h1,
  .banner-content p {
    color: white !important;
  }
}

/* Form Error Message Styles */
.error-message {
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 0.25rem !important;
  padding: 0.25rem 0.5rem !important;
  text-align: center !important;
}

/* Form Success Message Styles */
.success-message {
  color: white !important;
  font-size: 1.125rem !important;
  font-weight: bold !important;
  background-color: #10b981 !important;
  border: 2px solid #059669 !important;
  border-radius: 0.5rem !important;
  padding: 1.5rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

/* Form field error states */
.border-red-500 {
  border-color: #ef4444 !important;
}

.ring-red-200 {
  --tw-ring-color: #fecaca !important;
}

.ring-2 {
  --tw-ring-width: 2px !important;
  --tw-ring-offset-width: 2px !important;
  box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
}

@media (max-width: 640px) {
  .mobile-top-actions a.white-btn {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
}

/* Ensure grid quicklinks don't inherit list spacing */
.mobile-top-actions__quicklinks {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Header overlays banners by default; on mobile keep it in normal flow */
@media (max-width: 1279px) {
  .site-header.main-bar-wraper:not(.is-fixed) {
    position: relative !important;
  }
}

@media (max-width: 360px) {
  .mobile-top-actions__icons {
    flex-wrap: wrap;
    max-width: 210px; /* allows 2 icons per row on tiny widths */
  }
}

/* Facility / Events content blocks */
.event-info {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.event-info__header {
  margin-bottom: 1.25rem;
}

.event-info__contact {
  margin-top: 0.5rem;
  line-height: 1.6;
}

.callout {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.callout > h3 {
  margin: 0 0 0.35rem 0;
  font-weight: 700;
}

.callout--important {
  border-left: 6px solid var(--secondary);
  background: rgba(254, 204, 72, 0.10);
}

.callout--neutral {
  border-left: 6px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.02);
}

.bullets {
  margin: 0.75rem 0 0 1.15rem;
}

.bullets li {
  margin: 0.35rem 0;
}

.bullets--two-col {
  column-gap: 2.25rem;
}

@media (min-width: 768px) {
  .bullets--two-col {
    columns: 2;
  }
}

.event-rooms {
  margin-top: 1.25rem;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.room-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.room-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.room-card__header h3 {
  margin: 0;
}

.room-card__tag {
  margin: 0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.room-card__tag strong {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(254, 204, 72, 0.20);
  border: 1px solid rgba(254, 204, 72, 0.45);
}

.room-card__details {
  margin: 0.5rem 0 0 1.15rem;
}

.directions {
  margin-top: 1.25rem;
}

.directions__item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin: 0.75rem 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.directions__item summary {
  cursor: pointer;
}

.directions__steps {
  margin: 0.6rem 0 0 1.15rem;
}

/* Cap sidebar photos to main column height (set by JS) */
.page-sidebar-photo {
  display: block;
  max-width: 100%;
}

/* Supporting PDF call-to-action (page.cfm) */
.page-pdf-cta {
  max-width: 42rem;
  margin: 2.5rem auto 2rem;
}

.page-pdf-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(7, 28, 53, 0.08);
  border-left: 5px solid var(--primary);
}

.page-pdf-cta__icon {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  font-size: 1.35rem;
}

.page-pdf-cta__body {
  flex: 1;
  min-width: 0;
}

.page-pdf-cta__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #071c35;
  line-height: 1.4;
}

.page-pdf-cta__desc {
  margin: 0;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.page-pdf-cta__desc:only-child,
.page-pdf-cta__title:only-child {
  font-size: 1.0625rem;
}

.page-pdf-cta__action {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .page-pdf-cta__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1.5rem 1.75rem;
    gap: 1.5rem;
  }

  .page-pdf-cta__action {
    margin-left: auto;
  }
}

/* Main Banquets hub (page 10) */
.banquet-hub-nav {
  max-width: 56rem;
  margin: 2.5rem auto 0;
  padding-top: 0.5rem;
}

.banquet-hub-nav:has(.banquet-hub-nav__grid--with-pdf) {
  max-width: 72rem;
}

.banquet-hub-nav__heading {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  color: #071c35;
  line-height: 1.3;
}

.banquet-hub-nav__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .banquet-hub-nav__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .banquet-hub-nav__grid--with-pdf {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .banquet-hub-nav__grid--with-pdf {
    grid-template-columns: repeat(4, 1fr);
  }
}

.banquet-hub-nav__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1.35rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.banquet-hub-nav__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
}

.banquet-hub-nav__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(254, 204, 72, 0.25);
  color: #071c35;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.banquet-hub-nav__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.banquet-hub-nav__desc {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
}

.banquet-hub-nav__icon--pdf {
  background: rgba(220, 38, 38, 0.12);
  color: var(--primary);
}

.banquet-hub-nav__card--pdf:hover {
  border-color: var(--primary);
}

.banquet-hub-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
  line-height: 1.3;
}

.banquet-hub-nav__card--pdf:hover .banquet-hub-nav__cta {
  background: #b91c1c;
}

/* Banquet sub-pages: tab bar + facility block */
.banquet-subnav {
  max-width: 56rem;
  margin: 2rem auto 0;
}

.banquet-subnav__tabs {
  margin-bottom: 1.5rem;
}

.banquet-subnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.banquet-subnav__list--two {
  grid-template-columns: repeat(2, 1fr);
}

.banquet-subnav__list--three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 479px) {
  .banquet-subnav__list--three {
    grid-template-columns: 1fr;
  }
}

.banquet-subnav__facility .page-content-custom {
  padding-top: 0.5rem;
}

.banquet-subnav__facility .page-content-custom h2 {
  text-align: center;
  margin-top: 0 !important;
}

.banquet-subnav__facility .page-content-custom hr {
  max-width: 4rem;
  margin: 0.75rem auto 1.25rem;
  border: 0;
  border-top: 2px solid var(--primary);
}