/* Shared breakpoints, loaded after the block styles. */

@media (max-width: 1100px) {
  body.seo-page .seo-intro { width: 100%; padding-inline: 26px; }
  body.seo-page .seo-intro h2 { width: 330px; margin-top: 32px; font-size: 32px; line-height: 32px; }
  body.seo-page .seo-intro > p:not(.eyebrow) { width: 362px; margin-top: 22px; font-size: 16px; line-height: 24px; }
  body.seo-page .eyebrow { height: 27px; min-height: 27px; padding-inline: 16px; font-size: 14px; }
  .seo-wide-only { display: none; }
  .seo-rail-controls { display: flex; width: 382px; align-items: center; justify-content: space-between; margin: 40px auto 0; }
}

@media (max-width: 900px) {
  .digital-intro { padding-inline: 24px; }
  .digital-intro h2 { margin-top: 32px; font-size: 40px; line-height: 34px; }
  .digital-intro > p:last-child { margin-top: 26px; font-size: 16px; line-height: 24px; }
}

@media (min-width: 901px) {
  .eyebrow { line-height: 26px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 16px; }
  .section-grid::before { left: 16px; }
  .section-grid::after { right: 16px; }
  .eyebrow { min-height: 30px; padding-inline: 12px; font-size: 12px; line-height: 18px; }
  .section-intro h2 { max-width: 360px; margin-top: 32px; font-size: 40px; line-height: 40px; }
  .section-intro > p:last-of-type { max-width: 341px; margin-top: 32px; font-size: 16px; line-height: 24px; }
  .carousel-controls { margin-top: 40px; padding-inline: 16px; }
  .carousel-arrow, .carousel-arrow img { width: 49px; }
  .grid-transition { height: 272px; background-size: 82px 82px; }
  .grid-transition span { inset-inline: 16px; }
  .split-block__copy h2 { margin-top: 32px; font-size: 40px; line-height: 40px; }
  .split-block__copy > p:not(.eyebrow) { margin-top: 24px; font-size: 16px; line-height: 24px; }
  .ui-panel { width: 100%; box-shadow: 7px 7px 0 rgba(72,12,8,.05); }
  .web-section-intro { padding-inline: 40px; }
  .web-section-intro h2 { max-width: 334px; margin-top: 32px; font-size: 36px; line-height: .98; }
  .web-section-intro > p:last-child { margin-top: 26px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  body.digital-marketing-page .digital-intro { padding-inline: 24px; }
}

@media (max-width: 767px) {
  :root { --page-gutter: 16px; }
}

@media (max-width: 900px) {
  body.web-development-page .web-section-intro { padding-inline: 42px; }
  body.web-development-page .web-section-intro .eyebrow { width: auto; height: 30px; min-height: 30px; padding: 0 12px; gap: 10px; font-size: 14px; line-height: 24px; }
  body.web-development-page .web-section-intro h2 { width: auto; max-width: none; margin-top: 27.2px; font-size: 32px; line-height: 32px; }
  body.web-development-page .web-section-intro > p:last-child { width: auto; max-width: none; margin-top: 19.8px; font-size: 16px; line-height: 24px; }
  body.web-development-page .eyebrow--hero { width: 285px; height: 30px; min-height: 30px; margin-inline: auto; padding: 0; font-size: 14px; line-height: 24px; }
  body.web-development-page .web-arrow { width: 62px; height: 21px; }
  body.web-development-page .web-arrow img { width: 62px; height: 21px; }
}

@media (max-width: 1100px) {
  .seo-page .seo-intro { width: 100%; padding-inline: 26px; }
  .seo-page .seo-intro h2 { width: 330px; margin-top: 32px; font-size: 32px; line-height: 32px; }
  .seo-page .seo-intro > p:not(.eyebrow) { width: 362px; margin-top: 22px; font-size: 16px; line-height: 24px; }
  .seo-page .eyebrow { height: 27px; min-height: 27px; padding-inline: 16px; font-size: 14px; }
}

@media (max-width: 900px) {
  .digital-marketing-page .digital-intro { padding-inline: 24px; }
  .web-development-page .web-section-intro { padding-inline: 42px; }
  .web-development-page .web-section-intro .eyebrow { width: auto; height: 30px; min-height: 30px; padding: 0 12px; gap: 10px; font-size: 14px; line-height: 24px; }
  .web-development-page .web-section-intro h2 { width: auto; max-width: none; margin-top: 27.2px; font-size: 32px; line-height: 32px; }
  .web-development-page .web-section-intro > p:last-child { width: auto; max-width: none; margin-top: 19.8px; font-size: 16px; line-height: 24px; }
  .web-development-page .eyebrow--hero { width: 285px; height: 30px; min-height: 30px; margin-inline: auto; padding: 0; font-size: 14px; line-height: 24px; }
  .web-development-page .web-arrow { width: 62px; height: 21px; }
  .web-development-page .web-arrow img { width: 62px; height: 21px; }
  .seo-page .eyebrow { min-height: 30px; padding-inline: 12px; font-size: 12px; line-height: 18px; }
  .is-hidden-mobile { display: none !important; }
  .has-pt-100, .has-pt-120 { padding-top: 80px; }
  .has-pb-100, .has-pb-120 { padding-bottom: 80px; }
  .split-block, .split-block--reverse { display: flex; max-width: none; flex-direction: column; gap: 40px; padding-inline: 16px; }
}

@media (min-width: 901px) {
  .is-hidden-desktop { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- footer -------------------------------------------------------------
   Only the desktop footer differs per page; every page below 901 shares the
   stacked treatment. Column selectors are re-pointed at the widget markup. */

@media (min-width: 901px) {
  /* The wordmark watermark is pinned at 675 and is 194 tall, so its foot lands
     at 869: a footer that tall shows the whole mark, and a shorter one crops
     it. The service pages were already drawn tall enough; home and About Us sat
     at the 730 default and showed only the top sliver of it, so they are
     brought up to match. A deliberate departure from the static build on those
     two pages. */
  body.home-page .site-footer { height: 869px; min-height: 869px; }
  body.about-us-page .site-footer { height: 869px; min-height: 869px; margin-top: 120px; }
  body.seo-page .site-footer { height: 837px; min-height: 837px; margin-top: 120px; }
  body.digital-marketing-page .site-footer,
  body.email-marketing-page .site-footer,
  body.get-a-demo-page .site-footer { height: 869px; min-height: 869px; margin-top: 120px; }
  body.web-development-page .site-footer { min-height: 841px; margin-top: 0; }
}

@media (max-width: 900px) {
  .site-footer { min-height: 0; padding: 60px 24px 100px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 56px 30px; }
  .site-footer__column--newsletter { grid-column: 1 / -1; }
  .newsletter label, .newsletter button { width: 100%; }
  .site-footer__grid .site-footer__column:last-child { grid-column: 1 / -1; }
  .site-footer .site-footer__socials { position: relative; top: auto; right: auto; margin-top: 64px; }
  .site-footer__bottom { position: relative; top: auto; right: auto; left: auto; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 48px; padding-bottom: 28px; font-size: 13px; line-height: 20px; }
  .site-footer__stripes { right: 24px; left: 24px; }
}

@media (max-width: 767px) {
  /* Rectangle 36 is a flat fill on mobile; the desktop icon artwork scaled to
     414 turns into heavy speckle. */
  .site-footer { height: auto; min-height: 0; margin-top: 78px; padding: 56px 0 0; background: #511814; }
  .site-footer__grid { display: grid; grid-template-columns: minmax(0,182px) minmax(0,1fr); gap: 55px 0; padding: 0 16px 0 45px; }
  .site-footer__column--newsletter { grid-column: 1 / -1; }
  .newsletter h2 { max-width: 220px; margin: 0; font-size: 32px; line-height: 32px; }
  .newsletter label { width: min(100%,325px); height: 41px; margin-top: 34px; }
  .newsletter label:first-of-type { margin-top: 27px; }
  .newsletter label + label { margin-top: 34px; }
  .newsletter input { height: 100%; font-size: 16px; line-height: 16px; }
  .newsletter button { width: min(100%,325px); height: 50px; margin-top: 40px; }
  .site-footer__column { gap: 11px; padding-top: 0; }
  .site-footer__widget-title { margin: 0 0 22px; font-size: 24px; line-height: 26px; }
  .site-footer__column ul { gap: 11px; }
  .site-footer__column a { font-size: 16px; line-height: 24px; }
  .site-footer__grid .site-footer__column:last-child { grid-column: 1; margin-top: -3px; }
  .site-footer .site-footer__socials { position: static; margin: 122px 0 0 45px; }
  .site-footer__bottom { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 22px 16px 0; padding-bottom: 20px; font-size: 16px; line-height: 16px; }
  .site-footer__bottom a { order: 1; padding-left: 29px; font-size: 18px; line-height: 16px; }
  .site-footer__bottom p { order: 2; width: min(100%,349px); margin: 107px auto 0; text-align: center; font-size: 16px; line-height: 16px; }
  .site-footer__stripes { display: none; }
}

/* ---- header ------------------------------------------------------------
 * Below 900 the row of links gives way to the burger and the full-screen
 * panel. The markup for both is always rendered; these are the rules that
 * decide which one the viewport gets. */

@media (max-width: 900px) {
  .site-header { padding-top: 20px; }
  .frame-shell--header { padding-inline: 0; }
  .site-nav {
    height: 72px;
    margin-inline: 0;
  }
  .site-nav__desktop { display: none; }
  .site-nav__mobile {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
  }
  .site-nav__mobile .brand img {
    width: 140px;
    height: 20px;
  }
  .menu-toggle {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 6px;
    border: 1px solid rgba(0,0,0,.16);
    background: rgba(255,255,255,.65);
    cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1px;
    background: #000;
    transition: transform var(--motion-base) var(--ease-standard);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu {
    position: fixed;
    z-index: 40;
    inset: 92px 0 0;
    flex-direction: column;
    padding: 38px 25px;
    background: rgba(248,246,242,.98);
    backdrop-filter: blur(16px);
  }
  .mobile-menu:not([hidden]) { display: flex; }
  .mobile-menu a {
    padding: 18px 4px;
    border-bottom: 1px solid rgba(0,0,0,.1);
    font-size: 28px;
    font-weight: 500;
  }

  /* The panel reads like the services dropdown: a heading over a group of
     rows, each an icon, a title and the menu item's own description. It has its
     own top row -- wordmark on the left, close on the right -- and the four
     corner marks the design draws around a framed surface. */
  .mobile-menu {
    /* Above the header, so the panel's own bar -- wordmark and close -- is what
       you see, rather than the header row showing through with its burger. */
    z-index: 60;
    inset: 0;
    padding: 0;
    gap: 0;
  }

  .mobile-menu .corner-frame__ornaments {
    position: absolute;
    z-index: 2;
    inset: 12px;
    pointer-events: none;
  }

  .mobile-menu__bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 25px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
  }

  .mobile-menu__close {
    display: grid;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    place-items: center;
    background: rgba(255, 255, 255, .7);
    color: #000;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
  }

  .mobile-menu__close:is(:hover, :focus-visible) {
    border-color: rgba(0, 0, 0, .3);
    background: #fff;
  }

  .mobile-menu__close svg { width: 18px; height: 18px; }

  .mobile-menu__bar .brand img { width: 140px; height: 20px; }

  /* The header row sizes its links to their own text so they can carry the
     underline; in the panel every row spans it. */
  .mobile-menu .nav-link { width: auto; }

  .mobile-menu__body {
    display: flex;
    overflow-y: auto;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 12px 38px;
    gap: 2px;
  }

  /* The stacked menu carries the same rows as the dropdown, so the list itself
     adds nothing of its own. */
  .mobile-menu__list,
  .mobile-menu__list .nav-panel {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu .nav-panel__row {
    display: grid;
    align-items: start;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    padding: 13px 13px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    font-size: inherit;
  }

  .mobile-menu .nav-panel__row:not(:has(.nav-panel__icon)) {
    grid-template-columns: 1fr;
  }

  .mobile-menu .nav-panel__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
    white-space: normal;
  }

  .mobile-menu .nav-panel__desc { font-size: 14px; line-height: 20px; }

  .mobile-menu .nav-panel__icon,
  .mobile-menu .nav-panel__icon svg { width: 20px; height: 20px; }

  .mobile-menu .nav-panel__label {
    padding: 22px 13px 6px;
    font-size: 11px;
    letter-spacing: .14em;
  }

  /* The dropdown's own heading is redundant here: the parent item already heads
     the group in the stacked menu. */
  .mobile-menu .is-label { display: none; }

  .mobile-menu .is-featured .nav-panel__row {
    margin: 0 0 6px;
    padding: 13px;
    border: 1px solid rgba(72, 12, 8, .1);
    background: rgba(72, 12, 8, .03);
  }

  /* Anything the menu still renders as a plain link -- the top-level items
     without a submenu -- matches the rows around it. */
  .mobile-menu a:not(.nav-panel__row):not(.mobile-menu__cta):not(.brand) {
    display: block;
    padding: 13px;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
    font-size: 20px;
    font-weight: 500;
    line-height: 26px;
  }

  .mobile-menu__cta {
    margin: 24px 13px 0;
    justify-content: center;
  }

}

@media (max-width: 767px) {
  .menu-toggle {
    width: 40px;
    height: 40px;
    gap: 4px;
    border: 0;
    background: var(--wine);
  }
  .menu-toggle span:not(.sr-only) { width: 18px; height: 2px; background: #fff; }
}
