/* ==========================================================================
   CONTACT DRAWER — slides up from the bottom when the header's "LET'S TALK"
   button is clicked. Used on every page that includes the shared header.
   ========================================================================== */

#contact-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  /* Max stacking — the drawer is a full "page", so it must cover everything, including the
     home hero cube/marquee (z 100001–100003) and the wwd panes (z 100005). */
  z-index: 2147483646;
}

#contact-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

#contact-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  /* Height = content height (so tall viewports like a 1024 tablet don't leave empty space below),
     capped so there's always a gap at the top — it reads as a drawer, never a full page. If the
     content is taller than the cap it scrolls (overflow-y below). dvh tracks the iOS URL/tool bars
     so the top of the drawer (and its title) is never hidden behind them; vh is the fallback. */
  height: auto;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  background: #ffffff;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2147483647;
  overflow-y: auto;
  padding: 60px 80px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px 16px 0px 0px;

}

#contact-drawer.open {
  transform: translateY(0%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Different easing for closing (accelerate-decelerate, snappier) */
#contact-drawer.closing {
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Close button (×) */
#drawer-close {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
  font-family: inherit;
  line-height: 1;
}

#drawer-close:hover {
  background: #333333;
}

/* Layout */
.drawer-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

.drawer-left {
  flex: 0 0 40%;
}

.drawer-right {
  flex: 1;
}

/* Title */
.drawer-title {
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.15;
  color: #000000;
  margin: 0 0 80px;
  letter-spacing: -0.01em;
}

.drawer-title-orange {
  color: #ff4612;
}

/* Below 1200px the 64px title is too big for the narrower drawer — step it down.
   (Placed before the ≤768 block so that block's 36px still wins on phones.) */
@media (max-width: 1199px) {
  .drawer-title {
    font-size: 48px;
    margin-bottom: 56px;
  }
}

/* Tablet (2-column, but narrow enough that the drawer fills the width): the close "×" sits over
   the top-right, which is where the right column's intro text begins. Push the right column down
   so the intro clears the button. (≤768 stacks the columns, so it's excluded here.) */
@media (min-width: 769px) and (max-width: 1199px) {
  .drawer-right {
    padding-top: 56px;
  }
}

/* Contact blocks */
.drawer-contacts .drawer-contact {
  margin-bottom: 35px;
}

.drawer-contacts .drawer-contact:last-child {
  margin-bottom: 0;
}

.drawer-contacts .contact-label {
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 15px;
}

/* Social block uses a slightly larger label-to-buttons gap */
.drawer-contacts .drawer-contact--social .contact-label {
  margin-bottom: 10px;
}

.drawer-contacts a {
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #000000;
  text-decoration: none;
}

.drawer-contacts a:hover {
  text-decoration: underline;
}

/* Social buttons (pill-shaped, outlined) */
.drawer-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

/* More specific selector so it beats `.drawer-contacts a` (same anchor
   but generic). Without the parent prefix the generic rule wins because
   it has higher specificity (1 class + 1 element). */
.drawer-contacts a.drawer-social-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #000000;
  background: transparent;
  color: #000000;
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drawer-contacts a.drawer-social-btn:hover {
  background: #000000;
  color: #ffffff;
  text-decoration: none;
}

/* Form intro */
.form-intro {
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
  margin: 0 0 50px;
}

/* Form */
.drawer-form .form-row {
  display: flex;
  gap: 30px;
}

.drawer-form .form-field {
  flex: 1;
  position: relative;
  margin-bottom: 30px;
}

.drawer-form label {
  display: block;
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 16px;
  color: #666666;
  margin-bottom: 4px;
}

.drawer-form input,
.drawer-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cccccc;
  background: transparent;
  padding: 15px 0;
  font-size: 16px;
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  color: #000000;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  resize: vertical;
}

.drawer-form textarea {
  min-height: 80px;
}

.drawer-form input:focus,
.drawer-form textarea:focus {
  border-bottom-color: #000000;
}

/* Checkbox */
.drawer-form .form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
  cursor: pointer;
  user-select: none;
}

.drawer-form .form-checkbox input {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: #ff4612;
  cursor: pointer;
}

/* Submit button */
.drawer-form .form-submit {
  margin-top: 30px;
  background: #ff4612;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Sequel Sans Display', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.drawer-form .form-submit:hover {
  background: #e03a0e;
}

/* ── Lock body scroll when drawer is open ── */
body.contact-drawer-open {
  overflow: hidden;
}

/* ── Responsive (mobile) ── */
@media (max-width: 768px) {
  #contact-drawer {
    /* Inherit the base content-height + top-gap cap (no full-screen 100vh) so phones also show a
       gap above the drawer and the title at the top stays visible (not behind the iOS URL bar). */
    padding: 64px 20px 40px;
    }

  #drawer-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .drawer-content {
    flex-direction: column;
    gap: 50px;
  }

  .drawer-left,
  .drawer-right {
    flex: 1 1 auto;
    width: 100%;
  }

  .drawer-title {
    font-size: 36px;
    margin-bottom: 50px;
  }

  .form-intro {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .drawer-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}
