:root {
    --dark-navy: #04305F;
    --strong-blue: #04427C;
    --sky-blue: #126CAE;
    --sky-blue-dark: #0e4d80;
    --light-blue: #1A8CD8;
    --eco-green: #089E77;
    --light-bg: #f9f9f9;
    --text-dark: #222;
    --text-light: #fff;
    
  }

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

  @font-face {
  font-family: 'HeadingFont';
  src: url('/assets/fonts/modamode-cufonfonts-webfont/Modamode.woff') format('woff'),
       url('/assets/fonts/modamode-cufonfonts-webfont/Modamode.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

  @font-face {
    font-family: 'BodyFont';
    src: url('/assets/fonts/Judson/Judson-Regular.ttf') format('truetype'),
         url('/assets/fonts/Judson/Judson-Regular.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
  }


  h1, h2, h3, h4, h5, h6 {
  font-family: 'HeadingFont', 'Segoe UI', Arial, sans-serif;
}
  
  body {
    margin: 0;
    font-family: 'BodyFont', 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  header {
    background-color: var(--light-bg);
    color: var(--text-dark);
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }
  
.navbar {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  flex-wrap: wrap;
  padding: 0.3rem 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0 auto; 
}
  
  .nav-links li a {
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    border-bottom: var(--light-blue) 3px solid;
    color: var(--text-dark);
  }
  
  .nav-cta {
    margin-left: auto;
  }
  
  .cta-button {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.6rem 1.2rem;
    border: var(--eco-green) 2px solid;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }
  
   .cta-button:hover {
   background-color: var(--eco-green)
  }

  .burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
  margin-left: 1rem;
}

.burger span {
  display: block;
  width: 28px;
  height: 4px;
  background: var(--eco-green);
  border-radius: 2px;
  transition: 0.3s;
}

.side-panel {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0,0,0,0.12);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: right 0.3s ease;
}

.side-panel.open {
  right: 0;
}

.close-panel {
  background: none;
  border: none;
  font-size: 2.6rem;
  color: var(--eco-green);
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 2rem;
  margin-right: 1rem;
}

.side-nav-links {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.side-panel .cta-button {
  width: auto;
  min-width: 120px;
  max-width: 180px;
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
}

.side-panel.open ~ .burger,
.side-panel.open + .burger {
  display: none !important;
}

.side-nav-links li a {
  color: var(--text-dark);
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}





@media (max-width: 900px) {
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: nowrap;
    padding: 0.3rem 0.5rem;
  }
  .logo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  .burger {
    display: flex;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding: 0.7rem;
    z-index: 1002;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
}

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
  }
  
  .logo img {
    width: 40px;
    height: 40px;
  }
  

  
.hero {
  position: relative;
  background: url('/assets/images/precision_energy_solar_panels.jpg') center/cover no-repeat;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  text-align: center;
  padding: 0 1rem;
}

  
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
  }
  
  .hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    margin-bottom: 2rem;
  }
  
.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
  
.hero-overlay button {
    background: linear-gradient(-125deg, var(--eco-green), var(--sky-blue-dark));
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    margin-top: 2rem;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 2.5rem;
}
  
@media (max-width: 600px) {
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-top: 1.5rem;
  }
}
  .hero-overlay button:hover {
    background: linear-gradient(-125deg, var(--sky-blue-dark), var(--eco-green));
  } 
  
 .about {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  gap: 2rem;
  align-items: center;
}

.about-img {
  flex: 1;
  min-height: 300px;
  max-width: 400px;
  width: 100%;
  margin-top: 4rem;
  background: url('/assets/logos/precision_energy_trans_logo.png') no-repeat center/contain;
}

.about-text {
  flex: 2;
  font-size: 20px;
  min-width: 250px;
}

.about-text p {
  text-align: justify;
}

.about-text h2 {
  font-size: 2.5rem;
}

