/*
Theme Name: Hello Elementor Child (Sharlai)
Theme URI: https://sharlai.com
Description: Child theme for Hello Elementor built from Figma design (Mariia Sharlai). Contains global colors, typography and spacing tokens plus shared card styles.
Author: Sharlai
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =========================================================
   1. DESIGN TOKENS (from Figma: bg #181818, accent #FF3404,
      secondary accent ~#7B61FF, text #DDDDE3 / #FFFFFF, Poppins)
   ========================================================= */
:root {
  --color-bg: #181818;
  --color-bg-alt: #0d0d0d;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-border: rgba(255, 255, 255, 0.08);

  --color-accent: #ff3404;      /* Orange 800 - main accent / CTA */
  --color-accent-2: #7b61ff;    /* Purple 800 - secondary accent (verify exact hex in Elementor > Site Settings once Figma Dev Mode/full seat is available) */

  --color-text: #ffffff;
  --color-text-muted: #dddde3;  /* Light 300 */

  --font-primary: "Poppins", sans-serif;

  --radius-card-lg: 30px;  /* "glass" project/case cards */
  --radius-card-sm: 20px;  /* stat / icon cards */
  --radius-pill: 999px;    /* buttons */

  --header-height: 71px;
  --container-max: 1280px;
  --gutter: clamp(24px, 3.5vw, 60px);
}

/* =========================================================
   2. BASE
   ========================================================= */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
}

.sharlai-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

h1, .h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(32px, 6.25vw, 80px); /* 80px at 1280px container = 6.25% of width */
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   3. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn--secondary {
  background-color: var(--color-accent-2);
  color: #ffffff;
}

/* =========================================================
   4. HEADER (see header.php for markup)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  min-height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3.9vw, 50px); /* 50px / 1280px */
  padding-block: 8px;
}

.site-header__logo {
  font-size: 30px;
  font-weight: 400;
  display: flex;
  align-items: baseline;
}

.site-header__logo span:first-child {
  color: var(--color-text);
}

.site-header__logo span:last-child {
  color: var(--color-text);
  opacity: 0.6;
  font-weight: 200;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.3vw, 30px);
}

