/* ============================================================
   MedEng — Medengenharia Integrada
   Stylesheet principal
   ============================================================ */

:root {
  --green: #15803D;
  --green-light: #22C55E;
  --green-dark: #14532D;
  --blue: #1E40AF;
  --blue-light: #3B82F6;
  --blue-dark: #1E3A8A;
  --dark: #1F2937;
  --gray: #6B7280;
  --light: #F4F6F8;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 41, 55, 0.12);
  --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #15803D 100%);
  --gradient-soft: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(21, 128, 61, 0.05) 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: rgba(31, 41, 55, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}
.logo { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.logo-img { width: 72px; height: 72px; object-fit: contain; }
.logo-img-app {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title { font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.logo-title .med { color: var(--blue); }
.logo-title .eng { color: var(--green); }
.logo-sub {
  font-size: 10px;
  letter-spacing: 2.8px;
  color: var(--gray);
  font-weight: 600;
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--dark);
  position: relative;
  transition: var(--transition);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.menu-toggle {
  display: none;
  background: transparent;
  font-size: 24px;
  color: var(--dark);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0F172A 0%, var(--blue-dark) 50%, var(--green-dark) 100%);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-light);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--green-light), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--green-light), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-card .big-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.big-logo img {
  width: 180px; height: 180px; object-fit: contain;
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.hero-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hero-pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-pillar i { font-size: 18px; }
.hero-pillar span { font-size: 13px; font-weight: 600; }
.hero-pillar.green i { color: var(--green-light); }
.hero-pillar.blue i { color: var(--blue-light); }

/* ============ PAGE HEADER (interior pages) ============ */
.page-header {
  padding: 180px 0 80px;
  background: linear-gradient(135deg, #0F172A 0%, var(--blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 65%);
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.page-header h1 .accent {
  background: linear-gradient(120deg, var(--green-light), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header p { font-size: 1.1rem; opacity: 0.85; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--green-light); }
.breadcrumb i { font-size: 10px; }

/* ============ SECTION BASE ============ */
section { padding: 100px 0; position: relative; }
.section-head {
  text-align: center;
  margin-bottom: 64px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-title .accent { color: var(--blue); }
.section-sub { font-size: 1.1rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

/* ============ ABOUT ============ */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-lg);
}
.about-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55) 0%, rgba(20, 83, 45, 0.55) 100%);
}
.about-img-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  color: var(--white);
  z-index: 2;
}
.about-img-content .float-icons { display: flex; gap: 14px; margin-bottom: 20px; }
.about-img-content .float-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.about-img-content h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.about-img-content p { font-size: 0.95rem; opacity: 0.9; }

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-content > p { color: var(--gray); margin-bottom: 20px; font-size: 1.02rem; }
.about-features { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
.about-features li { display: flex; align-items: flex-start; gap: 14px; }
.about-features .check {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.about-features strong { color: var(--dark); display: block; margin-bottom: 2px; }
.about-features span { color: var(--gray); font-size: 0.95rem; }

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 20px;
  padding: 36px 32px;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 24px;
}
.service-card.green .service-icon { color: var(--green); }
.service-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.service-card > p { color: var(--gray); font-size: 0.95rem; margin-bottom: 20px; }
.service-list { list-style: none; }
.service-list li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px dashed rgba(31, 41, 55, 0.08);
}
.service-list li:first-child { border-top: none; }
.service-list li i { color: var(--green); font-size: 12px; }

/* ============ DIFFERENTIALS ============ */
.differentials {
  background: linear-gradient(135deg, #0F172A 0%, var(--blue-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.differentials::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 65%);
  border-radius: 50%;
}
.differentials .section-title { color: var(--white); }
.differentials .section-sub { color: rgba(255, 255, 255, 0.7); }
.differentials .eyebrow { color: var(--green-light); }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.diff-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 32px 24px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.diff-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.3);
}
.diff-num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--green-light), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: block;
}
.diff-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.diff-card p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }

