/*
  Dylans Doors KC — "Design Your Door" (Clopay EZDoor) additions.
  Hand-written, loaded after the Webflow stylesheet. Everything is prefixed
  .ez- so it never collides with Webflow's generated classes.
*/

:root {
  --ez-gold-pale: #f0dd96;
  --ez-gold: #c9a24f;
  --ez-bronze: #8f5e26;
  --ez-paper: #ecfdf3;              /* the site's existing light text colour */
  --ez-paper-soft: #ecfdf3c7;
  --ez-line: #dac67a47;             /* gold hairline */
  --ez-panel: #17130c;              /* warm dark, one step up from the black page */
}

/* ---------- Shared button ---------- */

.ez-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.6rem;
  border: 1px solid #f6ebbb;
  border-radius: 3px;
  background-image: linear-gradient(170deg, var(--ez-gold-pale), var(--ez-gold));
  color: #000;
  font-family: Barlow, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .2s, transform .2s;
}

.ez-btn:hover {
  filter: brightness(1.08);
}

.ez-btn:active {
  transform: translateY(1px);
}

.ez-btn:focus-visible,
.ez-link:focus-visible,
.ez-chip:focus-visible,
.ez-faq summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.ez-btn svg {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
}

.ez-link {
  color: var(--ez-gold-pale);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.ez-link:hover {
  color: #fff;
}

/* ---------- Nav button (every page) ---------- */

.ez-btn.ez-nav-cta {
  padding: .7rem 1.3rem;
  font-size: 1rem;
}

/* On the design page itself the button shows where you are instead of shouting. */
.ez-btn.ez-nav-cta[aria-current="page"] {
  background-image: none;
  background-color: #0000;
  border-color: var(--ez-gold-pale);
  color: var(--ez-gold-pale);
}

/* The desktop menu now carries three buttons. Keep every label on one line
   and trade a little padding for the room, more aggressively as it narrows. */
@media screen and (min-width: 992px) {
  .navbar10_menu .navbar10_link,
  .navbar10_menu .dropdown-toggle,
  .navbar10_menu .navbar10_menu-right .button {
    white-space: nowrap;
  }

  .navbar10_menu .navbar10_menu-right,
  .navbar10_logo-link {
    flex: none;
  }
}

@media screen and (min-width: 992px) and (max-width: 1679px) {
  .navbar10_component {
    padding-left: 2.5%;
    padding-right: 2.5%;
  }

  .navbar10_menu {
    margin-left: .75rem;
  }

  .navbar10_menu .navbar10_link {
    padding-left: .6rem;
    padding-right: .6rem;
  }

  .navbar10_menu .dropdown-toggle {
    padding-left: .6rem;
    padding-right: 1.6rem;
  }

  .navbar10_menu .dropdown-toggle .w-icon-dropdown-toggle {
    margin-right: .35rem;
  }

  .navbar10_menu .navbar10_menu-right {
    grid-column-gap: .6rem;
  }

  .navbar10_menu .navbar10_menu-right .button.is-small {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  .ez-btn.ez-nav-cta {
    padding: .65rem 1rem;
  }
}

@media screen and (min-width: 992px) and (max-width: 1399px) {
  .navbar10_logo-link .image-14 {
    width: 150px;
  }

  .navbar10_menu,
  .navbar10_menu .navbar10_menu-right .button.is-small,
  .ez-btn.ez-nav-cta {
    font-size: .9375rem;
  }

  .navbar10_menu .navbar10_link {
    padding-left: .4rem;
    padding-right: .4rem;
  }

  .navbar10_menu .dropdown-toggle {
    padding-left: .4rem;
    padding-right: 1.35rem;
  }

  .navbar10_menu .dropdown-toggle .w-icon-dropdown-toggle {
    margin-right: .15rem;
  }

  .navbar10_menu .navbar10_menu-right {
    grid-column-gap: .4rem;
  }

  .navbar10_menu .navbar10_menu-right .button.is-small {
    padding-left: .65rem;
    padding-right: .65rem;
  }

  .ez-btn.ez-nav-cta {
    padding: .55rem .75rem;
  }

  .ez-btn.ez-nav-cta svg {
    display: none;
  }
}

/* Small laptops and landscape tablets. Below 1080px there isn't room for the
   logo, five links and three buttons, so the nav's Free Quote button steps
   aside (every page still has Free Quote buttons in its content). */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .navbar10_logo-link .image-14 {
    width: 128px;
  }

  .navbar10_menu,
  .navbar10_menu .navbar10_menu-right .button.is-small,
  .ez-btn.ez-nav-cta {
    font-size: .875rem;
  }

  .navbar10_menu .navbar10_link {
    padding-left: .3rem;
    padding-right: .3rem;
  }

  .navbar10_menu .dropdown-toggle {
    padding-left: .3rem;
  }

}

@media screen and (min-width: 992px) and (max-width: 1079px) {
  .navbar10_menu .navbar10_menu-right .button.is-secondary {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .ez-btn.ez-nav-cta {
    order: -1;
    padding: .85rem 1.3rem;
  }
}

/* ---------- Phone/tablet bar above the nav ---------- */

.ez-topbar {
  display: none;
}

@media screen and (max-width: 991px) {
  .ez-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem .75rem;
    flex-wrap: wrap;
    padding: .6rem 5%;
    background-image: linear-gradient(170deg, var(--ez-gold-pale), var(--ez-gold));
    color: #000;
    font-family: Barlow, sans-serif;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }

  .ez-topbar strong {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .2em;
    white-space: nowrap;
  }

  .ez-topbar:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }
}

