/* =========================================================
   FAQ PAGE
   Dr. Gupta's Dental Clinic
   ========================================================= */

.faq-page {

  --faq-navy: #12213F;
  --faq-navy-dark: #0C172D;

  --faq-gold: #C9A227;
  --faq-gold-light: #E7CB6B;

  --faq-cream: #FAF7F0;
  --faq-cream-dark: #F2EEE3;

  --faq-white: #FFFFFF;

  --faq-text: #252A38;
  --faq-grey: #697080;

  --faq-border: #E3DED1;

  width: 100%;
  overflow: hidden;

  background: var(--faq-cream);

  color: var(--faq-text);
}


/* =========================================================
   COMMON CONTAINER
   ========================================================= */

.faq-container {

  width: min(1240px, calc(100% - 50px));

  margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.faq-hero {

  position: relative;

  min-height: 500px;

  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(201,162,39,0.13),
      transparent 28%
    ),
    var(--faq-navy);

  color: var(--faq-white);

  overflow: hidden;
}

.faq-hero::before {

  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -220px;
  top: -170px;

  border: 1px solid rgba(231,203,107,0.25);

  border-radius: 50%;
}

.faq-hero::after {

  content: "";

  position: absolute;

  width: 340px;
  height: 340px;

  right: -120px;
  top: -80px;

  border: 1px solid rgba(231,203,107,0.15);

  border-radius: 50%;
}

.faq-hero-inner {

  width: min(1240px, calc(100% - 50px));

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1.3fr 0.7fr;

  align-items: center;

  gap: 50px;

  position: relative;

  z-index: 2;
}

.faq-hero-content {

  max-width: 760px;
}

.faq-eyebrow {

  display: inline-flex;

  align-items: center;

  gap: 12px;

  color: var(--faq-gold-light);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.22em;

}

.faq-eyebrow::before {

  content: "";

  width: 30px;
  height: 1px;

  background: var(--faq-gold-light);
}

.faq-hero h1 {

  margin: 20px 0 25px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(48px, 6vw, 78px);

  line-height: 1.03;

  font-weight: 500;

  letter-spacing: -0.04em;
}

.faq-hero h1 span {

  color: var(--faq-gold-light);

  font-style: italic;
}

.faq-hero-content p {

  max-width: 680px;

  color: rgba(255,255,255,0.72);

  font-size: 16px;

  line-height: 1.85;
}


/* =========================================================
   HERO QUESTION ART
   ========================================================= */

.faq-hero-art {

  width: 330px;
  height: 330px;

  margin: auto;

  position: relative;

  display: grid;
  place-items: center;
}

.faq-question-symbol {

  width: 155px;
  height: 155px;

  display: grid;
  place-items: center;

  border-radius:
    50% 45% 52% 48%;

  border: 1px solid
    rgba(231,203,107,0.6);

  color: var(--faq-gold-light);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 105px;

  line-height: 1;

  transform: rotate(-6deg);

  box-shadow:
    0 0 0 18px rgba(231,203,107,0.04),
    0 0 0 38px rgba(231,203,107,0.025);

  animation:
    faqFloat 5s ease-in-out infinite;
}

.faq-orbit {

  position: absolute;

  border: 1px solid
    rgba(231,203,107,0.18);

  border-radius: 50%;

  animation:
    faqRotate 18s linear infinite;
}

.orbit-one {

  width: 245px;
  height: 245px;
}

.orbit-two {

  width: 315px;
  height: 315px;

  border-style: dashed;

  animation-direction: reverse;

  animation-duration: 25s;
}

.faq-floating-dot {

  position: absolute;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--faq-gold-light);
}

.dot-one {

  top: 25px;
  right: 40px;
}

.dot-two {

  bottom: 40px;
  left: 25px;

  width: 6px;
  height: 6px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.faq-search-section {

  padding: 65px 0 20px;

  background: var(--faq-cream);
}

.faq-search-box {

  max-width: 820px;

  margin: 0 auto;

  height: 68px;

  display: flex;
  align-items: center;

  padding: 0 20px;

  background: var(--faq-white);

  border: 1px solid var(--faq-border);

  border-radius: 50px;

  box-shadow:
    0 15px 40px rgba(18,33,63,0.07);

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.faq-search-box:focus-within {

  border-color: var(--faq-gold);

  box-shadow:
    0 15px 45px rgba(18,33,63,0.1);
}

.faq-search-icon {

  width: 35px;

  color: var(--faq-gold);

  font-size: 30px;

  line-height: 1;
}

.faq-search-box input {

  flex: 1;

  height: 100%;

  border: 0;
  outline: 0;

  background: transparent;

  color: var(--faq-text);

  font-size: 15px;

  padding: 0 12px;
}

.faq-search-box input::placeholder {

  color: #969aa4;
}

#faqClear {

  width: 35px;
  height: 35px;

  border: 0;

  background: transparent;

  color: var(--faq-grey);

  font-size: 25px;

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.25s ease;
}

#faqClear.visible {

  opacity: 1;

  pointer-events: auto;
}

