/* ═══════════════════════════════════════════════════════════
   ApexGlobe Pharma – Homepage Stylesheet
   Palette (corrected from logo):
     BG Dark:  #080c26  (hero/dark sections)
     BG Navy:  #0c1240  (gradient end)
     BG Teal:  #0b3d5c  (footer)
     Accent:   #3dd4e4  (cyan — exact "Pharma" logo color)
     Blue mid: #1565c0  (globe mid-tones)
     White:    #ffffff
     Light:    #f0f5f9  (alt section bg)
     Border:   #d0dde8
     Text:     #0d1a2e
     Text mid: #3a5068
═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #080c26;
  --bg-navy: #0c1240;
  --bg-teal: #0b3d5c;
  --navy: #0c1240;
  --dark: #080c26;
  --accent: #3dd4e4;
  --accent-dk: #28b8c8;
  /* Dark teal for text/icons on light/white backgrounds — ~7.9:1 on #fff */
  --accent-on-light: #0b5876;
  --blue-mid: #1565c0;
  --cyan: #3dd4e4;
  --teal: #0b3d5c;
  --teal-lt: #1e7fa3;
  --white: #ffffff;
  --light: #f0f5f9;
  --border: #d0dde8;
  --text: #0d1a2e;
  --text-lt: #3a5068;
  --radius: 10px;
  --r-lg: 18px;
  --shadow: 0 4px 24px rgba(8, 12, 38, .10);
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

html {
  scroll-behavior: smooth;
}

body.apexglobe-body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ── Label chip ─────────────────────────────────────────── */
.ag-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  /* Dark teal on light bg → ~7.9:1 contrast ratio (passes WCAG AA+AAA) */
  color: var(--accent-on-light);
  background: rgba(11, 88, 118, .08);
  border: 1px solid rgba(11, 88, 118, .2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.ag-label--light {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
}

/* ── Icons ──────────────────────────────────────────────── */
.ag-icon {
  display: inline-flex;
  align-items: center;
}

.ag-icon svg {
  width: 1.1em;
  height: 1.1em;
}

/* ── Buttons ────────────────────────────────────────────── */
.ag-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: var(--dark);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  cursor: pointer;
  transition: var(--transition);
}

.ag-btn-primary:hover {
  background: #29bdd4;
  border-color: #29bdd4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 217, 232, .35);
}

.ag-btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: var(--transition);
}

.ag-btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.ag-btn-full {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════════ */
.ag-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.ag-header.scrolled {
  background: rgba(8, 12, 38, .95);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 24px rgba(0, 0, 0, .4);
}

.ag-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 16px;
}

.ag-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ag-logo-svg {
  display: block;
}

.ag-logo-img {
  display: block;
  height: 100px;
  width: auto;
}

.ag-nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  /* never wrap to a second line */
}

.ag-nav-links a {
  display: block;
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  /* keep each label on one line */
  color: rgba(255, 255, 255, .85);
  border-radius: 6px;
  transition: var(--transition);
}

.ag-nav-links a:hover {
  color: var(--cyan);
}

.ag-btn-nav {
  background: var(--cyan) !important;
  color: var(--dark) !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.ag-btn-nav:hover {
  background: #29bdd4 !important;
}

/* ── Language switcher ──────────────────────────────────── */
.ag-lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.ag-lang-btn {
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  color: rgba(255, 255, 255, .55) !important;
  transition: var(--transition);
}

.ag-lang-btn:hover {
  color: var(--white) !important;
}

.ag-lang-active {
  color: var(--white) !important;
  background: rgba(61, 212, 228, .15) !important;
  border: 1px solid rgba(61, 212, 228, .3) !important;
  border-radius: 4px;
  padding: 3px 8px !important;
}

.ag-lang-sep {
  color: rgba(255, 255, 255, .25);
  font-size: .7rem;
}

.ag-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.ag-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.ag-hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 60%, #0a1848 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ag-hero-globe {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52vw;
  pointer-events: none;
}

