/* animalcreek.com — one stylesheet, no frameworks.
   Values are taken from the computed styles of the old U-Design WordPress
   theme (see CLAUDE.md for how they were measured). */

:root {
  --text: #666666;
  --muted: #999999;
  --link: #fe5e08;
  --link-hover: #333333;
  --menu-current: #f95a09;
  --menu-hover: #777777;
  --header-bg: #fcfcfc;
  --header-rule: #c7c6c6;
  --page-bg: #ececec;
  --band-light: #f7f7f7;
  --band-white: #ffffff;
  --footer-bg: #333333;
  --footer-link: #ec7921;
  --footer-link-hover: #ff5100;
  --accent: rgba(250, 127, 33, 0.75);
  --accent-hover: #f9852c;
  --body-font: Verdana, Geneva, "DejaVu Sans", sans-serif;
  --menu-font: Arial, Helvetica, "Liberation Sans", sans-serif;
  --container: 1152px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 14px/20px var(--body-font);
  color: var(--text);
  background: var(--footer-bg);
}

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

a { color: var(--link); }
a:hover { color: var(--link-hover); }

h1, h2, h3 { color: var(--text); font-weight: normal; line-height: 1.2; }

h2 {
  font-size: 1.667em;
  margin: 15px 0 2px;
  padding: 0 0 2px;
}

p { margin: 0 0 5px; padding: 5px 0; }

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-rule);
  position: relative;
  z-index: 20;
}

.header-inner {
  position: relative;
  height: 95px;
}

.logo {
  position: absolute;
  top: 6px;
  left: 20px;
  display: block;
  line-height: 0;
}

.sticky-logo { display: none; }

.main-nav {
  position: absolute;
  right: 20px;
  bottom: 0;
  height: 40px;
}

.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 18px/22px var(--menu-font);
  text-transform: uppercase;
}

.menu > li { position: relative; }

.menu > li > a {
  display: block;
  padding: 10px 0 10px 50px;
  color: var(--muted);
  text-decoration: none;
}

.menu > li.has-sub > a { position: relative; padding-right: 26px; }
.menu > li.has-sub > a::after {
  content: "+";
  position: absolute;
  right: 13px;
  top: 14px;
  font-size: 13px;
  line-height: 20px;
}

.menu > li > a:hover,
.menu > li > a:focus-visible { color: var(--menu-hover); }

.menu > li > a[aria-current="page"] { color: var(--menu-current); }
.menu > li > a[aria-current="page"]:hover { color: var(--menu-hover); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 233px;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s ease-out, visibility 0.15s;
}

.has-sub:hover > .sub-menu,
.has-sub:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
}

.sub-menu li {
  margin-bottom: 1px;
  background: rgba(238, 238, 238, 0.95);
}

.sub-menu a {
  display: block;
  padding: 8px 16px 8px 66px;
  color: var(--menu-hover);
  text-decoration: none;
}

.sub-menu a:hover,
.sub-menu a:focus-visible { color: #222222; }

.mobile-nav { display: none; }

/* Sticky menu bar. The old theme pinned the menu to the top once the logo
   row scrolled away and swapped in a small logo. Scroll-driven animations
   do the swap without JavaScript; browsers without them get a static
   header, which is how the old site behaved on phones. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 720px) {
    .site-header {
      position: sticky;
      top: -55px;
      animation: header-shadow linear both;
      animation-timeline: scroll(root);
      animation-range: 0 55px;
    }
    .logo {
      animation: fade-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 55px;
    }
    .sticky-logo {
      display: block;
      position: absolute;
      left: 20px;
      bottom: 0;
      height: 40px;
      line-height: 0;
      opacity: 0;
      visibility: hidden;
      animation: fade-in linear both;
      animation-timeline: scroll(root);
      animation-range: 40px 55px;
    }
    .sticky-logo img { height: 40px; width: auto; }
  }
}

@keyframes fade-out { to { opacity: 0; visibility: hidden; } }
@keyframes fade-in { to { opacity: 1; visibility: visible; } }
@keyframes header-shadow { to { box-shadow: 0 0 5px rgba(0, 0, 0, 0.15); } }

/* ---------- Page title band ---------- */

.page-title { background: var(--page-bg); }

.page-title h1 {
  margin: 0;
  padding-top: 18px;
  height: 60px;
  font-size: 1.667em;
  line-height: 42px;
  font-weight: 700;
}

/* ---------- Content ---------- */

.page-content {
  display: block;
  background: var(--page-bg);
  padding-bottom: 40px;
}
.page-content:has(> .hero) { padding-bottom: 20px; }

.band { padding-top: 7px; }
.page-title + .page-content > .band:first-child { padding-top: 17px; }
.band + .band { margin-top: 30px; }
.band-light { background: var(--band-light); }
.band-white { background: var(--band-white); }

.lead-indent > p { padding-left: 8%; }
.about { padding-left: 70px; padding-right: 70px; }
.contact-heading { font-size: 18.67px; font-weight: 700; }

/* Icon + text rows (Consulting, Specialties, Real-Time). */
.items { padding-bottom: 55px; }

.item {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  min-height: 125px;
}
.item.no-icon { grid-template-columns: 1fr; }
.item.wide-icon { grid-template-columns: 8% 1fr; }

.item-icon { width: 35px; height: 35px; margin: 4px 0 2px; }
.wide-icon .item-icon { width: 58px; height: 57px; }

h2.big { font-size: 32px; line-height: 1.2; }

/* ---------- Home ---------- */

.hero { background: var(--page-bg); padding-top: 7px; }

.hero-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 1240 / 450;
  container-type: inline-size;
}

