/*
===========================================
VARIANCE SOLAR & ELECTRICALS - MAIN STYLES
===========================================
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-navy: #5a99f8;
  --primary-gold: #fbbf24;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #6b7280;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
/* Logo styling */
/* Logo styling */
/* Logo styling */
.logo-img {
  height: 80px;        /* Bigger height */
  width: 80px;         /* Same as height to keep it square */
  object-fit: cover;   /* Crops nicely into the circle */
  border-radius: 50%;  /* Makes it perfectly round */
}




/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--primary-navy);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-gold), #f59e0b);
  border-radius: 2px;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: url('https://i.postimg.cc/YS7McXnm/solar-panel-sunset.jpg') no-repeat center center;
  background-size: cover; /* makes image cover the area */
  height: 70px; /* short height (adjust as you want) */
  width: 100%; /* still spans full width of screen */
  z-index: 1000;
  padding: 0 1rem; /* reduced padding to keep it slim */
  transition: var(--transition-smooth);
}


.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-gold);
  text-shadow: 0 2px 4px rgb(152, 210, 233);
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; /* right below header */
    right: 15px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    flex-direction: column;
    padding: 1rem;
    width: 220px;
    z-index: 999;
  }

  .nav-menu.active {
    display: flex;
    animation: fadeInUp 0.3s ease forwards;
  }

  .nav-link {
    color: var(--primary-navy);
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }

  .nav-link:hover {
    background: var(--primary-gold);
    color: var(--white);
  }

  .dropdown-content {
    background: var(--light-gray);
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
  }

  .dropdown-item {
    border: none;
    padding: 0.6rem 1rem;
    color: var(--primary-navy);
  }

  .dropdown-item:hover {
    background: var(--primary-gold);
    color: var(--white);
  }
}


.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: relative;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-gold), #4712da);
  transition: var(--transition-smooth);
  z-index: -1;
  border-radius: 25px;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgb(247, 193, 56);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-heavy);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  border: 1px solid rgb(245, 198, 79);
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--primary-navy);
  display: block;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgb(67, 128, 248);
}

.dropdown-item:hover {
  background: linear-gradient(45deg, var(--primary-gold), #2e0bf5cb);
  color: var(--white);
  transform: translateX(5px);
}

.dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
  border-bottom: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-gold);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-gold), #f59e0b);
  color: var(--white);
  box-shadow: 0 4px 15px rgb(252, 182, 5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(253, 182, 2);
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
  background: var(--primary-gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(252, 186, 4, 0.993);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.6)), url('https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-4.0.3') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: rgb(255, 255, 255);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background-image: url('https://i.postimg.cc/jjQwBpF0/tree-with-lamp-lighting.jpg');
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border: 1px solid rgba(251, 191, 36, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--primary-gold), #f59e0b);
  transform: translateX(-100%);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.card:hover::before {
  transform: translateX(0);
}

.card-image {
  width: 100%;
  height: 220px;       /* adjust height if needed */
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;    /* prevents overflow zoom */
  display: flex;
  justify-content: center;
  align-items: center;
   /* optional: background for images with transparency */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps the full image without cropping */
  border-radius: 10px;
}


/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-navy);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition-smooth);
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--primary-navy);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-gold);
  margin-bottom: 1rem;
}

.footer-text {
  color: rgb(255, 255, 255);
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: rgb(241, 237, 237);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--primary-gold); }
  50% { box-shadow: 0 0 20px var(--primary-gold), 0 0 30px var(--primary-gold); }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite alternate;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1.5rem; }
.py-3 { padding: 1.5rem 0; }
/* === HAMBURGER BUTTON === */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1101;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;   /* matches dark header */
  border-radius: 2px;
}

/* === MOBILE NAV — single source of truth === */
@media (max-width: 768px) {
  /* Show hamburger only on mobile */
  .mobile-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  /* Hide menu by default on mobile */
  .nav-menu {
    display: none;                     /* override global display:flex */
    position: fixed;
    top: 70px;                         /* just under the header */
    left: 0;
    right: 0;
    background: var(--primary-navy);
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.25rem;
    z-index: 1000;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-heavy);
  }
  .nav-menu.active {                   /* toggled by JS */
    display: flex;
  }

  /* Mobile links */
  .nav-link {
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .75rem;
  }
  .nav-link:hover {
    background: var(--primary-gold);
    color: #fff;
  }

  /* Collapse submenus by default on mobile */
  .dropdown-content {
    position: static !important;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: rgba(255,255,255,.08);
    margin-top: .25rem;
    border-radius: .5rem;
    padding: .25rem 0;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* Show submenu only when parent has .open */
  .dropdown.open > .dropdown-content {
    display: block;
  }

  /* Disable hover dropdowns on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }
  /* Default: hide toggle on desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Mobile view */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.95);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    color: white;
    padding: 0.75rem;
    text-align: center;
  }

  .nav-link:hover {
    background: #f39c12;
    border-radius: 6px;
  }
}

}




