/* ==========================================================================
   06-components.css — buttons, headings, testimonials, accordion, forms
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons — 220x55, 2px white border, transparent fill
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-w);
  height: var(--btn-h);
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  background-color: transparent;
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--c-white);
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--c-white);
  color: var(--c-black);
}

.btn--gold {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--c-gold);
  color: var(--c-black);
}

@media (max-width: 767px) {
  .btn {
    width: auto;
    height: var(--btn-h);
    padding-inline: 5px;
  }
}

/* --------------------------------------------------------------------------
   Headings and rules
   -------------------------------------------------------------------------- */

.heading-gold {
  color: var(--c-gold);
}

/* Short centred rule used above the hero title and under section headings.
   Duda renders this as an <hr> with a 1px top border and 10px block margins. */
.rule {
  width: 162px;
  height: 0;
  margin: 10px auto;
  border: 0;
  border-top: 1px solid var(--c-white);
}

.rule--gold {
  border-top-color: var(--c-gold);
}

.rule--short {
  width: 82px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* Vertical rhythm mirrors the live build measured at 1920px:
   31px pad → rule → 10px → h1 → 20px → subtitle → 21px → button → 31px pad */
.hero {
  text-align: center;
  padding-block: 31px;
}

.hero__inner {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
}

.hero__title {
  margin-block: 20px 0;   /* collapses with the rule's 10px to 20px, as live */
  padding-block: 2px;     /* live h1 box is 94px around a 90px line-height    */
  color: var(--c-white);
}

.hero__subtitle {
  font-family: var(--f-display);
  font-size: var(--fs-hero-sub);
  font-style: italic;
  font-weight: 400;
  color: var(--c-white);
  margin-block: 20px 21px;
}

/* Mobile hero rhythm: rule 207, h1 224, sub 290, button 359 */
@media (max-width: 767px) {
  .hero {
    padding-block: 0 30px;
  }

  .hero .container {
    padding-inline: 30px;
  }

  .hero__title {
    margin-block: 16px 0;
  }

  .hero__subtitle {
    line-height: 24.5px;
    margin-block: 15px 20px;
  }
}

/* --------------------------------------------------------------------------
   Prose blocks
   -------------------------------------------------------------------------- */

.prose p {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  line-height: 32px;
  color: var(--c-body);
  margin-bottom: 0;
}

/* Live spaces paragraphs by one line-height above each following paragraph */
.prose p + p {
  margin-top: 32px;
}

.prose a:not(.btn) {
  color: var(--c-gold);
}

.prose h2,
.prose h3 {
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Testimonial slider
   -------------------------------------------------------------------------- */

.testimonials {
  text-align: center;
}

.testimonials__heading {
  font-size: var(--fs-h2);
  line-height: 1.472;   /* live box is 53px around a 36px face */
  color: var(--c-gold);
  margin-bottom: 16px;
}

.slider {
  position: relative;
  max-width: 840px;
  margin: 82px auto 0;
}

.slider__track {
  position: relative;
  min-height: 220px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.slide__quote {
  font-family: var(--f-quote);
  font-size: var(--fs-quote);
  font-weight: 400;
  font-style: italic;
  line-height: normal;
  color: var(--c-white);
  margin-bottom: 26px;
}

.slide__name,
.slide__role {
  font-family: var(--f-quote);
  font-size: var(--fs-quote-name);
  font-weight: 700;
  font-style: italic;
  line-height: normal;
  color: var(--c-white);
  margin: 0;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.slider__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  transition: background-color 0.2s ease;
}

.slider__dot.is-active {
  background-color: var(--c-gold);
}

/* Slider arrows — hidden on desktop, shown on phones as the live site does */
.slider__arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  color: var(--c-white);
  opacity: 0.85;
}

.slider__arrow--prev { left: -32px; }
.slider__arrow--next { right: -32px; }

.slider__arrow:hover { opacity: 1; }

@media (max-width: 767px) {
  .slider__arrow {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.accordion {
  max-width: 900px;
  margin-inline: auto;
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-white);
}

.accordion__trigger:hover {
  color: var(--c-gold);
}

.accordion__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion__icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.accordion__icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.accordion__trigger[aria-expanded='true'] .accordion__icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  display: none;
  padding-bottom: 26px;
}

.accordion__panel.is-open {
  display: block;
}

/* --------------------------------------------------------------------------
   Team cards
   -------------------------------------------------------------------------- */

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 20px;
}

.team-card__name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 6px;
}

.team-card__role {
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  color: var(--c-body);
}

/* --------------------------------------------------------------------------
   Forms — markup only at this stage, wired during WordPress conversion
   -------------------------------------------------------------------------- */

.form {
  max-width: 760px;
  margin-inline: auto;
}

.form__row {
  margin-bottom: 22px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  color: var(--c-white);
}

.form__control {
  width: 100%;
  padding: 13px 15px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  font-family: var(--f-ui);
  font-size: var(--fs-body);
  color: var(--c-white);
  transition: border-color 0.2s ease;
}

.form__control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form__control:focus {
  outline: none;
  border-color: var(--c-gold);
}

textarea.form__control {
  min-height: 150px;
  resize: vertical;
}

.form__note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
