/*
Theme Name:  Hello Elementor Child
Template:    hello-elementor
Description: Child theme for SMS Group WA — Starling Mechanical Services
Version:     1.0.0
*/

/* =========================================================
   DESIGN TOKENS
   All hex values live ONLY here.
   Use var() everywhere else.
   ========================================================= */

:root {

  /* --- Brand --- */
  --color-primary:      #F9C10E;
  --color-primary-dark: #D4A40C;

  /* --- Backgrounds --- */
  --color-bg:      #FFFFFF;
  --color-bg-dark: #080808;
  --color-bg-alt:  #171717;
  --color-bg-card: #171717;
  --color-border:  #4D4D4D;
  --color-divider-light: rgba(255, 255, 255, 0.24); /* dividers/borders on dark sections */
  --color-divider-dark:  rgba(8, 8, 8, 0.32);       /* dividers on light sections */

  /* --- Text --- */
  --color-text:        #080808;
  --color-text-light:  #FFFFFF;
  --color-text-muted:  #B3B3B3;

  /* --- Overlays --- */
  --color-overlay-nav:   rgba(8, 8, 8, 0.95);
  --color-overlay-badge: #F9C10E;

  /* --- CTA Section --- */
  --color-cta: #F9C10E;

  /* --- Utility --- */
  --color-white:            #FFFFFF;
  --color-black:            #000000;
  --color-near-black:       #080808;
  --color-near-black-muted: rgba(8, 8, 8, 0.70);
  --color-white-hover:      #ececec;
  --color-star:             #F9AB00;
  --color-google:           #4285F4;

  /* --- Typography --- */
  --font-heading: "Roboto Condensed", sans-serif;
  --font-body:    "Roboto", sans-serif;

  /* --- Font Sizes (derived from design — heading scale 21/27/36/47/88/96) --- */
  --font-size-xs:   12px;
  --font-size-sm:   14px;
  --font-size-base: 16px;
  --font-size-md:   18px;
  --font-size-lg:   21px;
  --font-size-xl:   27px;
  --font-size-2xl:  36px;
  --font-size-3xl:  47px;
  --font-size-4xl:  88px;
  --font-size-5xl:  96px;

  /* --- Line Heights --- */
  --line-height-tight:   1.15;
  --line-height-heading: 1.20;
  --line-height-body:    1.60;

  /* --- Spacing Scale --- */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  /* --- Layout --- */
  --max-width:       1440px;
  --padding-desktop: 80px;
  --padding-tablet:  40px;
  --padding-mobile:  20px;

  /* --- Border Radius --- */
  --border-radius-sm: 4px;
  --border-radius:    8px;
  --border-radius-lg: 12px;

  /* --- Shadow --- */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.50);

}

/* =========================================================
   BASE OVERRIDES
   ========================================================= */

html,
body {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

/* Prevents e-child containers from overflowing their parent
   at viewports between 768px and the content max-width */
.e-con {
  max-width: 100%;
}

/* =========================================================
   HEADER NAV (template 1114) — keep the menu on a single row
   ========================================================= */

.sms-nav.elementor-widget-nav-menu .elementor-nav-menu {
  flex-wrap: nowrap;
}

.sms-nav .elementor-nav-menu > li > a {
  white-space: nowrap;
}

/* phone block (sibling after the nav) hugs its content so the menu keeps width */
.sms-nav ~ .e-con {
  flex: 0 0 auto;
  max-width: 440px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-accent {
  color: var(--color-primary);
}

/* =========================================================
   BADGE PILLS (shared across sections)
   All badge pills use a Heading widget with Custom CSS on
   .elementor-heading-title for the dot via ::before.
   ========================================================= */

/* =========================================================
   SERVICE CARDS (Our Services section)
   ========================================================= */

.sms-service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* uniform service-card images (class on the image widget — container classes don't render).
   Needs `.elementor` prefix to outrank Elementor's `.elementor img{height:auto}`. */
.elementor .sms-svc-img img,
.elementor .sms-service-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* card titles uppercase (match design) */
.sms-service-card .elementor-icon-box-title {
  text-transform: uppercase;
}

/* =========================================================
   OUR STANDARDS — 5 equal items with vertical dividers
   ========================================================= */
.sms-std-grid > * {
  flex: 1 1 0;
}

.sms-std-grid > * + * {
  border-left: 1px solid rgba(8, 8, 8, 0.20);
}

@media (max-width: 1024px) {
  .sms-std-grid > * {
    flex: 1 1 33%;
  }
  .sms-std-grid > * + * {
    border-left: none;
  }
}

.sms-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.60);
}

/* Tablet (2-per-row): border-bottom only */
@media (max-width: 1024px) {
  .sms-service-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .sms-services-grid .sms-service-card:last-child {
    border-bottom: none;
  }
}

/* Mobile (1-per-column): border-bottom only, last card no border */
@media (max-width: 767px) {
  .sms-service-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .sms-services-grid .sms-service-card:last-child {
    border-bottom: none;
  }
}

/* =========================================================
   CTA BANNER SECTION
   ========================================================= */

.cta-accent {
  color: var(--color-primary);
}

.phone-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-primary);
  color: var(--color-bg-dark);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: var(--border-radius);
  min-width: 220px;
}

.phone-cta-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-bg-dark);
  text-decoration: none;
}

.phone-cta-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.phone-cta-text {
  display: flex;
  flex-direction: column;
}

.phone-cta-number {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.phone-cta-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
