/* American Health Group S.A.S. corporate site styles */

:root {
  --navy: #0C2454;
  --royal: #1C4E91;
  --red: #A81C26;
  --tint: #E8F0F8;
  --white: #FFFFFF;
  --text: #24303F;
  --text-muted: #5A6B7E;
  --font-display: "Cinzel", serif;
  --font-body: "Source Sans 3", sans-serif;
  --container: 1120px;
  --shadow-soft: 0 2px 12px rgba(12, 36, 84, 0.08);
  --shadow-card: 0 4px 20px rgba(12, 36, 84, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--royal);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 2px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.header-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--royal);
  border-bottom-color: var(--royal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language toggle */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--tint);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--royal);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--navy);
}

.lang-btn.active {
  background: var(--navy);
  color: var(--white);
}

.lang-divider {
  color: var(--royal);
  font-size: 12px;
  opacity: 0.5;
}

.lang-toggle-footer {
  background: rgba(255, 255, 255, 0.12);
}

.lang-toggle-footer .lang-btn {
  color: rgba(255, 255, 255, 0.85);
}

.lang-toggle-footer .lang-btn:hover {
  color: var(--white);
}

.lang-toggle-footer .lang-btn.active {
  background: var(--white);
  color: var(--navy);
}

.lang-toggle-footer .lang-divider {
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--tint);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
}

/* Red accent rule */

.red-rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* Hero */

.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--tint) 100%);
  padding: 96px 0 104px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-media {
  min-width: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(28, 78, 145, 0.14);
  box-shadow: var(--shadow-card);
}

.hero-kicker {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.2;
  color: var(--navy);
  margin: 18px 0 0;
}

.hero-subtitle {
  max-width: 640px;
  margin: 22px 0 0;
  font-size: 19px;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-block;
  margin-top: 36px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  padding: 15px 36px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--royal);
}

/* Section shared */

section {
  padding: 88px 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--navy);
  margin: 0;
}

.section-subtitle {
  margin: 14px 0 0;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 18px;
}

/* Services */

.services {
  background: var(--tint);
}

.services-visual {
  margin-top: 40px;
}

.services-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(28, 78, 145, 0.14);
  box-shadow: var(--shadow-card);
}

.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--royal);
  margin-bottom: 18px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 10px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Clients and brands feature cards */

.brands {
  background: var(--tint);
  border-top: 1px solid rgba(28, 78, 145, 0.10);
}

.brands-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.brands-layout .feature-card {
  margin-top: 0;
}

.brands-visual {
  min-width: 0;
}

.brands-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(28, 78, 145, 0.14);
  box-shadow: var(--shadow-card);
}

.feature-card {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid rgba(28, 78, 145, 0.14);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  max-width: 720px;
}

.feature-card-preview {
  display: block;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid rgba(28, 78, 145, 0.14);
  box-shadow: 0 2px 10px rgba(12, 36, 84, 0.06);
}

.feature-card-preview:focus-visible {
  outline-offset: -3px;
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--navy);
  border-bottom: 2px solid var(--royal);
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.feature-card-screenshot {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s ease;
}

.feature-card-preview:hover .feature-card-screenshot {
  opacity: 0.9;
}

.feature-card-body {
  padding: 40px 44px;
}

.feature-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
  margin: 0;
}

.feature-card-tag {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
}

.feature-card-desc {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--royal);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--royal);
  padding-bottom: 2px;
}

.feature-card-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.feature-card-link svg {
  width: 16px;
  height: 16px;
}

/* About strip */

.about {
  background-color: var(--navy);
  background-image: linear-gradient(rgba(12, 36, 84, 0.82), rgba(12, 36, 84, 0.82)), url("assets/medellin.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 80px 0;
}

.about-inner {
  max-width: 780px;
}

.about-title {
  color: var(--white);
}

.about-body {
  margin: 20px 0 0;
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-company {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 0;
}

.footer-location {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 14px;
}

.footer-col p {
  margin: 0 0 8px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal {
  margin-top: 48px;
  padding-top: 24px;
}

.red-rule-footer {
  width: 40px;
  margin-bottom: 16px;
}

.footer-legal p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero-media {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-image {
    height: auto;
    min-height: 0;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brands-layout {
    grid-template-columns: 1fr;
  }

  .brands-image {
    min-height: 0;
    height: 280px;
    max-height: 280px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border-top: 1px solid var(--tint);
    padding: 8px 24px 16px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--tint);
  }

  .hero {
    padding: 64px 0 72px;
  }

  section {
    padding: 64px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-image {
    height: 220px;
  }

  .brands-image {
    height: 220px;
    max-height: 220px;
  }

  .feature-card-body {
    padding: 28px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
