/* ==========================================================================
   Statewide Outdoor Blinds — brand palette override for the Evermind template
   Typography is deliberately left untouched; only colour tokens are remapped.

   Source palette scraped from https://statewideoutdoorblinds.com
     brand red        #c82b34   (buttons, CTAs, eyebrows, footer bar)
     brand red dark   #a01922   (hover / pressed)
     brand red light  #f0545d   (red that still reads on near-black)
     ink              #0a0a0a   (body copy, dark sections)
     off-white        #f5f5f6
     light surface    #ededee   (cards, form fields, nav bar)
     neutral dark     #3f3f43   (muted labels, quiet panels)
   ========================================================================== */

:root {
  /* --- remapped template tokens --------------------------------------- */
  --_🎨-color---neutral--light-100: #f5f5f6;          /* was #f4f3ea */
  --_🎨-color---neutral--dark-100: #0a0a0a;           /* was #1a1a17 */
  --_🎨-color---accent--everglow: #c82b34;            /* was #b6e400 */
  --_🎨-color---background--eversand: #ededee;        /* was #e6e8dd */
  --_🎨-color---background--eversand-for-navigation-bar: #f5f5f6e6;
  --_🎨-color---background--everstone: #3f3f43;       /* was #3f403c */
  --_🎨-color---background--semi-transparent-dark: #0a0a0a99;
  --_🎨-color---ui--error: #a01922;

  /* --- additions used by the overrides below -------------------------- */
  --sob-red: #c82b34;
  --sob-red-dark: #a01922;
  --sob-red-on-dark: #f0545d;
  --sob-star: #fb8e28;
}

/* --------------------------------------------------------------------------
   The accent used to be a bright lime that carried dark text. Brand red is a
   dark fill, so anything sitting on the accent flips to the light neutral.
   -------------------------------------------------------------------------- */

.cta-main[data-wf--cta-main--variant="accent"],
.cta-main.submit,
.icon-wrap-40,
.icon-wrap-card-link,
.trust-avatar.last,
.circle-cta-book {
  color: var(--_🎨-color---neutral--light-100);
}

/* The hover copy of the button label is painted by a text-shadow. On an accent
   button both states are now light, so give the shadow copy the same value. */
.cta-main[data-wf--cta-main--variant="accent"] .button-text,
.cta-main.submit .button-text {
  text-shadow: 0 1.5em 0 var(--_🎨-color---neutral--light-100);
}

/* Red text needs lifting when it sits on the near-black sections. */
.hero-home-a-section .eyebrow,
.master-footer .eyebrow,
.eyebrow.light,
.eyebrow.w-variant-d0c116b2-ccca-6779-50e7-85c81eef344c {
  color: var(--_🎨-color---neutral--light-100);
}

.icon-star {
  color: var(--sob-star);
}

/* --------------------------------------------------------------------------
   Small brand details
   -------------------------------------------------------------------------- */

/* The logo is a circular badge rather than a wordmark, so it needs height. */
.logo-nav,
.logo-footer {
  width: auto;
  height: 64px;
}

/* Google-review cards in the testimonial slider */
.sob-review-stars {
  color: var(--sob-star);
  letter-spacing: 2px;
  font-size: 18px;
  line-height: 1;
}

.sob-source-note {
  opacity: .64;
}

/* --------------------------------------------------------------------------
   Layout corrections for the brand content
   -------------------------------------------------------------------------- */

/* "About Us" and "Contact Us" were wrapping onto two lines in the nav bar.
   Desktop only; below 991px the template swaps to the hamburger menu. */
@media screen and (min-width: 992px) {
  .nav-link,
  .dropdown-toggle .nav-link {
    white-space: nowrap;
  }
}

/* Google-review quotes are longer than the template's one-liners, so the card
   needs a full-height scrim rather than a 50% footer gradient. */
.testimonial-large-shadow {
  height: 100%;
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--_🎨-color---neutral--dark-100) 55%, transparent),
    color-mix(in srgb, var(--_🎨-color---neutral--dark-100) 88%, transparent)
  );
}

