
/* ==================================================
   DEVA VOYAGES - EDITORIAL FAQ
   Design: Editorial FAQ with Concierge Touch
   Accordion: Native HTML <details>
   Namespace: dv-faq-editorial
================================================== */

/* SECTION */

.dv-faq-editorial {
  --dv-faq-navy: #002f6d;
  --dv-faq-blue: #006cfa;
  --dv-faq-heading: #172133;
  --dv-faq-muted: #687586;
  --dv-faq-border: #e3e8ef;

  position: relative;
  width: 100%;
  padding: 105px 24px 110px;
  background: #ffffff;
  font-family: "Inter", sans-serif;
}

.dv-faq-editorial__container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
}

/* ==========================================
   MAIN TWO-COLUMN LAYOUT
========================================== */

.dv-faq-editorial__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(55px, 7vw, 110px);
}

/* ==========================================
   LEFT - INTRODUCTION
========================================== */

.dv-faq-editorial__intro {
  min-width: 0;
}

.dv-faq-editorial__intro-inner {
  position: sticky;
  top: 125px;
}

/* Eyebrow */

.dv-faq-editorial__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 25px;

  color: var(--dv-faq-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.5;
}

.dv-faq-editorial__eyebrow-line {
  display: inline-block;
  flex: 0 0 28px;
  width: 28px;
  height: 2px;
  background: var(--dv-faq-blue);
}

/* Heading */

.dv-faq-editorial__title {
  max-width: 450px;
  margin: 0 0 25px;

  color: var(--dv-faq-heading);
  font-family: inherit;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -1.8px;
  text-transform: none;
}

