/*
Theme Name:   Canberra Recycling Guru
Theme URI:    https://canberrarecyclingguru.com.au/
Description:  Hello Elementor child theme for the Canberra Recycling Guru one-page landing site. Supplies the hero graphic, brand polish, sticky header and paid-traffic performance tweaks. Elementor Free only — no Pro widgets, no HTML blocks.
Author:       Canberra Recycling Guru
Version:      1.0.0
Template:     hello-elementor
Text Domain:  canberra-recycling-guru
*/

/* =====================================================================
   1. BRAND TOKENS
   ===================================================================== */
:root {
  --crg-forest:      #043024;
  --crg-forest-deep: #02201A;
  --crg-forest-soft: #0E4634;
  --crg-lime:        #93BD33;
  --crg-lime-dark:   #7BA228;
  --crg-lime-soft:   #EAF2E9;
  --crg-yellow:      #F2C230;
  --crg-yellow-soft: #FDF6E0;
  --crg-ink:         #1C2B24;
  --crg-body:        #5F6B66;
  --crg-light:       #F5F7F6;
  --crg-cream:       #FAF5E9;
  --crg-border:      #E3E9E5;
  --crg-radius:      16px;
  --crg-shadow:      0 18px 44px rgba(4, 48, 36, .10);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   2. HERO  — background graphic lives with the theme, so there is
   nothing to upload. Swap the file in /assets/ to use your own photo.
   ===================================================================== */
.crg-hero {
  background-image: url('assets/hero-canberra-recycling.jpg') !important;
  background-size: cover !important;
  background-position: center right !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 1024px) { .crg-hero { background-position: 72% center !important; } }
@media (max-width: 767px)  { .crg-hero { background-position: 78% center !important; } }

.crg-hero-sub { max-width: 620px; }
.crg-hero-btns { width: auto; }
.crg-hero-b { width: auto !important; flex: 0 0 auto !important; }

/* trust strip under the hero */
.crg-strip {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 26px;
}
.crg-strip-col { flex: 1 1 190px; min-width: 0; }
.crg-strip-item .elementor-icon-box-wrapper {
  display: flex; align-items: center; gap: 11px; text-align: left;
}
.crg-strip-item .elementor-icon-box-icon { margin: 0 !important; }
.crg-strip-item .elementor-icon {
  width: auto; height: auto; background: transparent; padding: 0;
}
.crg-strip-item .elementor-icon-box-title { margin: 0; }

/* =====================================================================
   3. HEADER — sticky without Elementor Pro
   ===================================================================== */
.crg-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 99;
  box-shadow: 0 1px 0 rgba(4, 48, 36, .07);
  backdrop-filter: saturate(180%) blur(6px);
}
.crg-head-row > .e-con { min-width: 0; }
.crg-nav .elementor-icon-list-items { flex-wrap: wrap; gap: 0 6px; }
.crg-nav .elementor-icon-list-icon { display: none !important; }
.crg-nav .elementor-icon-list-item > a { padding: 6px 10px; border-radius: 8px; transition: background .2s, color .2s; }
.crg-nav .elementor-icon-list-item > a:hover { background: var(--crg-lime-soft); }

/* Let columns absorb any leftover space so rows end flush */
.crg-row-fill > .e-con { flex-grow: 1; }

/* =====================================================================
   4. LAYOUT SAFETY — keeps the multi-column rows honest
   ===================================================================== */
.e-con > .e-con { min-width: 0; }
.crg-card, .crg-item, .crg-callout, .crg-splogo, .crg-stat { min-width: 0; }

/* =====================================================================
   5. CARDS
   ===================================================================== */
.crg-card, .crg-item, .crg-splogo {
  transition: transform .25s ease, box-shadow .25s ease;
}
.crg-card:hover, .crg-item:hover, .crg-splogo:hover {
  transform: translateY(-4px);
  box-shadow: var(--crg-shadow);
}
.crg-stat { transition: transform .25s ease; }
.crg-stat:hover { transform: translateY(-3px); }
.crg-stats-band { position: relative; z-index: 2; }

/* =====================================================================
   6. ICON BOXES — soft chip behind each icon
   ===================================================================== */
.crg-iconbox .elementor-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(147, 189, 51, .14);
  transition: background .25s ease, transform .25s ease;
}
.crg-item:hover .elementor-icon,
.crg-card:hover .elementor-icon { transform: scale(1.06); }

/* dark-background variants get a lighter chip */
.crg-card-free .elementor-icon,
.crg-card-paid .elementor-icon,
.crg-callout-dark .elementor-icon { background: rgba(255, 255, 255, .10); }
.crg-callout-yellow .elementor-icon { background: rgba(242, 194, 48, .20); }
.crg-card-no .elementor-icon { background: rgba(192, 70, 58, .12); }