/* Same reason: the closing CTA sits over a photo with a bright sky.

   The element ends level with the bottom of the buttons, so a gradient whose
   last stop is still 40% opaque cut a hard horizontal edge across the photo
   right under the heading. Run it out to fully transparent, and add padding
   below the buttons so the fade has somewhere to happen. */
.cta-master {
  padding-bottom: var(--spacing--80);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--_🎨-color---neutral--dark-100) 82%, transparent) 0%,
    color-mix(in srgb, var(--_🎨-color---neutral--dark-100) 52%, transparent) 60%,
    transparent 100%
  );
}

/* The star tile is the only item left in the trust row, so it should not keep
   the overlap offset that stacked it onto the avatars. */
.trust-avatar.last {
  margin-right: 0;
  border-radius: var(--_🔘-radius---radius--full);
  width: 48px;
}

/* The template's nav carried a single CTA, so `.nav-right` was only given a
   flex row below 991px. We run two (phone + quote), which stacked them on
   desktop — lay them out side by side at every width. */
.nav-right {
  grid-column-gap: var(--spacing--8);
  grid-row-gap: var(--spacing--8);
  justify-content: flex-end;
  align-items: center;
  display: flex;
}

/* The template scrubs the nav pill's width from 100% down to auto as you
   scroll (Webflow interaction i-5feb1932), so the bar narrowed on the way down
   the page. GSAP writes that as an inline style, so `!important` is what it
   takes to hold the pill at full width -- the vendor bundle stays untouched. */
.navbar {
  width: 100% !important;
}

/* The template pinned the testimonial cards to a fixed 640px (460/360 at the
   smaller breakpoints), which left a lot of dead space under our Google
   reviews -- the tallest one only needs ~386px. Let the slider size to its
   content and stretch every card to match the tallest, so they stay a uniform
   height without the padding. The height has to be handed down through the
   collection-list wrappers between the slide and the card. */
.slider-home-a-section .slider.w-slider {
  height: auto;
}

.mask-testimonial-slider-large {
  height: auto;
  align-items: stretch;
  display: flex;
}

.slide-testimonial-large {
  height: auto;
  flex: none;
  display: flex;
}

.slide-testimonial-large .cs-slide,
.slide-testimonial-large .cs-slide > .w-dyn-items,
.slide-testimonial-large .cs-slide > .w-dyn-items > .w-dyn-item {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
}

/* With the card auto-height, the inner content's `height: 100%` no longer
   resolves, so the author row crept up the shorter cards. Flex the column
   instead, so the quote stays at the top and the author row stays pinned to
   the bottom edge on every card. */
.testimonial-card-large {
  height: auto;
  flex-flow: column;
  display: flex;
}

.testimonial-card-inner-content {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
}

.testimonial-large-bottom-tile {
  flex: 1 1 auto;
  justify-content: space-between;
  width: 100%;
}

/* "Our range" accordion: the template capped the tab list at 416px inside a
   689px column, so the divider rules stopped well short of the heading above
   and the list read as cramped. Let it fill its column. */
.tabs-menu-features {
  max-width: none;
}

/* Eight products stacked in one column ran well past the paired image, so lay
   them out two-up on desktop. 1280px is where the left half of
   `.process-halves` is finally wide enough for two readable columns; below it
   the list stays the template's single flex column, which also covers mobile,
   where `.process-halves` goes full width and would otherwise fit two.

   Multi-column rather than grid or floats: grid makes both cells of a row share
   the row height, so opening an item left a gap above the rest of the other
   column, and floats can never sit higher than an earlier float, which pushes
   the second column down. Multicol packs each column independently, and the
   forced break after the 4th link pins the split so expanding an item can't
   reflow items between columns. Links stay direct children of `.w-tab-menu`,
   which is what tabs.js requires (`o.menu.children('.w-tab-link')`). */
