/*
Theme Name: Passive First Child Theme
Theme URI: https://passivefirst.com.au
Description: Child theme for Passive First - Firestop Professionals. Elementor-compatible.
Author: Passive First
Author URI: https://passivefirst.com.au
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: passivefirst-child
*/

/* ============================================================
   PASSIVE FIRST BRAND COLOURS
   ─────────────────────────────
   Primary Blue  : #1B3A6B   (headers, nav, CTA buttons)
   Accent Red    : #C0392B   (highlights, fire-theme accents)
   Light Blue    : #2E6DA4   (secondary buttons, links)
   White         : #FFFFFF   (backgrounds, card faces)
   Off-White     : #F5F7FA   (section backgrounds)
   Dark Text     : #1A202C   (body copy)
   Mid Grey      : #4A5568   (secondary text)
   Border Grey   : #E2E8F0   (dividers, card borders)
   ============================================================ */

:root {
  --pf-primary:     #1B3A6B;
  --pf-primary-dk:  #122848;
  --pf-accent:      #C0392B;
  --pf-accent-lt:   #E74C3C;
  --pf-blue-mid:    #2E6DA4;
  --pf-white:       #FFFFFF;
  --pf-offwhite:    #F5F7FA;
  --pf-text-dark:   #1A202C;
  --pf-text-mid:    #4A5568;
  --pf-border:      #E2E8F0;
  --pf-shadow:      0 4px 24px rgba(27,58,107,0.10);
  --pf-radius:      6px;
  --pf-font:        'Inter', 'Segoe UI', sans-serif;
}

/* ─── Global resets ─── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--pf-font);
  color: var(--pf-text-dark);
  background: var(--pf-white);
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  color: var(--pf-primary);
  font-weight: 700;
  line-height: 1.2;
}

p { line-height: 1.75; color: var(--pf-text-mid); }

a { color: var(--pf-blue-mid); transition: color .2s; }
a:hover { color: var(--pf-accent); text-decoration: none; }

/* ─── Navigation ─── */
.elementor-nav-menu a,
header .site-navigation a {
  color: var(--pf-white) !important;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .2s;
}
.elementor-nav-menu a:hover { color: var(--pf-accent-lt) !important; }

/* ─── Buttons ─── */
.pf-btn-primary,
.elementor-button.pf-btn-primary {
  background: var(--pf-accent);
  color: var(--pf-white);
  border: 2px solid var(--pf-accent);
  border-radius: var(--pf-radius);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.pf-btn-primary:hover { background: #a93226; border-color: #a93226; transform: translateY(-2px); }

.pf-btn-secondary,
.elementor-button.pf-btn-secondary {
  background: transparent;
  color: var(--pf-white);
  border: 2px solid var(--pf-white);
  border-radius: var(--pf-radius);
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
  display: inline-block;
}
.pf-btn-secondary:hover {
  background: var(--pf-white);
  color: var(--pf-primary);
}

/* ─── Hero / Page Banner ─── */
.pf-hero {
  background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dk) 100%);
  position: relative;
  overflow: hidden;
}
.pf-hero::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(192,57,43,.12);
  pointer-events: none;
}
.pf-hero .elementor-heading-title { color: var(--pf-white) !important; }
.pf-hero p, .pf-hero .elementor-widget-text-editor p { color: rgba(255,255,255,.85) !important; }

