/* Amer FAQ - design 1: title, text and button beside an accordion of
   questions (home-electronics.html:4687-4779, "Have A Question? We Are Here
   To Help."; styles.css .sect-heading.type-3, .faq-accordion_item,
   .accordion-action, .ic-accordion-custom, .tf-btn.animate-btn).
   Measured against the template at 1440/1200/1199/1024/992/991/768/576/575/
   390 with D:/tmp/amer-build/fidelity/amer-faq/measure.json.
   The template's <section> has no padding of its own (the blog section above
   and the icon band below make the gap), so design 1's default is 0/0.
   Remaining, deliberate differences:
   1) the button's colour is --amer-primary (the template's var(--text),
      #101010, which is look 1's primary) and its radius --amer-radius-button
      (999px against the template's 60px; both are more than half the
      button's 44/58px height, so both draw the same pill);
   2) Arabic pages, and looks 2 and 3, keep the store's fonts (the template
      has no Arabic; the other looks have fonts of their own); font_style
      «store» uses them on look 1's English pages too. */
.mt-section.amer-faq--d1 {
  padding-block: var(--mt-space-top, 0px) var(--mt-space-bottom, 0px);
}
@media (max-width: 767px) {
  .mt-section.amer-faq--d1 {
    padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 0px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 0px));
  }
}

.amer-faq--d1 .amer-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 992px) {
  .amer-faq--d1 .amer-faq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
}

/* ---- Intro: title, text, button ----------------------------------------
   .sect-heading.type-3: 24px under it below 992px, 40px from 992px. */
.amer-faq--d1 .amer-faq__intro { margin-block-end: 24px; }
@media (min-width: 992px) {
  .amer-faq--d1 .amer-faq__intro { margin-block-end: 40px; }
}

.amer-faq--d1 .amer-faq__title {
  font-family: var(--amer-font-heading);
  font-weight: 600;
  font-size: var(--amer-fs-h1);
  line-height: clamp(44px, 6vw, 68px);
  letter-spacing: 0;
  color: var(--amer-heading);
  margin: 0 0 8px;
}
@media (min-width: 992px) {
  .amer-faq--d1 .amer-faq__title { margin-bottom: 20px; }
}

.amer-faq--d1 .amer-faq__text {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--amer-muted);
}
@media (min-width: 1200px) {
  .amer-faq--d1 .amer-faq__text { margin-bottom: 40px; }
}
@media (max-width: 575px) {
  .amer-faq--d1 .amer-faq__text { font-size: 14px; line-height: 22px; }
}

/* The template's two type choices in this block (font_style «design»): the
   title's .font-red_hat, and the answers' .font-plus_jakarta, which the
   template never loads, so its page shows the system sans-serif - the same
   stack here draws the same letters, and the answer wraps where the
   template's does (2 lines in the 482px column at 1024, not 3).
   Only on look 1 (the electronics look this block comes from) and on English
   pages: looks 2 and 3 have fonts of their own (look 3's Cormorant/Amiri
   headings are ours by decision), and the template has no Arabic. */