@media screen and (min-width: 1280px) {
  .tabs-menu-features {
    column-gap: var(--spacing--32);
    columns: 2;
    border-top-style: none;
    display: block;
  }

  .tabs-menu-features > .tab-accordion {
    width: 100%;
    display: block;
    break-inside: avoid;
  }

  .tabs-menu-features > .tab-accordion:nth-child(4) {
    break-after: column;
  }

  /* The container's top rule spanned both columns while every rule below it was
     split per column. Put it on the first item of each column instead. */
  .tabs-menu-features > .tab-accordion:nth-child(1),
  .tabs-menu-features > .tab-accordion:nth-child(5) {
    border-top: 1px solid var(--_🎨-color---neutral--dark-16);
  }
}

/* The accordion items were anchors; they are divs now so a real link can sit
   inside the panel without nesting one anchor in another. Restore the pointer. */
.tab-accordion {
  cursor: pointer;
}

/* "View product" CTA inside each collapsible panel. `width: fit-content` keeps
   it to its label rather than stretching the full column, matching the
   "Get a free quote" button above it. */
.cta-accordion {
  width: fit-content;
  margin-top: var(--spacing--16);
}

/* `.process-left` is `space-between` in a column as tall as the 680px image
   beside it, which pushed the product list far below the heading. Pack it to
   the top with a fixed gap instead. */
.process-left {
  grid-row-gap: var(--spacing--80);
  justify-content: flex-start;
}

/* Nav mega-menu image cards. The template's card is `space-between`, but the
   image sits in an absolutely positioned wrapper, so the caption is the only
   item in flow and ended up pinned to the top of the card -- over the bright
   part of the photo, with the bottom scrim going to waste. Push it down.
   The extra height fills out the 480px panel, which the 265px card left short. */
.card-customer-story.nav-card {
  height: 310px;
  justify-content: flex-end;
}

/* Every menu has the same shape: heading and links spanning two columns, one
   image card in the third. Blinds has six products against three for awnings
   and shutters, so rather than inventing a second heading ("More Blinds") to
   justify a second column, one heading spans the pair. */
.nav-column-wide {
  grid-column: span 2;
}

.nav-column-inner-split {
  grid-column-gap: var(--grid--content-gap);
  grid-row-gap: var(--spacing--12);
  grid-template-columns: 1fr 1fr;
  width: 100%;
  display: grid;
}

/* Blinds only: fill down then across so its two product groups stay intact
   instead of interleaving. Three per column. */
.nav-column-inner-split.is-grouped {
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
}

/* The display serif renders a registered mark at full size, which is very loud
   at h1 scale. Only needed where the mark sits in large type. */
.rtm {
  vertical-align: super;
  font-size: .45em;
  line-height: 0;
}

/* Phone menu: one row per item, with Blinds / Awnings / Shutters as
   tap-to-open groups so the product pages don't all show at once. */
.mnav {
  grid-row-gap: 0;
}

.mnav-row {
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing--16);
  padding: var(--spacing--16) 0;
  display: flex;
  cursor: pointer;
  list-style: none;
  text-decoration: none;
}

.mnav-row::-webkit-details-marker {
  display: none;
}

.mnav-icon {
  flex: none;
  width: 14px;
  height: 14px;
  position: relative;
}

.mnav-icon::before,
.mnav-icon::after {
  content: "";
  background-color: var(--_🎨-color---accent--everglow);
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  transition: transform .25s ease;
}

.mnav-icon::after {
  transform: rotate(90deg);
}

.mnav-group[open] .mnav-icon::after {
  transform: rotate(0deg);
}

.mnav-sub {
  flex-flow: column;
  gap: var(--spacing--4);
  padding: 0 0 var(--spacing--16) var(--spacing--16);
  border-left: 2px solid var(--_🎨-color---neutral--dark-16);
  margin-bottom: var(--spacing--16);
  align-items: flex-start;
  text-align: left;
  display: flex;
}

.mnav-sub-link {
  color: var(--_🎨-color---neutral--dark-64);
  padding: var(--spacing--8) 0;
  text-decoration: none;
}

.mnav-sub-link:hover,
.mnav-sub-link:focus-visible {
  color: var(--_🎨-color---neutral--dark-100);
}

/* Open phone menu: the frosted panel (.nav-bg) opens to 80vh from 12px
   down, and the menu starts 80px below that, so cap the menu to end inside
   the panel and give the quote card room underneath. */