/* ─── Section titles ─── */
.pf-section-label {
  color: var(--pf-accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

/* ─── Service cards ─── */
.pf-service-card {
  background: var(--pf-white);
  border: 1px solid var(--pf-border);
  border-radius: 8px;
  padding: 36px 28px;
  box-shadow: var(--pf-shadow);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.pf-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(27,58,107,.16);
}
.pf-service-card__icon {
  width: 60px;
  height: 60px;
  background: var(--pf-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pf-service-card__icon svg,
.pf-service-card__icon i { color: var(--pf-white); font-size: 1.4rem; }
.pf-service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pf-service-card p { font-size: .95rem; margin: 0; }

/* ─── Stats strip ─── */
.pf-stats-strip {
  background: var(--pf-primary);
  padding: 56px 0;
}
.pf-stat {
  text-align: center;
  color: var(--pf-white);
}
.pf-stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pf-white);
  display: block;
  line-height: 1;
}
.pf-stat__number span { color: var(--pf-accent-lt); }
.pf-stat__label {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: 6px;
  display: block;
  letter-spacing: .5px;
}

/* ─── Testimonial cards ─── */
.pf-testimonial {
  background: var(--pf-white);
  border-left: 4px solid var(--pf-accent);
  border-radius: var(--pf-radius);
  padding: 28px 24px;
  box-shadow: var(--pf-shadow);
}
.pf-testimonial__stars { color: #F59E0B; margin-bottom: 12px; }
.pf-testimonial__text { font-style: italic; color: var(--pf-text-mid); font-size: .97rem; line-height: 1.7; }
.pf-testimonial__author { margin-top: 16px; font-weight: 700; color: var(--pf-primary); }
.pf-testimonial__role { font-size: .85rem; color: var(--pf-text-mid); }

/* ─── Accent divider ─── */
.pf-divider {
  width: 56px;
  height: 4px;
  background: var(--pf-accent);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ─── CTA Band ─── */
.pf-cta-band {
  background: linear-gradient(135deg, var(--pf-accent) 0%, #922b21 100%);
  padding: 72px 0;
  text-align: center;
}
.pf-cta-band h2 { color: var(--pf-white); }
.pf-cta-band p  { color: rgba(255,255,255,.9); font-size: 1.1rem; }

/* ─── Process steps ─── */
.pf-step {
  position: relative;
  padding-left: 72px;
  margin-bottom: 40px;
}
.pf-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  background: var(--pf-primary);
  color: var(--pf-white);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf-step h4 { color: var(--pf-primary); margin-bottom: 6px; }
.pf-step p  { margin: 0; }

/* ─── Accordion / FAQ ─── */
.pf-faq details {
  border: 1px solid var(--pf-border);
  border-radius: var(--pf-radius);
  margin-bottom: 12px;
  padding: 0;
}
.pf-faq summary {
  background: var(--pf-offwhite);
  padding: 16px 20px;
  font-weight: 600;
  color: var(--pf-primary);
  cursor: pointer;
  border-radius: var(--pf-radius);
  list-style: none;
}
.pf-faq summary:hover { background: #eaf0f9; }
.pf-faq details[open] summary { border-radius: var(--pf-radius) var(--pf-radius) 0 0; }
.pf-faq details p { padding: 16px 20px; margin: 0; }

/* ─── Footer ─── */
.pf-footer {
  background: var(--pf-primary-dk);
  color: rgba(255,255,255,.8);
}
.pf-footer h4 { color: var(--pf-white); margin-bottom: 16px; font-size: 1rem; }
.pf-footer a { color: rgba(255,255,255,.7); }
.pf-footer a:hover { color: var(--pf-accent-lt); }
.pf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin-top: 40px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ─── Utility ─── */
.pf-offwhite-bg  { background: var(--pf-offwhite) !important; }
.pf-primary-bg   { background: var(--pf-primary) !important; }
.pf-text-white   { color: var(--pf-white) !important; }
.pf-text-center  { text-align: center; }

/* ─── Responsive Grid Helper Classes ─── */
/* Applied via class="pf-resp-grid" on inline grid containers */
.pf-resp-grid { display: grid; }

@media (max-width: 1024px) {
  /* Force 3-col grids to 2-col on tablet */
  .pf-resp-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .elementor-widget-text-editor div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .pf-service-card { padding: 28px 22px; }
  .pf-step { margin-bottom: 32px; }
}

/* ─── Responsive: Mobile (≤768px) ─── */
@media (max-width: 768px) {
  /* Typography scaling — !important needed to override Elementor inline font-size */
  h1,
  .elementor-heading-title,
  .elementor-widget-heading .elementor-heading-title,
  .elementor-element h1.elementor-heading-title {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  h2,
  h2.elementor-heading-title { font-size: 1.5rem !important; }
  h3 { font-size: 1.15rem !important; }

  /* Hero subtext — reduce on mobile */
  .elementor-widget-text-editor p[style*="font-size:1.15rem"],
  .elementor-widget-text-editor p[style*="font-size:1.2rem"] {
    font-size: 1rem !important;
  }

  /* Hero sections */
  .pf-hero { padding: 60px 0; }
  .elementor-section[data-id*="hero"] { padding: 60px 16px !important; }

  /* Stats strip */
  .pf-stat__number { font-size: 2.2rem; }

  /* Process steps */
  .pf-step { padding-left: 56px; }
  .pf-step__num { width: 44px; height: 44px; font-size: 1rem; }

  /* Force ALL inline CSS grids to single column on mobile */
  .pf-resp-grid,
  .pf-resp-grid-3,
  .elementor-widget-text-editor div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Force all inline flex rows to stack */
  .elementor-widget-text-editor div[style*="display:flex"],
  .elementor-widget-text-editor div[style*="display: flex"] {
    flex-direction: column;
  }

  /* Inline grid items – full width on mobile */
  .elementor-widget-text-editor div[style*="display:grid"] > div {
    min-width: 100% !important;
  }

  /* Card components */
  .pf-service-card { padding: 24px 18px; }
  .pf-testimonial { padding: 20px 18px; }

  /* CTA band tighter padding */
  .pf-cta-band { padding: 48px 16px; }

  /* Footer */
  .pf-footer { padding: 40px 16px; }

  /* Reduce section padding globally on mobile */
  .elementor-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Buttons – full width on mobile */
  .pf-btn-primary,
  .pf-btn-secondary,
  .elementor-button {
    width: 100%;
    text-align: center;
  }

  /* Inline checklist items – ensure they don't overflow */
  .elementor-widget-text-editor ul {
    padding-left: 0 !important;
  }

  .elementor-widget-text-editor li {
    word-break: break-word;
  }

  /* Stats 2x2 grid override for inline grid */
  .elementor-widget-text-editor div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Responsive: Small Mobile (≤480px) ─── */
@media (max-width: 480px) {
  h1,
  .elementor-heading-title,
  .elementor-widget-heading .elementor-heading-title,
  .elementor-element h1.elementor-heading-title {
    font-size: 1.5rem !important;
  }
  h2,
  h2.elementor-heading-title { font-size: 1.3rem !important; }

  .pf-stat__number { font-size: 1.8rem; }
  .pf-stat__label { font-size: .8rem; }

  /* Process steps – even tighter */
  .pf-step { padding-left: 48px; margin-bottom: 28px; }
  .pf-step__num { width: 38px; height: 38px; font-size: .9rem; }

  /* Tighter section padding */
  .elementor-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}
