/* ==========================================================================
   ENERBION PROTOTYPE - CONTACT US PAGE STYLES (contact.css)
   Figma Desktop: Node 275:40048 (1440px Canvas)
   Figma Mobile:  Node 279:41198 (390px Canvas)
   Standards: guideline.md (Design Tokens, Zero Regression, Anti-Slop)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. MAIN CONTAINER & SECTION WRAPPERS
   -------------------------------------------------------------------------- */
.contact-main {
  background-color: var(--color-white);
  color: var(--color-neutral-800);
  width: 100%;
  box-sizing: border-box;
}

.contact-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 120px;
  padding-right: 120px;
  box-sizing: border-box;
}

.contact-section {
  padding-top: 168px;
  padding-bottom: 60px;
  background-color: var(--color-white);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. CONTACT INFO & MAP SECTION (TOP ROW)
   -------------------------------------------------------------------------- */
.contact-info-map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  box-sizing: border-box;
}

/* Left Column: Contact Information */
.contact-info-col {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-sizing: border-box;
}

.contact-header-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-eyebrow {
  font-family: var(--font-family-sub, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 2.56px;
  text-transform: uppercase;
  color: var(--color-green-600-base, #80b930);
  margin: 0;
}

.contact-title {
  font-family: var(--font-family-primary);
  font-size: 36px;
  font-weight: 700;
  line-height: 56px;
  color: var(--color-neutral-800, #262626);
  margin: 0;
}

.contact-desc {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-neutral-600, #555555);
  margin: 0;
}

/* Details Items */
.contact-detail-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail-label {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-neutral-800, #262626);
  margin: 0;
}

.contact-detail-link {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-neutral-800, #262626);
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color var(--transition-fast, 150ms ease);
  display: inline-block;
  width: fit-content;
}

.contact-detail-link:hover {
  color: var(--color-green-600-base, #80b930);
}

/* Business Hours Table/Rows */
.contact-hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-hours-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-neutral-800, #262626);
}

.contact-hours-key {
  width: 100px;
  flex-shrink: 0;
  margin: 0;
}

.contact-hours-sep {
  flex-shrink: 0;
  margin: 0;
}

.contact-hours-val {
  margin: 0;
  white-space: nowrap;
}

/* Right Column: Map Embed Box */
.contact-map-wrapper {
  position: relative;
  width: 582px;
  height: 582px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-neutral-100, #e9e9e9);
  box-shadow: var(--elevation-1, 0px 2px 4px 0px rgba(0, 0, 0, 0.08));
  box-sizing: border-box;
}

.contact-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Floating Office Card Inside Map */
.contact-office-card {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  width: auto;
  background-color: var(--color-white, #ffffff);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.contact-office-title {
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--color-neutral-800, #262626);
  margin: 0;
}

.contact-office-link {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-neutral-800, #262626);
  text-decoration: underline;
  text-underline-position: from-font;
  margin: 0;
  display: block;
  transition: color var(--transition-fast, 150ms ease);
}

.contact-office-link:hover {
  color: var(--color-green-600-base, #80b930);
}

/* --------------------------------------------------------------------------
   3. SECTION 2: CTA CARD ("HIGH-QUALITY ELECTRICITY STORAGE SOLUTIONS")
   -------------------------------------------------------------------------- */
.contact-cta-card {
  margin-top: 120px;
  width: 100%;
  background-color: var(--color-neutral-800, #262626);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
}

.contact-cta-content {
  flex: 1 1 0%;
  min-width: 0;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  box-sizing: border-box;
}

.contact-cta-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-cta-title {
  font-family: var(--font-family-primary);
  font-size: 36px;
  font-weight: 700;
  line-height: 56px;
  color: var(--color-white, #ffffff);
  margin: 0;
}

.contact-cta-desc {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-neutral-300, #c4c4c4);
  margin: 0;
}

.contact-cta-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 24px;
  color: var(--color-white, #ffffff);
}

.contact-cta-brand-company {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.contact-cta-brand-tagline {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.contact-cta-media {
  position: relative;
  width: 594px;
  aspect-ratio: 3 / 2;
  height: auto;
  min-height: unset;
  flex-shrink: 0;
  overflow: hidden;
}

.contact-cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-cta-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgb(38, 38, 38) 3.23%,
    rgba(38, 38, 38, 0.9) 13.24%,
    rgba(38, 38, 38, 0.85) 16.7%,
    rgba(38, 38, 38, 0.757) 19.45%,
    rgba(38, 38, 38, 0.639) 22.39%,
    rgba(38, 38, 38, 0.533) 25.74%,
    rgba(38, 38, 38, 0.3) 28.85%,
    rgba(38, 38, 38, 0) 31.73%
  );
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE BREAKPOINT: LAPTOP (1025px - 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) and (min-width: 1025px) {
  .contact-container {
    padding-left: 40px;
    padding-right: 40px;
  }

  .contact-info-map-row {
    gap: 28px;
  }

  .contact-map-wrapper {
    width: 480px;
    height: 480px;
    aspect-ratio: 1 / 1;
  }

  .contact-cta-media {
    width: 460px;
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: unset;
  }

  .contact-cta-content {
    padding: 44px;
  }
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINT: TABLET (768px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 768px) {
  .contact-container {
    width: 100%;
    max-width: 680px;
    padding-left: 24px;
    padding-right: 24px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .contact-section {
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .contact-info-map-row {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .contact-map-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 12px;
  }

  .contact-cta-card {
    margin-top: 60px;
    flex-direction: column-reverse;
    border-radius: 12px;
  }

  .contact-cta-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: unset;
  }

  .contact-cta-overlay {
    background: linear-gradient(
      0deg,
      rgb(38, 38, 38) 2.29%,
      rgba(38, 38, 38, 0.85) 12.43%,
      rgba(38, 38, 38, 0) 24%
    );
  }

  .contact-cta-content {
    padding: 36px;
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE BREAKPOINT: MOBILE (<= 767px / 390px Canvas)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .contact-container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  .contact-section {
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .contact-info-map-row {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .contact-info-col {
    gap: 24px;
  }

  .contact-header-block {
    gap: 16px;
  }

  .contact-title-group {
    gap: 8px;
  }

  .contact-eyebrow {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 1.68px;
  }

  .contact-title {
    font-size: 28px;
    line-height: 40px;
  }

  .contact-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-detail-block {
    gap: 12px;
  }

  .contact-detail-label {
    font-size: 18px;
    line-height: 28px;
  }

  .contact-detail-link {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-hours-list {
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
  }

  .contact-hours-row {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-hours-key {
    width: 80px;
  }

  /* Mobile Map */
  .contact-map-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 8px;
  }

  .contact-office-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    padding: 16px;
    gap: 12px;
  }

  .contact-office-title {
    font-size: 16px;
    line-height: 24px;
  }

  .contact-office-link {
    font-size: 14px;
    line-height: 20px;
  }

  /* Mobile CTA Card */
  .contact-cta-card {
    margin-top: 32px;
    flex-direction: column-reverse;
    border-radius: 8px;
  }

  .contact-cta-media {
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    min-height: unset;
  }

  .contact-cta-overlay {
    background: linear-gradient(
      0deg,
      rgb(38, 38, 38) 2.29%,
      rgba(38, 38, 38, 0.9) 9.83%,
      rgba(38, 38, 38, 0.85) 12.43%,
      rgba(38, 38, 38, 0.757) 14.5%,
      rgba(38, 38, 38, 0.639) 16.71%,
      rgba(38, 38, 38, 0.533) 19.23%,
      rgba(38, 38, 38, 0.3) 21.57%,
      rgba(38, 38, 38, 0) 23.74%
    );
  }

  .contact-cta-content {
    padding: 24px;
    gap: 24px;
  }

  .contact-cta-header {
    gap: 16px;
  }

  .contact-cta-title {
    font-size: 20px;
    line-height: 28px;
  }

  .contact-cta-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-cta-brand {
    gap: 4px;
    font-size: 14px;
    line-height: 20px;
  }

  .contact-cta-brand-company,
  .contact-cta-brand-tagline {
    font-size: 14px;
    line-height: 20px;
  }
}