@media screen and (max-width: 991px) {
  .nav-menu {
    max-height: calc(80vh - 80px);
    padding-top: var(--spacing--16);
    padding-bottom: var(--spacing--24);
  }

  .wrap-mobile-menu {
    grid-row-gap: var(--spacing--12);
    padding-bottom: 0;
  }

  .mnav-row {
    padding-top: var(--spacing--12);
    padding-bottom: var(--spacing--12);
  }

  .card-customer-story.mobile-nav-card {
    height: 130px;
  }
}

/* Footer on phones: the template collapses each column behind a +/- toggle
   (a Webflow interaction that sets an inline height). Keep every column
   open and drop the toggle. */
@media screen and (max-width: 991px) {
  .footer-column .wrap-column {
    height: auto !important;
    overflow: visible;
  }

  .footer-expand-icon {
    display: none !important;
  }

  .footer-column {
    cursor: auto;
  }

  .footer-column .footer-links-column {
    padding-top: var(--spacing--16);
  }
}

/* Homepage hero: dark wash over the background video so the headline and
   buttons stay readable. Sits above the video (z-index -100) and below the
   hero content. */
.sob-hero-dim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.55);
  pointer-events: none;
}

/* Homepage: the Blinds / Awnings / Shutters cards sit above the "Why
   Statewide" text, so the gap moves from above the cards to between them. */
.template-home-a-section .expandable-halves {
  margin-top: 0;
}
.template-home-a-section .headline-template {
  margin-top: var(--section-padding--medium);
}

/* Homepage "Brands we install" marquee: full-bleed, CSS-driven so it can
   pause on hover. Logos sit greyed out; the one under the cursor shows
   its colours.
   The four identical copies each carry their trailing gap as padding, so
   sliding the strip by exactly one copy (-25%) loops seamlessly on screens
   up to ~3100px wide. */
.master-marquees.logo-marquee.sob-logo-marquee {
  max-width: none;
}
.sob-logo-marquee .wrap-marquee-logos {
  gap: 0;
  width: max-content;
  animation: sob-logo-marquee 35s linear infinite;
}
.sob-logo-marquee .single-logo-marquee {
  padding-right: var(--spacing--80);
}
.sob-logo-marquee:hover .wrap-marquee-logos {
  animation-play-state: paused;
}
.sob-logo-marquee .marquee-logo {
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.sob-logo-marquee .marquee-logo:hover {
  filter: none;
  opacity: 1;
}
@keyframes sob-logo-marquee {
  to {
    transform: translateX(-25%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sob-logo-marquee .wrap-marquee-logos {
    animation: none;
  }
}

/* Enquiry popup (js/statewide.js initEnquiryPopup). The modal stays in the
   layout and fades in and out instead of snapping between display states;
   the form panel rises slightly as it appears. !important beats the inline
   opacity and translate3d(0, 40px) the template interaction leaves on the
   modal, which otherwise left an unblurred 40px strip at the top. */
.modal-book.sob-popup {
  display: flex !important;
  height: 100vh;
  height: 100dvh;
  transform: none !important;
  opacity: 0 !important;
  visibility: hidden;
  background-color: rgba(10, 10, 10, 0.2);
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-book.sob-popup.is-open {
  opacity: 1 !important;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
.modal-book.sob-popup .modal-inner {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-book.sob-popup.is-open .modal-inner {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .modal-book.sob-popup,
  .modal-book.sob-popup .modal-inner {
    transition: none;
  }
}

/* Email-us panel: stands in for the enquiry forms (popup and page cards)
   until a form backend is connected. */
.sob-email-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sob-email-panel p { margin: 0; }
.sob-email-lead { font-weight: 600; }
.sob-email-link {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.sob-email-hint { opacity: .75; }
.sob-email-btn { text-decoration: none; text-align: center; }

/* Privacy policy: a single readable text column. */
.sob-policy { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.sob-policy .pp-prose h2 { margin: 32px 0 8px; }
.sob-policy .pp-prose ul { padding-left: 1.25em; }
