:root {
  --primary-blue: #0d6efd;
  --primary-green: #10b981;
  --dark: #0f172a;
  --slate: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(15, 23, 42, 0.8);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0d6efd; /* Persistent Brand Blue */
  text-decoration: none;
}

.navbar .logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.navbar .logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Navbar links color on transparent vs scrolled */
.navbar:not(.scrolled) .nav-links a {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar:not(.scrolled) .logo-text {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar.scrolled .logo-text {
  color: #0d6efd;
}


.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Landing Page Specific */
.portal-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.portal-side {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.portal-side:hover {
  flex: 1.5;
}

.portal-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: background 0.4s ease;
}

.portal-business {
  background: url('../assets/img/business-bg.jpg') center/cover no-repeat;
}

.portal-business::before {
  background: rgba(13, 110, 253, 0.7);
}

.portal-business:hover::before {
  background: rgba(13, 110, 253, 0.5);
}

.portal-renewable {
  background: #000;
}

.portal-renewable video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.portal-renewable::before {
  background: rgba(16, 185, 129, 0.4);
}

.portal-renewable:hover::before {
  background: rgba(16, 185, 129, 0.2);
}

.portal-content {
  position: relative;
  z-index: 2;
}

.portal-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.portal-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--dark);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: var(--slate);
}

@media (max-width: 768px) {
  .portal-container {
    flex-direction: column;
  }
  .portal-side {
    height: 50vh;
  }
  .portal-side:hover {
    flex: 1;
  }
  .portal-content h2 {
    font-size: 1.75rem;
  }
  .navbar .logo-text {
    font-size: 1.25rem;
    gap: 8px;
  }
  .navbar .logo-img {
    height: 26px;
  }
}

/* Section Common */
section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-blue);
}

.bg-light {
  background-color: var(--light);
}

/* Hero Section */
.hero-sub {
  height: 60vh;
  display: flex;
  align-items: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  z-index: 1;
}

.hero-sub.business {
  background: url('../assets/img/business-hero.jpg') center/cover no-repeat;
}

.hero-sub.renewable {
  background: url('../assets/img/renewable-hero.jpg') center/cover no-repeat;
}

.hero-sub .container {
  position: relative;
  z-index: 2;
}

.hero-sub h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-blue);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  display: block;
}

.card h4 {
  margin-bottom: 1rem;
}

/* Logo Item */
.logo-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.logo-item:hover {
  box-shadow: var(--shadow-md);
}

.logo-item img {
  max-height: 80px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.logo-item:hover img {
  /* grayscale filter removed to preserve original colors */
}

/* Forms */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info div {
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
}

.contact-info i {
  color: var(--primary-blue);
  font-size: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: #0a58ca;
}

/* Renewable Theme Overrides */
.theme-renewable {
  --primary-blue: var(--primary-green);
}

.theme-renewable .nav-links a::after {
  background-color: var(--primary-green);
}

.theme-renewable .section-header h2::after {
  background: var(--primary-green);
}

.theme-renewable .card {
  border-top-color: var(--primary-green);
}

.theme-renewable .card i {
  color: var(--primary-green);
}

.theme-renewable .logo-item i {
  color: var(--primary-green);
}

.theme-renewable .contact-info i {
  color: var(--primary-green);
}

.theme-renewable .form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.theme-renewable .btn-primary {
  background: var(--primary-green);
}

.theme-renewable .btn-primary:hover {
  background: #059669;
}

/* Navbar visibility on Video */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

/* Map Styling */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 992px) {
  .grid-2, .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Team Section */
.team-wrapper {
  display: flex;
  gap: 4rem;
  align-items: center;
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary-blue);
  max-width: 900px;
  margin: 0 auto;
}

.team-img img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto;
}

.team-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.team-info .team-title {
  color: var(--primary-blue);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.bio-list {
  list-style: none;
  padding: 0;
}

.bio-list li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.bio-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

@media (max-width: 768px) {
  .team-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
  .bio-list {
    text-align: left;
  }
}

/* Contact Form Alerts & Spinner */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-alert.show {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.form-alert.success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-alert.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Exposure Section Styles */
.grid-exposure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.exposure-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(13, 110, 253, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.exposure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.exposure-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 110, 253, 0.2);
}

.exposure-card:hover::before {
  transform: scaleX(1);
}

.exposure-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(13, 110, 253, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--primary-blue);
}

.exposure-card:hover .exposure-icon-wrapper {
  background: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

.exposure-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.exposure-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
  font-weight: 700;
}

.exposure-card p {
  font-size: 0.925rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Renewable Theme overrides for Exposure */
.theme-renewable .exposure-card::before {
  background: linear-gradient(90deg, var(--primary-green), #34d399);
}

.theme-renewable .exposure-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.theme-renewable .exposure-icon-wrapper {
  background: rgba(16, 185, 129, 0.06);
  color: var(--primary-green);
}

.theme-renewable .exposure-card:hover .exposure-icon-wrapper {
  background: var(--primary-green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