/* ---------- Before / after slider ---------- */

.ez-compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--ez-panel);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ez-compare img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Two stacked layers, each clipped to its own side of the handle, so the
   labels disappear with the photo they belong to. */
.ez-compare_layer {
  position: absolute;
  inset: 0;
}

.ez-compare_layer.is-after {
  clip-path: inset(0 0 0 var(--pos));
}

.ez-compare_layer.is-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ez-compare_handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background-color: var(--ez-gold-pale);
  pointer-events: none;
}

.ez-compare_handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ez-gold-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.35rem no-repeat;
  box-shadow: 0 2px 14px #000000a6;
}

.ez-compare_tag {
  position: absolute;
  bottom: .75rem;
  padding: .3rem .65rem;
  border-radius: 2px;
  background-color: #000000b8;
  color: #fff;
  font-family: Barlow, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

.ez-compare_tag.is-before {
  left: .75rem;
}

.ez-compare_tag.is-after {
  right: .75rem;
}

/* The range input is the keyboard/screen-reader control; pointer dragging is
   handled on the container in js/ezdoor.js. */
.ez-compare_range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ez-compare:has(.ez-compare_range:focus-visible) {
  outline: 2px solid var(--ez-gold-pale);
  outline-offset: 3px;
}

.ez-compare.is-animating .ez-compare_layer,
.ez-compare.is-animating .ez-compare_handle {
  transition: clip-path 1.1s cubic-bezier(.3, .7, .2, 1), left 1.1s cubic-bezier(.3, .7, .2, 1);
}

.ez-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}

.ez-chips_label {
  margin-right: .25rem;
  color: var(--ez-paper-soft);
  font-family: Barlow, sans-serif;
  font-size: .9375rem;
}

.ez-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem .4rem .5rem;
  border: 1px solid var(--ez-line);
  border-radius: 999px;
  background-color: #0000;
  color: var(--ez-paper);
  font-family: Barlow, sans-serif;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}

.ez-chip::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--swatch, #888);
  box-shadow: inset 0 0 0 1px #ffffff40;
}

.ez-chip:hover {
  border-color: var(--ez-gold-pale);
}

.ez-chip[aria-pressed="true"] {
  border-color: var(--ez-gold-pale);
  background-color: var(--ez-gold-pale);
  color: #000;
}

.ez-note {
  margin-top: .75rem;
  color: #ecfdf38f;
  font-family: Barlow, sans-serif;
  font-size: .8125rem;
  line-height: 1.5;
}

/* ---------- Homepage section ---------- */

.ez-feature {
  border-top: 1px solid var(--ez-line);
  border-bottom: 1px solid var(--ez-line);
  background-color: #000;
  font-family: Barlow, sans-serif;
}

.ez-feature_inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 4.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 5%;
}

.ez-feature_copy {
  text-align: left;
}

.ez-kicker {
  margin-bottom: .75rem;
  color: var(--ez-gold-pale);
  font-size: 1rem;
  font-weight: 600;
}

.ez-h2 {
  margin: 0 0 1.25rem;
  color: var(--ez-paper);
  font-family: Montserrat, sans-serif;
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.ez-lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: var(--ez-paper-soft);
  font-size: 1.125rem;
  line-height: 1.6;
}

.ez-feature_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.ez-feature_aside {
  color: var(--ez-paper-soft);
  font-size: .9375rem;
}

/* ---------- Design page: header ---------- */

.ez-head {
  background-color: #000;
  font-family: Barlow, sans-serif;
}

.ez-head_inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 2.5rem 4.5rem;
  max-width: 87.75rem;            /* 1340px tool + side padding */
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}

.ez-h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 3.25rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.ez-head .ez-lede {
  margin-bottom: 0;
}

.ez-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ez-step;
}

.ez-steps li {
  counter-increment: ez-step;
  padding-top: .9rem;
  border-top: 1px solid var(--ez-line);
  color: var(--ez-paper-soft);
  font-size: .9375rem;
  line-height: 1.5;
}

