/**
 * Cleanergy v2 — Custom styles
 * Brand colors from official logo
 * Sky blue: #90D9F9 · Dark: #1A344D
 */

:root {
  --blue: #90d9f9;
  --blue-light: #d6f0fc;
  --blue-dark: #1a344d;
  --blue-hover: #6ec8eb;
  --text: #1a344d;
  --surface: #f0f9fe;
  --radius: 0.75rem;
}

body {
  font-family: 'Heebo', sans-serif;
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
}

.no-logo img {
  display: none !important;
}

/* Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.nav-link {
  transition: color 0.2s, border-color 0.2s;
}

.nav-link.is-active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

.mobile-nav {
  display: none;
}

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

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }
}

/* Sections */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
}

.accent-bar {
  width: 4rem;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

.accent-bar.center {
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  background: white;
  border: 1px solid rgba(26, 52, 77, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(144, 217, 249, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Stats strip */
.stats-strip {
  background: var(--blue-dark);
  color: white;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--blue);
  color: var(--blue-dark);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--blue-dark);
  color: white;
}

/* Project timeline */
.project-card {
  border-right: 4px solid var(--blue);
  padding-right: 1.25rem;
}

/* Client sectors */
.sector-tab {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(26, 52, 77, 0.15);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.sector-tab.is-active,
.sector-tab:hover {
  background: var(--blue-dark);
  color: white;
  border-color: var(--blue-dark);
}

/* Tailwind .grid overrides [hidden]; keep sector panels exclusive */
[data-sector-panel][hidden] {
  display: none !important;
}

.client-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  min-height: 5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Value pillars */
.value-pillar {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-pillar .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-dark);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Contact sidebar */
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(144, 217, 249, 0.2);
}

.contact-card a {
  color: var(--blue-dark);
  font-weight: 500;
}

.contact-card a:hover {
  color: #0f2438;
  text-decoration: underline;
}

/* Solutions page RTL */
[dir="rtl"] .solutions-section .grid > div,
[dir="rtl"] .solutions-section .border {
  text-align: right;
}

[dir="rtl"] .solutions-section ul.list-disc {
  padding-right: 1.5em;
  padding-left: 0;
  text-align: right;
}

[dir="rtl"] .solutions-section .solutions-heading {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

/* Fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero gradient overlay — logo sky blue */
.hero-overlay {
  background: linear-gradient(135deg, rgba(144, 217, 249, 0.92) 0%, rgba(214, 240, 252, 0.88) 100%);
}

/* Language switcher */
.lang-switch .lang-btn {
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s;
}

.lang-switch .lang-btn-active {
  background: var(--blue);
  color: var(--blue-dark);
}

/* LTR layout adjustments */
[dir="ltr"] .project-card {
  border-right: none;
  border-left: 4px solid var(--blue);
  padding-left: 1.25rem;
}

[dir="ltr"] .solutions-section .grid > div,
[dir="ltr"] .solutions-section .border {
  text-align: left;
}

[dir="ltr"] .solutions-section ul.list-disc {
  padding-left: 1.5em;
  padding-right: 0;
  text-align: left;
}

[dir="ltr"] .solutions-section .solutions-heading {
  justify-content: flex-start;
}
