/*
|--------------------------------------------------------------------------
| AGR HOMEPAGE — Highlights, Google Reviews, FAQs, Our Blog
|--------------------------------------------------------------------------
|
| Source of truth: Figma "ARR-CRR" → frame "Arizona Gold Resort".
| Fonts come from --home-heading-font / --home-body-font (AGR defaults:
| Philosopher + Poppins); another site can override just the variables.
| Every selector is namespaced (.home-*) so nothing leaks into other sections.
| The blog cards reuse the blog listing component (css/blog/style.css).
|
*/

.home-section {
  --home-accent: #bc7928;
  --home-accent-dark: #9f6420;
  --home-heading: #3e3014;
  --home-ink: #141414;
  --home-text: #2c2c2c;
  --home-line: rgba(0, 0, 0, 0.2);
  --home-gutter: 60px;
  --home-heading-font:
    "Philosopher", sans-serif; /* headings, buttons, FAQ questions */
  --home-body-font: "Poppins", sans-serif; /* paragraph text */

  clear: both;
  position: relative;
  width: 100%;
  font-family: var(--home-body-font);
  color: var(--home-text);
}

.home-section *,
.home-section *::before,
.home-section *::after {
  box-sizing: border-box;
}

.home-section .home-shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--home-gutter);
  padding-right: var(--home-gutter);
}

/* Section title — Philosopher 50 / #3e3014 */
.home-section .home-section-title {
  margin: 0;
  padding: 0;
  font-family: var(--home-heading-font);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  color: var(--home-heading);
}

.home-section .home-section-subtitle {
  margin: 22px auto 0;
  padding: 0;
  max-width: 760px;
  font-family: var(--home-body-font);
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--home-text);
}

/* Centred CTA button — 14px caps, 16/20 padding (173 x 41) */
.home-section .home-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.home-section .home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border: 0;
  border-radius: 0;
  background: var(--home-accent);
  font-family: var(--home-heading-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 9px;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  transition: background-color 0.25s ease;
}

.home-section .home-btn:hover,
.home-section .home-btn:focus-visible {
  background: var(--home-accent-dark);
  color: #fff;
  text-decoration: none;
}

.home-section a:focus-visible,
.home-section button:focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| HIGHLIGHTS — alternating image + text rows
|--------------------------------------------------------------------------
*/

.home-highlights {
  padding-top: 100px;
}

.home-highlight {
  display: grid;
  grid-template-columns: minmax(0, 660fr) minmax(0, 633fr);
  column-gap: 27px;
  align-items: start;
}

.home-highlight + .home-highlight {
  margin-top: 58px;
}

/* Image on the right: text 633 · gap 50 · image 630 */
.home-highlight--reverse {
  grid-template-columns: minmax(0, 633fr) minmax(0, 630fr);
  column-gap: 50px;
}

.home-highlight--reverse .home-highlight__media {
  order: 2;
}

.home-highlight--no-image {
  grid-template-columns: minmax(0, 1fr);
  max-width: 870px;
  margin-left: auto;
  margin-right: auto;
}

.home-highlight__media {
  overflow: hidden;
  aspect-ratio: 660 / 516;
  background: #f2f0ec;
}

.home-highlight__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.home-highlight__body {
  min-width: 0;
  padding-top: 38px;
}

.home-highlight--no-image .home-highlight__body {
  padding-top: 0;
}

.home-section .home-highlight__title {
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--home-heading-font);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: var(--home-heading);
}

.home-section .home-highlight__text {
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--home-body-font);
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  color: var(--home-text);
}

.home-section .home-highlight__list {
  margin: 0;
  padding: 0 0 0 39px;
  list-style: disc outside;
}

.home-section .home-highlight__list li {
  display: list-item;
  margin: 0 0 11px;
  padding: 0;
  font-family: var(--home-body-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--home-text);
}