/* ============ TEAM ============ */
.team { background: var(--light); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-photo {
  aspect-ratio: 1;
  background: var(--gradient-primary);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.team-photo .avatar {
  width: 80%; height: 90%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50% 50% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.7);
}
.team-info { padding: 24px; text-align: center; }
.team-info h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-info .role { color: var(--green); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-social { display: flex; justify-content: center; gap: 10px; }
.team-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  transition: var(--transition);
}
.team-social a:hover { background: var(--gradient-primary); color: var(--white); }

/* ============ TESTIMONIALS ============ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
  background: var(--white);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  transition: var(--transition);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial .quote {
  font-size: 3rem;
  color: var(--green);
  opacity: 0.2;
  line-height: 1;
  font-family: serif;
}
.testimonial p { color: var(--dark); font-size: 0.95rem; margin: 12px 0 24px; line-height: 1.7; }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.author-info h5 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.author-info span { font-size: 0.82rem; color: var(--gray); }
.stars { color: #FBBF24; margin-bottom: 12px; }

/* ============ BLOG ============ */
.blog { background: var(--light); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-img {
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
}
.blog-img.green { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.blog-img.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.blog-img.mixed { background: var(--gradient-primary); }
.blog-content { padding: 28px; }
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.blog-card p { color: var(--gray); font-size: 0.92rem; margin-bottom: 20px; }
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  padding-top: 16px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
}
.read-more { color: var(--blue); font-weight: 600; }

/* ============ CTA ============ */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-section::before { top: -100px; left: -100px; }
.cta-section::after { bottom: -100px; right: -100px; }
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.cta-section p { font-size: 1.1rem; margin-bottom: 32px; opacity: 0.9; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.contact-info > p { color: var(--gray); margin-bottom: 36px; font-size: 1.02rem; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list li {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--light);
  border-radius: 14px;
  transition: var(--transition);
}
.contact-list li:hover {
  transform: translateX(4px);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.contact-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.contact-list h5 {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-list p, .contact-list a { color: var(--dark); font-weight: 600; font-size: 1rem; }
.contact-list a:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border: 1px solid rgba(31, 41, 55, 0.08);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(31, 41, 55, 0.1);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 16px; }

/* ============ FOOTER ============ */
footer { background: #0F172A; color: rgba(255, 255, 255, 0.7); padding: 80px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-title { color: var(--white); }
.footer-brand .logo-title .med { color: var(--blue-light); }
.footer-brand .logo-title .eng { color: var(--green-light); }
.footer-brand .logo-sub { color: rgba(255, 255, 255, 0.5); }
.footer-brand p { margin-top: 20px; font-size: 0.92rem; max-width: 360px; line-height: 1.7; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gradient-primary); transform: translateY(-2px); }
footer h5 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--green-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; }
.footer-contact i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulseRing 2s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  100% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}
.login-side {
  position: relative;
  background: linear-gradient(135deg, #0F172A 0%, var(--blue-dark) 50%, var(--green-dark) 100%);
  color: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-side::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
.login-side::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 65%);
  border-radius: 50%;
}
.login-side > * { position: relative; z-index: 2; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand img {
  width: 64px; height: 64px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.login-brand .logo-title { color: var(--white); }
.login-brand .logo-title .med { color: var(--blue-light); }
.login-brand .logo-title .eng { color: var(--green-light); }
.login-brand .logo-sub { color: rgba(255, 255, 255, 0.6); }
.login-pitch h2 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.login-pitch h2 .accent {
  background: linear-gradient(120deg, var(--green-light), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-pitch p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 32px; max-width: 480px; }
.login-features { list-style: none; display: grid; gap: 14px; }
.login-features li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.login-features i {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: var(--green-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.login-foot { font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); }

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: var(--light);
}
.login-form-wrap { width: 100%; max-width: 420px; }
.login-form-wrap > .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 32px;
  transition: var(--transition);
}
.login-form-wrap > .back-link:hover { color: var(--blue); }
.login-form-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.login-form-wrap > p.muted { color: var(--gray); margin-bottom: 32px; }

.tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.tab-switch button {
  padding: 12px;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
}
.tab-switch button.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
}

.input-with-icon { position: relative; }
.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 14px;
  pointer-events: none;
}
.input-with-icon input { padding-left: 42px !important; }
.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.toggle-password:hover { color: var(--blue); }

.form-row-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 14px;
}
.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--dark); }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--blue); }
.forgot-link { color: var(--blue); font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--gray);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(31, 41, 55, 0.1);
}
.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn {
  padding: 12px;
  background: var(--white);
  border: 1.5px solid rgba(31, 41, 55, 0.1);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.social-btn i { font-size: 16px; }
.social-btn.google i { color: #EA4335; }
.social-btn.microsoft i { color: #0078D4; }

.form-footer-text {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--gray);
}
.form-footer-text a { color: var(--blue); font-weight: 600; }
.form-footer-text a:hover { text-decoration: underline; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid, .blog-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .login-page { grid-template-columns: 1fr; }
  .login-side { padding: 40px; }
}
@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    top: 96px; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .nav-menu.open { transform: translateY(0); }
  .menu-toggle { display: block; }
  .nav-cta-desktop { display: none; }
  .services-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .diff-grid, .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  section { padding: 70px 0; }
  .contact-form { padding: 28px; }
  .login-side { display: none; }
  .login-form-side { padding: 32px 20px; }
}
