/*
 * SLW Home Page — ria-matched CSS
 * Loaded only on the Home template via conditional wp_enqueue_scripts.
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
.slw-home-page {
  --c-navy:       #1A2E4A;
  --c-white:      #FFFFFF;
  --c-light:      #F5F8FB;
  --c-cream:      #EAF1F8;
  --c-accent:     #7CAFCD;
  --c-blue:       #2D6FB7;
  --c-text:       #1A2E4A;
  --c-muted:      #526074;
  --c-border-faint: rgba(26, 46, 74, 0.1);

  --f-heading: 'Almarai', sans-serif;
  --f-body:    'DM Sans', sans-serif;

  --max-w: 1200px;
  --container-x: 80px;
  --container-x-mob: 24px;
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.slw-home-page .h-container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-x);
  padding-right: var(--container-x);
}

@media (max-width: 767px) {
  .slw-home-page .h-container {
    padding-left: var(--container-x-mob);
    padding-right: var(--container-x-mob);
  }
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.slw-home-page .h-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-blue);
  color: var(--c-white);
  padding: 14px 28px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1;
}
.slw-home-page .h-btn-solid:hover {
  background: var(--c-navy);
  color: var(--c-white);
  text-decoration: none;
}

.slw-home-page .h-btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--c-white);
  padding: 14px 28px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--c-white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.slw-home-page .h-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
  text-decoration: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.slw-home-page .h-fade {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slw-home-page .h-fade.h-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.slw-home-page .slw-hero__content.h-fade {
  transition-duration: 0.9s;
  transition-delay: 0.1s;
}

/* ============================================================
   HERO
   ============================================================ */
.slw-home-page .slw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slw-home-page .slw-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slw-home-page .slw-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.slw-home-page .slw-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 46, 74, 0.78);
}

.slw-home-page .slw-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 120px var(--container-x) 100px;
  display: flex;
  justify-content: center;
}

.slw-home-page .slw-hero__content {
  max-width: 680px;
  text-align: left;
  width: 100%;
}

/* Eyebrow */
.slw-home-page .slw-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 24px;
}
.slw-home-page .slw-hero__eyebrow::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background: var(--c-accent);
}

/* Main headline */
.slw-home-page .slw-hero__h2 {
  font-family: var(--f-heading);
  font-size: 58px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--c-white);
  margin: 0 0 28px;
}
.slw-home-page .h-accent-word {
  color: var(--c-accent);
}

/* Subheading */
.slw-home-page .slw-hero__h6 {
  font-family: var(--f-body);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-white);
  margin: 0 0 40px;
  line-height: 1.5;
}

/* CTA row */
.slw-home-page .slw-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .slw-home-page .slw-hero__h2 {
    font-size: 42px;
    line-height: 1.1;
  }
  .slw-home-page .slw-hero__inner {
    padding: 80px var(--container-x-mob) 72px;
  }
}
@media (max-width: 600px) {
  .slw-home-page .slw-hero__h2 {
    font-size: 34px;
    line-height: 1.15;
  }
  .slw-home-page .slw-hero__h6 {
    font-size: 18px;
  }
  .slw-home-page .slw-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .slw-home-page .slw-hero__inner {
    padding: 60px 24px 56px;
  }
}

/* ============================================================
   CTA BANNER — Contact section
   ============================================================ */
.slw-home-page .slw-cta-banner {
  background: #ffffff;
  padding: 64px 0;
}

.slw-home-page .slw-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--c-cream);
  padding: 56px 64px;
}

.slw-home-page .slw-cta-banner__left {
  flex: 1;
  max-width: 580px;
}

.slw-home-page .slw-cta-banner__eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin: 0 0 14px;
}

.slw-home-page .slw-cta-banner__heading {
  font-family: var(--f-heading);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--c-navy);
  margin: 0 0 20px;
}

.slw-home-page .slw-cta-banner__body {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.75;
  margin: 0;
}

.slw-home-page .slw-cta-banner__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.slw-home-page .slw-cta-banner__btn {
  min-width: 200px;
  justify-content: center;
  padding: 16px 36px;
  font-size: 15px;
}

.slw-home-page .slw-cta-banner__phone {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--c-muted);
  margin: 0;
  white-space: nowrap;
}

.slw-home-page .slw-cta-banner__phone a {
  color: var(--c-blue);
  font-weight: 600;
  text-decoration: none;
}

.slw-home-page .slw-cta-banner__phone a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .slw-home-page .slw-cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 32px;
  }
  .slw-home-page .slw-cta-banner__heading {
    font-size: 32px;
  }
  .slw-home-page .slw-cta-banner__right {
    align-items: flex-start;
    width: 100%;
  }
  .slw-home-page .slw-cta-banner__btn {
    width: 100%;
    min-width: 0;
  }
  .slw-home-page .slw-cta-banner__phone {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .slw-home-page .slw-cta-banner__inner {
    padding: 32px 20px;
    gap: 24px;
  }
  .slw-home-page .slw-cta-banner__heading {
    font-size: 26px;
  }
  .slw-home-page .slw-hero__cta .h-btn-solid,
  .slw-home-page .slw-hero__cta .h-btn-outline-white {
    width: 100%;
    justify-content: center;
  }
}
