/*
 Theme Name: PGE Wireframe (Elementor‑ready)
 Theme URI: https://example.com/
 Description: Child theme of Hello Elementor built from the Public Grid Evaluations mockup.  Provides a clean wireframe with predefined pages, navigation and styling and is fully editable with Elementor.
 Author: Auto‑generated
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: pge-wireframe
*/

/*
 * Global color palette derived from the original mockup.  These variables are
 * used throughout the theme to ensure a consistent look and feel.  When
 * editing the site in Elementor you should also define these colours in
 * Elementor > Site Settings > Global Colours using the same names and
 * values.
 */
:root{
  --pg-deep:  #345948; /* dark green background used on hero, header and footer */
  --pg-gold:  #F2994B; /* primary accent colour */
  --pg-teal:  #266F8C; /* secondary accent colour */
  --pg-ivory: #F4F0E5; /* off‑white used for text and subtle backgrounds */
  --pg-ink:   #24322C; /* dark text colour */
  --pg-bg:    #EEF3F1; /* light grey page background */
}

/* Reset some basic elements to provide a clean canvas.  Since this theme is
 * intended to be used with the Hello Elementor parent theme it avoids
 * excessive styling and instead focuses on the colours and layout used
 * throughout the mockup.
 */
body{
  background: var(--pg-bg);
  color: var(--pg-ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

/* Buttons */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:8px;
  font-weight:800;
  letter-spacing:.02em;
  border:2px solid transparent;
  cursor:pointer;
  transition:background .2s ease,color .2s ease,border .2s ease;
  text-decoration:none;
}
.btn-primary{background:var(--pg-gold);color:#1e1e1e;}
.btn-primary:hover{background:#e28a3e;}
.btn-accent{background:var(--pg-teal);color:#fff;}
.btn-accent:hover{background:#1f5a75;}
.btn-outline{
  border-color: var(--pg-ivory);
  color: var(--pg-ivory);
  background: transparent;
}
.btn-outline:hover{
  background: rgba(255,255,255,0.1);
}

/* ZIP checker styles */
.zip-form{
  display:flex;
  gap:8px;
  margin-top:16px;
}
.zip-form input{
  border:1px solid #ccc;
  border-radius:4px;
  padding:8px 10px;
  width:120px;
  font-size:16px;
}
.zip-result{
  font-weight:800;
  margin-top:8px;
}
.map-placeholder{
  height:220px;
  background:#dcdcdc;
  border:1px dashed #999;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  color:#666;
}

/* Header and navigation styling */
.pge-header{
  background: var(--pg-deep);
  color: var(--pg-ivory);
  padding:10px 0;
}
.pge-header .container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding:0 20px;
}
.pge-header img{
  max-height:60px;
}
.pge-header nav{
  flex:1;
  text-align:center;
}
.pge-header .pge-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:24px;
  justify-content:center;
}
.pge-header .pge-menu li{
  display:inline-block;
}
.pge-header .pge-menu li a{
  color: var(--pg-ivory);
  font-weight:600;
  text-decoration:none;
  padding:8px 4px;
  position:relative;
}
.pge-header .pge-menu li a:hover,
.pge-header .pge-menu li a:focus{
  border-bottom:2px solid var(--pg-gold);
}
.pge-header .phone{
  font-weight:700;
}
.pge-header .phone a{
  color: var(--pg-ivory);
  text-decoration:none;
}

/* Mobile menu toggle */
.menu-toggle{
  display:none;
  background:none;
  border:2px solid var(--pg-ivory);
  border-radius:4px;
  color: var(--pg-ivory);
  padding:6px 10px;
  font-size:16px;
  cursor:pointer;
}
@media(max-width:980px){
  .pge-header .pge-menu{
    display:none;
    flex-direction:column;
    gap:12px;
    background: var(--pg-deep);
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:20px;
    z-index:100;
  }
  .pge-header .pge-menu.open{
    display:flex;
  }
  .menu-toggle{
    display:block;
  }
  .pge-header nav{
    text-align:right;
  }
}

/* Footer styling */
.pge-footer{
  background: var(--pg-deep);
  color: var(--pg-ivory);
  padding-top:26px;
}
.pge-footer .container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  padding:0 20px;
  gap:20px;
}
.pge-footer .footer-logo img{
  max-height:50px;
}
.pge-footer nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}
.pge-footer nav a{
  color: var(--pg-ivory);
  text-decoration:none;
}
.pge-footer nav a:hover{
  text-decoration:underline;
}
.pge-footer .contact{
  font-size:14px;
}
.pge-footer .contact a{
  color: var(--pg-ivory);
}
.pge-footer-bottom{
  background: var(--pg-deep);
  border-top:1px solid rgba(255,255,255,0.2);
  padding:12px 20px;
  text-align:center;
  font-size:14px;
  margin-top:12px;
}

/* Basic page structure */
.site-main{
  max-width:960px;
  margin:0 auto;
  padding:40px 20px;
}

/* Hero section on the home page */
.hero{
  background: var(--pg-deep);
  padding:72px 20px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  color: var(--pg-ivory);
}
.hero .hero-left{
  flex:1 1 60%;
}
.hero .hero-left img{
  max-width:240px;
  height:auto;
  margin-bottom:20px;
}
.hero .hero-left h2{
  font-size:24px;
  margin:0 0 20px;
}
.hero .hero-left .btn-group{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:20px;
}
.hero .hero-right{
  flex:1 1 40%;
  background: rgba(244,240,229,0.1);
  border:1px solid rgba(244,240,229,0.25);
  border-radius:12px;
  padding:16px;
}
.hero .hero-right h3{
  margin-top:0;
  font-size:20px;
  color: var(--pg-ivory);
  font-weight:800;
}
.hero .hero-right p{
  margin-bottom:16px;
  color: var(--pg-ivory);
}

/* Section below hero on home page */
.info-section{
  background: var(--pg-bg);
  padding:56px 20px;
  color: var(--pg-ink);
}
.info-section p{
  margin-bottom:20px;
  line-height:1.5;
}
.info-section .btn-accent{
  margin-top:20px;
}

/* Generic page section styling */
.site-section{
  margin-bottom:40px;
}
.site-section h2{
  color: var(--pg-deep);
  margin-top:0;
}
.site-section h3{
  color: var(--pg-deep);
  margin-top:24px;
}
.site-section ul{
  list-style: disc;
  padding-left:20px;
  margin-bottom:16px;
}
.faq dt{
  margin-top:20px;
  font-weight:600;
}
.faq dd{
  margin-left:0;
  margin-bottom:10px;
}

/* PGE Map Styling */
.pge-map{
  width: 100%;
  height: 400px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive map sizing */
@media (max-width: 768px) {
  .pge-map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .pge-map {
    height: 250px;
  }
}

/* Map popup styling */
.map-popup {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 250px;
}

.map-popup h4 {
  margin: 0 0 8px 0;
  color: var(--pg-deep);
  font-size: 16px;
}

.map-popup p {
  margin: 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Leaflet control customizations */
.leaflet-control-custom {
  background: white;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.leaflet-control-custom:hover {
  background: #f4f4f4;
}

/* Map container in Elementor */
.elementor-widget-container #map {
  width: 100% !important;
  height: 400px !important;
}