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

:root {
  --primary-blue: #1C3F60;
  --secondary-blue: #2A5A8A;
  --accent-orange: #ED6A22;
  --bright-yellow: #F6C83E;
  --bg-color: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px -10px rgba(237, 106, 34, 0.2);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
}

/* ================== Typography ================== */
.title-xl { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.title-l { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.title-m { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.text-lead { font-size: clamp(1.125rem, 2vw, 1.25rem); color: var(--text-muted); margin-bottom: 2rem; }

/* ================== Navbar ================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.nav-brand img {
  height: 48px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  font-size: 1rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-orange);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* ================== Buttons ================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #ff8a42);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(237, 106, 34, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(237, 106, 34, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-3px);
}

/* ================== Layout & Sections ================== */
.main-wrapper {
  margin-top: 80px; /* offset for navbar */
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.section-padding {
  padding: 6rem 5%;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  position: relative;
  background: radial-gradient(circle at top right, rgba(246, 200, 62, 0.1) 0%, transparent 40%),
              radial-gradient(circle at bottom left, rgba(28, 63, 96, 0.05) 0%, transparent 40%);
  text-align: center;
  padding: 2rem 5%;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* ================== Content Grid / Cards ================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(237, 106, 34, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
  background: rgba(237, 106, 34, 0.1);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-muted);
}

/* ================== Contact Section ================== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 4rem;
  box-shadow: var(--shadow-soft);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

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

.contact-item i {
  color: var(--accent-orange);
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

.quote-block {
  margin-top: 3rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--accent-orange);
  font-style: italic;
  color: var(--primary-blue);
  font-size: 1.25rem;
  font-family: 'Outfit', sans-serif;
}

/* ================== Footer ================== */
.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 5%;
  text-align: center;
  margin-top: auto;
}

.footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ================== Animations ================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ================== Mobile Menu Toggle ================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 3px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition);
    visibility: hidden;
    opacity: 0;
  }
  
  .nav-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
  }
  
  .nav-links li a {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }

  .contact-container {
    padding: 2rem;
  }
}

/* ================== Remsolar Redesign Overrides ================== */
.bg-light { background-color: #F1F5F9; border-top: 1px solid rgba(0,0,0,0.05); border-bottom: 1px solid rgba(0,0,0,0.05); }

.rem-card {
  padding: 0;
  overflow: hidden;
  border: none;
  background: var(--white);
  border-radius: var(--border-radius);
}

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

.rem-card:hover img {
  transform: scale(1.05);
}

.rem-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.rem-card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.rem-link {
  margin-top: 1.5rem;
  color: var(--accent-orange);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.rem-link:hover {
  gap: 0.8rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.why-item i {
  font-size: 2.5rem;
  color: var(--accent-orange);
  background: rgba(237, 106, 34, 0.1);
  padding: 1rem;
  border-radius: 12px;
  min-width: 80px;
  text-align: center;
}

.why-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.why-item p {
  color: var(--text-muted);
}
