/* =========================================================
   CONTACT PAGE – Collision-proof
   Everything is scoped under body.contact-page #dc-contact
   Plain white background enforced.
========================================================= */

/* Force white background no matter what main.css does */
body.contact-page,
body.contact-page #page-wrapper {
  background: #ffffff !important;
}

body.contact-page #dc-contact {
  font-family: "DM Sans", sans-serif;
  background: #ffffff !important;
  color: #111111;
}

/* Prevent inherited background images from generic classes */
body.contact-page #dc-contact,
body.contact-page #dc-contact section,
body.contact-page #dc-contact main,
body.contact-page #dc-contact div {
  background-image: none !important;
}

/* Layout container */
body.contact-page #dc-contact .dc-wrap {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-wrap {
    width: min(720px, calc(100% - 32px));
  }
}

/* =========================================================
   HERO
========================================================= */

body.contact-page #dc-contact .dc-hero {
  padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 4vw, 36px);
  background: #ffffff;
}

body.contact-page #dc-contact .dc-title {
  margin: 0;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 500;
}

body.contact-page #dc-contact .dc-hero-media {
  width: min(1180px, calc(100% - 64px));
  margin: clamp(18px, 3vw, 28px) auto 0;
  background: #ffffff;
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-hero-media {
    width: min(720px, calc(100% - 32px));
  }
}

body.contact-page #dc-contact .dc-hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* =========================================================
   RULES (lines fill left → right)
========================================================= */

body.contact-page #dc-contact .dc-rule {
  width: min(1180px, calc(100% - 64px));
  margin: clamp(26px, 4vw, 42px) auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.22);

  transform-origin: left;
  transform: scaleX(0);
  opacity: 1;

  transition: transform 900ms ease;
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-rule {
    width: min(720px, calc(100% - 32px));
  }
}

body.contact-page #dc-contact .dc-rule.dc-rule-tight {
  margin: clamp(18px, 3vw, 28px) auto;
}

body.contact-page #dc-contact .dc-rule.is-inview {
  transform: scaleX(1);
}

/* =========================================================
   SECTION HEADINGS + SPACING
========================================================= */

body.contact-page #dc-contact .dc-section {
  padding: clamp(18px, 3vw, 28px) 0;
  background: #ffffff;
}

body.contact-page #dc-contact .dc-h2 {
  margin: 0 0 clamp(18px, 3vw, 28px);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
}

/* =========================================================
   WAYS TO REACH US
========================================================= */

body.contact-page #dc-contact .dc-reach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 60px);
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-reach-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

body.contact-page #dc-contact .dc-reach-col {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

body.contact-page #dc-contact .dc-reach-item {
  padding-top: 6px;
}

body.contact-page #dc-contact .dc-reach-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.contact-page #dc-contact .dc-reach-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  text-decoration: none;
  color: inherit;

  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);

  font-size: 15px;
  line-height: 1.45;
}

body.contact-page #dc-contact .dc-reach-text {
  opacity: 0.92;
}

body.contact-page #dc-contact .dc-arrow {
  display: inline-block;
  transform: translateY(1px);
  transition: transform 220ms ease;
}

@media (hover: hover) {
  body.contact-page #dc-contact .dc-reach-link:hover .dc-arrow {
    transform: translate(4px, 1px);
  }
}

/* =========================================================
   OFFICE LOCATIONS
========================================================= */

body.contact-page #dc-contact .dc-region {
  padding: clamp(10px, 2vw, 18px) 0;
}

body.contact-page #dc-contact .dc-region-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-region-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

body.contact-page #dc-contact .dc-region-name {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: black;
}

body.contact-page #dc-contact .dc-office-grid {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 34px;
}

@media (max-width: 1100px) {
  body.contact-page #dc-contact .dc-office-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-office-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }
}

@media (max-width: 520px) {
  body.contact-page #dc-contact .dc-office-grid {
    grid-template-columns: 1fr;
  }
}

body.contact-page #dc-contact .dc-office-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 6px;
}

body.contact-page #dc-contact .dc-office-city {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  opacity: 0.95;
}

/* =========================================================
   BOTTOM BANNER + CARD
========================================================= */

body.contact-page #dc-contact .dc-bottom {
  padding-bottom: clamp(56px, 7vw, 96px);
}

body.contact-page #dc-contact .dc-banner {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: #ffffff;
}

body.contact-page #dc-contact .dc-banner img {
  width: 100%;
  height: auto;
  display: block;
}

body.contact-page #dc-contact .dc-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vw, 34px);

  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}

body.contact-page #dc-contact .dc-banner-text {
  margin: 0;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 500;
  max-width: 28ch;
  letter-spacing: -0.01em;
}

body.contact-page #dc-contact .dc-banner-arrow {
  display: inline-block;
  margin-left: 10px;
  transform: translateY(1px);
}

/* Card */
body.contact-page #dc-contact .dc-card {
  margin-top: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  background: #ffffff;
  padding: clamp(20px, 3vw, 38px);
}

body.contact-page #dc-contact .dc-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  body.contact-page #dc-contact .dc-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

