/* Beeches Brook Boarding Kennels - responsive rebuild, Nov 2026.
   Desktop measurements are taken from the original 2010 stylesheet (css/style.css)
   so the layout matches it; below 982px the header scales, below 821px it stacks. */

:root {
  --u: 1px;                 /* header unit: 1px on desktop, shrinks with the screen on tablets */
  --grass: #91b307;
  --grass-dark: #779307;
  --panel: #b0ce4c;
  --frame: #cde08e;
  --frame-hover: #e0efac;
  --banner: #7b980c;
  --text-soft: #3a4708;
  --blue: #559fe2;
  --blue-light: #96bee2;
  --brown: #58671a;
  --fun: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", Arial, Verdana, sans-serif;
  --sans: Arial, Verdana, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: #000;
  background: var(--grass-dark) url(../images/body_bg.jpg) repeat-x 0 0;
}
img { max-width: 100%; height: auto; }
h1, h2, p, ul, ol { margin: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tel { color: inherit; text-decoration: none; }

/* ---------- header (original: 982 x 310 artwork with text placed on it) ---------- */
.site-header { overflow: hidden; }
.header-inner {
  position: relative;
  width: calc(982 * var(--u));
  height: calc(310 * var(--u));
  margin: 0 auto;
  background: url(../images/header_bg.jpg) no-repeat 0 0 / 100% 100%;
}
.brand {
  position: absolute;
  left: calc(45 * var(--u));
  top: calc(16 * var(--u));
  font-family: var(--fun);
  white-space: nowrap;
}
.brand-name {
  display: block;
  font-size: calc(26 * var(--u));
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}
.brand-name:hover { color: var(--brown); }
.brand-location { display: block; color: var(--brown); font-size: calc(14 * var(--u)); }

.cloud {
  position: absolute;
  left: calc(550 * var(--u));
  top: calc(53 * var(--u));
  width: calc(417 * var(--u));
  font-family: var(--fun);
  font-size: calc(14 * var(--u));
  font-weight: bold;
  color: var(--blue-light);
  line-height: calc(22 * var(--u));
}
.cloud .c1 { font-size: calc(16 * var(--u)); }
.cloud .c2 { color: var(--blue); font-size: calc(17 * var(--u)); }
.cloud .c3 { color: var(--blue); font-size: calc(18 * var(--u)); }
.cloud .call { display: block; text-indent: calc(70 * var(--u)); }

.menu {
  position: absolute;
  left: 0;
  top: calc(226 * var(--u));
  width: calc(700 * var(--u));
  font-size: calc(15 * var(--u));
  font-weight: bold;
}
.menu ul {
  list-style: none;
  margin: calc(15 * var(--u)) 0;
  padding: 0 0 0 calc(50 * var(--u));
  white-space: nowrap;
}
.menu li { display: inline; }
.menu a {
  color: #979797;
  text-decoration: none;
  padding: calc(8 * var(--u)) 0 calc(8 * var(--u)) calc(20 * var(--u));
  background: no-repeat 0 46% / calc(18 * var(--u)) calc(17 * var(--u));
}
.menu li:nth-child(1) a { padding-right: calc(26 * var(--u)); }
.menu li:nth-child(2) a { padding-right: calc(25 * var(--u)); }
.menu li:nth-child(3) a { padding-right: calc(28 * var(--u)); }
.menu li:nth-child(4) a { padding-right: calc(24 * var(--u)); }
.menu li:nth-child(5) a { padding-right: calc(29 * var(--u)); }
.menu a:hover, .menu a[aria-current="page"] { color: #5a5353; background-image: url(../images/menu_hover.jpg); }
.menu a[aria-current="page"] { cursor: default; }

/* ---------- layout ---------- */
.wrapper { background: var(--grass); padding: 18px 0 33px; }
.wrapper-inner {
  max-width: 982px;
  margin: 0 auto;
  padding-left: 30px;
  display: grid;
  grid-template-columns: 636px 273px;
  column-gap: 43px;
}
.panel { background: var(--panel); border-radius: 5px; padding: 17px 24px 30px 30px; }

h1, .h1-style { font-size: 22px; font-weight: bold; }
.lead { font-size: 14px; line-height: 20px; margin: 15px 0 10px; max-width: 583px; }
.lead a { color: #00e; }
.lead a.tel { color: inherit; text-decoration: none; }
.highlight { font-weight: bold; font-size: 16px; }

.framed { border: 5px solid var(--frame); border-radius: 5px; display: block; }
a:hover > .framed { border-color: var(--frame-hover); }

/* home */
.intro { display: flex; gap: 25px; align-items: flex-start; margin: 20px 0 0; padding-bottom: 3px; }
.main-pic { flex: 0 0 auto; width: 220px; display: block; }
.usps { list-style: none; padding: 0; margin-top: 5px; font-size: 18px; }
.usps li { background: url(../images/usp_bullet.jpg) no-repeat 0 2px; min-height: 44px; line-height: 22px; padding: 11px 0 11px 55px; }

/* services and links rows */
.item { display: flex; gap: 25px; align-items: flex-start; margin: 25px 0 0 10px; }
.item > a { flex: 0 0 auto; }
.item img { box-sizing: content-box; max-width: none; }
.item h2 { font-size: 18px; font-weight: bold; padding-top: 10px; }
.item h2 a { color: #000; text-decoration: none; }
.item h2 a:hover { color: var(--brown); text-decoration: underline; }
.item p { font-size: 13px; line-height: 18px; color: var(--text-soft); margin: 15px 15px 0 0; }
.item.link p { margin-top: 4px; }
.item .visit { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--brown); text-decoration: none; }
.item .visit:hover { color: #000; text-decoration: underline; }

/* rates */
.terms-title { margin-top: 45px; }
.terms { font-size: 14px; line-height: 20px; margin: 15px 0 68px; padding-left: 40px; max-width: 583px; }

/* directions */
.map { margin: 15px 0 0; max-width: 575px; }
.map iframe { width: 100%; aspect-ratio: 575 / 435; border: 5px solid var(--frame); border-radius: 5px; display: block; }
.view-map { display: block; padding: 5px 3px 0; color: #7c980c; text-decoration: none; font-size: 13px; }
.view-map:hover { color: #5f7507; }
.map + .banner, .map ~ .banner { margin-top: 38px; }

/* contact */
.contact-title { margin-top: 46px; }
.contact-times { font-size: 14px; line-height: 20px; margin: 15px 0 0; }
.contact-times p { margin: 0 0 20px; }
.contact-times .times { margin-bottom: 18px; }
.contact-times .note { margin-bottom: 30px; }

/* collection times table */
.times { border-collapse: separate; border-spacing: 2px; }
.times th { text-align: left; font-weight: bold; padding: 1px; }
.times td { padding: 1px; }

/* banner + photo strip */
.banner {
  max-width: 581px;
  min-height: 36px;
  margin: 23px 0 24px -1px;
  padding: 8px 12px;
  background: var(--banner);
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
.carousel { position: relative; margin: 0 -11px 0 -3px; }
.carousel-track {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { flex: 0 0 134px; scroll-snap-align: start; }
.carousel-track img { display: block; width: 134px; height: 92px; border: 5px solid var(--frame); border-radius: 5px; }
.carousel-track a:hover img { border-color: var(--frame-hover); }
/* the arrows sit half on the panel edge, as in the original */
.carousel-btn {
  position: absolute;
  top: 15px;
  width: 28px; height: 60px;
  border: 0; padding: 0; cursor: pointer;
  background: transparent no-repeat 0 0;
}
.carousel-btn.prev { left: -53px; background-image: url(../images/arrow_left.jpg); }
.carousel-btn.next { right: -39px; background-image: url(../images/arrow_right.jpg); }
.carousel-btn.prev:hover { background-image: url(../images/arrow_left_hover.jpg); }
.carousel-btn.next:hover { background-image: url(../images/arrow_right_hover.jpg); }
.carousel-btn.prev:active { background-image: url(../images/arrow_left_down.jpg); }
.carousel-btn.next:active { background-image: url(../images/arrow_right_down.jpg); }

/* sidebar: two cards (collection times, Facebook). The bottom padding keeps it clear of the holiday dog. */
.sidebar { font-size: 16px; line-height: 18px; padding-bottom: 335px; }
.sidebar .social { margin: 0; }
/* Cards: same pattern as the rows on the Links page (framed tile, bold title, small line under it) */
.side-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 10px;
  background: var(--panel);
  border-radius: 5px;
  color: #000;
  text-decoration: none;
}
.card-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: #fff;
  border: 5px solid var(--frame);
  border-radius: 5px;
}
.card-tile svg { display: block; width: 36px; height: 36px; }
.card-text { display: block; min-width: 0; }
.card-title { display: block; margin: 0; font-size: 15px; line-height: 18px; font-weight: bold; }
.ct-card { align-items: flex-start; }
.ct-rows { margin: 5px 0 0; font-size: 13px; line-height: 16px; color: var(--text-soft); }
.ct-row { display: block; white-space: nowrap; }
.ct-row b { display: inline-block; min-width: 33px; color: #000; }
.fb-card { margin-bottom: 0; }
.fb-visit { display: block; margin-top: 6px; font-size: 12px; line-height: 14px; color: var(--brown); }
.fb-card:hover .card-tile { border-color: var(--frame-hover); }
.fb-card:hover .card-title { color: var(--brown); text-decoration: underline; }
.fb-card:hover .fb-visit { color: #000; }

/* ---------- footer, with the holiday dog standing on its top edge ---------- */
.site-footer { background: var(--grass-dark); color: #fff; }
.footer-inner { position: relative; max-width: 982px; margin: 0 auto; padding: 20px 0 22px 40px; }
.rocket {
  position: absolute;
  right: 10px;
  top: -356px;
  width: 267px; height: 416px;
  background: url(../images/rocket_dog.jpg) no-repeat;
}
.rocket-say {
  display: block;
  font-family: var(--fun); font-size: 18px; font-weight: bold; color: var(--blue);
  padding: 57px 0 0 35px;
}
.foot-tel { display: block; font-size: 24px; font-weight: bold; padding: 291px 0 0 30px; white-space: nowrap; }
.foot-nav { font-weight: bold; font-size: 14px; }
.foot-nav a { color: #fff; text-decoration: none; padding: 0 3px; }
.foot-nav a:hover { color: var(--panel); }
.cd-credit { position: relative; display: inline-block; height: 60px; margin: 3px 0 0; line-height: 60px; font-size: 11px; white-space: nowrap; }
.cd-credit a { padding: 0 3px; color: var(--panel); text-decoration: none; }
.cd-credit img { position: absolute; top: 0; left: 133px; max-width: none; }
.cd-credit .gap { display: inline-block; width: 34px; }
.cd-credit a:hover { color: #fff; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox figure { margin: 0; background: #fff; padding: 10px; border-radius: 6px; }
.lightbox img { display: block; max-width: calc(96vw - 20px); max-height: calc(90vh - 60px); width: auto; height: auto; }
.lightbox figcaption { padding: 8px 2px 0; font-size: 14px; }
.lightbox button {
  position: absolute; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
  font-size: 28px; line-height: 1; width: 44px; height: 44px; border-radius: 22px;
}
.lb-close { top: -14px; right: -14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- small laptops and landscape tablets: same design, header scaled to fit ---------- */
/* Home: the two sidebar cards plus the dog are a little taller than the panel. The panel stretches
   to meet them and shares the spare height evenly between its rows (above the photo, below it, and
   above the photo strip), so no gap opens under the panel. With no spare height nothing moves. */
@media (min-width: 821px) {
  .content--fill { display: flex; flex-direction: column; }
  .content--fill .panel { flex: 1 0 auto; display: flex; flex-direction: column; }
  .content--fill .lead { margin-bottom: 20px; }          /* was 10px collapsing into the 20px below */
  .content--fill .intro { margin-top: auto; margin-bottom: auto; }
  .content--fill .banner { margin-bottom: auto; }
  .content--fill .carousel { margin-top: 24px; }         /* the banner's own bottom margin, kept */
}

@media (max-width: 981px) {
  :root { --u: calc(100vw / 982); }
  .wrapper-inner { grid-template-columns: minmax(0, 1fr) 273px; column-gap: 36px; padding-right: 12px; }
  .footer-inner { padding-left: 30px; }
  .rocket { right: 14px; }
}

/* ---------- portrait tablets and phones: one column ---------- */
@media (max-width: 820px) {
  :root { --u: 1px; }
  .site-header { background: linear-gradient(#96bee2, #cddef2); }
  .header-inner { width: auto; height: auto; background: none; }
  .brand {
    position: static; white-space: normal;
    background: #a3bf32;
    border-bottom: 4px solid #8fb00a;
    border-radius: 0 0 34px 34px;
    padding: 14px 18px 14px;
    text-align: center;
    margin: 0 14px;
  }
  .brand-name { font-size: 24px; line-height: 1.2; }
  .brand-location { margin-top: 3px; }
  .cloud {
    position: static; width: auto; margin: 12px 14px 0;
    background: #fff; border-radius: 28px; padding: 9px 14px; text-align: center;
  }
  .cloud .call { text-indent: 0; }
  .menu { position: static; width: auto; margin: 12px 14px 0; }
  .menu ul { display: flex; gap: 6px; margin: 0; padding: 0; white-space: normal; }
  .menu li { display: block; flex: 1 1 0; }
  .menu a, .menu li:nth-child(n) a {
    display: block; text-align: center;
    padding: 12px 2px;
    background: #f4f4f4; border-radius: 6px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .14);
  }
  .menu a[aria-current="page"] { background-image: none; color: #333; }
  .menu a[aria-current="page"]::before {
    content: ""; display: inline-block; width: 18px; height: 17px; margin-right: 3px; vertical-align: -3px;
    background: url(../images/menu_hover.jpg) no-repeat;
  }
  /* the fence, kennel and sleeping dog from the header artwork */
  .site-header::after {
    content: ""; display: block; margin-top: 10px;
    height: calc(100vw * 172 / 982);
    background: url(../images/header_bg.jpg) no-repeat 0 100% / 100% auto;
  }
  .banner { max-width: none; margin-left: 0; }

  .wrapper { padding: 14px 0 372px; }       /* room for the dog, which stands on the footer */
  .wrapper-inner { display: block; padding: 0 28px; }
  .sidebar { padding: 22px 2px 0; line-height: 21px; }
  .sidebar .social { margin-bottom: 4px; }
  .side-card { padding: 12px; gap: 16px; margin-bottom: 12px; }
  .card-title { font-size: 17px; line-height: 21px; }
  .ct-rows { font-size: 14px; line-height: 19px; margin-top: 4px; }
  .ct-row b { min-width: 40px; }
  .fb-visit { font-size: 14px; line-height: 18px; margin-top: 4px; }

  .footer-inner { display: flow-root; padding: 0 16px 20px; text-align: center; }
  .rocket { position: relative; right: auto; top: auto; margin: -356px auto 0; text-align: left; }
  .foot-nav { margin-top: 16px; line-height: 26px; }
  .cd-credit { margin-top: 4px; }
}

@media (max-width: 600px) {
  .menu ul { flex-wrap: wrap; }
  .menu li { flex: 1 1 30%; }
  .site-header::after { height: 122px; margin-top: 6px; background-size: auto 222px; background-position: 100% 100%; }

  .wrapper-inner { padding: 0 14px; }
  .panel { padding: 16px 16px 22px; }
  h1, .h1-style { font-size: 21px; }
  .lead { font-size: 15px; line-height: 22px; }
  .intro { flex-direction: column; gap: 10px; }
  .main-pic { width: 100%; max-width: 264px; align-self: center; }
  .usps { font-size: 17px; margin-top: 0; }
  .item { gap: 16px; margin-left: 0; }
  .item h2 { font-size: 17px; padding-top: 2px; }
  .item p { font-size: 14px; line-height: 20px; margin: 8px 0 0; }
  .item .visit { font-size: 14px; }
  .terms { font-size: 15px; line-height: 22px; padding-left: 24px; margin: 20px 0 30px; }
  .terms-title { margin-top: 36px; }
  .contact-times { font-size: 15px; line-height: 22px; }
  .contact-times .note { margin-bottom: 20px; }
  .banner { margin: 23px 0 20px; }
  .carousel { margin: 0 -16px 0 0; }
  .carousel-btn { display: none; }               /* swipe the strip on a phone */
  .carousel-track { gap: 10px; padding-right: 16px; }
  .foot-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 2px 26px; margin-top: 18px; }
  .foot-nav span { display: none; }
  .foot-nav a { padding: 4px 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
