/* ============================================================
   MICROMEGA — Main Stylesheet
   ============================================================ */

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #F4F4F9;
  color: #1e2d4f;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
strong { font-weight: 700; }

/* ── Utility ───────────────────────────────────────────────── */
.section-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background-color: #0D47A1;
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}

.header-inner { max-width: 56rem; margin: 0 auto; }

.header-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.header-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.header-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 40rem;
  margin: 0 auto;
}

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0f172a;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover { color: rgba(255,255,255,0.7); }

.nav-whatsapp { display: none; }

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #10B981;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover { background-color: #059669; }

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

.btn-submit {
  display: inline-block;
  background-color: #0D47A1;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-submit:hover { background-color: #0b3d8a; }

/* ── Floating WhatsApp ─────────────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #10B981;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(16,185,129,0.4);
  transition: background-color 0.2s, transform 0.15s;
}

.floating-whatsapp:hover {
  background-color: #059669;
  transform: scale(1.05);
}

/* ── Main Layout ────────────────────────────────────────────── */
.main-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .hero-section { grid-template-columns: 1fr 1fr; }
}

.hero-left { display: flex; flex-direction: column; gap: 1.5rem; }

.expertise-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #10B981;
  border: 1px solid #10B981;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
}

.hero-heading {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1e2d4f;
}

.hero-body {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.75;
}

.hero-body strong { color: #1e2d4f; }

.feature-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-top: 1rem;
}

.feature-tag {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e2d4f;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  text-align: center;
  transition: border-color 0.2s;
  cursor: default;
}

.feature-tag:hover { border-color: #10B981; }

.hero-right { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  padding: 1.5rem;
  line-height: 1.7;
}

.card-light {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e2d4f;
}

.card-dark {
  background: #1a2744;
  color: rgba(255,255,255,0.88);
  border: none;
}

.card-dark strong { color: #fff; }

.card-green-border {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10B981;
  color: #1e2d4f;
}

/* ── Solutions ──────────────────────────────────────────────── */
.solutions-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 3rem;
  margin-bottom: 6rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #1e2d4f;
}

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

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

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

.solution-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.solution-card:hover {
  box-shadow: 0 8px 24px rgba(30,45,79,0.1);
  transform: scale(1.01);
}

.solution-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
}

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

.solution-card:hover .solution-img img { transform: scale(1.07); }

.solution-body { padding: 1.25rem; }

.solution-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d4f;
  margin-bottom: 0.4rem;
}

.solution-body p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ── Approach ───────────────────────────────────────────────── */
.approach-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 3rem;
  margin-bottom: 6rem;
}

.approach-left {
  max-width: 56rem;
  margin-bottom: 3rem;
}

.approach-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #1e2d4f;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.approach-left p {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.approach-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.approach-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e2d4f;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
}

.approach-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 2.5rem 3rem;
}

.approach-panel h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #1e2d4f;
  margin-bottom: 2rem;
  line-height: 1.3;
}

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

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

.approach-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e2d4f;
  margin-bottom: 0.6rem;
}

.approach-col p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 3rem;
  margin-bottom: 6rem;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-inner { grid-template-columns: 1fr 2fr; }
}

.contact-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 800;
  color: #1e2d4f;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.contact-info p { color: #64748b; font-size: 1rem; line-height: 1.7; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 2rem;
}

.form-alert {
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid;
}

.form-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #10B981;
}

.form-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #ef4444;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

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

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-group label span { color: #ef4444; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.9rem;
  color: #1e2d4f;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: vertical;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13,71,161,0.1);
  background: #fff;
}

.form-group input.invalid,
.form-group textarea.invalid { border-color: #ef4444; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: #0f172a;
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* ── Mobile nav scrollbar hide ──────────────────────────────── */
.nav-links::-webkit-scrollbar { display: none; }
.nav-links { -ms-overflow-style: none; scrollbar-width: none; }