body.contact-page #dc-contact .dc-card-title {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.contact-page #dc-contact .dc-card-lede {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

body.contact-page #dc-contact .dc-card-note {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 64ch;
}

body.contact-page #dc-contact .dc-field-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  color: black;
}

/* Select */
body.contact-page #dc-contact .dc-select {
  position: relative;
  max-width: 520px;
}

body.contact-page #dc-contact .dc-select select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  background: transparent;

  padding: 12px 38px 12px 0;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #111111;
}

body.contact-page #dc-contact .dc-caret {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

/* Email input */
body.contact-page #dc-contact input[type="email"] {
  width: min(600px, 100%);
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  color: #111111;
  margin-bottom: 1rem;
}

body.contact-page #dc-contact input[type="email"]:focus {
  border-color: rgba(0, 0, 0, 0.55);
}

/* =========================================================
   Animated CTA button (accent: #15c5ba)
   Replaces the old red dc-submit
========================================================= */

body.contact-page #dc-contact .dc-submit.dc-anim-btn {
  width: 100%;
  max-width: 260px; /* optional, makes it feel premium; remove if you want full width */
  height: 52px;

  background: #ffffff;
  color: #0d3b3a; /* deep teal text that reads well on white */
  position: relative;
  overflow: hidden;

  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;

  cursor: pointer;
  border: 0;
  border-radius: 3px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:before,
body.contact-page #dc-contact .dc-submit.dc-anim-btn:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #15c5ba;
  transition: all 0.3s cubic-bezier(0.35, 0.1, 0.25, 1);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:before {
  right: 0;
  top: 0;
  transition: all 0.5s cubic-bezier(0.35, 0.1, 0.25, 1);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:after {
  left: 0;
  bottom: 0;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > span {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  z-index: 1;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > span:before,
body.contact-page #dc-contact .dc-submit.dc-anim-btn > span:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 0;
  background-color: #15c5ba;
  transition: all 0.3s cubic-bezier(0.35, 0.1, 0.25, 1);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > span:before {
  right: 0;
  top: 0;
  transition: all 0.5s cubic-bezier(0.35, 0.1, 0.25, 1);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > span:after {
  left: 0;
  bottom: 0;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > p {
  padding: 0;
  margin: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
  z-index: 2;
  left: 0;
  top: 0;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > p:before,
body.contact-page #dc-contact .dc-submit.dc-anim-btn > p:after {
  position: absolute;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.35, 0.1, 0.25, 1);
  z-index: 2;
  left: 0;
  text-align: center;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > p:before {
  content: attr(data-title);
  top: 50%;
  transform: translateY(-50%);
  color: #0d3b3a;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn > p:after {
  content: attr(data-text);
  top: 150%;
  color: #15c5ba;
}

@media (hover: hover) {
  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover:before,
  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover:after {
    width: 100%;
  }

  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover > span:before,
  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover > span:after {
    height: 100%;
  }

  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover > p:before {
    top: -50%;
    transform: rotate(5deg);
  }

  body.contact-page #dc-contact .dc-submit.dc-anim-btn:hover > p:after {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* Optional "success" state if you toggle class .start */
body.contact-page #dc-contact .dc-submit.dc-anim-btn.start {
  background: #15c5ba;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn.start > p:before {
  top: -50%;
  transform: rotate(5deg);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn.start > p:after {
  color: #ffffff;
  content: attr(data-start);
  top: 50%;
  transform: translateY(-50%);
  animation: dc-btn-start 0.3s ease forwards;
}

@keyframes dc-btn-start {
  from { top: -50%; }
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:active {
  transform: translateY(0);
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:focus {
  outline: 0;
}

body.contact-page #dc-contact .dc-submit.dc-anim-btn:focus-visible {
  outline: 2px solid rgba(21, 197, 186, 0.5);
  outline-offset: 3px;
}


body.contact-page #dc-contact .dc-submit.dc-anim-btn {
  align-self: flex-start;
}


body.contact-page #dc-contact .dc-card-meta {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.6;
  max-width: 64ch;
}

/* =========================================================
   ANIMATIONS (works with your contact.js/about.js system)
========================================================= */

body.contact-page #dc-contact [data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

/* Typewriter wrappers stay visible; JS animates text */
body.contact-page #dc-contact [data-animate="typewriter"] {
  opacity: 1;
  color: black;
  transform: none;
}

.black {
  color: black;
}

/* Lines must not translate */
body.contact-page #dc-contact [data-animate="line"] {
  opacity: 1;
  transform: scaleX(0);
}

body.contact-page #dc-contact .is-inview[data-animate="fade-up"] {
  opacity: 1;
  transform: translateY(0);
}

body.contact-page #dc-contact .is-inview[data-animate="line"] {
  transform: scaleX(1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.contact-page #dc-contact [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  body.contact-page #dc-contact [data-animate="line"] {
    transform: scaleX(1) !important;
  }
}



/* Disable text selection on banner headline */
body.contact-page #dc-contact .dc-banner-text,
body.contact-page #dc-contact .dc-banner-text * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
