/*
Theme Name:   Celtic Green Energy Child
Theme URI:    https://celticgreenenergy.co.uk
Description:  Child theme for Celtic Green Energy — based on Hello Elementor. Carries CGE brand typography, colour tokens and base styles.
Author:       Celtic Green Energy
Author URI:   https://celticgreenenergy.co.uk
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  cge-child
*/

/* ============================================================
   0. CGE BRAND TOKENS
   These CSS custom properties are used throughout Elementor
   and the rest of the stylesheet. Change a value here and it
   updates everywhere on the site.
   ============================================================ */

:root {
  /* Colours */
  --cge-green:        #3db54a;
  --cge-green-dark:   #2e9438;
  --cge-green-light:  #eaf7ec;
  --cge-navy:         #1a2535;
  --cge-navy-light:   #243044;
  --cge-white:        #ffffff;
  --cge-off-white:    #f5f5f5;
  --cge-mid-grey:     #e8e8e8;
  --cge-text-dark:    #222222;
  --cge-text-mid:     #444444;
  --cge-text-light:   #666666;
  --cge-text-muted:   #8fa5b8;

  /* Typography */
  --cge-font:         'Montserrat', Arial, sans-serif;
  --cge-font-size-xs: 11px;
  --cge-font-size-sm: 13px;
  --cge-font-size-md: 15px;
  --cge-font-size-lg: 18px;
  --cge-font-size-xl: 24px;
  --cge-font-size-2xl: 30px;
  --cge-font-size-3xl: 42px;

  /* Spacing */
  --cge-radius-sm:  4px;
  --cge-radius-md:  8px;
  --cge-radius-lg: 12px;

  /* Shadows */
  --cge-shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
  --cge-shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --cge-shadow-green: 0 8px 24px rgba(61,181,74,0.18);
}

/* ============================================================
   1. BASE / RESET
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-md);
  color: var(--cge-text-dark);
  line-height: 1.65;
  background: var(--cge-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   2. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cge-font);
  font-weight: 800;
  line-height: 1.2;
  color: var(--cge-text-dark);
  text-wrap: pretty;
  margin-top: 0;
}

h1 { font-size: var(--cge-font-size-3xl); }
h2 { font-size: var(--cge-font-size-2xl); }
h3 { font-size: var(--cge-font-size-xl); }
h4 { font-size: var(--cge-font-size-lg); }

p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.75;
  text-wrap: pretty;
}

a {
  color: var(--cge-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cge-green-dark);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

strong {
  font-weight: 700;
  color: var(--cge-text-dark);
}

/* ============================================================
   3. BUTTONS
   ============================================================ */

.cge-btn,
.elementor-button,
.wp-block-button__link,
button[type="submit"] {
  display: inline-block;
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-md);
  font-weight: 700;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--cge-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}

/* Primary green button */
.cge-btn--primary,
.elementor-button.elementor-size-md {
  background: var(--cge-green);
  color: var(--cge-white) !important;
}

.cge-btn--primary:hover,
.elementor-button.elementor-size-md:hover {
  background: var(--cge-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--cge-shadow-green);
  color: var(--cge-white) !important;
}

/* Ghost / outline button */
.cge-btn--outline {
  background: transparent;
  color: var(--cge-green) !important;
  border: 2px solid var(--cge-green);
}

.cge-btn--outline:hover {
  background: var(--cge-green);
  color: var(--cge-white) !important;
}

/* ============================================================
   4. FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea,
.elementor-field-group input,
.elementor-field-group select,
.elementor-field-group textarea {
  width: 100%;
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  color: var(--cge-text-dark);
  background: #fafafa;
  border: 1.5px solid #d8dde3;
  border-radius: var(--cge-radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus,
.elementor-field-group input:focus,
.elementor-field-group select:focus,
.elementor-field-group textarea:focus {
  outline: none;
  border-color: var(--cge-green);
  background: var(--cge-white);
}

.elementor-field-group label {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  font-weight: 600;
  color: var(--cge-text-dark);
  margin-bottom: 6px;
  display: block;
}

.elementor-form .elementor-button {
  background: var(--cge-green);
  color: var(--cge-white);
  font-family: var(--cge-font);
  font-weight: 700;
  font-size: var(--cge-font-size-md);
  border-radius: var(--cge-radius-sm);
  padding: 14px 28px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.elementor-form .elementor-button:hover {
  background: var(--cge-green-dark);
}

/* ============================================================
   5. ELEMENTOR OVERRIDES — SECTIONS & CONTAINERS
   ============================================================ */

/* Full-width sections stretch edge to edge */
.elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
  padding: 0;
}

/* Boxed sections max-width */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1200px;
}

/* ============================================================
   6. ELEMENTOR WIDGET OVERRIDES
   ============================================================ */

/* Headings */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4 {
  font-family: var(--cge-font);
  font-weight: 800;
  line-height: 1.2;
}

/* Text editor */
.elementor-widget-text-editor p {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-md);
  line-height: 1.75;
  color: var(--cge-text-mid);
}

/* Icon boxes */
.elementor-widget-icon-box .elementor-icon-box-title {
  font-family: var(--cge-font);
  font-weight: 700;
  color: var(--cge-text-dark);
}

.elementor-widget-icon-box .elementor-icon-box-description {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  color: var(--cge-text-light);
  line-height: 1.65;
}

.elementor-widget-icon-box .elementor-icon {
  color: var(--cge-green);
}

/* Icon list */
.elementor-widget-icon-list .elementor-icon-list-item .elementor-icon-list-text {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  color: var(--cge-text-mid);
  line-height: 1.65;
}

