/* Wagner Christmas Trees site layout. Colors and sizes come from tokens.css and tokens-site.css only. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Focus ring per brand guide: 2px solid focus color, 2px offset; on-pine inside pine areas. */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wg-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--on-pine); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 100; padding: var(--space-2) var(--space-4); background: var(--paper-raised); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: var(--space-2); }

/* Content width 1120px, gutters at least 16px (20px on phones, as in the phone designs). */
.container,
.site-header__inner,
.signup__inner,
.site-footer__inner {
  width: 100%;
  padding-left: max(20px, calc((100% - var(--content-max)) / 2));
  padding-right: max(20px, calc((100% - var(--content-max)) / 2));
}
@media (max-width: 359px) {
  .container, .site-header__inner, .signup__inner, .site-footer__inner { padding-left: var(--space-4); padding-right: var(--space-4); }
}

/* Type helpers */
.h-section { margin: 0; font-family: var(--font-slab); font-weight: 700; font-size: 44px; line-height: 48px; }
.body-lg { margin: 0; font-size: 18px; line-height: 28px; max-width: var(--text-max); }
.link-strong { font-size: 17px; font-weight: 600; }
.rule-heavy { height: var(--rule-heavy); background: var(--ink); }
.wg-eyebrow { margin: 0; }

/* ---------- Header ---------- */
.site-header { position: relative; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner { height: 96px; display: flex; align-items: center; gap: 40px; }
.site-header__logo { display: flex; flex-shrink: 0; }
.site-header__logo img { width: 64px; height: 64px; }
.site-nav { display: flex; gap: 28px; flex-grow: 1; font-size: 17px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav__phone { display: none; }
.site-header__phone { font-size: 17px; font-weight: 600; white-space: nowrap; color: var(--ink); text-decoration: none; }
.site-header__phone:hover { color: var(--ink); text-decoration: underline; }
.site-header__menu, .site-header__reserve-link { display: none; }

/* Compact header: below the width where the full desktop row fits. */
@media (max-width: 1099px) {
  .site-header__inner { height: 64px; gap: 0; justify-content: space-between; }
  .site-header__logo img { width: 56px; height: 56px; }
  .site-header__phone, .site-header__reserve { display: none; }
  .site-header__menu {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: -10px; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .site-header__reserve-link {
    display: flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: flex-end;
    font-size: 15px; font-weight: 700; color: var(--berry);
  }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    flex-direction: column; gap: 0;
    padding: var(--space-2) 20px var(--space-4);
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .site-nav .site-nav__phone { display: block; border-bottom: 0; }
}

/* ---------- Email signup band ---------- */
.signup { background: var(--paper-sunk); }
.signup__inner { min-height: 224px; display: flex; align-items: center; gap: var(--space-16); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.signup__text { flex-grow: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.signup__heading { margin: 0; font-family: var(--font-slab); font-weight: 700; font-size: 32px; line-height: 36px; }
.signup__line { margin: 0; font-size: 17px; line-height: 26px; max-width: 560px; color: var(--ink-muted); }
.signup__form { display: flex; gap: var(--space-3); align-items: flex-end; }
.signup__label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.signup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field {
  width: 320px; height: 48px; padding: 0 var(--space-4);
  border: 1px solid var(--field-border); border-radius: var(--radius-sm);
  background: var(--paper-raised); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: var(--on-pine); }
.site-footer__inner { display: flex; gap: var(--space-16); padding-top: var(--space-12); padding-bottom: 40px; }
.site-footer__logo { width: 96px; height: 96px; flex-shrink: 0; }
.site-footer__info { flex-grow: 1; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 24px; }
.site-footer__name { font-family: var(--font-slab); font-weight: 700; font-size: 22px; line-height: 28px; }
.site-footer__family { margin-top: var(--space-3); color: var(--on-pine-muted); }
.site-footer a { color: var(--on-pine); }
.site-footer a:hover { color: var(--on-pine-muted); }
.site-footer__info a { text-decoration: none; }
.site-footer__info a:hover { text-decoration: underline; }
.site-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; min-width: 200px; }
.site-footer__copy { margin-top: var(--space-3); font-weight: 400; font-size: 14px; color: var(--on-pine-muted); }

/* ---------- Phone sticky bar ---------- */
.sticky-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sticky-bar {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 10px var(--space-3) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper-raised); box-shadow: var(--shadow-bar);
  }
  .sticky-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 2px solid var(--ink); border-radius: var(--radius-md);
    color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  }
  .sticky-bar__btn:hover { color: var(--ink); background: var(--paper-sunk); }
  .sticky-bar__btn--reserve { border-color: var(--berry); background: var(--berry); color: var(--on-berry); }
  .sticky-bar__btn--reserve:hover { color: var(--on-berry); background: var(--berry); filter: brightness(1.08); }
}

/* ---------- Signup and footer on tablet and phone ---------- */
@media (max-width: 1023px) {
  .signup__inner { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .signup__form { flex-direction: column; align-items: stretch; }
  .field { width: 100%; }
  .signup__form .wg-btn { width: 100%; }
}
@media (max-width: 767px) {
  .signup__inner { min-height: 0; padding-top: 40px; padding-bottom: 40px; gap: var(--space-3); }
  .signup__heading { font-size: 26px; line-height: 30px; }
  .signup__line { font-size: 16px; line-height: 24px; }
  .site-footer__inner { flex-direction: column; gap: 10px; padding-top: 40px; padding-bottom: 40px; font-size: 15px; line-height: 22px; }
  .site-footer__logo { width: 72px; height: 72px; }
  .site-footer__info { font-size: 15px; line-height: 22px; }
  .site-footer__name { font-size: 20px; }
  .site-footer__links { min-width: 0; margin-top: var(--space-4); }
}


/* Signup message under the form */
.signup__form { flex-wrap: wrap; position: relative; }
.signup__msg { flex-basis: 100%; margin: 0; min-height: 22px; font-size: 15px; line-height: 22px; font-weight: 600; }
.signup__msg.is-ok { color: var(--ink); }
.signup__msg.is-error { color: var(--berry); }
.signup__msg:empty { display: none; }