.ag-hero-globe canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ag-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 80px;
}

.ag-hero-badge {
  display: inline-block;
  background: rgba(77, 217, 232, .15);
  border: 1px solid rgba(77, 217, 232, .4);
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.ag-hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  font-family: Georgia, serif;
}

.ag-hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.ag-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ag-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.ag-hero-scroll span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-radius: 12px;
  position: relative;
}

.ag-hero-scroll span::before {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: ag-scroll 2s infinite;
}

@keyframes ag-scroll {
  0% {
    opacity: 1;
    top: 6px;
  }

  100% {
    opacity: 0;
    top: 18px;
  }
}

/* The centered scroll indicator can collide with the hero CTAs on shorter
   or narrower viewports (it sits at 50% width / near the buttons). It is
   purely decorative, so hide it whenever there isn't clear room below the
   centered content — keep it only on tall, wide desktops. */
@media (max-height: 860px), (max-width: 1024px) {
  .ag-hero-scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   SECTION DEFAULTS
═══════════════════════════════════════════════════════════ */
.ag-section {
  padding: 96px 0;
}

.ag-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.ag-section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  font-family: Georgia, serif;
}

.ag-section-header p {
  font-size: 1.05rem;
  color: var(--text-lt);
  max-width: 560px;
  margin: 16px auto 0;
}

.ag-section-header--light h2 {
  color: var(--white);
}

.ag-section-header--light p {
  color: rgba(255, 255, 255, .75);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.ag-about {
  background: var(--light);
}

.ag-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}

.ag-about-visual .ag-globe-svg {
  width: 100%;
  max-width: 380px;
  opacity: .85;
}

.ag-about-text p {
  color: var(--text-lt);
  margin-bottom: 16px;
}

.ag-about-pillars {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.ag-about-pillars li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--teal);
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Dark teal on white pillar bg → ~7.9:1 contrast */
.ag-about-pillars .ag-icon {
  color: var(--accent-on-light);
}

.ag-about-pillars .ag-icon svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.ag-services {
  background: var(--white);
}

.ag-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ag-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
}

.ag-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}

.ag-card-accent {
  background: linear-gradient(135deg, var(--navy), #0d2361);
  border-color: rgba(77, 217, 232, .3);
  color: var(--white);
}

.ag-card-accent h3 {
  color: var(--white);
}

.ag-card-accent p {
  color: rgba(255, 255, 255, .75);
}

.ag-card-icon {
  width: 56px;
  height: 56px;
  /* Dark teal on light card bg → ~7.9:1 contrast */
  background: rgba(11, 88, 118, .09);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-on-light);
}

.ag-card-icon svg {
  width: 26px;
  height: 26px;
}

.ag-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dark);
}

.ag-card p {
  font-size: .9rem;
  color: var(--text-lt);
  line-height: 1.6;
}

/* Accent (dark) card keeps bright cyan — fine on dark bg */
.ag-card-accent .ag-card-icon {
  background: rgba(61, 212, 228, .15);
  color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════ */
.ag-why {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2361 100%);
  padding: 96px 0;
}

.ag-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.ag-pillar {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  transition: var(--transition);
}

.ag-pillar:hover {
  background: rgba(77, 217, 232, .08);
  border-color: rgba(77, 217, 232, .3);
  transform: translateY(-4px);
}

.ag-pillar-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(77, 217, 232, .25);
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.ag-pillar h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ag-pillar p {
  font-size: .83rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   COMPLIANCE
═══════════════════════════════════════════════════════════ */
.ag-compliance {
  background: var(--light);
}

.ag-compliance-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: start;
}

.ag-compliance-text h2 {
  color: var(--dark);
}

.ag-compliance-text>p {
  color: var(--text-lt);
  margin-bottom: 36px;
}

.ag-compliance-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ag-ci h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

/* Dark teal on light bg → ~7.9:1 contrast */
.ag-ci h4 .ag-icon {
  color: var(--accent-on-light);
}

