/* ========================================
   SUBPAGE STYLES
   ======================================== */

/* ── Navbar override for subpages ── */
.subpage .navbar {
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px var(--teal-shadow);
  padding: 10px 0;
}

.subpage .nav-link {
  color: var(--charcoal);
}

.subpage .nav-link:hover {
  color: var(--burnished-gold);
}

.subpage .nav-toggle span {
  background: var(--near-black);
}

/* Dual logo: subpages show teal logo by default (white navbar) */
.subpage .nav-logo-light {
  display: none;
}
.subpage .nav-logo-dark {
  display: block;
}

/* ── Subpage Hero ── */
.subpage-hero {
  position: relative;
  height: 40vh;
  min-height: 320px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.subpage-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 80, 79, 0.55) 0%,
    rgba(11, 80, 79, 0.50) 50%,
    rgba(11, 80, 79, 0.70) 100%
  );
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  padding-top: 60px;
}

.subpage-hero-content h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* ── Page Hero (used by all subpages) ── */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 320px;
  max-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 80, 79, 0.45) 0%,
    rgba(11, 80, 79, 0.50) 50%,
    rgba(11, 80, 79, 0.72) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
  padding-top: 80px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 600;
  color: #fff;
  margin: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-family: var(--font-sc);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--burnished-gold);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 6px;
}

.breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 0 6px;
}

/* ── Content Sections ── */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(odd) {
  background: var(--warm-cream);
}

.content-section:nth-child(even) {
  background: var(--ivory);
}

.content-prose {
  max-width: 880px;
  margin: 0 auto;
}

.content-prose p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.content-prose h2 {
  margin-bottom: 20px;
}

.content-prose h3 {
  margin-bottom: 14px;
  margin-top: 40px;
}

/* ── Page Grid (Two Column) ── */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.page-grid img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 60px var(--teal-shadow-lg);
  border: 3px solid rgba(184, 146, 74, 0.15);
}

/* ── Icon Grid (4 columns for amenities) ── */
.icon-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.icon-grid-item {
  text-align: center;
  padding: 36px 24px;
  background: var(--ivory);
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--teal-shadow);
  border: 1px solid rgba(184, 146, 74, 0.08);
  transition: all var(--transition-elegant) var(--ease-stately);
}

.icon-grid-item:hover {
  box-shadow: 0 12px 40px var(--teal-shadow-md);
  transform: translateY(-3px);
}

.icon-grid-item .amenity-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: rgba(11, 80, 79, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-grid-item .amenity-icon svg {
  width: 30px;
  height: 30px;
  color: var(--inn-teal);
  stroke-width: 1.5;
}

.icon-grid-item h4 {
  font-family: var(--font-sc);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--near-black);
  margin-bottom: 10px;
}

.icon-grid-item p {
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.7;
}

/* ── Policy Sections ── */
.policy-section {
  padding: 56px 0;
}

.policy-section:nth-child(odd) {
  background: var(--warm-cream);
}

.policy-section:nth-child(even) {
  background: var(--ivory);
}

.policy-number {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 600;
  color: var(--burnished-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 8px;
}

.policy-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.policy-content h2 {
  margin-bottom: 20px;
}

.policy-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.policy-content ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.policy-content ul li {
  padding: 8px 0;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(11, 80, 79, 0.06);
}

.policy-content ul li:last-child {
  border-bottom: none;
}

/* ── Gift Card ── */
.gift-card-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--ivory);
  border-radius: 6px;
  padding: 56px;
  box-shadow: 0 4px 20px var(--teal-shadow);
  border-top: 4px solid var(--burnished-gold);
  text-align: center;
}

.gift-card-box h2 {
  margin-bottom: 20px;
}

.gift-card-box p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 20px;
}

.gift-card-box .btn {
  margin-top: 16px;
}

.gift-card-details {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(11, 80, 79, 0.08);
  text-align: left;
}

.gift-card-details li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--charcoal);
}

/* ── Room Grid (Full page) ── */
.room-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.room-filter-btn {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border-radius: 4px;
  border: 2px solid rgba(11, 80, 79, 0.15);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.room-filter-btn:hover,
.room-filter-btn.active {
  background: var(--inn-teal);
  border-color: var(--inn-teal);
  color: #fff;
}

.rooms-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

/* ── Gallery Grid ── */
.gallery-filter {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(11, 80, 79, 0.08);
}

.gallery-filter-btn {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  border-radius: 4px;
  border: 2px solid rgba(11, 80, 79, 0.15);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--inn-teal);
  border-color: var(--inn-teal);
  color: #fff;
}

.gallery-grid {
  columns: 3;
  column-gap: 20px;
  padding: 40px 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.gallery-item:hover {
  box-shadow: 0 12px 40px var(--teal-shadow-lg);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--ease-smooth);
}

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

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ── Venue Cards ── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.venue-card {
  background: var(--ivory);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 2px 12px var(--teal-shadow);
  border: 1px solid rgba(184, 146, 74, 0.1);
  transition: all var(--transition-elegant) var(--ease-stately);
  display: flex;
  flex-direction: column;
}

.venue-card:hover {
  box-shadow: 0 8px 32px var(--teal-shadow-md);
  transform: translateY(-3px);
}

