/* Montana Mobile Document Shredding — responsive rebuild of the original mtshredding.com design */
:root {
  --navy: #324667;
  --navy-dark: #26364f;
  --green: #92b21b;
  --green-dark: #7f981e;
  --link: #b7d1da;
  --pale: #d3ecf6;
  --white: #fff;
  --rule: rgba(183, 209, 218, .35);
  --font: Verdana, Geneva, Tahoma, sans-serif;
  --font-nav: "Century Gothic", CenturyGothic, AppleGothic, "Trebuchet MS", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: #8fc1ea url(/images/bg.jpg) top center / cover no-repeat fixed;
  background-image: image-set(url(/images/bg.webp) type("image/webp"), url(/images/bg.jpg) type("image/jpeg"));
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--white);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Two-panel layout (desktop) ---------- */
.wrap {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  max-width: 1100px;
  margin: 30px auto 10px;
  min-height: 900px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
}
.side {
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.panel { background: var(--navy); display: flex; flex-direction: column; min-width: 0; }

/* Navigation tabs: navy pills hanging off the white column, as on the original site */
.nav { position: relative; padding: 24px 0 0; }
.nav ul { position: relative; z-index: 1; list-style: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nav a, .nav-m a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s;
}
.nav a { border-radius: 18px 0 0 18px; padding: 0 18px 0 22px; }
.nav a.nav-home { padding: 0 18px; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"],
.nav-m a:hover, .nav-m a:focus-visible, .nav-m a[aria-current="page"] { background: var(--green-dark); text-decoration: none; }
.nav-leaf { position: absolute; top: 30px; right: 112px; width: 98px; pointer-events: none; }

.call { padding: 0 0 0 30px; margin-top: auto; color: var(--navy); }
.call-h { font: bold 32px/1 Verdana, Arial, sans-serif; color: var(--navy); }
.call-num { font: bold 30px/1.15 Verdana, Arial, sans-serif; color: var(--green-dark); }
.call-num a { color: inherit; }
.call-tag { font: italic bold 20px/1.2 Verdana, Arial, sans-serif; color: var(--green-dark); }
.pile { display: block; margin: 16px 0 0; }
.pile img { width: 100%; }
.side .pile { position: relative; z-index: 1; }

/* Masthead */
.masthead { display: flex; justify-content: flex-end; padding: 20px 26px 8px; }
.logo img { width: 260px; }
.nav-m { display: none; }
.tagline { margin: 0 40px; }
.tagline img { margin: 0 auto; }

/* Content */
.content { padding: 34px 40px 40px; flex: 1; }
.content > * + * { margin-top: 14px; }
h1 { font-weight: normal; font-size: 26px; line-height: 1.2; color: var(--green); }
h2 { font-weight: normal; font-size: 21px; line-height: 1.25; color: var(--green); margin-top: 28px !important; }
h3 { font-size: 17px; line-height: 1.3; color: var(--pale); margin-top: 18px !important; }
.content p, .content li { font-size: 14px; }
.lead { font-weight: bold; }
.bullets, .squares { padding-left: 22px; }
.squares { list-style: square; padding-left: 56px; }
.bullets li + li, .squares li + li { margin-top: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.photo img { border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.photo-right { float: right; margin: 6px 0 14px 24px; }
.clear { clear: both; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.cta { margin-top: 20px !important; }
.note { border-left: 4px solid var(--green); background: rgba(255, 255, 255, .06); padding: 12px 16px; }
.note h2 { margin-top: 0 !important; }
.first { margin-top: 0 !important; }
.contact dd + dt { margin-top: 14px; }
.btn {
  display: inline-block;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font-nav);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 10px 22px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--green); color: var(--navy-dark); text-decoration: none; }
.owner { font-size: 15px !important; color: var(--pale); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; }
.contact dl { margin-top: 16px; }
.contact dt { font-size: 17px; color: var(--green); margin-top: 14px; }
.contact dd { font-size: 15px; }
.contact dd a { font-size: 17px; }
.form h2 { margin-top: 0 !important; margin-bottom: 8px; }
.form label { display: block; font-size: 14px; margin: 10px 0 4px; }
.form input, .form textarea {
  width: 100%;
  font: 15px/1.4 var(--font);
  padding: 8px 10px;
  border: 1px solid #9fb3c8;
  border-radius: 3px;
  background: var(--white);
  color: #1d2a3d;
}
.form .btn { margin-top: 16px; }
.form-err { background: #8a2a2a; padding: 8px 10px; border-radius: 3px; }

/* Mobile call block (hidden on desktop) */
.call-m { display: none; }

/* Footer */
.foot { text-align: center; color: var(--navy); font-weight: bold; font-size: 13px; padding: 8px 16px; margin: 0 auto 24px; max-width: 560px; background: rgba(255, 255, 255, .8); border-radius: 6px; }
.foot p + p { font-weight: normal; }
.foot a { color: var(--navy); }
.callbar { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .wrap { grid-template-columns: 240px minmax(0, 1fr); margin: 20px 16px 10px; }
  .call { padding-left: 20px; }
  .call-h { font-size: 26px; }
  .call-num { font-size: 22px; }
  .call-tag { font-size: 16px; }
  .nav-leaf { right: 96px; }
  .tagline { margin: 0 24px; }
  .content { padding: 28px 24px 36px; }
  .split { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { background-attachment: scroll; background-size: auto 100vh; font-size: 16px; padding-bottom: 64px; }
  .wrap { display: block; margin: 0; min-height: 0; box-shadow: none; }
  .side { display: none; }
  .masthead { flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 16px 12px 14px; border-bottom: 0; }
  .logo img { width: 230px; }
  .nav-m { display: block; width: 100%; }
  .nav-m ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .nav-m a { border-radius: 18px; padding: 0 14px; font-size: 13px; background: var(--navy-dark); border: 1px solid var(--rule); min-height: 40px; }
  .tagline { margin: 0 12px; }
  .content { padding: 24px 16px 28px; }
  .content p, .content li { font-size: 15px; }
  h1 { font-size: 23px; }
  h2 { font-size: 19px; }
  .squares { padding-left: 24px; }
  .photo-right { float: none; margin: 10px 0 14px; }
  .photo img { margin: 0 auto; }
  .cols { grid-template-columns: 1fr; }
  .call-m { display: block; background: var(--white); color: var(--navy); padding: 22px 16px 0; overflow: hidden; text-align: center; }
  .call-m .call-h { font-size: 28px; }
  .call-m .call-num { font-size: 28px; margin-top: 4px; }
  .call-m .call-tag { font-size: 18px; margin-top: 4px; }
  .call-m img { margin: 12px auto 0; width: 100%; max-width: 420px; }
  .foot { background: rgba(255, 255, 255, .9); padding: 14px 16px 18px; margin: 0; max-width: none; border-radius: 0; }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    background: var(--green-dark); color: var(--white);
    font: bold 18px/1 var(--font); padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
  }
  .callbar:hover { text-decoration: none; background: var(--green); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body { background: none; color: #000; }
  .side, .nav-m, .callbar, .tagline, .form { display: none; }
  .wrap { display: block; box-shadow: none; }
  .panel { background: none; }
  a { color: #000; }
}