.ag-ci h4 .ag-icon svg {
  width: 18px;
  height: 18px;
}

.ag-ci p {
  font-size: .88rem;
  color: var(--text-lt);
}

.ag-compliance-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.ag-badge-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.ag-badge-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* --accent-on-light (#0b5876) on white → ~7.9:1 contrast */
.ag-badge-icon {
  color: var(--accent-on-light);
  margin-bottom: 14px;
}

.ag-badge-icon svg {
  width: 32px;
  height: 32px;
}

.ag-badge-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
}

/* ═══════════════════════════════════════════════════════════
   PARTNERS
═══════════════════════════════════════════════════════════ */
.ag-partners {
  background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
}

.ag-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ag-partner-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
}

.ag-partner-card:hover {
  background: rgba(77, 217, 232, .08);
  border-color: rgba(77, 217, 232, .3);
  transform: translateY(-4px);
}

.ag-partner-icon {
  width: 56px;
  height: 56px;
  background: rgba(77, 217, 232, .12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--cyan);
}

.ag-partner-icon svg {
  width: 26px;
  height: 26px;
}

.ag-partner-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ag-partner-card p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   QUALITY
═══════════════════════════════════════════════════════════ */
.ag-quality {
  background: var(--white);
}

.ag-quality-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
}

.ag-quality-text>p {
  color: var(--text-lt);
  margin-bottom: 36px;
}

.ag-quality-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ag-qf {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ag-qf-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  /* Dark teal bg + icon on white section → accessible */
  background: rgba(11, 88, 118, .09);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-on-light);
}

.ag-qf-icon svg {
  width: 20px;
  height: 20px;
}

.ag-qf h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.ag-qf p {
  font-size: .87rem;
  color: var(--text-lt);
}

.ag-quality-visual .ag-globe-svg {
  width: 100%;
  max-width: 380px;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.ag-contact {
  background: linear-gradient(135deg, var(--navy), #0d2361);
}

.ag-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.ag-contact-info h2 {
  color: var(--white);
}

.ag-contact-info>p {
  color: rgba(255, 255, 255, .7);
  margin-bottom: 36px;
}

.ag-contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.ag-cd {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ag-cd-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(77, 217, 232, .12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

.ag-cd-icon svg {
  width: 20px;
  height: 20px;
}

.ag-cd strong {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

.ag-cd a,
.ag-cd span {
  color: var(--white);
  font-size: .95rem;
}

.ag-cd a:hover {
  color: var(--cyan);
}

.ag-contact-social {
  display: flex;
  gap: 12px;
}

.ag-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}

.ag-social-btn svg {
  width: 16px;
  height: 16px;
}

.ag-social-btn:hover {
  background: rgba(77, 217, 232, .15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Contact section photo */
.ag-contact-visual {
  margin-bottom: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 200px;
}

.ag-contact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--r-lg);
  opacity: .9;
}

/* Form */
.ag-contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
}

.ag-form .ag-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ag-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.ag-form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ag-form-group input,
.ag-form-group select,
.ag-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  background: var(--light);
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}

.ag-form-group input:focus,
.ag-form-group select:focus,
.ag-form-group textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
}

.ag-form-group textarea {
  resize: vertical;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.ag-footer {
  background: var(--dark);
  padding: 72px 0 0;
}

.ag-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ag-footer-brand p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .55);
  line-height: 1.65;
  margin-top: 20px;
  max-width: 300px;
}

.ag-footer-links h5,
.ag-footer-contact h5 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 20px;
}

.ag-footer-links ul {
  list-style: none;
}

.ag-footer-links li {
  margin-bottom: 10px;
}

.ag-footer-links a,
.ag-footer-contact a {
  color: rgba(255, 255, 255, .65);
  font-size: .88rem;
  transition: color var(--transition);
}

.ag-footer-links a:hover,
.ag-footer-contact a:hover {
  color: var(--cyan);
}

