/* Shared site shell (header/nav/footer) — Land Care Garden Center.
   Edit partials/{header,footer}.html + this file, then run scripts/sync-shell.py.
   Class namespace: .site-header/.sh-* and .site-footer/.sf-* only. */

:root {
  --shell-ink: #1f2b1a;
  --shell-ink-soft: #43523c;
  --shell-cream: #faf6ec;
  --shell-leaf: #76c438;
  --shell-leaf-deep: #4e8f22;
  --shell-oak: #a31005;
  --shell-oak-deep: #7c0d04;
  --shell-white: #fffdf7;
  --shell-hairline: rgba(31, 43, 26, 0.16);
  --shell-leaf-mask: url('data:image/svg+xml;utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"%3E%3Cpath fill="black" d="M92.239 26.432c-4.705.09-9.496.87-14.37 2.473c-19.773 6.506-41.557 59.364-7.411 112.912c9.221 14.46-41 39.289-31.803 67.056c12.387 37.399 99.437 19.933 112.104 42.211c6.44 11.328-79.773 49.284-49.663 81.625c37.951 40.763 76.062 14.109 138.553 23.864c24.685 3.853-26.357 63.343 11.031 86.498c39.948 24.739 118.742 1.986 160.846-20.254a20577 20577 0 0 0-30.19-36.098c-33.45 10.371-71.807 15.824-106.036 13.664c36.092-6.615 65.118-14.246 94.8-27.025c-21.566-25.637-43.299-51.22-65.357-76.479c-36.846 7.379-103.783 18.406-166.793 13.88c8.83-1.316 110.772-14.937 154.935-27.38a3178 3178 0 0 0-24.357-27.318a6823 6823 0 0 0-27.935-35.486a6486 6486 0 0 0-15.413-19.34l-.115.658c-31.187 1.8-90.154 3.052-142.9-10.709c7.477.02 92.983 1.716 132.031-3.637c-16.65-20.699-32.746-40.434-46.473-56.795c-7.035-8.385-13.392-15.81-19.011-22.209l.05-.056c25.401 23.275 50.132 47.542 74.329 72.506c15.57-24.254 32.931-56.653 41.664-80.655c1.469 29.363-15.963 66.66-27.586 95.325c22.456 23.61 44.458 47.79 66.125 72.287c20.118-23.976 44.105-60.316 54.869-83.707c-3.957 26.047-31.834 67.188-44.936 94.982c25.142 28.669 49.84 57.727 74.266 86.8c13.506-17.48 28.29-40.286 35.822-57.296c1.32 21.671-14.607 49.312-24.892 70.281l-.05-.014c9.624 11.49 19.211 22.974 28.766 34.428c3.016-2.12 5.604-4.173 7.582-6.095c31.459-30.573 36.26-79.699 17.842-116.51c-12.519-25.021-70.096-8.654-77.265-23.846c-9.068-19.214 51.563-76.204 28.146-104.902c-16.456-20.168-75.04 1.983-85.264-16.182c-16.343-29.04 28.13-74.832-21.763-99.244c-26.468-12.95-46.397 5.349-88.338 44.103c-21.236 19.623-62.13-63.165-113.828-64.312a49 49 0 0 0-2.012-.004m345.39 402.365l-13.982 11.336l36.848 45.444l13.98-11.336l-36.845-45.444z"/%3E%3C/svg%3E');
}

/* ---------- Header ---------- */
.site-header {
  background: var(--shell-white);
  border-bottom: 1px solid var(--shell-hairline);
  position: sticky;
  top: 0;
  z-index: 60;
}
.sh-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.sh-logo img { height: 54px; width: auto; display: block; }

.sh-nav { display: flex; align-items: center; }
.sh-nav-toggle { display: none; }
.sh-burger { display: none; }
.sh-call { display: none; }

.sh-links { display: flex; align-items: center; gap: 26px; }
.sh-links a {
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--shell-ink);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.sh-links a:hover { color: var(--shell-oak); border-bottom-color: rgba(163,16,5,0.35); }
.sh-links a[aria-current="page"] { color: var(--shell-oak); border-bottom-color: var(--shell-oak); }

.sh-links .sh-cta {
  background: var(--shell-oak);
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14.5px;
  box-shadow: 0 3px 0 var(--shell-oak-deep);
  border-bottom: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sh-links .sh-cta:hover { background: var(--shell-oak-deep); color: #fff; transform: translateY(-1px); border-bottom: none; }

/* ---- The Yard dropdown ---- */
.sh-item { position: relative; }
.sh-caret {
  display: inline-block;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 8px;
  vertical-align: 3px;
}
@media (min-width: 861px) {
  .sh-links > a,
  .sh-links > .sh-item > a { display: flex; align-items: center; }
  .sh-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 268px;
    background: var(--shell-white);
    border: 1px solid var(--shell-hairline);
    border-radius: 12px;
    box-shadow: 0 20px 44px -18px rgba(31,43,26,0.45);
    padding: 10px;
    z-index: 70;
  }
  .sh-item:hover .sh-sub, .sh-item:focus-within .sh-sub { display: block; }
  .sh-sub a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 15px;
    border-bottom: none;
  }
  .sh-sub a::before {
    content: "";
    display: inline-block;
    width: 13px; height: 13px;
    margin-right: 9px;
    vertical-align: -1.5px;
    background: var(--shell-oak);
    -webkit-mask: var(--shell-leaf-mask) center / contain no-repeat;
    mask: var(--shell-leaf-mask) center / contain no-repeat;
  }
  .sh-sub a:hover { background: var(--shell-cream); color: var(--shell-oak); border-bottom: none; }
  .sh-sub a[aria-current="page"] { color: var(--shell-oak); border-bottom: none; background: var(--shell-cream); }
}