/* the hero strip and footer lists keep bare icons */
.crg-strip-item .elementor-icon { background: transparent !important; }

/* =====================================================================
   7. LISTS
   ===================================================================== */
.crg-list .elementor-icon-list-item { align-items: flex-start; }
.crg-list .elementor-icon-list-icon { margin-top: .32em; }
.crg-footlist .elementor-icon-list-item > a { transition: color .2s, padding-left .2s; }
.crg-footlist .elementor-icon-list-item > a:hover { padding-left: 4px; }

/* =====================================================================
   8. BUTTONS
   ===================================================================== */
.crg-btn .elementor-button {
  transition: transform .22s ease, background-color .22s ease, color .22s ease, box-shadow .22s ease;
  font-weight: 600;
}
.crg-btn .elementor-button:hover { transform: translateY(-2px); }
.crg-btn .elementor-button-icon svg,
.crg-btn .elementor-button-icon i { transition: transform .22s ease; }
.crg-btn .elementor-button:hover .elementor-button-icon i,
.crg-btn .elementor-button:hover .elementor-button-icon svg { transform: translateX(3px); }

/* =====================================================================
   9. ACCORDION (FAQ)
   ===================================================================== */
.crg-accordion .elementor-accordion-item {
  border: 0 !important;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(4, 48, 36, .07);
}
.crg-accordion .elementor-tab-title { transition: background .2s ease; }
.crg-accordion .elementor-tab-title:hover { background: var(--crg-lime-soft) !important; }
.crg-accordion .elementor-tab-title.elementor-active { background: var(--crg-lime-soft) !important; }
.crg-accordion .elementor-tab-content { border: 0 !important; }

/* =====================================================================
   10. SPONSORS
   ===================================================================== */
.crg-sponsor-row { align-items: center; }
.crg-sponsor-logo { align-self: stretch; justify-content: center; }
.crg-sponsor-logo .elementor-widget-image { width: 100%; text-align: center; }
.crg-sponsor-logo img { max-width: 100%; height: auto; margin: 0 auto; }
.crg-sponsor-note { opacity: .92; }
.crg-wordmark-rule .elementor-divider { padding-block: 0; }
.crg-wordmark-rule .elementor-divider-separator { width: 56px !important; margin: 0 auto; }
.crg-splogo { display: flex; align-items: center; justify-content: center; }
.crg-splogo img { max-width: 100%; height: auto; }

/* Logo widgets that have not had an image chosen yet stay visibly "to do"
   rather than looking like a broken layout. */
.crg-img img[src*="placeholder"] { opacity: .45; }

/* =====================================================================
   11. TYPOGRAPHY RHYTHM
   ===================================================================== */
.crg-h2   { max-width: 800px; }
.crg-lede { max-width: 730px; }
.crg-head-center { width: 100%; }
.crg-h2-center, .crg-lede-center { margin-left: auto; margin-right: auto; text-align: center; }
.crg-eyebrow { display: block; }
.crg-divider .elementor-divider { padding-block: 2px; }
.crg-copyright { max-width: 780px; margin: 0 auto; }

/* =====================================================================
   12. ACCESSIBILITY
   ===================================================================== */
a:focus-visible,
.elementor-button:focus-visible,
.elementor-tab-title:focus-visible {
  outline: 3px solid var(--crg-lime);
  outline-offset: 2px;
  border-radius: 6px;
}

/* =====================================================================
   13. RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .crg-hero-copy { width: 100% !important; }
  .crg-sponsor-row { gap: 30px !important; }
}

@media (max-width: 767px) {
  .crg-header { position: static; }
  .crg-head-left, .crg-head-mid, .crg-head-right {
    width: 100% !important; align-items: center !important;
  }
  .crg-head-left .elementor-widget-image { text-align: center; width: 100%; }
  .crg-nav .elementor-icon-list-items { justify-content: center; gap: 2px 4px; }
  .crg-nav .elementor-icon-list-item { font-size: 13px; }
  .crg-head-cta .elementor-button { width: 100%; justify-content: center; }

  .crg-strip { gap: 12px 18px !important; }
  .crg-strip-col { flex: 1 1 44% !important; width: auto !important; }
  .crg-strip-item .elementor-icon-box-title { font-size: 13px !important; }

  .crg-hero-b .elementor-button { width: 100%; justify-content: center; }
  .crg-stat { text-align: left; }
  .crg-sponsor-logo { order: -1; }
  .crg-splogo { min-height: 120px; }
}

/* =====================================================================
   14. PRINT — people do print bin rules and stick them on the fridge
   ===================================================================== */
@media print {
  .crg-header, .crg-hero, .crg-sponsor, .crg-sec-sponsors, .crg-footer { display: none !important; }
  .e-con { background: #fff !important; }
  * { color: #000 !important; box-shadow: none !important; }
}