.ag-footer-contact p {
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 8px;
}

.ag-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.ag-footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .07);
  border-radius: 8px;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
}

.ag-footer-social a svg {
  width: 16px;
  height: 16px;
}

.ag-footer-social a:hover {
  background: rgba(77, 217, 232, .15);
  color: var(--cyan);
}

.ag-footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.ag-footer-bottom p {
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
}

/* ═══════════════════════════════════════════════════════════
   SECTION IMAGES
═══════════════════════════════════════════════════════════ */
.ag-section-img {
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}

.ag-about-visual .ag-section-img {
  height: 420px;
}

.ag-quality-visual .ag-section-img {
  height: 400px;
}

/* Service card photo header */
.ag-card-photo {
  margin: -40px -32px 28px;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  overflow: hidden;
  height: 200px;
}

.ag-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.ag-card:hover .ag-card-photo img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════════════════
   GLOBE SVG
═══════════════════════════════════════════════════════════ */
.ag-globe-svg {
  animation: ag-rotate 30s linear infinite;
  transform-origin: center;
}

@keyframes ag-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ag-hero-globe .ag-globe-svg {
  animation-duration: 40s;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* Compact nav on medium-large screens before hamburger kicks in */
@media (max-width: 1200px) and (min-width: 769px) {
  .ag-nav-links a {
    font-size: .76rem;
    padding: 6px 8px;
  }

  .ag-btn-nav {
    padding: 7px 14px !important;
  }

  .ag-logo-img {
    height: 48px;
  }
}

@media (max-width: 1024px) {
  .ag-pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .ag-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-about-grid,
  .ag-compliance-grid,
  .ag-quality-grid {
    grid-template-columns: 1fr;
  }

  .ag-about-visual,
  .ag-quality-visual {
    display: none;
  }

  .ag-compliance-badges {
    position: static;
  }
}

@media (max-width: 768px) {
  .ag-hero-globe {
    display: none;
  }

  .ag-cards {
    grid-template-columns: 1fr;
  }

  .ag-pillars {
    grid-template-columns: 1fr 1fr;
  }

  .ag-footer-grid {
    grid-template-columns: 1fr;
  }

  .ag-contact-grid {
    grid-template-columns: 1fr;
  }

  .ag-contact-form {
    padding: 28px 20px;
  }

  .ag-form .ag-form-row {
    grid-template-columns: 1fr;
  }

  .ag-about-pillars {
    grid-template-columns: 1fr;
  }

  .ag-compliance-badges {
    grid-template-columns: 1fr 1fr;
  }

  .ag-section {
    padding: 64px 0;
  }

  /* Mobile nav */
  .ag-hamburger {
    display: flex;
  }

  .ag-nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(10, 18, 64, .98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .ag-nav-links.open {
    display: flex;
  }

  .ag-nav-links a {
    padding: 12px 16px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .ag-pillars {
    grid-template-columns: 1fr;
  }

  .ag-partners-grid {
    grid-template-columns: 1fr;
  }

  .ag-compliance-badges {
    grid-template-columns: 1fr;
  }

  .ag-hero-ctas {
    flex-direction: column;
  }

  .ag-hero-ctas .ag-btn-primary,
  .ag-hero-ctas .ag-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
/* ═══════════════════════════════════════════════════════════
   BLOG — listing, single post, shared page banner
═══════════════════════════════════════════════════════════ */

/* Page banner (blog index, archives, single post header).
   Padding-top clears the fixed 88px header. */
.ag-page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 60%, #0a1848 100%);
  padding: 160px 0 72px;
  text-align: center;
}
.ag-page-banner h1 {
  font-family: Georgia, serif;
  font-weight: 800;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 auto;
  max-width: 900px;
}
.ag-page-banner p {
  color: rgba(255, 255, 255, .75);
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.ag-page-banner--post { text-align: left; padding-bottom: 56px; }
.ag-page-banner--post h1 { margin: 0; max-width: 860px; }

.ag-back-link {
  display: inline-block;
  color: var(--cyan);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.ag-back-link:hover { color: var(--white); }

/* ── Blog listing grid ──────────────────────────────────── */
.ag-blog { background: var(--light); }
.ag-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ag-post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--transition);
}
.ag-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--cyan);
}
.ag-post-thumb {
  display: block;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #0d2361);
}
.ag-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ag-post-card:hover .ag-post-thumb img { transform: scale(1.05); }
.ag-post-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(61, 212, 228, .5);
}
.ag-post-thumb-fallback svg { width: 48px; height: 48px; }

