/*
Theme Name: Astra Child
Template: astra
Version: 1.1
*/

/* =========================
   RepurposeFab Design System
   ========================= */

/* =========================
   1) TOKENS
   ========================= */
:root{
  /* Color */
  --rf-black: #0b0b0b;
  --rf-charcoal: #111111;
  --rf-text: #f2f2f2;
  --rf-muted: rgba(242,242,242,0.78);
  --rf-yellow: #F2A900;
  --rf-yellow-2: #E0A100;
  --rf-border: rgba(255,255,255,0.10);
  --rf-shadow: 0 10px 25px rgba(0,0,0,0.35);

  /* Typography */
  --rf-font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --rf-font-head: Oswald, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Fluid type */
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h2: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  --fs-h1: clamp(2.2rem, 1.6rem + 2vw, 3.8rem);

  /* Layout */
  --rf-radius: 6px;
  --rf-radius-lg: 10px;
}

/* =========================
   2) BASE
   ========================= */
html, body{
  background: var(--rf-black);
  color: var(--rf-text);
  font-family: var(--rf-font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  scroll-behavior: smooth;
}

h1, h2, h3, h4{
  font-family: var(--rf-font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

h1{ font-size: var(--fs-h1); line-height: 1.05; }
h2{ font-size: var(--fs-h2); line-height: 1.1; }
h3{ font-size: var(--fs-h3); line-height: 1.2; }
h4{ font-size: var(--fs-h4); line-height: 1.25; }

p{
  color: var(--rf-muted);
  margin: 0 0 16px;
}

a{
  color: var(--rf-yellow);
  text-decoration: none;
}

a:hover{
  color: var(--rf-yellow-2);
}

/* =========================
   3) GLOBAL UTILITIES
   ========================= */
.rf-container{
  width: min(1280px, 92vw);
  margin-inline: auto;
  padding-inline: 24px;
}

.rf-section--dark{ background: var(--rf-black); }
.rf-section--charcoal{ background: var(--rf-charcoal); }
.rf-section--light{
  background: #f6f6f6;
  color: #121212;
}
.rf-section--light p{
  color: rgba(18,18,18,0.78);
}

.rf-accent-line{
  width: 64px;
  height: 3px;
  background: var(--rf-yellow);
  margin: clamp(14px, 1.8vw, 22px) 0;
}

.rf-hero-sub{
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--rf-yellow-2) !important;
  max-width: 58ch;
  margin-top: clamp(14px, 2vw, 24px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

/* =========================
   4) HERO
   ========================= */
.elementor .rf-hero .rf-hero__title .elementor-heading-title,
.elementor .rf-hero .rf-hero__title .elementor-heading-title *{
  color: var(--rf-yellow) !important;
}

.elementor .rf-hero > .e-con-inner{
  justify-content: center;
  text-align: center;
}

.elementor .rf-hero .elementor-widget-heading,
.elementor .rf-hero .elementor-widget-heading .elementor-widget-container{
  width: 100%;
}

.elementor .rf-hero__title{
  text-align: center;
}

.elementor .rf-hero a,
.elementor .rf-hero a .elementor-heading-title{
  color: var(--rf-yellow) !important;
}

.elementor .rf-hero a:hover,
.elementor .rf-hero a:hover .elementor-heading-title{
  color: var(--rf-yellow-2) !important;
}

.elementor .rf-hero .elementor-heading-title{
  max-width: 22ch;
}

@media (min-width: 769px){
  .elementor .rf-hero__title .elementor-heading-title{
    max-width: none !important;
    white-space: nowrap;
  }
}

/* =========================
   5) SERVICES STRIP
   ========================= */
.rf-services-section{
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
}

.elementor .rf-services-strip{
  background: var(--rf-black);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: clamp(16px, 2vw, 28px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
  justify-content: center;
}

.elementor .rf-services-strip > *{
  flex: 1 1 160px;
  max-width: 240px;
  text-align: center;
}

.elementor .rf-services-strip .elementor-heading-title,
.elementor .rf-services-strip a,
.elementor .rf-services-strip a .elementor-heading-title{
  font-family: var(--rf-font-head);
  font-size: clamp(0.78rem, 0.65rem + 0.35vw, 0.98rem) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rf-yellow) !important;
  margin: 0 !important;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.elementor .rf-services-strip a:hover .elementor-heading-title{
  color: var(--rf-yellow-2) !important;
}

/* =========================
   6) SERVICE PANEL SYSTEM
   ========================= */
.rf-panels{
  position: relative;
  background: var(--rf-charcoal);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--rf-radius-lg);
  padding: clamp(20px, 2vw, 32px);
  overflow: hidden;
}

.rf-panel{
  display: none !important;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 260ms ease, transform 260ms ease;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rf-panel.is-active{
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.rf-panel:not(.is-active) .e-con,
.rf-panel:not(.is-active) .elementor-element,
.rf-panel:not(.is-active) .elementor-widget,
.rf-panel:not(.is-active) .elementor-widget-container{
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================
   7) SERVICE PANEL LAYOUT
   ========================= */
.elementor .rf-service-shell{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
}

.elementor .rf-service-copy{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.elementor .rf-service-media{
  width: 100%;
  min-width: 0;
  align-self: start;
  margin-top: 8px;
}

.elementor .rf-service-media img{
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow);
}

/* =========================
   8) SERVICE TYPOGRAPHY
   ========================= */
.elementor .rf-service-title .elementor-heading-title{
  color: var(--rf-yellow) !important;
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
  max-width: 16ch;
  margin: 0 0 clamp(12px, 1.5vw, 20px) !important;
}

.elementor .rf-service-desc{
  color: rgba(242,242,242,0.88) !important;
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.16rem);
  line-height: 1.7;
  max-width: 58ch;
  width: 100%;
  margin: 0 0 clamp(18px, 2vw, 28px) !important;
}

/* =========================
   9) ICON LIST
   ========================= */
.elementor .rf-iconlist{
  width: 100%;
  max-width: 42ch;
  margin: 0 0 clamp(22px, 2vw, 32px) !important;
}

.elementor .rf-iconlist .elementor-icon-list-item{
  margin-bottom: clamp(10px, 1vw, 14px);
  align-items: flex-start;
}

.elementor .rf-iconlist .elementor-icon-list-text{
  color: rgba(242,242,242,0.80) !important;
  font-size: clamp(0.98rem, 0.93rem + 0.15vw, 1.06rem);
  line-height: 1.55;
}

.elementor .rf-iconlist .elementor-icon-list-icon i,
.elementor .rf-iconlist .elementor-icon-list-icon svg{
  color: var(--rf-yellow) !important;
  fill: var(--rf-yellow) !important;
}

/* =========================
   10) BUTTONS
   ========================= */
.rf-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--rf-radius);
  border: 1px solid transparent;
  background: var(--rf-yellow);
  color: var(--rf-black);
  font-family: var(--rf-font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 150px;
  width: auto;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease !important;
}

.rf-btn:hover{
  background: var(--rf-yellow-2);
  transform: translateY(-1px);
}

.rf-btn--sm{
  min-width: 160px;
  width: auto;
  padding: 12px 18px;
  font-size: 0.95rem !important;
  align-self: flex-start;
}

.rf-btn--ghost{
  background: transparent;
  color: var(--rf-text);
  border-color: rgba(255,255,255,0.25) !important;
}

.rf-btn--ghost:hover{
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06) !important;
}

/* =========================
   11) CARDS / GRIDS
   ========================= */
.rf-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 22px;
  box-shadow: var(--rf-shadow);
}

.rf-grid{
  display: grid;
  gap: 24px;
}

.rf-grid--3{
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px){
  .rf-grid--3{
    grid-template-columns: 1fr;
  }
}

/* =========================
   12) CAROUSEL
   ========================= */
.uniform-carousel .swiper-slide-image,
.uniform-carousel .elementor-image-carousel-wrapper img,
.uniform-carousel .swiper-slide-inner img{
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* =========================
   13) RESPONSIVE SERVICE PANELS
   ========================= */
@media (max-width: 1024px){
  .elementor .rf-service-shell{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .elementor .rf-service-copy{
    order: 2;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 auto;
  }

  .elementor .rf-service-media{
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .elementor .rf-service-media img{
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .elementor .rf-service-title .elementor-heading-title{
    max-width: 100%;
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem) !important;
  }

  .elementor .rf-service-desc,
  .elementor .rf-iconlist{
    max-width: 100%;
  }

  .elementor .rf-iconlist .elementor-icon-list-text{
    font-size: 1rem;
    line-height: 1.5;
  }

  .rf-btn,
  .rf-btn--sm{
    width: auto;
    min-width: 160px;
    font-size: 0.95rem !important;
    padding: 12px 18px;
  }
}

@media (max-width: 767px){
  .rf-panels{
    padding: 20px 16px;
  }

  .elementor .rf-service-shell{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .rf-services-strip{
      padding: 2em;
  }
  

  .elementor .rf-service-copy{
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }

  .elementor .rf-service-media{
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .elementor .rf-service-title .elementor-heading-title{
    max-width: 100%;
    font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem) !important;
    line-height: 1.05;
    letter-spacing: 0.03em;
  }

  .elementor .rf-service-desc{
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.6;
  }

  .elementor .rf-iconlist{
    width: 100%;
    max-width: 100%;
  }

  .elementor .rf-iconlist .elementor-icon-list-item{
    margin-bottom: 10px;
  }

  .elementor .rf-iconlist .elementor-icon-list-text{
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .rf-btn--sm{
    min-width: 150px;
  }
}

/* =========================
   14) ASTRA HEADER
   ========================= */
.ast-primary-header-bar{
  background: rgba(11,11,11,0.92) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}