@media (max-width: 860px) {
  /* Header bar: burger | centered logo | call button */
  .sh-in {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }
  .sh-logo { justify-self: center; }
  .sh-logo img { height: 44px; }
  .sh-nav { display: contents; }

  .sh-call {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--shell-oak);
    color: #fff;
    box-shadow: 0 3px 0 var(--shell-oak-deep);
    grid-column: 3;
    grid-row: 1;
  }
  .sh-call svg { width: 21px; height: 21px; display: block; }
  .sh-call:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--shell-oak-deep); }

  .sh-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px 10px;
    cursor: pointer;
    border: 1px solid var(--shell-hairline);
    border-radius: 10px;
    background: var(--shell-white);
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1;
  }
  .sh-burger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--shell-ink);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1.2), opacity 0.2s ease;
  }
  .sh-nav-toggle:checked ~ .sh-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .sh-nav-toggle:checked ~ .sh-burger span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
  .sh-nav-toggle:checked ~ .sh-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  /* Slide-down panel: never taller than the viewport, scrolls inside itself */
  .sh-links {
    position: fixed;
    top: 65px;                        /* header bar height */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--shell-white);
    border-bottom: 1px solid var(--shell-hairline);
    box-shadow: 0 18px 30px -18px rgba(31,43,26,0.35);
    padding: 4px 16px 16px;
    max-height: calc(100dvh - 65px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .sh-nav-toggle:checked ~ .sh-nav .sh-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .sh-links a { padding: 12px 8px; border-bottom: 1px solid var(--shell-hairline); font-size: 16.5px; }
  .sh-links a:last-of-type { border-bottom: 1px solid var(--shell-hairline); }
  .sh-links .sh-cta { margin-top: 14px; text-align: center; border-bottom: none; }
  .sh-caret { display: none; }
  .sh-item { display: block; }
  .sh-item .sh-parent { display: block; }

  /* Departments: two-column grid keeps the panel short */
  .sh-sub { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .sh-sub a { display: block; padding: 10px 4px 10px 8px; font-size: 14.5px; color: var(--shell-ink-soft); }
  .sh-sub a:first-of-type { grid-column: 1 / -1; }
  .sh-sub a::before {
    content: "";
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 7px;
    background: var(--shell-oak);
    -webkit-mask: var(--shell-leaf-mask) center / contain no-repeat;
    mask: var(--shell-leaf-mask) center / contain no-repeat;
  }
}

/* Lock page scroll while the mobile menu is open */
html:has(.sh-nav-toggle:checked) { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--shell-ink);
  color: rgba(250,246,236,0.75);
  padding: 52px 0 40px;
  font-family: "Karla", sans-serif;
}
.sf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sf-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.sf-brand img { height: 54px; width: auto; background: var(--shell-cream); border-radius: 8px; padding: 6px 12px; }
.sf-brand p { font-size: 14px; margin-top: 14px; max-width: 26em; line-height: 1.5; }
.sf-col strong { display: block; color: #fff; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.sf-col p, .sf-col a { font-size: 14.5px; line-height: 1.7; color: rgba(250,246,236,0.75); text-decoration: none; display: block; margin: 0; }
.sf-col a:hover { color: var(--shell-leaf); }
.sf-col em { font-style: italic; }
.sf-fine { font-size: 12.5px; }
.sf-legal { border-top: 1px solid rgba(250,246,236,0.15); margin-top: 40px; padding-top: 22px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.sf-legal a { color: rgba(250,246,236,0.75); text-decoration: none; margin-right: 20px; }
.sf-legal a:hover { color: var(--shell-leaf); }
.sf-loc { color: rgba(250,246,236,0.55); }

@media (max-width: 640px) {
  .sf-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .sf-brand,
  .sf-col { width: 100%; }
  .sf-legal { flex-direction: column; }
}

/* ---------- Labeled photo placeholders (team swaps for real photos) ---------- */
.ph {
  border: 2px dashed rgba(31,43,26,0.28);
  border-radius: 14px;
  background:
    repeating-linear-gradient(-45deg, rgba(31,43,26,0.025) 0 14px, transparent 14px 28px),
    #f3ecdc;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #43523c;
  font-family: "Karla", sans-serif;
}
.ph .ph-in { display: grid; justify-items: center; gap: 8px; max-width: 24em; }
.ph .leaf-ic { width: 30px; height: 30px; color: #a31005; opacity: 0.55; }
.ph strong { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.ph span { font-size: 14.5px; line-height: 1.45; }