html.amer-look--d1[dir="ltr"] .amer-faq--d1.amer-faq--design-fonts .amer-faq__title {
  font-family: "Red Hat Display", var(--amer-font-heading);
}
html.amer-look--d1[dir="ltr"] .amer-faq--d1.amer-faq--design-fonts .amer-faq__answer p {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* The button: .tf-btn has no border (the shared .amer-btn carries a 1px
   transparent one, 2px wider overall), a 26px line, no colour change on
   hover, and as .animate-btn a light sweep across it on hover
   (styles.css:7885-7910, keyframes shine-reverse, 1s). */
.amer-faq--d1 .amer-faq__button {
  position: relative;
  overflow: hidden;
  border-width: 0;
  line-height: 26px;
}
.amer-faq--d1 .amer-faq__button:hover,
.amer-faq--d1 .amer-faq__button:focus-visible {
  background: var(--amer-primary);
}
.amer-faq--d1 .amer-faq__button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  inline-size: 100%;
  block-size: 100%;
  /* The template's white sweep, in the button's own text colour (white on
     the dark primary) so no colour is written here. */
  background-image: linear-gradient(120deg, transparent 20%, color-mix(in srgb, var(--amer-on-primary) 40%, transparent), transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.amer-faq--d1 .amer-faq__button:hover::after { animation: amer-faq-shine 1s forwards; }
@keyframes amer-faq-shine {
  from { left: 100%; }
  to { left: -100%; }
}

/* Words longer than the column (an e-mail address, a web address, a model
   number) break inside instead of pushing the item past the page edge. Text
   that fits is untouched: the sample content measures the same with and
   without this. */
.amer-faq--d1 .amer-faq__title,
.amer-faq--d1 .amer-faq__text,
.amer-faq--d1 .amer-faq__question-text,
.amer-faq--d1 .amer-faq__answer p {
  overflow-wrap: anywhere;
}

/* ---- Accordion ------------------------------------------------------- */
/* One explicit minmax(0, 1fr) column: the implicit auto track would grow to
   the widest question's min-content and carry the item off the page. */
.amer-faq--d1 .amer-faq__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.amer-faq--d1 .amer-faq__item {
  background: var(--amer-surface);
  border-radius: var(--amer-radius-card);
}

/* .accordion-action: 28px sides and 24px top and bottom when shut; open, no
   bottom padding and 12px under it (20/20/20 below 992px). Both change over
   .3s ease as the answer slides (assets/faq.js). */
.amer-faq--d1 .amer-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 28px;
  padding-block: 24px;
  font-family: var(--amer-font-heading);
  font-size: clamp(22px, 3vw, 24px);
  line-height: clamp(28px, 3.5vw, 30px);
  font-weight: var(--amer-fw-heading);
  letter-spacing: .005em;
  /* No text-transform: the template capitalises every word of its sample
     copy, which turned a merchant's real sentence into «I Put It In The
     Reading Corner…» (visual review, 2026-09-23); the words show as typed. */
  color: var(--amer-heading);
  transition: padding .3s ease, margin .3s ease, color .25s ease;
}
/* Hover, and keyboard focus showing the same state (house rule; the global
   `:focus-visible { outline: none !important }` in core.css means an outline
   here never drew - the rule that sat here was dead). The question and its
   +/- turn to the accent. */
.amer-faq--d1 .amer-faq__question:hover,
.amer-faq--d1 .amer-faq__question:focus-visible { color: var(--amer-accent); }
.amer-faq--d1 .amer-faq__question:hover .amer-faq__icon::before,
.amer-faq--d1 .amer-faq__question:hover .amer-faq__icon::after,
.amer-faq--d1 .amer-faq__question:focus-visible .amer-faq__icon::before,
.amer-faq--d1 .amer-faq__question:focus-visible .amer-faq__icon::after { background: var(--amer-accent); }
.amer-faq--d1 .amer-faq__item[open]:not(.is-closing) > .amer-faq__question {
  padding-block-end: 0;
  margin-block-end: 12px;
}
@media (max-width: 991px) {
  .amer-faq--d1 .amer-faq__question { padding-inline: 20px; padding-block: 20px; }
  .amer-faq--d1 .amer-faq__item[open]:not(.is-closing) > .amer-faq__question { padding-block-end: 0; margin-block-end: 20px; }
}

.amer-faq--d1 .amer-faq__question-text { min-inline-size: 0; }

/* .ic-accordion-custom.cl-2: two 2px bars, 18px. Open, the upright bar turns
   90deg onto the flat one (a minus) and the flat one turns 180deg, both over
   .3s ease. */
.amer-faq--d1 .amer-faq__icon {
  position: relative;
  inline-size: 18px;
  block-size: 18px;
  flex: none;
}
.amer-faq--d1 .amer-faq__icon::before,
.amer-faq--d1 .amer-faq__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--amer-heading);
  border-radius: 2px;
  transition: transform .3s ease, background-color .25s ease;
}
.amer-faq--d1 .amer-faq__icon::before { inline-size: 2px; block-size: 100%; }
.amer-faq--d1 .amer-faq__icon::after { inline-size: 100%; block-size: 2px; }
.amer-faq--d1 .amer-faq__item[open]:not(.is-closing) .amer-faq__icon::before { transform: rotate(90deg); }
.amer-faq--d1 .amer-faq__item[open]:not(.is-closing) .amer-faq__icon::after { transform: rotate(180deg); }

.amer-faq--d1 .amer-faq__answer p {
  margin: 0;
  padding-inline: 28px;
  padding-block-end: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--amer-muted);
}
@media (max-width: 991px) {
  .amer-faq--d1 .amer-faq__answer p { padding-inline: 20px; padding-block-end: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .amer-faq--d1 .amer-faq__question,
  .amer-faq--d1 .amer-faq__icon::before,
  .amer-faq--d1 .amer-faq__icon::after { transition: none; }
  .amer-faq--d1 .amer-faq__button:hover::after { animation: none; }
}