.faq-search-hint {

  max-width: 820px;

  margin: 15px auto 0;

  text-align: center;

  color: var(--faq-grey);

  font-size: 12px;
}

.faq-suggestion {

  border: 0;

  background: transparent;

  color: var(--faq-gold);

  font-weight: 700;

  cursor: pointer;

  padding: 0 2px;
}


/* =========================================================
   FAQ CONTENT
   ========================================================= */

.faq-content {

  padding: 45px 0 110px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.faq-categories {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 70px;
}

.faq-category {

  border: 1px solid var(--faq-border);

  background: rgba(255,255,255,0.45);

  color: var(--faq-grey);

  padding: 11px 19px;

  border-radius: 30px;

  font-size: 12px;

  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.faq-category:hover {

  transform: translateY(-2px);

  border-color: var(--faq-gold);

  color: var(--faq-navy);
}

.faq-category.active {

  background: var(--faq-navy);

  border-color: var(--faq-navy);

  color: var(--faq-white);
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.faq-layout {

  display: grid;

  grid-template-columns: 280px minmax(0,1fr);

  gap: 80px;

  align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.faq-sidebar {

  position: sticky;

  top: 120px;
}

.faq-sidebar-number {

  color: var(--faq-gold);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.18em;
}

.faq-sidebar h2 {

  margin: 16px 0 20px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  color: var(--faq-navy);

  font-size: 42px;

  line-height: 1.05;

  font-weight: 500;
}

.faq-sidebar h2 span {

  color: var(--faq-gold);

  font-style: italic;
}

.faq-sidebar > p {

  color: var(--faq-grey);

  font-size: 14px;

  line-height: 1.8;
}

.faq-sidebar-line {

  width: 45px;
  height: 2px;

  background: var(--faq-gold);

  margin: 28px 0;
}

.faq-sidebar-small {

  font-size: 12px !important;

  line-height: 1.7 !important;
}


/* =========================================================
   FAQ LIST
   ========================================================= */

.faq-list {

  border-top: 1px solid var(--faq-border);
}

.faq-item {

  border-bottom: 1px solid var(--faq-border);

  transition:
    background 0.3s ease;
}

.faq-item:hover {

  background:
    rgba(255,255,255,0.35);
}


/* =========================================================
   QUESTION
   ========================================================= */

.faq-question {

  width: 100%;

  min-height: 92px;

  padding: 20px 8px;

  border: 0;

  background: transparent;

  display: grid;

  grid-template-columns: 50px 1fr 45px;

  gap: 15px;

  align-items: center;

  text-align: left;

  cursor: pointer;
}

.faq-question-number {

  color: var(--faq-gold);

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 0.1em;
}

.faq-question-text {

  color: var(--faq-navy);

  font-size: 16px;

  font-weight: 600;

  line-height: 1.5;

  transition:
    color 0.3s ease;
}

.faq-question:hover .faq-question-text {

  color: var(--faq-gold);
}

.faq-plus {

  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border: 1px solid var(--faq-border);

  border-radius: 50%;

  color: var(--faq-navy);

  font-size: 21px;

  font-weight: 300;

  transition:
    transform 0.4s ease,
    background 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease;
}


/* =========================================================
   ANSWER
   ========================================================= */

.faq-answer {

  display: grid;

  grid-template-rows: 0fr;

  transition:
    grid-template-rows 0.45s ease;
}

.faq-answer-inner {

  overflow: hidden;

  padding: 0 60px 0 65px;

  opacity: 0;

  transform: translateY(-8px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    padding 0.45s ease;
}

.faq-answer-inner p {

  margin: 0 0 15px;

  color: var(--faq-grey);

  font-size: 14px;

  line-height: 1.85;
}

.faq-answer-inner p:last-child {

  margin-bottom: 0;
}


/* OPEN */

.faq-item.open {

  background:
    rgba(255,255,255,0.55);
}

.faq-item.open .faq-question-text {

  color: var(--faq-gold);
}

.faq-item.open .faq-plus {

  transform: rotate(45deg);

  background: var(--faq-navy);

  border-color: var(--faq-navy);

  color: var(--faq-white);
}

.faq-item.open .faq-answer {

  grid-template-rows: 1fr;
}

.faq-item.open .faq-answer-inner {

  padding-bottom: 30px;

  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   ANSWER BUTTONS
   ========================================================= */

.faq-answer-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 22px;
}

.faq-answer-button {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 11px 17px;

  border-radius: 30px;

  background: var(--faq-navy);

  color: var(--faq-white);

  text-decoration: none;

  font-size: 11px;

  font-weight: 700;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.faq-answer-button:hover {

  transform: translateY(-2px);

  background: var(--faq-gold);

}

.faq-answer-button.secondary {

  background: transparent;

  color: var(--faq-navy);

  border: 1px solid var(--faq-border);
}

.faq-answer-button.secondary:hover {

  background: var(--faq-white);

  border-color: var(--faq-gold);
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.faq-no-results {

  display: none;

  padding: 70px 30px;

  text-align: center;
}

.faq-no-results.show {

  display: block;
}

.faq-no-results-icon {

  width: 60px;
  height: 60px;

  margin: 0 auto 20px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(201,162,39,0.12);

  color: var(--faq-gold);

  font-family:
    Georgia,
    serif;

  font-size: 30px;
}

.faq-no-results h3 {

  margin: 0 0 10px;

  color: var(--faq-navy);

  font-family:
    Georgia,
    serif;

  font-size: 25px;

  font-weight: 500;
}

.faq-no-results p {

  margin: 0;

  color: var(--faq-grey);

  font-size: 13px;
}


/* =========================================================
   CONTACT CTA
   ========================================================= */

.faq-contact {

  padding: 95px 25px;

  background: var(--faq-navy);
}

.faq-contact-inner {

  width: min(1240px, 100%);

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 60px;

  align-items: center;
}

.faq-contact h2 {

  margin: 17px 0;

  color: var(--faq-white);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: clamp(38px, 4vw, 55px);

  line-height: 1.05;

  font-weight: 500;
}

.faq-contact h2 span {

  color: var(--faq-gold-light);

  font-style: italic;
}

.faq-contact p {

  max-width: 650px;

  margin: 0;

  color: rgba(255,255,255,0.67);

  font-size: 14px;

  line-height: 1.8;
}

.faq-contact-actions {

  display: flex;

  flex-direction: column;

  gap: 12px;

  min-width: 210px;
}

.faq-contact-button {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 15px 19px;

  border: 1px solid
    rgba(255,255,255,0.25);

  border-radius: 40px;

  color: var(--faq-white);

  text-decoration: none;

  font-size: 12px;

  font-weight: 700;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.faq-contact-button:hover {

  transform: translateX(4px);

  border-color: var(--faq-gold-light);
}

.faq-contact-button.primary {

  background: var(--faq-gold);

  border-color: var(--faq-gold);

  color: var(--faq-navy-dark);
}

.faq-contact-button.primary:hover {

  background: var(--faq-gold-light);

}


/* =========================================================
   HERO ANIMATIONS
   ========================================================= */

@keyframes faqFloat {

  0%,
  100% {
    transform:
      translateY(0)
      rotate(-6deg);
  }

  50% {
    transform:
      translateY(-12px)
      rotate(-2deg);
  }
}

@keyframes faqRotate {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

  .faq-hero-inner {

    grid-template-columns: 1fr;

    text-align: center;
  }

  .faq-hero-content {

    margin: 0 auto;
  }

  .faq-eyebrow {

    justify-content: center;
  }

  .faq-hero-art {

    display: none;
  }

  .faq-layout {

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .faq-sidebar {

    position: static;

    text-align: center;

    max-width: 600px;

    margin: 0 auto;
  }

  .faq-sidebar-line {

    margin: 22px auto;
  }

  .faq-sidebar h2 {

    font-size: 38px;
  }

  .faq-contact-inner {

    grid-template-columns: 1fr;

  }

  .faq-contact-actions {

    flex-direction: row;

    flex-wrap: wrap;
  }

  .faq-contact-button {

    min-width: 210px;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .faq-container {

    width: min(100% - 32px, 1240px);
  }

  .faq-hero {

    min-height: 430px;

    padding: 70px 0;
  }

  .faq-hero-inner {

    width: min(100% - 32px, 1240px);
  }

  .faq-hero h1 {

    font-size: 44px;
  }

  .faq-hero-content p {

    font-size: 14px;

    line-height: 1.75;
  }

  .faq-search-section {

    padding-top: 40px;
  }

  .faq-search-box {

    height: 58px;

    padding: 0 15px;
  }

  .faq-search-hint {

    line-height: 1.8;
  }

  .faq-content {

    padding-top: 30px;
  }

  .faq-categories {

    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 8px;

    margin-bottom: 40px;

    scrollbar-width: none;
  }

  .faq-categories::-webkit-scrollbar {

    display: none;
  }

  .faq-category {

    flex: 0 0 auto;

    white-space: nowrap;
  }

  .faq-question {

    min-height: 78px;

    grid-template-columns: 35px 1fr 38px;

    gap: 8px;

    padding: 17px 2px;
  }

  .faq-question-text {

    font-size: 14px;
  }

  .faq-question-number {

    font-size: 9px;
  }

  .faq-plus {

    width: 34px;
    height: 34px;

    font-size: 19px;
  }

  .faq-answer-inner {

    padding-left: 43px;

    padding-right: 35px;
  }

  .faq-answer-inner p {

    font-size: 13px;

    line-height: 1.75;
  }

  .faq-item.open .faq-answer-inner {

    padding-bottom: 25px;
  }

  .faq-contact {

    padding: 70px 20px;
  }

  .faq-contact h2 {

    font-size: 38px;
  }

  .faq-contact-actions {

    flex-direction: column;
  }

  .faq-contact-button {

    width: 100%;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .faq-page *,
  .faq-page *::before,
  .faq-page *::after {

    animation-duration: 0.01ms !important;

    transition-duration: 0.01ms !important;
  }
}