@media (max-width: 900px) {
  .about {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
  }
  .about-img {
    margin-top: 1rem;
    min-height: 180px;
    max-width: 100%;
    width: 100%;
  }
  .about-text {
    font-size: 1rem;
    width: 100%;
  }
  .about-text h2 {
    font-size: 1.5rem;
  }
}
  

  .goals h2{
    font-size: 45px;
    text-align: center;
    padding-bottom: 2rem;
  }

  .goals {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
  }
  

  .goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .goal-card {
    background: linear-gradient(-125deg, var(--light-blue), var(--sky-blue-dark));
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .goal-card:hover {
    transform: translateY(-5px);
  }
  
  .goal-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: whitesmoke;
  }
  
  .goal-card h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: whitesmoke
  }
  
  .goal-card p {
    font-size: 1rem;
    color: wheat;
  }
  

.offer {
  padding: 4rem 2rem;
  background-color: #f9f9f9;
  text-align: center;
}

.offer h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark-navy);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.offer-box {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.offer-box:hover {
  transform: scale(1.03);
}



.offer-box .content {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.offer-box:hover .content {
  opacity: 1;
}

.offer-box:hover h3{
  opacity: 0;
}

.offer-box h3 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  font-size: 1.5rem;
  margin: 0;
}

.offer-box p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Individual Background Images */
.offer-box.advisory {
  background-image: url('/assets/images/precision_energy_wind_turbines.jpg');
}

.offer-box.design {
  background-image: url('/assets/images/precision_energy_bulb_plant.jpg');
}

.offer-box.implementation {
  background-image: url('/assets/images/eng2.jpg');
}

.offer-link {
  display: block;
  text-decoration: none;
  height: 100%;
  color: inherit;
}
.offer-link:focus, .offer-link:hover {
  outline: none;
}
.offer-grid > .offer-link {
  height: 100%;
}
.offer-box {
  pointer-events: none; /* Prevents nested events, except on parent link */
}
.offer-link > .offer-box {
  pointer-events: auto;
}


/* Responsive */
@media (max-width: 768px) {
  .offer-box {
    height: 200px;
  }

  .offer-box h3 {
    font-size: 1.2rem;
  }

  .offer-box p {
    font-size: 0.9rem;
  }
}

  
  .learn-more {
    margin-top: 1rem;
    background: var(--eco-green);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .cta {
  background: var(--dark-navy);
  color: white;
  text-align: left;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  margin: 0;
  font-size: 2rem;
  flex: 1;
}

.cta .cta-link-contact {
  background: none;
  border: var(--eco-green) 2px solid;
  padding: 0.8rem 1.5rem;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  flex-shrink: 0;
}

.cta .cta-link-contact:hover {
  background: var(--eco-green);
  color: var(--dark-navy);
}

@media (max-width: 700px) {
  .cta {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cta h2 {
    margin-bottom: 1rem;
  }
}
  
  footer {
    background: #222;
    color: #ccc;
    padding: 2rem;
  }
  

  
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
 
 footer, .container {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}


.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #ccc;
  font-family: 'HeadingFont', 'Segoe UI', Arial, sans-serif;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-family: 'BodyFont', 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--eco-green);
}

.footer-links p {
  color: #bdc3c7;
  margin: 0;
  line-height: 1.6;
  font-family: 'BodyFont', 'Segoe UI', sans-serif;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #ccc;
  font-family: 'HeadingFont', 'Segoe UI', Arial, sans-serif;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  font-family: 'BodyFont', 'Segoe UI', sans-serif;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--eco-green);
}

.footer-links p {
  color: #bdc3c7;
  margin: 0;
  line-height: 1.6;
  font-family: 'BodyFont', 'Segoe UI', sans-serif;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #bdc3c7;
  font-family: 'BodyFont', 'Segoe UI', sans-serif;
}

@media (max-width: 900px) {
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 24px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  .footer-section {
    width: 100%;
    text-align: center;
  }
  .footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
  }
  .footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .footer-links {
    gap: 8px;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
  }
  .footer-section:nth-child(1),
  .footer-section:nth-child(2) {
    order: 1;
  }
  .footer-section:nth-child(3) {
    order: 2;
  }
  .footer-section:nth-child(4) {
    order: 3;
  }
}