/* Shared styles for Machias River Inn subpages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --river: #2a5f72; --deep: #0f2e3a; --slate: #3d5a65;
  --mist: #e8f0f2; --cream: #faf7f2; --gold: #c9a96e;
  --text: #1e1e1e; --light: #6b8c97;
}
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; display: flex; align-items: center; justify-content: space-between; padding: 18px 48px; background: rgba(15,46,58,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.2; }
.nav-logo span { display: block; font-size: 0.65rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-family: 'Lato', sans-serif; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-book { background: var(--gold); color: var(--deep); padding: 10px 24px; border-radius: 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.nav-book:hover { background: #e0bc80; }

/* PAGE HERO */
.page-hero { position: relative; height: 52vh; min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; margin-top: 0; padding-top: 76px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,30,40,0.3) 0%, rgba(10,30,40,0.72) 100%); }
.page-hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; pointer-events: none; }
.page-hero-content { position: relative; z-index: 2; padding: 0 72px 52px; }
.page-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.page-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; color: #fff; line-height: 1.1; }
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* CONTENT */
.page-content { max-width: 1200px; margin: 0 auto; padding: 80px 48px; }
.section-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
h2.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; color: var(--deep); line-height: 1.15; margin-bottom: 18px; }
.lead { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: #4a5a60; line-height: 1.75; margin-bottom: 28px; }
.body-text { font-size: 0.95rem; color: #4a5a60; line-height: 1.8; margin-bottom: 18px; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.07); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-img { height: 200px; object-fit: cover; width: 100%; display: block; }
.card-body { padding: 24px 22px; }
.card-tag { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.card-body h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--deep); margin-bottom: 10px; }
.card-body p { font-size: 0.87rem; color: #5a6a70; line-height: 1.65; }
.card-body a { display: inline-block; margin-top: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--river); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.2s; }
.card-body a:hover { color: var(--gold); }

/* TWO COL */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-bottom: 80px; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; box-shadow: 0 12px 40px rgba(0,0,0,0.14); }

/* DARK SECTION */
.dark-section { background: var(--deep); padding: 80px 48px; color: #fff; }
.dark-section h2.section-title { color: #fff; }
.dark-section .lead { color: rgba(255,255,255,0.7); }
.dark-section .body-text { color: rgba(255,255,255,0.6); }
.dark-section .section-label { color: var(--gold); }
.dark-section .section-label::before { background: var(--gold); }
.dark-section-inner { max-width: 1200px; margin: 0 auto; }

/* MIST SECTION */
.mist-section { background: var(--mist); padding: 80px 48px; }
.mist-section-inner { max-width: 1200px; margin: 0 auto; }

/* BOOK STRIP */
.book-strip { background: var(--river); padding: 64px 48px; text-align: center; }
.book-strip h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.book-strip p { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: rgba(255,255,255,0.78); margin-bottom: 32px; }
.btn-primary { display: inline-block; background: var(--gold); color: var(--deep); padding: 14px 34px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background 0.2s; margin: 0 8px; }
.btn-primary:hover { background: #e0bc80; }
.btn-outline-light { display: inline-block; border: 1px solid rgba(255,255,255,0.5); color: #fff; padding: 13px 32px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all 0.2s; margin: 0 8px; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* FOOTER */
footer { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.06); padding: 52px 48px 28px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 24px; }
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-brand-tagline { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-style: italic; color: rgba(255,255,255,0.38); line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: rgba(255,255,255,0.32); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; } .nav-links { display: none !important; }
  .page-hero-content { padding: 0 28px 40px; }
  .page-content { padding: 56px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .dark-section, .mist-section, .book-strip { padding: 56px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-book { display: none; }
}

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--deep);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 80%;
  text-align: center;
  transition: color 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mobile-book {
  margin-top: 32px;
  background: var(--gold);
  color: var(--deep) !important;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 40px;
  border-radius: 2px;
  border-bottom: none !important;
}
.mobile-menu .mobile-book:hover { background: #e0bc80; }

@media (max-width: 900px) { .nav-hamburger { display: flex; } }
@media (min-width: 901px) { .mobile-menu { display: none !important; } .nav-hamburger { display: none !important; } }
