:root {
  --bg-primary: #f0f7ff;
  --bg-secondary: #e4f0fb;
  --bg-card: #ffffff;
  --accent-blue: #1a7abf;
  --accent-blue-light: #2892d7;
  --accent-sky: #7ecbef;
  --text-primary: #0d1f2d;
  --text-muted: #4a6880;
  --border: #c2ddef;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(240, 247, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--text-primary);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  padding-top: var(--nav-height);
  background: linear-gradient(135deg, #d6ecfa 0%, #eaf5ff 50%, #f0f7ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(126, 203, 239, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(26, 122, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-blue);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 122, 191, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  margin-left: 1rem;
}

.btn-outline:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

/* SECTION SHARED */
section {
  padding: 7rem 5%;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.75;
}

/* PRODUCTS */
.products {
  background: var(--bg-secondary);
}

.products-header {
  margin-bottom: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.product-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26, 122, 191, 0.15);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* WHY COOLOVA */
.why {
  background: var(--bg-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 4rem;
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.why-text .feature {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* PAGE HEADER (inner pages) */
.page-header {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 5rem;
  padding-left: 5%;
  padding-right: 5%;
  background: linear-gradient(135deg, #d6ecfa 0%, #eaf5ff 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-header h1 em {
  font-style: normal;
  color: var(--accent-blue);
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.75;
}

/* ABOUT PAGE */
.about-mission {
  background: var(--bg-secondary);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.mission-content .section-title {
  margin-bottom: 1.5rem;
}

.mission-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.crisis-cards {
  display: grid;
  gap: 1.25rem;
}

.crisis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-blue);
  border-radius: 6px;
  padding: 1.5rem;
}

.crisis-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--accent-blue);
}

.crisis-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.values-section {
  background: var(--bg-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  text-align: center;
}

.value-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-sky);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* CONTACT PAGE */
.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

.contact-detail-text p {
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}

.contact-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

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

.map-section {
  background: var(--bg-primary);
  padding: 5rem 5%;
}

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
  margin-top: 3rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: saturate(0.6) brightness(1.05);
  opacity: 0.9;
}

/* FOOTER */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.footer-brand span {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .why-grid,
  .mission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-stats {
    order: -1;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }
}

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

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  .why-stats {
    grid-template-columns: 1fr 1fr;
  }
}