.dv-faq-editorial__title span {
  display: block;
  color: var(--dv-faq-navy);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Introduction copy */

.dv-faq-editorial__description {
  max-width: 410px;
  margin: 0;

  color: var(--dv-faq-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

/* ==========================================
   LEFT - CONCIERGE CONTACT
========================================== */

.dv-faq-editorial__concierge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  max-width: 390px;
  margin-top: 65px;
  padding-top: 28px;

  border-top: 1px solid var(--dv-faq-border);
}

/* Small label */

.dv-faq-editorial__concierge-label {
  display: block;
  margin-bottom: 15px;

  color: #8b98a8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

/* Concierge heading */

.dv-faq-editorial__concierge h3 {
  margin: 0 0 12px;

  color: var(--dv-faq-heading);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.5px;
}

/* Concierge description */

.dv-faq-editorial__concierge p {
  max-width: 350px;
  margin: 0 0 20px;

  color: var(--dv-faq-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

/* Primary contact text link */

.dv-faq-editorial__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  width: fit-content;
  padding: 4px 0;

  color: var(--dv-faq-navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;

  transition: color 250ms ease;
}

.dv-faq-editorial__contact-link i {
  font-size: 15px;
  transition: transform 250ms ease;
}

.dv-faq-editorial__contact-link:hover {
  color: var(--dv-faq-blue);
  text-decoration: none;
}

.dv-faq-editorial__contact-link:hover i {
  transform: translate(3px, -3px);
}

/* Secondary contact */

.dv-faq-editorial__email {
  display: inline-block;
  margin-top: 12px;

  color: #8793a2;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;

  transition: color 200ms ease;
}

.dv-faq-editorial__email:hover {
  color: var(--dv-faq-navy);
  text-decoration: underline;
}

/* ==========================================
   RIGHT - FAQ QUESTIONS
========================================== */

.dv-faq-editorial__questions {
  min-width: 0;
  width: 100%;

  border-top: 1px solid var(--dv-faq-border);
}

/* Individual accordion item */

.dv-faq-editorial__item {
  display: block;
  width: 100%;

  margin: 0;
  padding: 0;

  background: transparent;
  border: none;
  border-bottom: 1px solid var(--dv-faq-border);
  border-radius: 0;
  box-shadow: none;
}

/* ==========================================
   CLICKABLE QUESTION / SUMMARY
========================================== */

.dv-faq-editorial__question {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  align-items: center;
  column-gap: 15px;

  width: 100%;
  min-height: 94px;
  padding: 25px 0;

  color: var(--dv-faq-heading);
  background: transparent;
  border: none;

  cursor: pointer;
  list-style: none;
  transition: color 250ms ease;
}

/* Remove native summary marker */

.dv-faq-editorial__question::-webkit-details-marker {
  display: none;
}

.dv-faq-editorial__question::marker {
  content: "";
}

/* Number */

.dv-faq-editorial__number {
  align-self: start;
  margin-top: 3px;

  color: #a0adba;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;

  transition: color 250ms ease;
}

/* Question typography */

.dv-faq-editorial__question-text {
  display: block;

  color: inherit;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -0.4px;
}

/* Hover */

.dv-faq-editorial__question:hover {
  color: var(--dv-faq-navy);
}

.dv-faq-editorial__question:hover
.dv-faq-editorial__number {
  color: var(--dv-faq-blue);
}

/* Active question */

.dv-faq-editorial__item[open]
.dv-faq-editorial__question {
  color: var(--dv-faq-navy);
  padding-bottom: 12px;
}

.dv-faq-editorial__item[open]
.dv-faq-editorial__number {
  color: var(--dv-faq-blue);
}

/* ==========================================
   CUSTOM PLUS / MINUS INDICATOR
========================================== */

.dv-faq-editorial__toggle {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid #e0e6ee;
  border-radius: 50%;
  background: transparent;

  color: var(--dv-faq-navy);

  transition:
    background 250ms ease,
    border-color 250ms ease;
}

/* Horizontal line */

.dv-faq-editorial__toggle::before {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  width: 13px;
  height: 1.5px;
  background: currentColor;

  transform: translate(-50%, -50%);
}

/* Vertical line */

.dv-faq-editorial__toggle::after {
  content: "";
  position: absolute;

  top: 50%;
  left: 50%;

  width: 1.5px;
  height: 13px;
  background: currentColor;

  transform: translate(-50%, -50%) scaleY(1);
  transition: transform 250ms ease;
}

/* Hover state */

.dv-faq-editorial__question:hover
.dv-faq-editorial__toggle {
  background: #f2f7fd;
  border-color: #c9ddf5;
}

/* Open state - plus becomes minus */

.dv-faq-editorial__item[open]
.dv-faq-editorial__toggle {
  background: #eef5fd;
  border-color: #eef5fd;
}

.dv-faq-editorial__item[open]
.dv-faq-editorial__toggle::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* Keyboard focus */

.dv-faq-editorial__question:focus-visible {
  outline: 2px solid var(--dv-faq-blue);
  outline-offset: 4px;
  border-radius: 3px;
}

/* ==========================================
   FAQ ANSWER
========================================== */

.dv-faq-editorial__answer {
  padding: 0 54px 28px 43px;
}

.dv-faq-editorial__answer p {
  max-width: 570px;
  margin: 0 0 14px;

  color: var(--dv-faq-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
}

.dv-faq-editorial__answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================
   ANSWER LIST
========================================== */

.dv-faq-editorial__list {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin: 10px 0 0;
  padding-left: 20px;

  list-style: disc;
}

.dv-faq-editorial__list li {
  color: var(--dv-faq-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  padding-left: 2px;
}

.dv-faq-editorial__list li::marker {
  color: var(--dv-faq-blue);
}

/* ==========================================
   ANSWER CONTACT LINKS
========================================== */

.dv-faq-editorial__contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;

  margin-top: 15px;
}

.dv-faq-editorial__contact-details a {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: var(--dv-faq-navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;

  overflow-wrap: anywhere;
}

.dv-faq-editorial__contact-details a i {
  color: var(--dv-faq-blue);
  font-size: 16px;
}

.dv-faq-editorial__contact-details a:hover {
  color: var(--dv-faq-blue);
  text-decoration: underline;
}

.dv-faq-editorial__contact-link:focus-visible,
.dv-faq-editorial__email:focus-visible,
.dv-faq-editorial__contact-details a:focus-visible {
  outline: 2px solid var(--dv-faq-blue);
  outline-offset: 4px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 991px) {

  .dv-faq-editorial {
    padding: 80px 30px;
  }

  .dv-faq-editorial__layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dv-faq-editorial__intro-inner {
    position: static;
    top: auto;
  }

  .dv-faq-editorial__title {
    max-width: 650px;
    font-size: clamp(35px, 5vw, 44px);
  }

  .dv-faq-editorial__description {
    max-width: 650px;
  }

  .dv-faq-editorial__concierge {
    max-width: 650px;
    margin-top: 35px;
  }

  .dv-faq-editorial__question {
    min-height: 85px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .dv-faq-editorial {
    padding: 65px 20px 75px;
  }

  .dv-faq-editorial__layout {
    gap: 38px;
  }

  /* Heading */

  .dv-faq-editorial__eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
  }

  .dv-faq-editorial__title {
    font-size: clamp(31px, 8vw, 38px);
    letter-spacing: -1.2px;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .dv-faq-editorial__description {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Concierge */

  .dv-faq-editorial__concierge {
    margin-top: 30px;
    padding-top: 25px;
  }

  .dv-faq-editorial__concierge h3 {
    font-size: 19px;
  }

  .dv-faq-editorial__concierge p {
    font-size: 13px;
  }

  /* Accordion */

  .dv-faq-editorial__question {
    grid-template-columns:
      22px minmax(0, 1fr) 30px;

    column-gap: 11px;
    min-height: 78px;
    padding: 22px 0;
  }

  .dv-faq-editorial__number {
    font-size: 10px;
    margin-top: 4px;
  }

  .dv-faq-editorial__question-text {
    font-size: 16px;
    font-weight: 550;
    letter-spacing: -0.25px;
    line-height: 1.5;
  }

  .dv-faq-editorial__toggle {
    width: 30px;
    height: 30px;
  }

  .dv-faq-editorial__answer {
    padding: 0 5px 25px 33px;
  }

  .dv-faq-editorial__answer p,
  .dv-faq-editorial__list li {
    font-size: 13px;
    line-height: 1.8;
  }

  .dv-faq-editorial__contact-details a {
    font-size: 12px;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

  .dv-faq-editorial__question,
  .dv-faq-editorial__number,
  .dv-faq-editorial__toggle,
  .dv-faq-editorial__toggle::after,
  .dv-faq-editorial__contact-link,
  .dv-faq-editorial__contact-link i,
  .dv-faq-editorial__email {
    transition: none;
  }
}
