/* CREDental brand — primary tokens from credentalhn.com
   Primary #004aad · Dark teal #004d66 · Accent #cb6ce6 · Cream #fff6e7 · WA #25D366
   Note: orange/magenta hexes also appear in site CSS (often social-widget gradients). */

:root {
  --primary-blue: #004aad;
  --accent-purple: #cb6ce6;
  --whatsapp-green: #25D366;
  --bg-cream: #fff6e7;
  --text-dark: #333;
  --text-light: #fff;
  --brand-color-1: #004d66;
  --brand-color-2: #f09433;
  --brand-color-3: #e6683c;
  --brand-color-4: #dc2743;
  --brand-color-5: #cc2366;
  --brand-color-6: #bc1888;
  --brand-color-7: #555;
  --brand-color-8: #737f8f;
  --max: 960px;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(0, 74, 173, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-cream);
}

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

a {
  color: var(--primary-blue);
}

.site-header {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo img {
  height: 48px;
  width: auto;
}

#main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

#main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

#main-nav a:hover,
#main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

#main-nav a.nav-personal {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#main-nav a.nav-personal:hover,
#main-nav a.nav-personal:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0.35rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-light);
}

.hero {
  background:
    linear-gradient(
      135deg,
      rgba(0, 74, 173, 0.96),
      rgba(0, 77, 102, 0.92) 55%,
      rgba(203, 108, 230, 0.72)
    ),
    var(--primary-blue);
  color: var(--text-light);
  padding: 4rem 1.25rem 3.5rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
  margin-bottom: 1.75rem;
  opacity: 0.96;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-purple);
  color: var(--text-light);
  padding: 0.75rem 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background-color 0.2s, transform 0.15s, border-color 0.2s;
}

.cta-button:hover {
  transform: translateY(-1px);
}

.cta-whatsapp {
  background-color: var(--whatsapp-green);
  color: #053b1a;
}

.cta-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--text-light);
}

.cta-map {
  background: var(--primary-blue);
  color: var(--text-light);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.services,
.about,
.contact {
  padding: 3rem 1.25rem;
  text-align: left;
}

.services h2,
.about h2,
.contact h2 {
  color: var(--primary-blue);
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--brand-color-8);
  margin-bottom: 1.5rem;
}

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

.service-item {
  background-color: var(--text-light);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 74, 173, 0.08);
}

.service-item h3 {
  color: var(--primary-blue);
  margin-bottom: 0.4rem;
}

.service-item h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-purple));
}

.about {
  background: var(--text-light);
}

.about p,
.contact-info p {
  max-width: 40rem;
  margin: 0.75rem auto;
  text-align: center;
}

.contact-info a {
  font-weight: 700;
  text-decoration: none;
}

.map {
  margin: 1.5rem 0;
  text-align: center;
}

.social-links {
  text-align: center;
  margin-top: 1rem;
}

.social-links a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 1.25rem;
  background-color: var(--brand-color-1);
  color: var(--text-light);
  font-size: 0.95rem;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--whatsapp-green);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-header {
    position: sticky;
  }

  #main-nav {
    width: 100%;
    order: 3;
  }

  #main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 0.5rem;
  }

  #main-nav ul.active {
    display: flex;
  }

  #main-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }
}
