/* ============================================
   TRAVELERS LODGE - Design System
   Color palette from their physical sign:
   Blue blocks, Red letters, White text, Green shamrock
   ============================================ */

:root {
  /* Primary Colors */
  --primary: #1E3A5F;
  --primary-light: #2C5282;
  --primary-dark: #152C49;
  --primary-rgb: 30, 58, 95;

  /* Accent (Red from sign) */
  --accent: #C0392B;
  --accent-hover: #A93226;
  --accent-light: #F8E8E6;

  /* Shamrock Green (from logo) */
  --shamrock: #27AE60;
  --shamrock-light: #E8F8EF;

  /* Neutrals */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --medium-gray: #6C757D;
  --border-gray: #DEE2E6;
  --dark: #1A1A2E;
  --dark-rgb: 26, 26, 46;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 5rem;
  --section-padding-sm: 3rem;

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* Section spacing */
.section {
  padding: var(--section-padding) 0;
}

.section-gray {
  background-color: var(--light-gray);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.25rem;
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-heading p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: var(--transition);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: var(--transition);
}

.top-bar-link:hover {
  color: var(--white);
}

.top-bar-link i {
  margin-right: 0.25rem;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.75rem;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */

#mainNav {
  background-color: var(--white);
  box-shadow: none;
  padding: 0.75rem 0;
  transition: var(--transition);
  z-index: 1030;
}

#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--dark);
  padding: 0.5rem 1rem;
  position: relative;
  font-size: 0.95rem;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-nav .nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-phone {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--accent);
}

.nav-phone i {
  color: var(--accent);
}

/* Offcanvas mobile nav */
.offcanvas {
  max-width: 320px;
}

.offcanvas .nav-link {
  border-bottom: 1px solid var(--border-gray);
  color: var(--dark);
  font-weight: 500;
}

.offcanvas .nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

.offcanvas .nav-link:hover {
  color: var(--accent);
  background-color: var(--light-gray);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, calc(var(--hero-overlay, 0.5) * 0.4)) 0%,
    rgba(0, 0, 0, calc(var(--hero-overlay, 0.5) * 0.8)) 50%,
    rgba(0, 0, 0, var(--hero-overlay, 0.5)) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero .btn {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
  margin: 0.25rem;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0.7;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  background-color: var(--light-gray);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
}

.trust-item i {
  font-size: 1.75rem;
  color: var(--primary);
}

.trust-item .shamrock {
  color: var(--shamrock);
}

.trust-item-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}

/* ============================================
   ROOM CARDS
   ============================================ */

.room-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.room-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

.room-card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.room-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.room-card:hover .room-card-img-wrapper img {
  transform: scale(1.05);
}

.room-card .card-title {
  font-family: var(--font-heading);
  color: var(--primary);
}

.room-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.room-card-meta .badge {
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid var(--border-gray);
}

/* ============================================
   AMENITIES SECTION
   ============================================ */

.amenity-item {
  padding: 1.5rem 1rem;
}

.amenity-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.amenity-item:hover .amenity-icon-wrapper {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.2);
}

.amenity-icon-wrapper i {
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.amenity-item:hover .amenity-icon-wrapper i {
  color: var(--white);
}

.amenity-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin-top: 0.5rem;
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  min-height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--cta-overlay, 0.25));
}

.cta-banner-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner .phone-display {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-banner .phone-display a {
  color: var(--white);
}

/* ============================================
   PAGE HEADERS (Interior pages)
   ============================================ */

.page-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Header Transition Variants */
.page-header::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
}

/* Diagonal (default) */
.page-header.header-transition-diagonal::before {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Wave */
.page-header.header-transition-wave::before {
  height: 80px;
  clip-path: none;
  background: none;
}
.page-header.header-transition-wave::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23ffffff' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,70 1440,60 L1440,80 L0,80 Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
}

/* Arch */
.page-header.header-transition-arch::before {
  height: 60px;
  border-radius: 0 0 50% 50%;
  clip-path: none;
  background: var(--primary);
  bottom: -60px;
}
.page-header.header-transition-arch {
  margin-bottom: 0;
}

/* Straight (no transition shape) */
.page-header.header-transition-straight::before {
  display: none;
}

/* Zigzag */
.page-header.header-transition-zigzag::before {
  height: 30px;
  clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%, 100% 100%, 0% 100%);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.page-header .breadcrumb {
  position: relative;
  z-index: 1;
  justify-content: center;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.page-header .breadcrumb-item.active {
  color: var(--white);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filters .btn {
  border-radius: 50px;
  padding: 0.4rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-filters .btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(var(--dark-rgb), 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  background: rgba(var(--dark-rgb), 0.3);
}

.gallery-item-overlay i {
  color: var(--white);
  font-size: 2rem;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

.contact-info-item h6 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1.05rem;
  margin: 0;
  color: var(--dark);
}

.contact-info-item a:hover {
  color: var(--accent);
}

/* ============================================
   MARSHALL PAGE
   ============================================ */

.marshall-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  height: 100%;
}

.marshall-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.marshall-card .card-body {
  padding: 1.5rem;
}

.marshall-card .distance-badge {
  font-size: 0.8rem;
  color: var(--shamrock);
  font-weight: 600;
}

.marshall-card .distance-badge i {
  margin-right: 0.25rem;
}

/* ============================================
   POLICIES PAGE
   ============================================ */

.accordion-item {
  border: 1px solid var(--border-gray);
  border-radius: 8px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  padding: 1.5rem;
  line-height: 1.8;
}

/* ============================================
   404 PAGE
   ============================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}

.error-page h1 {
  font-size: 6rem;
  color: var(--accent);
  margin-bottom: 0;
}

.error-page h2 {
  margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--accent);
  margin-top: 0.2rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.footer-social-link:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-link:hover {
  color: var(--white);
}

.footer-bottom-divider {
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.footer-powered {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-powered-link {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  transition: var(--transition);
}

.footer-powered-link:hover {
  color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: var(--section-padding-sm) 0;
  }

  .section-heading h2 {
    font-size: 1.85rem;
  }

  .page-header {
    padding: 3rem 0 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 85vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  .cta-banner .phone-display {
    font-size: 1.15rem;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 0.5rem;
  }

  .gallery-item {
    margin-bottom: 0.5rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .gallery-grid {
    columns: 1;
  }

  .trust-item {
    padding: 0.75rem 0;
  }
}

/* ============================================
   ANIMATIONS (AOS supplement)
   ============================================ */

[data-aos] {
  transition-timing-function: ease-out;
}