.hero-img {
  position: absolute;
  left: 39.274cqw;   /* 487 / 1240 */
  top: 1.333cqw;     /* 6 / 450 of a 1240-wide stage */
  width: 52.903cqw;  /* 656 / 1240 */
  height: auto;
}

.hero-text {
  position: absolute;
  left: 9.758cqw;
  top: 13.387cqw;
  margin: 0;
  padding: 0;
  font: 500 2.097cqw/2.581cqw var(--body-font);
  white-space: nowrap;
}

.hero-btn {
  position: absolute;
  left: 9.597cqw;
  top: 21.935cqw;
  min-width: 11.694cqw;
  padding: 0.565cqw 1.613cqw;
  font: 500 1.452cqw/0.968cqw var(--menu-font);
  color: #ffffff;
  background: var(--accent);
  text-align: center;
  text-decoration: none;
}

.hero-btn:hover,
.hero-btn:focus-visible { color: #ffffff; background: var(--accent-hover); }

.band.intro { margin-top: 0; padding: 17px 0 19px; }

.intro p { padding: 0; margin: 0; font-size: 18.67px; line-height: 26px; text-align: center; }

.band.features { margin-top: 0; padding: 23px 0 15px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 10%;
}

.feature {
  display: block;
  color: var(--text);
  text-decoration: none;
  line-height: 16px;
  transition: filter 0.2s ease-out;
}
.feature:hover { color: var(--text); filter: contrast(95%) brightness(1.1); }

.feature img { display: block; margin: 0 auto 35px; }
.feature h2 { text-align: center; }
.feature p { text-align: justify; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer-bg); }

.footer-inner {
  display: grid;
  grid-template-columns: 85.07% 1fr;
  padding: 0;
  min-height: 73px;
}

.footer-text { margin: 14px 10px 12px; font-size: 12.6px; }
.footer-text p { margin: 0; padding: 0; }

.social { display: flex; justify-content: flex-end; }
.social img {
  display: block;
  margin: 0 3px;
  transition: filter 0.3s ease-out;
}
.social a:hover img { filter: brightness(1.5); }

.to-top {
  justify-self: end;
  margin: 12px 10px 0 0;
  height: 20px;
}

.site-footer a { color: var(--footer-link); }
.site-footer a:hover { color: var(--footer-link-hover); }

/* ---------- Narrow screens ---------- */

@media (max-width: 780px) {
  .feature-grid { grid-template-columns: 1fr; row-gap: 60px; }
  .lead-indent > p { padding-left: 10px; padding-right: 10px; }
  .about { padding-left: 20px; padding-right: 20px; }
  .item, .item.wide-icon { grid-template-columns: 1fr; padding-top: 30px; }
  .item-icon, .wide-icon .item-icon { width: 59px; height: 59px; margin: 0 auto 10px; }
}

@media (max-width: 719px) {
  .header-inner { height: auto; padding-top: 5px; padding-bottom: 7px; }
  .logo { position: static; width: max-content; margin: 0 auto; }
  .menu { display: none; }
  .main-nav { position: static; height: auto; }

  .mobile-nav {
    display: block;
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 2px auto 0;
    font: 16px/20px var(--menu-font);
  }
  .mobile-nav summary {
    list-style: none;
    padding: 5px 30px 5px 10px;
    border: 1px solid #767676;
    border-radius: 3px;
    background: #ffffff;
    color: #555555;
    cursor: pointer;
    position: relative;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid #333333;
    border-width: 0 2px 2px 0;
    transform: translateY(-70%) rotate(45deg);
  }
  .mobile-nav[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
  .mobile-nav ul {
    position: absolute;
    left: 0;
    right: 0;
    margin: 2px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #767676;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  .mobile-nav a {
    display: block;
    padding: 8px 12px;
    color: #555555;
    text-decoration: none;
  }
  .mobile-nav li.sub a { padding-left: 28px; }
  .mobile-nav a:hover,
  .mobile-nav a:focus-visible { background: var(--page-bg); }
  .mobile-nav a[aria-current="page"] { color: var(--menu-current); }

  .band { padding-top: 20px; }
  .page-title h1 { height: auto; padding: 18px 0 8px; }

  .hero-stage { aspect-ratio: auto; container-type: normal; padding: 20px 20px 10px; }
  .hero-img, .hero-text, .hero-btn { position: static; }
  .hero-text { white-space: normal; font-size: 20px; line-height: 26px; }
  .hero-text br { display: none; }
  .hero-btn { display: inline-block; margin: 12px 0 16px; padding: 7px 20px; font-size: 18px; line-height: 20px; min-width: 145px; }
  .hero-img { display: block; width: 100%; max-width: 656px; margin: 0 auto; }


  .footer-inner { grid-template-columns: 1fr; }
  .social { justify-content: flex-start; margin-top: 8px; }
  .to-top { justify-self: start; margin: 0 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
