/*
 ****************************************************************************************************************
 *
 * FILE NAME: icloudy-help.css
 * FUNCTIONALITY: Defines the styles for the Help page, including FAQ cards, headings, buttons, and responsive behavior.
 *
 * HISTORY
 * =======
 *
 * VERSION DATE AUTHOR(S) DESCRIPTION
 ----------------------------------------------------------------------------------------------------------------
 * 1.0 24-APR-2026 Shrey Kevadia Initial version
*/

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--panel);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

svg {
  display: block;
  max-width: 100%;
}

.icloudy-help-site-shell {
  min-height: 100vh;
}

.icloudy-help-page {
  overflow-x: clip;
  overflow-y: visible;
}

.icloudy-help-container,
.icloudy-help-container-narrow {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

.icloudy-help-container {
  max-width: calc(1120px + 32px);
}

.icloudy-help-container-narrow {
  max-width: calc(900px + 32px);
}

.icloudy-help-hero-section {
  padding: 136px 0 48px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
}

.icloudy-help-section {
  padding: 40px 0 70px;
}

.icloudy-help-section-soft {
  background: linear-gradient(180deg, var(--panel-soft) 0%, var(--panel) 100%);
}

.icloudy-help-centered-copy {
  text-align: center;
  display: grid;
  gap: 18px;
}

.icloudy-help-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 62, 138, 0.16);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.icloudy-help-eyebrow svg {
  flex: 0 0 auto;
  overflow: visible;
}

.icloudy-help-hero-title,
.icloudy-help-section-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.06;
}

.icloudy-help-hero-title {
  font-size: clamp(2.45rem, 5.4vw, 4.2rem);
}

.icloudy-help-section-title {
  font-size: clamp(2rem, 4.3vw, 3rem);
}

.icloudy-help-gradient-text {
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icloudy-help-lead,
.icloudy-help-section-copy {
  margin: 0;
  color: var(--hero-title);
  line-height: 1.7;
}

.icloudy-help-lead {
  font-size: 1.12rem;
}

.icloudy-help-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.icloudy-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icloudy-help-btn:hover {
  transform: translateY(-2px);
}

.icloudy-help-btn-primary {
  color: var(--panel);
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 24px rgba(211, 44, 44, 0.25);
}

.icloudy-help-btn-blue {
  color: var(--panel);
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 24px rgba(2, 62, 138, 0.24);
}

.icloudy-help-faq-layout {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.icloudy-help-faq-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.icloudy-help-faq-card:hover,
.icloudy-help-faq-card:focus-within {
  border-color: rgba(2, 62, 138, 0.24);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.icloudy-help-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  color: var(--hero-title);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  transition: color 0.24s ease;
}

.icloudy-help-faq-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--hero-title);
  transition: color 0.24s ease, transform 0.24s ease;
}

.icloudy-help-faq-card:hover .icloudy-help-faq-question,
.icloudy-help-faq-card:focus-within .icloudy-help-faq-question {
  color: var(--red);
}

.icloudy-help-faq-card:hover .icloudy-help-faq-arrow,
.icloudy-help-faq-card:focus-within .icloudy-help-faq-arrow {
  color: var(--red);
  transform: rotate(180deg);
}

.icloudy-help-faq-card p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--hero-title);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.32s ease, opacity 0.24s ease, padding 0.32s ease, transform 0.32s ease;
}

.icloudy-help-faq-card:hover p,
.icloudy-help-faq-card:focus-within p {
  max-height: 220px;
  padding: 0 24px 22px;
  opacity: 1;
  transform: translateY(0);
}

.icloudy-help-section-head {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.icloudy-help-cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--panel);
  padding: 96px 0;
  text-align: center;
}

.icloudy-help-cta-panel .icloudy-help-container-narrow {
  position: relative;
  z-index: 1;
}

.icloudy-help-cta-panel::before,
.icloudy-help-cta-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(72px);
}

.icloudy-help-cta-panel::before {
  top: 32px;
  left: 32px;
  width: 240px;
  height: 240px;
}

.icloudy-help-cta-panel::after {
  right: 32px;
  bottom: 24px;
  width: 320px;
  height: 320px;
}

.icloudy-help-cta-panel .icloudy-help-section-copy {
  color: rgba(255, 255, 255, 0.88);
}

.icloudy-help-cta-panel .icloudy-help-quick-links {
  margin-top: 30px;
}

.icloudy-help-small {
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .icloudy-help-faq-card:hover p,
  .icloudy-help-faq-card:focus-within p {
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(-6px);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-question,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-question {
    color: var(--hero-title);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-arrow,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-arrow {
    color: var(--hero-title);
    transform: none;
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-question {
    color: var(--red);
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-arrow {
    color: var(--red);
    transform: rotate(180deg);
  }

  .icloudy-help-faq-card.is-open p {
    max-height: 220px;
    padding: 0 24px 22px;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .icloudy-help-hero-section {
    padding: 112px 0 56px;
  }

  .icloudy-help-section {
    padding: 70px 0;
  }

  .icloudy-help-hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .icloudy-help-quick-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .icloudy-help-btn {
    width: auto;
    padding: 12px 18px;
  }

  .icloudy-help-faq-question {
    align-items: flex-start;
    padding: 20px;
  }

  .icloudy-help-faq-card p {
    padding: 0 20px;
  }

  .icloudy-help-faq-card:hover p,
  .icloudy-help-faq-card:focus-within p {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-6px);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-question,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-question {
    color: var(--hero-title);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-arrow,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-arrow {
    color: var(--hero-title);
    transform: none;
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-question {
    color: var(--red);
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-arrow {
    color: var(--red);
    transform: rotate(180deg);
  }

  .icloudy-help-faq-card.is-open p {
    max-height: 220px;
    padding: 0 20px 20px;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 932px) and (orientation: landscape) {
  .icloudy-help-hero-section {
    padding: 96px 0 42px;
  }

  .icloudy-help-section {
    padding: 56px 0;
  }

  .icloudy-help-hero-title {
    font-size: clamp(2rem, 6vw, 3.1rem);
  }

  .icloudy-help-quick-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .icloudy-help-btn {
    width: auto;
    padding: 12px 18px;
  }

  .icloudy-help-faq-card:hover p,
  .icloudy-help-faq-card:focus-within p {
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(-6px);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-question,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-question {
    color: var(--hero-title);
  }

  .icloudy-help-faq-card:hover .icloudy-help-faq-arrow,
  .icloudy-help-faq-card:focus-within .icloudy-help-faq-arrow {
    color: var(--hero-title);
    transform: none;
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-question {
    color: var(--red);
  }

  .icloudy-help-faq-card.is-open .icloudy-help-faq-arrow {
    color: var(--red);
    transform: rotate(180deg);
  }

  .icloudy-help-faq-card.is-open p {
    max-height: 220px;
    padding: 0 24px 22px;
    opacity: 1;
    transform: translateY(0);
  }
}

.icloudy-help-hero-section,
.icloudy-help-section,
.icloudy-help-section-soft {
  background: var(--panel);
}