.elementor-widget-icon-list .elementor-icon-list-icon {
  color: var(--cge-green);
}

/* Counter widget */
.elementor-widget-counter .elementor-counter-number-wrapper {
  font-family: var(--cge-font);
  font-weight: 900;
  color: var(--cge-green);
}

.elementor-widget-counter .elementor-counter-title {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  color: var(--cge-text-mid);
  font-weight: 600;
}

/* Divider */
.elementor-widget-divider .elementor-divider-separator {
  border-color: var(--cge-green);
}

/* ============================================================
   7. NAVIGATION (Hello Elementor header)
   ============================================================ */

.site-header {
  background: var(--cge-navy);
  padding: 0;
}

.site-header .site-branding {
  display: flex;
  align-items: center;
}

/* Nav links */
.main-navigation a,
.elementor-nav-menu a {
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
  font-weight: 500;
  color: #ccd4de !important;
  padding: 6px 12px;
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.elementor-nav-menu a:hover,
.main-navigation .current-menu-item > a,
.elementor-nav-menu .current-menu-item > a {
  color: var(--cge-green) !important;
}

/* Nav CTA button */
.nav-cta a,
.elementor-nav-menu .menu-item.cta > a {
  background: var(--cge-green) !important;
  color: var(--cge-white) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: var(--cge-radius-sm) !important;
  transition: background 0.2s ease !important;
}

.nav-cta a:hover,
.elementor-nav-menu .menu-item.cta > a:hover {
  background: var(--cge-green-dark) !important;
}

/* Hamburger (mobile) */
.elementor-nav-menu--toggle .elementor-nav-menu--indicator {
  color: var(--cge-white);
}

/* ============================================================
   8. UTILITY CLASSES
   (Add these as Custom CSS classes in Elementor elements)
   ============================================================ */

/* Backgrounds */
.bg-navy   { background-color: var(--cge-navy) !important; }
.bg-green  { background-color: var(--cge-green) !important; }
.bg-grey   { background-color: var(--cge-off-white) !important; }
.bg-white  { background-color: var(--cge-white) !important; }

/* Text colours */
.text-green  { color: var(--cge-green) !important; }
.text-white  { color: var(--cge-white) !important; }
.text-muted  { color: var(--cge-text-muted) !important; }
.text-navy   { color: var(--cge-navy) !important; }

/* Section label pill (e.g. "Battery Storage for Business") */
.section-label {
  display: inline-block;
  color: var(--cge-green);
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Green divider accent line */
.cge-divider {
  display: block;
  width: 50px;
  height: 4px;
  background: var(--cge-green);
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* Card */
.cge-card {
  background: var(--cge-white);
  border-radius: var(--cge-radius-md);
  box-shadow: var(--cge-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.cge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cge-shadow-green);
}

/* Dark card (for Solis / savings sections on navy bg) */
.cge-card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--cge-radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cge-card--dark:hover {
  border-color: rgba(61,181,74,0.5);
  background: rgba(61,181,74,0.07);
}

/* Stat box */
.cge-stat {
  border: 2px solid rgba(61,181,74,0.3);
  border-radius: var(--cge-radius-md);
  padding: 32px 24px;
  text-align: center;
  background: rgba(255,255,255,0.04);
}

.cge-stat__value {
  font-family: var(--cge-font);
  font-size: 34px;
  font-weight: 900;
  color: var(--cge-white);
  line-height: 1.1;
  margin-bottom: 6px;
}

.cge-stat__value span { color: var(--cge-green); }

.cge-stat__label {
  color: var(--cge-text-muted);
  font-size: var(--cge-font-size-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cge-stat__desc {
  color: var(--cge-text-muted);
  font-size: var(--cge-font-size-sm);
  line-height: 1.6;
}

/* Case study stat row */
.cge-case-stat {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--cge-mid-grey);
}

.cge-case-stat__val {
  font-family: var(--cge-font);
  font-size: 20px;
  font-weight: 900;
  color: var(--cge-green);
}

.cge-case-stat__lbl {
  font-size: 11px;
  color: var(--cge-text-light);
  font-weight: 600;
}

/* Credential badge */
.cge-cred {
  background: var(--cge-white);
  border-radius: var(--cge-radius-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--cge-shadow-sm);
}

.cge-cred__num {
  color: var(--cge-green);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   9. FOOTER
   ============================================================ */

.site-footer,
.elementor-location-footer {
  background: var(--cge-navy);
  color: #7a95ad;
  font-family: var(--cge-font);
  font-size: var(--cge-font-size-sm);
}

.site-footer a,
.elementor-location-footer a {
  color: #7a95ad;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.elementor-location-footer a:hover {
  color: var(--cge-green);
}

.site-footer h4,
.elementor-location-footer h4 {
  color: var(--cge-white);
  font-size: var(--cge-font-size-sm);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ============================================================
   10. TOP INFO BAR
   ============================================================ */

.cge-top-bar {
  background: var(--cge-navy);
  color: #aab4c0;
  font-size: 12.5px;
  padding: 7px 0;
  text-align: center;
  font-family: var(--cge-font);
}

.cge-top-bar a {
  color: var(--cge-green);
  text-decoration: none;
  font-weight: 600;
}

/* ============================================================
   11. PHONE STRIP
   ============================================================ */

.cge-phone-strip {
  background: var(--cge-green);
  padding: 12px 24px;
  text-align: center;
  font-family: var(--cge-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--cge-white);
}

.cge-phone-strip a {
  color: var(--cge-white);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}

@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }

  .elementor-column {
    width: 100% !important;
  }

  .cge-case-stat {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cge-stat__value {
    font-size: 26px;
  }
}