.ag-post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 26px 30px;
}
.ag-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .78rem;
  color: var(--text-lt);
  margin-bottom: 14px;
}
.ag-post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ag-post-meta .ag-icon { color: var(--accent-on-light); }
.ag-post-meta .ag-icon svg { width: 15px; height: 15px; }
.ag-post-meta--light { color: rgba(255, 255, 255, .75); }
.ag-post-meta--light .ag-icon { color: var(--cyan); }
.ag-post-meta--light a { color: rgba(255, 255, 255, .9); }
.ag-post-meta--light a:hover { color: var(--cyan); }

.ag-post-title {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.ag-post-title a { color: var(--dark); transition: var(--transition); }
.ag-post-title a:hover { color: var(--accent-on-light); }
.ag-post-excerpt {
  font-size: .9rem;
  color: var(--text-lt);
  line-height: 1.65;
  margin-bottom: 20px;
}
.ag-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent-on-light);
  font-weight: 700;
  font-size: .85rem;
  transition: var(--transition);
}
.ag-read-more .ag-icon svg { width: 16px; height: 16px; }
.ag-read-more:hover { gap: 10px; color: var(--teal); }

.ag-blog-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-lt);
  font-size: 1.05rem;
}

/* ── Pagination ─────────────────────────────────────────── */
.ag-pagination { margin-top: 56px; }
.ag-pagination .page-numbers {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.ag-pagination .page-numbers li { display: block; }
.ag-pagination .page-numbers a,
.ag-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
}
.ag-pagination .page-numbers a:hover {
  border-color: var(--cyan);
  color: var(--accent-on-light);
}
.ag-pagination .page-numbers .current {
  background: var(--accent-on-light);
  border-color: var(--accent-on-light);
  color: var(--white);
}

/* ── Single post ────────────────────────────────────────── */
.ag-single { background: var(--white); }
.ag-single-inner { max-width: 800px; margin: 0 auto; }
.ag-single-thumb {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.ag-single-thumb img { width: 100%; height: auto; display: block; }

.ag-single-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.ag-single-content > * + * { margin-top: 1.3em; }
.ag-single-content h2,
.ag-single-content h3,
.ag-single-content h4 {
  font-family: Georgia, serif;
  color: var(--dark);
  line-height: 1.3;
  margin-top: 1.8em;
}
.ag-single-content h2 { font-size: 1.7rem; }
.ag-single-content h3 { font-size: 1.35rem; }
.ag-single-content a { color: var(--accent-on-light); text-decoration: underline; }
.ag-single-content a:hover { color: var(--teal); }
.ag-single-content img { border-radius: var(--radius); height: auto; }
.ag-single-content blockquote {
  border-left: 4px solid var(--cyan);
  background: var(--light);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-lt);
}
.ag-single-content ul,
.ag-single-content ol { padding-left: 1.4em; }
.ag-single-content li { margin-bottom: .5em; }
.ag-single-content code {
  background: var(--light);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .9em;
}
.ag-single-content pre {
  background: var(--dark);
  color: #e6edf5;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.ag-single-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ag-single-tags a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-on-light);
  background: rgba(11, 88, 118, .08);
  border: 1px solid rgba(11, 88, 118, .2);
  border-radius: 999px;
  padding: 5px 14px;
  transition: var(--transition);
}
.ag-single-tags a:hover { background: rgba(11, 88, 118, .16); }

