/* =============================================
   CLARIVANCE GLOBAL — MAIN STYLESHEET
   Color palette from logo: teal/cyan + dark navy
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --teal-bright: #00B4D8;
  --teal-mid:    #0096B4;
  --teal-deep:   #006E8A;
  --teal-dark:   #004D63;
  --navy:        #0A1628;
  --navy-soft:   #0D1F3C;
  --white:       #FFFFFF;
  --off-white:   #F4FAFB;
  --gray-light:  #E8F4F8;
  --gray-mid:    #8BAAB4;
  --text-dark:   #0A1628;
  --text-body:   #2C4A56;
  --text-muted:  #6B8E9A;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 180, 216, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 96, 140, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { font-size: 1rem; color: var(--text-body); }
a  { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 180, 216, 0.12);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img {
  height: 120px; width: auto; filter: none;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  margin-left: auto; list-style: none;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal-bright);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal-mid); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--teal-mid); }
.nav-cta {
  margin-left: 1.5rem;
  background: var(--teal-bright);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: #00d4f8 !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; margin-left: auto; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── SECTIONS ── */
.section {
  padding: 100px 5%;
}
.section-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 1rem;
}
.section-title {
  margin-bottom: 1.2rem;
  color: var(--navy);
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin-bottom: 3rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--teal-bright);
  color: var(--navy);
}
.btn-primary:hover {
  background: #00d4f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--teal-bright);
  border: 1.5px solid var(--teal-bright);
}
.btn-outline:hover {
  background: var(--teal-bright);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--off-white); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: wa-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.6);
  animation: none;
}
.whatsapp-float svg { width: 32px; height: 32px; fill: white; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 6px 36px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 48px; filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem; line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--teal-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  background: rgba(0,180,216,0.1);
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin: 0 auto; }
.text-center { text-align: center; }
.text-teal { color: var(--teal-bright); }
.badge {
  display: inline-block;
  background: rgba(0, 180, 216, 0.1);
  color: var(--teal-mid);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em;
}
.divider {
  height: 1px; background: var(--gray-light);
  margin: 0;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 5%;
    border-top: 1px solid rgba(0,180,216,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0;
  }
  .nav-links.mobile-open li { border-bottom: 1px solid var(--gray-light); }
  .nav-links.mobile-open a { display: block; padding: 14px 0; color: var(--navy); }
  .nav-cta { margin-left: 0; display: inline-block; margin-top: 8px; }
  .hamburger { display: flex; }
  .section { padding: 70px 5%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