.venue-card h3 {
  font-size: var(--h4);
  margin-bottom: 8px;
}

.venue-card .venue-type {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--burnished-gold);
  margin-bottom: 8px;
}

.venue-card p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.7;
  flex: 1;
}

.venue-card .venue-meta {
  font-size: 13px;
  color: var(--inn-teal);
  font-weight: 500;
  margin-top: 8px;
}

.venue-card-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 80, 79, 0.08);
}

.venue-card-links a {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.venue-card-links a:first-child {
  color: var(--burnished-gold);
}

.venue-card-links a:first-child:hover {
  color: var(--inn-teal);
}

.venue-card-links a:last-child {
  color: var(--inn-teal);
}

.venue-card-links a:last-child:hover {
  color: var(--burnished-gold);
}

.venue-featured {
  background: var(--ivory);
  border-radius: 6px;
  padding: 36px;
  box-shadow: 0 2px 12px var(--teal-shadow);
  border: 1px solid rgba(184, 146, 74, 0.1);
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.venue-featured img {
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.venue-featured h2 {
  margin-bottom: 8px;
}

.venue-featured .venue-type {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--burnished-gold);
  margin-bottom: 12px;
}

.venue-featured p {
  color: var(--charcoal);
  line-height: 1.7;
}

.venue-featured .venue-meta {
  font-size: 13px;
  color: var(--inn-teal);
  font-weight: 500;
  margin-top: 8px;
}


/* ── Contact Form ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(11, 80, 79, 0.15);
  border-radius: 4px;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.3s var(--ease-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--inn-teal);
  box-shadow: 0 0 0 3px rgba(11, 80, 79, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Under Construction ── */
.under-construction {
  text-align: center;
  padding: 96px 24px;
  max-width: 580px;
  margin: 0 auto;
}

.under-construction svg {
  width: 88px;
  height: 88px;
  color: var(--burnished-gold);
  margin-bottom: 28px;
  opacity: 0.6;
}

.under-construction h2 {
  font-family: var(--font-display);
  font-size: var(--h1);
  margin-bottom: 16px;
}

.under-construction p {
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ── CTA Banner (bottom of subpages) ── */
.cta-banner {
  padding: 64px 0;
  background: var(--deep-teal);
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  color: #fff;
  margin-bottom: 24px;
}

.cta-banner-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Feature Cards (Ridgefield page) ── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.feature-card {
  background: var(--ivory);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--teal-shadow);
  border: 1px solid rgba(184, 146, 74, 0.08);
  transition: all var(--transition-elegant) var(--ease-stately);
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  box-shadow: 0 12px 40px var(--teal-shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.feature-card-img {
  height: 210px;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-stately);
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.03);
}

.feature-card-body {
  padding: 28px;
  text-align: center;
}

.feature-card-body h3 {
  margin-bottom: 10px;
}

.feature-card-body p {
  font-size: 15px;
  color: var(--charcoal);
  line-height: 1.7;
}

/* ── Breakfast Menu ── */
.menu-section {
  max-width: 680px;
  margin: 48px auto 0;
}

.menu-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(184, 146, 74, 0.2);
}

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

.menu-item h4 {
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 4px;
}

.menu-item p {
  font-size: 15px;
  color: var(--charcoal);
  font-style: italic;
}

/* ── Directions ── */
.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--teal-shadow);
}

.map-embed iframe {
  width: 100%;
  height: 460px;
  border: none;
}

.travel-times {
  list-style: none;
  padding: 0;
}

.travel-times li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 80, 79, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.travel-times li:last-child {
  border-bottom: none;
}

.travel-destination {
  font-weight: 700;
  color: var(--near-black);
}

.travel-time {
  font-family: var(--font-sc);
  font-size: 14px;
  color: var(--inn-teal);
  letter-spacing: 0.05em;
}

/* ── Mobile Accordion Menu ── */
.mobile-menu-category {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-smooth);
}

.mobile-menu-toggle.open svg {
  transform: rotate(180deg);
}

.mobile-menu-toggle:hover {
  color: var(--burnished-gold);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.mobile-submenu.open {
  max-height: 300px;
}

.mobile-submenu a {
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  display: block;
  padding: 8px 0 !important;
}

.mobile-submenu a:hover {
  color: var(--burnished-gold) !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .icon-grid-full {
    grid-template-columns: repeat(3, 1fr);
  }

  .rooms-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

  .venue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .venue-featured {
    flex-direction: column;
  }

  .venue-featured img {
    width: 100%;
    height: 200px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subpage-hero,
  .page-hero {
    height: 35vh;
    min-height: 240px;
  }

  .icon-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .rooms-grid-full {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2;
  }

  .venue-grid {
    grid-template-columns: 1fr;
  }

  /* Thinner image frames on mobile */
  .page-grid img {
    border-width: 2px;
  }

  .gallery-filter {
    top: 56px;
  }

  .cta-banner {
    padding: 36px 0;
  }

  .content-section {
    padding: 48px 0;
  }

  .gift-card-box {
    padding: 32px 24px;
  }
}

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

  .cta-banner-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .room-filter-bar {
    gap: 6px;
  }

  .room-filter-btn,
  .gallery-filter-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
}