.site-header__nav a {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.site-header__nav a:hover {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .site-header__nav {
    display: none;
  }
}

/* =========================================================
   5. FOOTER (see footer.php for markup)
   ========================================================= */
.site-footer {
  background-color: var(--color-bg-alt);
  padding-block: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--color-border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.site-footer__col h4 {
  color: var(--color-text);
  font-size: 16px;
  margin-bottom: 16px;
}

.site-footer__col a {
  display: block;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2.2;
}

.site-footer__col a:hover {
  color: var(--color-text);
}

.site-footer__bottom {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 14px;
}

@media (max-width: 780px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==== Fixes: full-bleed layout, dark background, section spacing ==== */
html, body {
  background-color: var(--color-bg);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body > * {
  max-width: 100%;
}

.site-header,
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.elementor,
.elementor-section-wrap,
[data-elementor-type="wp-page"] {
  background-color: var(--color-bg);
  width: 100%;
  max-width: 100%;
}

.section-for-whom,
.section-why,
.section-process,
.section-reviews,
.section-cases,
.section-cta {
  width: 100%;
  box-sizing: border-box;
  padding: clamp(40px, 6vw, 100px) var(--gutter);
  margin-bottom: clamp(24px, 4vw, 60px);
}

.section-for-whom > .elementor-element,
.section-why > .elementor-element,
.section-process > .elementor-element,
.section-reviews > .elementor-element,
.section-cases > .elementor-element,
.section-cta > .elementor-element {
  gap: clamp(16px, 2vw, 32px);
}

.card-glass,
.card-stat {
  padding: clamp(20px, 2.5vw, 32px);
}


/* ==== Round 2: force spacing + text color (win specificity vs Elementor's own CSS) ==== */
body .section-for-whom,
body .section-why,
body .section-process,
body .section-reviews,
body .section-cases,
body .section-cta {
  padding: clamp(40px, 6vw, 100px) var(--gutter) !important;
  margin-bottom: clamp(24px, 4vw, 60px) !important;
  gap: clamp(16px, 2vw, 32px) !important;
}

body .card-glass,
body .card-stat {
  padding: clamp(20px, 2.5vw, 32px) !important;
}

/* Default text colors on dark background */
body,
body p,
body .elementor-widget-heading .elementor-heading-title,
body h1, body h2, body h3, body h4, body h5, body h6 {
  color: var(--color-text);
}

body .elementor-widget-text-editor,
body .elementor-widget-text-editor p {
  color: var(--color-text-muted);
}


/* ===== Round 3: targeting Elementor's stable generated hash classes ===== */
/* Mapping (auto-extracted, stable per class name):
   section-hero      -> g-070df0a
   section-for-whom  -> g-da1716f
   card-stat         -> g-760535a
   section-process   -> g-696a440
   section-reviews   -> g-cbf8926
   section-cases     -> g-f3babf4
   card-glass        -> g-cafc21c
   section-cta       -> g-9bc5641
*/

.g-070df0a, .g-da1716f, .g-696a440, .g-cbf8926, .g-f3babf4, .g-9bc5641 {
  padding-top: clamp(64px, 8vw, 128px) !important;
  padding-bottom: clamp(64px, 8vw, 128px) !important;
  padding-left: clamp(24px, 6vw, 96px) !important;
  padding-right: clamp(24px, 6vw, 96px) !important;
  row-gap: clamp(24px, 3vw, 40px) !important;
  column-gap: clamp(20px, 3vw, 32px) !important;
}

.g-760535a {
  background-color: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  padding: clamp(24px, 3vw, 32px) !important;
}

.g-cafc21c {
  background-color: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 30px !important;
  padding: clamp(24px, 3vw, 40px) !important;
  backdrop-filter: blur(12px) !important;
  overflow: hidden !important;
}


/* Round 3b: hide Hello Elementor's default page-title bar (leftover white strip above Hero) */
.page-header { display: none !important; }


/* ===== Round 4: card internal layout, heading hierarchy, spacing fixes ===== */

/* Section H2 titles (direct children of section flexboxes only, not nested card headings) */
.g-da1716f > .elementor-widget-e-heading,
.g-696a440 > .elementor-widget-e-heading,
.g-cbf8926 > .elementor-widget-e-heading,
.g-f3babf4 > .elementor-widget-e-heading,
.g-9bc5641 > .elementor-widget-e-heading {
  width: 100% !important;
  margin-bottom: clamp(24px, 3vw, 40px) !important;
}
.g-da1716f > .elementor-widget-e-heading h2,
.g-696a440 > .elementor-widget-e-heading h2,
.g-cbf8926 > .elementor-widget-e-heading h2,
.g-f3babf4 > .elementor-widget-e-heading h2,
.g-9bc5641 > .elementor-widget-e-heading h2 {
  font-size: clamp(28px, 3.5vw, 40px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Hero H1 */
.g-070df0a h1 {
  font-size: clamp(40px, 6vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

/* card-stat: icon/photo + value + label, vertical layout */
.g-760535a {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 16px !important;
}
.g-760535a > div:first-child {
  width: 56px !important;
  height: 56px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
.g-760535a > div:first-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  display: block !important;
}
.g-760535a h3 {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}
.g-760535a p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  opacity: 0.65 !important;
  margin: 0 !important;
}

/* card-glass: tag badge + title, vertical layout */
.g-cafc21c {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.g-cafc21c > div:first-child p {
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  opacity: 0.6 !important;
  margin: 0 !important;
}
.g-cafc21c h3 {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}


/* ===== Round 5: fixed selectors — atomic widgets render with NO wrapper divs on the published page (img/h2/h3/p are direct children) ===== */

/* card-stat icon sizing (image is a direct child, not wrapped) */
.g-760535a > img:first-child {
  width: 56px !important;
  height: 56px !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* card-glass tag badge (paragraph is a direct child, not wrapped) */
.g-cafc21c > p:first-child {
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  opacity: 0.6 !important;
  margin: 0 !important;
}

/* section H2 titles are direct children (not wrapped) */
.g-da1716f > h2,
.g-696a440 > h2,
.g-cbf8926 > h2,
.g-f3babf4 > h2,
.g-9bc5641 > h2 {
  width: 100% !important;
  font-size: clamp(28px, 3.5vw, 40px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0 0 clamp(24px, 3vw, 40px) 0 !important;
}

/* Hero: stack title above slider, full width */
.g-070df0a {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 32px !important;
}
.g-070df0a > h1,
.g-070df0a > div.elementor-widget {
  width: 100% !important;
}


/* Round 6: hardcoded fallback CSS for Sina Content Slider templates
   (Sina injects template markup without the Elementor atomic <style> content,
   so widget-level style settings from the editor don't apply on the front end.
   These rules target the stable per-element id classes directly.) */

/* Slide Card - Stat Style (template 34): flexbox e-2a1f4ec, image e-1220e8f, heading e-891addd, paragraph e-ef6c4b8 */
.sina-cs-item [class*="e-2a1f4ec"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 24px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}
.sina-cs-item img[class*="e-1220e8f"] {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  flex-shrink: 0 !important;
}
.sina-cs-item [class*="e-891addd"] {
  font-size: 22px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.sina-cs-item [class*="e-ef6c4b8"] {
  font-size: 14px !important;
  opacity: 0.65 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* Slide Card - Glass Style (template 37): flexbox e-fd1d773, tag e-67d5d04, title e-34b0588 */
.sina-cs-item [class*="e-fd1d773"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 24px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}
.sina-cs-item [class*="e-67d5d04"] {
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  opacity: 0.7 !important;
  margin: 0 !important;
}
.sina-cs-item [class*="e-34b0588"] {
  font-size: 24px !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