.ez-steps li::before {
  content: counter(ez-step);
  display: block;
  margin-bottom: .35rem;
  color: var(--ez-gold-pale);
  font-family: Montserrat, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.ez-steps strong {
  display: block;
  color: var(--ez-paper);
  font-size: 1.0625rem;
  font-weight: 600;
}

/* ---------- Design page: the tool ---------- */

.ez-tool {
  background-color: #000;
  font-family: Barlow, sans-serif;
}

.ez-tool_inner {
  max-width: 87.75rem;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.ez-tool_frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ez-gold);
  border-radius: 4px;
  background-color: #f5f6f8;      /* matches the tool's own page colour while it loads */
  box-shadow: 0 0 0 6px #c9a24f1f;
}

.ez-tool_frame iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
}

.ez-tool_help {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 1rem;
  color: var(--ez-paper-soft);
  font-size: .9375rem;
  line-height: 1.5;
}

.ez-tool_help p {
  margin: 0;
}

/* ---------- Design page: tips + questions ---------- */

.ez-more {
  border-top: 1px solid var(--ez-line);
  background-color: #000;
  font-family: Barlow, sans-serif;
}

.ez-more_inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 5%;
  text-align: left;
}

.ez-h2.is-small {
  font-size: 2rem;
}

.ez-photo {
  margin: 0 0 1.5rem;
}

.ez-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.ez-photo figcaption {
  margin-top: .6rem;
  color: #ecfdf38f;
  font-size: .8125rem;
}

.ez-tips {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ez-tips li {
  position: relative;
  padding: .7rem 0 .7rem 1.75rem;
  border-bottom: 1px solid #ffffff1f;
  color: var(--ez-paper-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.ez-tips li::before {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: .15rem;
  width: .7rem;
  height: .4rem;
  border-left: 2px solid var(--ez-gold-pale);
  border-bottom: 2px solid var(--ez-gold-pale);
  transform: rotate(-45deg);
}

.ez-faq details {
  border-bottom: 1px solid #ffffff1f;
}

.ez-faq details:first-of-type {
  border-top: 1px solid #ffffff1f;
}

.ez-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--ez-paper);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.ez-faq summary::-webkit-details-marker {
  display: none;
}

.ez-faq summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  margin-right: .25rem;
  border-right: 2px solid var(--ez-gold-pale);
  border-bottom: 2px solid var(--ez-gold-pale);
  transform: translateY(-.15rem) rotate(45deg);
  transition: transform .2s;
}

.ez-faq details[open] summary::after {
  transform: translateY(.1rem) rotate(-135deg);
}

.ez-faq details p {
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: var(--ez-paper-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.ez-callout {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--ez-gold);
  background-color: var(--ez-panel);
}

.ez-callout p {
  margin: 0 0 1.1rem;
  color: var(--ez-paper);
  font-size: 1.125rem;
  line-height: 1.5;
}

.ez-callout .navbar10_menu-right {
  justify-content: flex-start;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 0;
}

/* ---------- Smaller screens ---------- */

@media screen and (max-width: 991px) {
  .ez-feature_inner,
  .ez-more_inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ez-head_inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 2.5rem 5% 2rem;
  }

  .ez-tool_inner {
    padding: 0 5% 3rem;
  }

  .ez-h1 {
    font-size: 2.6rem;
  }

  .ez-h2 {
    font-size: 2.2rem;
  }
}

@media screen and (max-width: 600px) {
  .ez-h1 {
    font-size: 2.1rem;
  }

  .ez-h2 {
    font-size: 1.8rem;
  }

  .ez-h2.is-small {
    font-size: 1.6rem;
  }

  .ez-lede {
    font-size: 1.0625rem;
  }

  /* Phones: keep the steps to one compact row so the tool starts higher up. */
  .ez-head_inner {
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .ez-steps {
    gap: .75rem;
  }

  .ez-steps li {
    padding-top: .6rem;
  }

  .ez-steps li::before {
    font-size: 1.25rem;
  }

  .ez-steps strong {
    font-size: .9375rem;
    line-height: 1.3;
  }

  .ez-steps span {
    display: none;
  }

  /* The tool sizes itself to its frame, so on a phone keep the whole frame
     on screen rather than Clopay's desktop height of 780px. */
  .ez-tool_frame iframe {
    height: min(780px, 88vh);
    height: min(780px, 88svh);
    min-height: 540px;
  }

  /* Let the tool run edge to edge on phones: it needs every pixel. */
  .ez-tool_inner {
    padding-left: 0;
    padding-right: 0;
  }

  .ez-tool_frame {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ez-tool_help {
    padding: 0 5%;
  }

  .ez-feature_actions .ez-btn {
    width: 100%;
  }

  .ez-compare_handle::after {
    width: 2.4rem;
    height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ez-btn,
  .ez-chip,
  .ez-faq summary::after,
  .ez-compare.is-animating .ez-compare_layer,
  .ez-compare.is-animating .ez-compare_handle {
    transition: none;
  }
}
