/* Bryson's Bed & Breakfast — rebuilt from the old DNN "polo" skin look */

:root {
  --purple: #7266ba;
  --purple-dark: #5b4fa5;
  --red: #c30000;
  --red-dark: #9e0000;
  --navy: #134a8d;
  --navy-dark: #0e3a70;
  --text: #565656;
  --heading: #252525;
  --heading-serif: Times, "Times New Roman", Georgia, serif;
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
  --band-gray: #f5f5f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--purple); }
a:hover { color: var(--purple-dark); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Top bar ---------- */
.top-bar {
  background: #fff;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}
.top-bar-inner {
  display: flex;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar a { color: var(--text); text-decoration: none; }
.top-bar a:hover { color: var(--purple); }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
  position: relative;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-logo {
  max-height: 110px;
  width: auto;
  display: block;
}
.logo-light { display: none; }

/* Transparent header over banner images (as on the old polo skin) */
.header-transparent {
  background: transparent;
  border-bottom: 0;
}
.header-transparent .logo-dark { display: none; }
.header-transparent .logo-light { display: block; max-height: 150px; }
.header-transparent .site-nav a { color: #fff; }
.header-transparent .site-nav > .nav-list > li > a:hover,
.header-transparent .site-nav > .nav-list > li.active > a { color: #e8e4ff; }
.header-transparent .dropdown a { color: #444; }
.header-transparent .dropdown a:hover { color: var(--purple); }
.header-transparent .nav-toggle { border-color: rgba(255,255,255,0.7); }
.header-transparent .nav-toggle span { background: #fff; }

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 11px 9px;
  color: #444;
  text-decoration: none;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.site-nav > .nav-list > li > a:hover,
.site-nav > .nav-list > li.active > a {
  color: var(--purple);
}
.caret { font-size: 10px; }

/* "Book" is a plain nav link on desktop (as on the old site); it becomes a
   red button in the mobile menu further down. */

.site-nav li { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  z-index: 50;
}
.dropdown a {
  color: #444;
  font-size: 15px;
  padding: 10px 18px;
}
.dropdown a:hover { color: var(--purple); background: #f6f5fb; }
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #444;
  margin: 4px 0;
}

/* ---------- Banners (transparent header sits inside these) ---------- */
.banner {
  position: relative;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* short banner on inner pages: ~355px total like the old site */
.banner-content {
  display: flex;
  align-items: center;
  min-height: 175px;
  padding-bottom: 30px;
}
.banner-content .container { width: 100%; }
.banner-heading {
  margin: 0;
  font-size: 40px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* ---------- Hero (home) ---------- */
/* Same top-down shade as the old slider, so the white text stays readable.
   Applied to every banner (home hero and inner pages) so they match. */
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.59) 0%, rgba(255, 255, 255, 0) 99%);
  opacity: 0.8;
  pointer-events: none;
}
.banner > * { position: relative; }

.hero-content {
  padding: 110px 0 170px;
  text-align: left;
}
.hero-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
}
.hero-kicker span {
  background: rgba(20, 20, 25, 0.6);
  padding: 6px 12px;
}
.hero-heading {
  margin: 0 0 30px;
  font-family: var(--heading-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Page title band (Terms / Privacy / 404) ---------- */
.page-title {
  background: var(--band-gray);
  border-bottom: 1px solid #ececec;
  padding: 34px 0;
}
.page-title h1 {
  margin: 0;
  font-size: 34px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-purple:hover { background: var(--purple-dark); color: #fff; }
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-gray { background: var(--band-gray); }

h1, h2, h3, h4 {
  font-family: var(--heading-serif);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 18px;
}
h1 { font-size: 40px; }
h2 { font-size: 34px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  margin: 0 0 10px;
}
.text-center { text-align: center; }

.intro-band { text-align: center; padding: 50px 0 40px; }
.intro-band h1 { margin-bottom: 6px; }
.intro-band p { margin: 0; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: #8a8a8a; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}
.two-col.top { align-items: start; }
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ---------- Room cards / rooms page ---------- */
.room-card { text-align: center; }
.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.room-card { text-align: left; }
.room-card h4 {
  font-size: 22px;
  margin: 16px 0 6px;
}
.room-card a { text-decoration: none; }
.room-card .view-link {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.product-rate {
  margin-top: 8px;
  color: #ffc300;
  font-size: 17px;
  letter-spacing: 3px;
}

/* Booking.com award badge */
.award-badge {
  text-align: center;
  padding: 10px 0 0;
}
.award-badge img { width: 250px; height: auto; }

.room-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 70px;
}
.room-block:last-child { margin-bottom: 0; }
.room-block .room-actions { margin: 14px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.room-rate { margin: 18px 0 0; }
.room-rate h4 { margin-bottom: 2px; }
.room-rate p { margin: 0 0 14px; font-size: 20px; }

/* room photo strip */
.room-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.room-photos a { display: block; }
.room-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.room-photos a:hover img { opacity: 0.85; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid a { display: block; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}
.gallery-grid a:hover img { opacity: 0.85; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ddd;
  font-size: 14px;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  padding: 10px 16px;
  opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 12px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Listings (Day Trips, Dine, Discover Baddeck) ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.biz-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.biz-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.biz-card .biz-body { padding: 18px 20px 22px; }
.biz-card h4 { font-size: 19px; margin-bottom: 8px; }
.biz-card h4 a { color: var(--heading); text-decoration: none; }
.biz-card h4 a:hover { color: var(--purple); }
.biz-card p { font-size: 14px; margin: 0; }

/* ---------- Booking / embeds ---------- */
.booking-frame {
  width: 100%;
  border: 0;
  min-height: 900px;
}
.map-frame {
  width: 100%;
  height: 450px;
  border: 0;
  display: block;
}
.tour-frame {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  border: 0;
  display: block;
}

/* ---------- Forms ---------- */
.form-msg {
  padding: 14px 18px;
  margin-bottom: 20px;
}
.form-msg.ok { background: #e6f4e6; color: #256425; border: 1px solid #b7dcb7; }
.form-msg.err { background: #fbe9e9; color: #8f2626; border: 1px solid #ecc4c4; }

.hp-field { position: absolute; left: -9999px; }

.form-grid .form-field { margin-bottom: 16px; }
.form-grid label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #ccc;
  font-family: var(--sans);
  font-size: 15px;
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 0;
}

/* ---------- House rules ---------- */
.rules-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.rules-cols h3 {
  text-transform: uppercase;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}
.rules-cols ul { padding-left: 20px; margin: 0; }
.rules-cols li { margin-bottom: 12px; }

/* ---------- STR band + footer ---------- */
.str-band {
  background: var(--band-gray);
  border-top: 1px solid #ececec;
  text-align: center;
  font-size: 14px;
  padding: 14px 0;
}
.str-band p { margin: 0; }

.site-footer {
  background: var(--navy);
  color: #dce6f2;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 50px;
  padding-bottom: 40px;
}
.site-footer h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #cfe0f5; }
.social-links a { display: inline-block; margin-right: 12px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 16px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #dce6f2; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* Solid white header on mobile, even over banners (as the old site did) */
  .site-header,
  .header-transparent { background: #fff; border-bottom: 1px solid #f3f3f3; }
  .header-transparent .logo-light { display: none; }
  .header-transparent .logo-dark { display: block; }
  .brand-logo, .header-transparent .logo-light { max-height: 78px; }
  .header-transparent .nav-toggle { border-color: #ccc; }
  .header-transparent .nav-toggle span { background: #444; }
  .site-nav a, .header-transparent .site-nav a { color: #444; }
  .site-nav li.nav-book > a {
    background: var(--red);
    color: #fff !important;
    margin: 8px 16px 14px;
    text-align: center;
    border-radius: 2px;
  }
  .hero-heading { font-size: 36px; }
  .hero-content { padding: 60px 0 90px; }
  .banner-heading { font-size: 28px; }
  .banner-content { min-height: 120px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 60;
  }
  .site-nav.open { display: block; }
  .site-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .dropdown {
    position: static;
    box-shadow: none;
    background: #f8f8fb;
  }


  h1 { font-size: 31px; }
  h2 { font-size: 27px; }
  .page-title h1 { font-size: 28px; }

  .two-col, .room-block, .rules-cols, .footer-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .biz-grid { grid-template-columns: 1fr; }
  .top-bar-inner { flex-direction: column; gap: 2px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
