/*
Theme Name: Gujarat Solar Energy Solutions
Theme URI: https://www.instagram.com/gujaratsolartrade/
Author: Gujarat Solar Energy Solutions
Author URI: https://www.instagram.com/gujaratsolartrade/
Description: A modern, professional single-page WordPress theme for Gujarat Solar Energy Solutions — rooftop solar installations for residential, commercial, and industrial clients in Gujarat, India.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gujarat-solar
Tags: one-page, solar, business, responsive, modern
*/

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary: #0f2f5f;
  --secondary: #ff9900;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --transition: all 0.3s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-float   { animation: float 4s ease-in-out infinite; }
.animate-bounce  { animation: bounce 2s ease-in-out infinite; }
.animate-fade-up { animation: fadeUp 0.7s ease both; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}
.btn-primary:hover { background: #0a2248; border-color: #0a2248; }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover { background: #e68a00; border-color: #e68a00; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(15,47,95,0.25);
}
.btn-outline:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border: 2px solid var(--whatsapp);
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; font-weight: 600; }

/* ============================================================
   SECTION LABELS
   ============================================================ */
.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 0.35rem;
  background: var(--secondary);
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.section-divider.center { margin: 0 auto 1.5rem; }

/* ============================================================
   1. HEADER / NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: 1.1rem 0;
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.75rem 0;
  border-bottom-color: var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span { display: none; }

@media (min-width: 480px) { .logo-text span { display: inline; } }

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--secondary); }

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  cursor: pointer;
}

@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--secondary); }

/* ============================================================
   2. HERO SECTION
   ============================================================ */
#hero {
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #fff8f0 100%);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) { #hero { padding: 9rem 0 6rem; } }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,153,0,0.10);
  border: 1px solid rgba(255,153,0,0.25);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-title .highlight { color: var(--secondary); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 28rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero-image-inner img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,47,95,0.35) 0%, transparent 60%);
}

.hero-blob-1, .hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  z-index: -1;
}
.hero-blob-1 { width: 18rem; height: 18rem; background: rgba(255,153,0,0.15); top: -5rem; right: -5rem; }
.hero-blob-2 { width: 18rem; height: 18rem; background: rgba(15,47,95,0.08); bottom: -5rem; left: -5rem; }

/* ============================================================
   3. ABOUT SECTION
   ============================================================ */
#about {
  padding: 5rem 0;
  background: var(--white);
}

@media (min-width: 768px) { #about { padding: 7rem 0; } }

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 768px) { .about-inner { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stat-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.stat-card .number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.stat-card .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.about-text p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ============================================================
   4. SERVICES SECTION
   ============================================================ */
#services {
  padding: 5rem 0;
  background: var(--gray-50);
}

@media (min-width: 768px) { #services { padding: 7rem 0; } }

.services-header { text-align: center; max-width: 38rem; margin: 0 auto 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 480px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(15,47,95,0.05);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
  font-size: 1.5rem;
}

.service-card:hover .service-icon { background: rgba(255,153,0,0.1); }

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ============================================================
   5. INSTAGRAM GALLERY SECTION
   ============================================================ */
#instagram {
  padding: 5rem 0;
  background: var(--white);
}

@media (min-width: 768px) { #instagram { padding: 7rem 0; } }

.instagram-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .instagram-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.instagram-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 640px) { .instagram-grid { grid-template-columns: repeat(4, 1fr); } }

.insta-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
  display: block;
}

.insta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insta-card:hover img { transform: scale(1.1); }

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,47,95,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
}

.insta-card:hover .insta-overlay { opacity: 1; transform: translateY(0); }

.insta-overlay svg { width: 2rem; height: 2rem; margin-bottom: 0.5rem; }

.insta-overlay span { font-size: 0.9rem; font-weight: 600; }

/* ============================================================
   6. SOCIAL CONNECT SECTION
   ============================================================ */
#social {
  padding: 4rem 0;
  background: var(--gray-50);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) { .social-grid { grid-template-columns: repeat(4, 1fr); } }

.social-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 1;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
  border-radius: inherit;
}

.social-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.social-card:hover::before { opacity: 1; }
.social-card:hover .social-icon,
.social-card:hover h4,
.social-card:hover p { color: var(--white); }

.social-card.instagram::before  { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.social-card.facebook::before   { background: linear-gradient(135deg,#3b5998,#1877f2); }
.social-card.whatsapp::before   { background: linear-gradient(135deg,#25d366,#128c7e); }
.social-card.location::before   { background: linear-gradient(135deg,var(--secondary),#e05c00); }

.social-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: color 0.3s;
  line-height: 1;
}

.social-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
  transition: color 0.3s;
}

.social-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  transition: color 0.3s;
}

/* ============================================================
   7. CONTACT SECTION
   ============================================================ */
#contact {
  padding: 5rem 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) { #contact { padding: 7rem 0; } }

.contact-box {
  max-width: 56rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
}

@media (min-width: 680px) { .contact-box { flex-direction: row; } }

.contact-left {
  background: var(--primary);
  color: var(--white);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

@media (min-width: 680px) { .contact-left { width: 42%; } }

.contact-left::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  filter: blur(20px);
}

.contact-left h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.75rem; }
.contact-left .subtitle { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 0.95rem; line-height: 1.6; }

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item h4 { font-weight: 600; margin-bottom: 0.3rem; font-size: 1rem; }
.contact-info-item p, .contact-info-item a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--secondary); }

.contact-right {
  flex: 1;
  padding: 2.5rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

.contact-sun-icon {
  width: 5rem;
  height: 5rem;
  background: rgba(15,47,95,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.contact-right h3 { font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.contact-right p { color: var(--gray-500); font-size: 0.93rem; max-width: 22rem; line-height: 1.7; }

.contact-cta-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.contact-cta-buttons .btn { flex: 1; justify-content: center; }

/* ============================================================
   8. FOOTER
   ============================================================ */
#colophon {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.footer-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.1);
  color: var(--secondary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-logo span { font-size: 1.05rem; font-weight: 700; color: var(--white); }

.footer-about p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.75; }

.footer-col h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; }

.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary); }

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.footer-contact-item .icon { color: var(--secondary); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span, .footer-contact-item a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--white); }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ============================================================
   9. FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: bounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* WordPress default compatibility */
.wp-block-image { margin: 0; }
.aligncenter { text-align: center; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