.home-section .home-highlight__list li:last-child {
  margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| GOOGLE REVIEWS — admin heading + third-party embed
|--------------------------------------------------------------------------
*/

.home-reviews {
  padding-top: 111px;
}

.home-reviews__embed {
  width: 100%;
  max-width: 1300px;
  margin: 45px auto 0;
  overflow-x: hidden; /* a fixed-width widget must never cause page scroll */
}

.home-reviews__embed iframe,
.home-reviews__embed > * {
  max-width: 100%;
}

.home-reviews .home-section-cta {
  margin-top: 50px;
}

/*
|--------------------------------------------------------------------------
| FAQS — accordion, 870px column
|--------------------------------------------------------------------------
*/

.home-faq {
  padding-top: 116px;
}

.home-faq__list {
  max-width: 870px;
  margin: 40px auto 0;
}

.home-faq__item {
  padding-top: 30px;
  border-bottom: 1px solid var(--home-line);
}

.home-faq__item:first-child {
  padding-top: 0;
}

.home-section .home-faq__question {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Doubled class so theme rules like "input[type=submit], button" can't restyle it */
.home-section .home-faq__toggle,
.home-section .home-faq__toggle:hover,
.home-section .home-faq__toggle:focus,
.home-section .home-faq__toggle:active {
  display: flex;
  float: none; /* the theme floats every <button> */
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 0 34px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-section .home-faq__question-text {
  min-width: 0;
  font-family: var(--home-heading-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 25px;
  color: var(--home-ink);
  transition: color 0.2s ease;
}

.home-faq__toggle:hover .home-faq__question-text {
  color: var(--home-accent);
}

.home-faq__icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  max-width: none;
  transition: transform 0.3s ease;
}

.home-faq__item.is-open .home-faq__icon {
  transform: rotate(180deg);
}

/* Height animation via grid rows; collapsed only once JS has run */
.home-faq__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.home-faq__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.home-faq__list.is-ready .home-faq__item:not(.is-open) .home-faq__panel {
  grid-template-rows: 0fr;
}

.home-faq__list.is-ready .home-faq__item:not(.is-open) .home-faq__panel-inner {
  visibility: hidden;
  transition: visibility 0s 0.3s;
}

.home-section .home-faq__answer {
  max-width: 764px;
  padding-bottom: 20px;
  font-family: var(--home-body-font);
  font-size: 16px;
  line-height: 24px;
  color: var(--home-text);
  margin-top: 0 !important;
}

.home-section .home-faq__answer > :first-child {
  margin-top: 0;
}

.home-section .home-faq__answer p,
.home-section .home-faq__answer li {
  margin: 0 0 12px;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  color: inherit;
}

.home-section .home-faq__answer > :last-child {
  margin-bottom: 0;
}

.home-section .home-faq__answer ul,
.home-section .home-faq__answer ol {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style-position: outside;
}

.home-section .home-faq__answer ul {
  list-style-type: disc;
}
.home-section .home-faq__answer ol {
  list-style-type: decimal;
}

.home-section .home-faq__answer li {
  display: list-item;
  margin-bottom: 6px;
}

.home-section .home-faq__answer a {
  color: var(--home-accent);
  text-decoration: underline;
}

.home-section .home-faq__answer strong,
.home-section .home-faq__answer b {
  font-family: inherit;
  font-weight: 600;
}

/*
|--------------------------------------------------------------------------
| OUR BLOG — reuses .blog-card / .blog-listing__grid from css/blog/style.css
|--------------------------------------------------------------------------
*/

.home-blog {
  padding-top: 120px;
  padding-bottom: 120px;
  background: transparent;
}

.home-blog .home-blog__grid {
  margin-top: 35px;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media only screen and (max-width: 1399px) {
  .home-section {
    --home-gutter: 40px;
  }
}

@media only screen and (max-width: 1199px) {
  .home-section .home-section-title,
  .home-section .home-highlight__title {
    font-size: 42px;
  }

  .home-highlight,
  .home-highlight--reverse {
    column-gap: 32px;
  }

  .home-highlight__body {
    padding-top: 0;
    align-self: center;
  }

  .home-highlights {
    padding-top: 80px;
  }
  .home-reviews {
    padding-top: 90px;
  }
  .home-faq {
    padding-top: 90px;
  }
  .home-blog {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

/* Tablet: stack every row, image first */
@media only screen and (max-width: 991px) {
  .home-section .home-section-title {
    font-size: 36px;
  }

  .home-highlight,
  .home-highlight--reverse {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .home-highlight--reverse .home-highlight__media {
    order: 0;
  }

  .home-highlight + .home-highlight {
    margin-top: 60px;
  }

  .home-highlight__media {
    aspect-ratio: 16 / 10;
  }

  .home-section .home-highlight__title {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .home-section .home-section-cta {
    margin-top: 48px;
  }
}

@media only screen and (max-width: 767px) {
  .home-section {
    --home-gutter: 24px;
  }

  .home-section .home-section-title {
    font-size: 32px;
  }

  .home-section .home-highlight__title {
    font-size: 30px;
  }

  .home-highlights {
    padding-top: 64px;
  }
  .home-reviews {
    padding-top: 72px;
  }
  .home-faq {
    padding-top: 72px;
  }
  .home-blog {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-reviews__embed {
    margin-top: 32px;
  }

  .home-faq__list {
    margin-top: 32px;
  }

  .home-faq__item {
    padding-top: 22px;
  }

  .home-section .home-faq__toggle,
  .home-section .home-faq__toggle:hover,
  .home-section .home-faq__toggle:focus,
  .home-section .home-faq__toggle:active {
    gap: 20px;
    padding-bottom: 22px;
  }

  .home-section .home-faq__question-text {
    font-size: 18px;
    line-height: 24px;
  }

  .home-section .home-faq__answer {
    padding-bottom: 18px;
  }

  .home-blog .home-blog__grid {
    margin-top: 28px;
  }
}

/* Mobile ≤575px */
@media only screen and (max-width: 575px) {
  .home-section {
    --home-gutter: 16px;
  }

  .home-section .home-section-title {
    font-size: 28px;
  }

  .home-section .home-section-subtitle {
    margin-top: 12px;
    font-size: 15px;
    line-height: 22px;
  }

  .home-highlights {
    padding-top: 56px;
  }
  .home-reviews {
    padding-top: 60px;
  }
  .home-faq {
    padding-top: 60px;
  }
  .home-blog {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .home-highlight,
  .home-highlight--reverse {
    row-gap: 22px;
  }

  .home-highlight + .home-highlight {
    margin-top: 48px;
  }

  .home-highlight__media {
    aspect-ratio: 4 / 3;
  }

  .home-section .home-highlight__title {
    font-size: 26px;
    margin-bottom: 12px;
  }

  .home-section .home-highlight__text,
  .home-section .home-highlight__list li {
    font-size: 15px;
    line-height: 23px;
  }

  .home-section .home-highlight__list {
    padding-left: 22px;
  }

  .home-section .home-highlight__list li {
    margin-bottom: 8px;
  }

  .home-section .home-section-cta {
    margin-top: 40px;
  }

  .home-reviews .home-section-cta {
    margin-top: 32px;
  }

  .home-section .home-btn {
    max-width: 100%;
    white-space: normal;
    line-height: 16px;
    padding: 12px 20px;
    min-height: 41px;
  }

  .home-section .home-faq__question-text {
    font-size: 17px;
    line-height: 23px;
  }

  .home-section .home-faq__answer {
    font-size: 15px;
    line-height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-faq__panel,
  .home-faq__icon,
  .home-section .home-btn {
    transition: none;
  }
}
