/*
 * Alhareeq Club site styles.
 * Colors intentionally reference the Flatsome Style Customizer system.
 */

:root {
  --ahr-accent: var(--fs-color-primary);
  --ahr-accent-alt: var(--fs-color-secondary);
  --ahr-text: var(--fs-color-base);
  --ahr-link: var(--fs-experimental-link-color);
  --ahr-link-hover: var(--fs-experimental-link-color-hover);
  --ahr-line: color-mix(in srgb, var(--fs-color-base) 18%, transparent);
  --ahr-soft-surface: color-mix(in srgb, var(--fs-color-base) 7%, transparent);
  --ahr-dark-surface: var(--fs-color-base);
  --ahr-radius: 22px;
  --ahr-shadow: 0 24px 70px color-mix(in srgb, var(--fs-color-base) 22%, transparent);
  --ahr-transition: 280ms ease;
}

/* Shared */
.ahr-page-home {
  direction: rtl;
}

.ahr-page-home h1,
.ahr-page-home h2,
.ahr-page-home h3,
.ahr-page-home p {
  margin-top: 0;
}

.ahr-eyebrow {
  color: var(--ahr-accent);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ahr-section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.ahr-section-heading p:last-child {
  color: var(--ahr-text);
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 680px;
}

.ahr-button .button,
.ahr-button.button {
  border-radius: 999px;
  min-height: 48px;
  padding-inline: 26px;
  transition: transform var(--ahr-transition), box-shadow var(--ahr-transition);
}

.ahr-button .button:hover,
.ahr-button.button:hover {
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ahr-accent) 28%, transparent);
  transform: translateY(-2px);
}

/* Hero */
.ahr-home-hero {
  background-color: var(--ahr-dark-surface);
  isolation: isolate;
  overflow: hidden;
}

.ahr-home-hero .banner-bg {
  background-image: url("/wp-content/uploads/2026/07/ahr-home-hero.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.01);
}

.ahr-home-hero::before {
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--ahr-dark-surface) 18%, transparent),
    color-mix(in srgb, var(--ahr-dark-surface) 92%, transparent)
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.ahr-home-hero .banner-layers {
  z-index: 3;
}

.ahr-home-hero-content .text-box-content {
  background: none;
  padding: 0;
}

.ahr-home-hero-title {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 820px;
}

.ahr-home-hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.85;
  margin-bottom: 30px;
  max-width: 620px;
}

/* Introduction */
.ahr-home-intro-media {
  position: relative;
}

.ahr-home-intro-media::before {
  background: var(--ahr-accent);
  border-radius: 50%;
  content: "";
  filter: blur(75px);
  height: 58%;
  inset: 20% auto auto 22%;
  opacity: .18;
  position: absolute;
  width: 58%;
}

.ahr-club-mark {
  position: relative;
  text-align: center;
  z-index: 1;
}

.ahr-club-mark img {
  filter: drop-shadow(0 25px 35px color-mix(in srgb, var(--ahr-text) 24%, transparent));
  max-height: 430px;
  object-fit: contain;
  width: auto;
}

/* Feature cards */
.ahr-home-features {
  background: var(--ahr-soft-surface);
}

.ahr-feature-grid > .col > .col-inner {
  height: 100%;
}

.ahr-feature-card {
  border-radius: var(--ahr-radius);
  box-shadow: var(--ahr-shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.ahr-feature-card .banner-bg {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 700ms ease;
}

.ahr-feature-card-strategy .banner-bg {
  background-image: url("/wp-content/uploads/2026/07/ahr-strategy-cover.webp");
}

.ahr-feature-card-report .banner-bg {
  background-image: url("/wp-content/uploads/2026/07/ahr-annual-report-cover.webp");
}

.ahr-feature-card::before {
  background: linear-gradient(to top, var(--ahr-dark-surface), transparent);
  content: "";
  inset: 26% 0 0;
  opacity: .88;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.ahr-feature-card .banner-layers {
  z-index: 3;
}

.ahr-feature-card:hover .banner-bg {
  transform: scale(1.05);
}

.ahr-feature-card-content .text-box-content {
  background: none;
  padding: 0;
}

.ahr-feature-card-content h3 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  margin-bottom: 12px;
}

.ahr-feature-card-kicker {
  color: var(--ahr-accent);
  font-weight: 700;
}

/* News */
.ahr-home-news .post-item .col-inner {
  border: 1px solid var(--ahr-line);
  border-radius: 18px;
  box-shadow: 0 16px 45px color-mix(in srgb, var(--ahr-text) 10%, transparent);
  overflow: hidden;
  transition: transform var(--ahr-transition), box-shadow var(--ahr-transition);
}

.ahr-home-news .post-item .col-inner:hover {
  box-shadow: var(--ahr-shadow);
  transform: translateY(-6px);
}

.ahr-home-news .box-text {
  padding: 24px;
}

.ahr-home-news .post-title {
  line-height: 1.55;
}

.ahr-home-news .from_the_blog_excerpt {
  color: var(--ahr-text);
  line-height: 1.8;
}

.ahr-news-all-link {
  color: var(--ahr-link);
}

.ahr-news-all-link:hover {
  color: var(--ahr-link-hover);
}

/* Community */
.ahr-home-community {
  background: var(--ahr-dark-surface);
  overflow: hidden;
}

.ahr-home-community-content {
  padding: clamp(54px, 7vw, 110px);
}

.ahr-home-community-content h2,
.ahr-home-community-content p {
  color: inherit;
}

.ahr-home-community-content h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.18;
}

.ahr-home-community-content p:not(.ahr-eyebrow) {
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 700px;
}

.ahr-home-community-media {
  background-image: url("/wp-content/uploads/2026/07/ahr-social-community.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100%;
}

/* Contact */
.ahr-contact-cta {
  background: var(--ahr-soft-surface);
  border: 1px solid var(--ahr-line);
  border-radius: var(--ahr-radius);
  padding: clamp(32px, 5vw, 62px);
}

.ahr-contact-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ahr-home-hero-title {
    font-size: clamp(2.7rem, 6vw, 4.5rem);
  }

  .ahr-home-intro,
  .ahr-home-features,
  .ahr-home-news {
    padding-inline: 24px;
  }
}

@media (max-width: 768px) {
  .ahr-home-hero .banner-bg {
    background-position: 68% center;
  }

  .ahr-home-hero::before {
    background: linear-gradient(to top, var(--ahr-dark-surface), color-mix(in srgb, var(--ahr-dark-surface) 48%, transparent));
  }

  .ahr-home-hero-lead {
    margin-inline: auto;
  }

  .ahr-home-intro-media {
    margin-bottom: 40px;
  }

  .ahr-club-mark img {
    max-height: 320px;
  }

  .ahr-section-heading-row .col,
  .ahr-contact-cta .col {
    text-align: right;
  }

  .ahr-home-community-content {
    order: 2;
  }

  .ahr-home-community-media {
    min-height: 320px;
    order: 1;
  }
}

@media (max-width: 480px) {
  .ahr-home-hero-title {
    font-size: 2.35rem;
  }

  .ahr-home-hero-content .button {
    display: block;
    margin-inline: 0;
    width: 100%;
  }

  .ahr-home-intro,
  .ahr-home-features,
  .ahr-home-news,
  .ahr-home-contact {
    padding-inline: 16px;
  }

  .ahr-feature-card-content h3 {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ahr-page-home *,
  .ahr-page-home *::before,
  .ahr-page-home *::after {
    scroll-behavior: auto;
    transition-duration: 1ms;
  }
}