/* Prev / all / next navigation */
.ag-single-nav {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.ag-single-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.ag-single-nav-link:hover { border-color: var(--cyan); background: var(--light); }
.ag-single-nav-link span { font-size: .75rem; color: var(--text-lt); font-weight: 600; }
.ag-single-nav-link strong { font-size: .92rem; color: var(--dark); }
.ag-single-nav-next { text-align: right; }
.ag-single-nav-all {
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: var(--radius);
  background: var(--accent-on-light);
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  white-space: nowrap;
  transition: var(--transition);
}
.ag-single-nav-all:hover { background: var(--teal); }

/* ── Blog responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  .ag-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ag-posts-grid { grid-template-columns: 1fr; }
  .ag-page-banner { padding: 130px 0 56px; }
  .ag-single-nav { flex-direction: column; }
  .ag-single-nav-next { text-align: left; }
}

/* ═══════════════════════════════════════════════════════════
   THEME EXTRAS — search form, comments (theme-only)
═══════════════════════════════════════════════════════════ */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  font-family: inherit;
}
.search-form .search-field:focus { border-color: var(--cyan); }
.search-form .search-submit {
  background: var(--accent-on-light);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.search-form .search-submit:hover { background: var(--teal); }

.ag-comments {
  max-width: 800px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.ag-comments-title {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.ag-comment-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
.ag-comment-list .comment { margin-bottom: 20px; }
.ag-comment-list .comment-body {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.ag-comment-list .children {
  list-style: none;
  margin: 16px 0 0 28px;
  padding: 0;
}
.ag-comment-list .comment-author { font-weight: 700; color: var(--dark); font-size: .92rem; }
.ag-comment-list .comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.ag-comment-list .comment-metadata { font-size: .78rem; color: var(--text-lt); margin: 4px 0 10px; }
.ag-comment-list .comment-metadata a { color: var(--text-lt); }
.ag-comments-closed { color: var(--text-lt); font-size: .9rem; }

.comment-respond {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-top: 32px;
}
.comment-respond .comment-reply-title {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 18px;
}
.comment-respond label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-lt);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  font-family: inherit;
  margin-bottom: 16px;
}
.comment-respond input:focus,
.comment-respond textarea:focus { border-color: var(--cyan); }
.comment-respond .form-submit input {
  background: var(--cyan);
  color: var(--dark);
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.comment-respond .form-submit input:hover { background: #29bdd4; }

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM — honeypot + submit notice
═══════════════════════════════════════════════════════════ */
.ag-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.ag-form-notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
.ag-form-notice--ok {
  color: #0b5b2e;
  background: #e4f6ec;
  border: 1px solid #b7e4c9;
}
.ag-form-notice--err {
  color: #8a1f1f;
  background: #fdeaea;
  border: 1px solid #f3c2c2;
}

/* ═══════════════════════════════════════════════════════════
   SLOGAN BAND (between hero and About)
═══════════════════════════════════════════════════════════ */
.ag-slogan {
  background: linear-gradient(135deg, var(--bg-teal) 0%, var(--navy) 100%);
  padding: 66px 0;
  text-align: center;
}
.ag-slogan-mark {
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 auto 26px;
  border-radius: 3px;
  background: var(--cyan);
}
.ag-slogan p {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .ag-slogan { padding: 48px 0; }
}

/* ═══════════════════════════════════════════════════════════
   NAV CTA — keep it legible when its section is the active one
   The active-nav highlight (added by theme.js) turns the current link
   cyan; on the "Contáctenos" button that means cyan text on a cyan
   background → invisible. Force the button label to stay dark. Higher
   specificity than the JS rule (.ag-nav-links a.ag-active) so it wins.
═══════════════════════════════════════════════════════════ */
.ag-nav-links a.ag-btn-nav.ag-active {
  color: var(--dark) !important;
}
