/* ==========================================================================
   SIGNORINI & CARABELOS — ESTUDIO CONTABLE, IMPOSITIVO Y LEGAL
   Identidad Tonal Oficial: Azul Noche Institucional (#22234a) y Blanco Luminoso
   Regla: Máximo 2 colores con gradación tonal armonizada
   ========================================================================== */

:root {
  /* Color 1: Azul Noche Oficial del Logo (#22234a) y sus variaciones tonales */
  --primary: #22234a;          /* Azul noche institucional */
  --primary-hover: #161735;    /* Tono profundo de interacción */
  --primary-tint: #37396b;     /* Azul medio para subtítulos y acentos */
  --primary-soft: #4d508e;     /* Azul medio suave */
  --primary-light: #eef0f8;    /* Tinte pastel suave para fondos de tarjetas y badges */
  --primary-border: #ccd1e7;   /* Borde suave de la misma tonalidad */

  /* Color 2: Blanco puro y superficie luminosa neutra */
  --bg-page: #f8f9fc;          /* Fondo limpio de descanso visual */
  --bg-card: #ffffff;          /* Tarjetas en blanco nítido */
  --bg-subtle: #f0f2f8;        /* Superficie neutra suave */

  /* Textos de alta legibilidad basados en la misma escala cromática */
  --text-main: #141530;        /* Azul noche casi negro para lectura impecable */
  --text-body: #353755;        /* Azul grisáceo equilibrado */
  --text-muted: #626482;       /* Tono neutro para metadatos */

  --border-soft: #e2e5f0;
  --shadow-soft: 0 10px 30px -10px rgba(34, 35, 74, 0.08);
  --shadow-hover: 0 18px 36px -12px rgba(34, 35, 74, 0.16);

  /* Tipografía */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1180px;
}

[data-theme="dark"] {
  --bg-page: #101124;
  --bg-card: #181933;
  --bg-subtle: #1f2040;

  --primary: #8a8ec9;
  --primary-hover: #a5a8db;
  --primary-tint: #b8bbe6;
  --primary-soft: #7074ad;
  --primary-light: #222348;
  --primary-border: #353761;

  --text-main: #f5f6fc;
  --text-body: #c2c5e0;
  --text-muted: #8d90b2;

  --border-soft: #27284b;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 18px 36px -12px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   BASE & LEGIBILIDAD
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
iframe,
svg {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

/* Etiquetas suaves */
.badge-pastel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .badge-pastel {
  color: #dcdffa;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.85rem);
  font-weight: 500;
  line-height: 1.18;
  color: var(--text-main);
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 58ch;
  word-break: normal;
  overflow-wrap: break-word;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-page) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 2.85rem;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.mobile-toggle {
  display: none;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.65rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(34, 35, 74, 0.25);
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-primary {
  background: #a5a8db;
  color: #141530;
}

[data-theme="dark"] .btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--primary-border);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-block: 1.1rem 1.25rem;
  color: var(--text-main);
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-title span {
  color: var(--primary);
  font-style: italic;
}

[data-theme="dark"] .hero-title span {
  color: #a5a8db;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-body);
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-body);
}

.pill-feature svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Tarjeta Derecha del Hero */
.hero-visual-card {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.visual-subcard {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.25s ease;
}

.visual-subcard:hover {
  transform: translateY(-3px);
}

.subcard-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--primary-light);
  color: var(--primary);
}

.visual-subcard h2 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.visual-subcard p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* ==========================================================================
   SECCIÓN GENÉRICA
   ========================================================================== */
.section {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.section--subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border-soft);
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-header-center .section-subtitle {
  margin-inline: auto;
}

/* ==========================================================================
   CLIENTES (8 LOGOS SIMÉTRICOS)
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 135px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.client-card--soft-contrast {
  background: var(--primary-light);
  border-color: var(--primary-border);
}

.client-logo-wrap {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo-wrap img {
  max-height: 58px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.client-logo-wrap img.logo-rounded {
  border-radius: 10px;
  max-height: 62px;
}

.client-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   SERVICIOS PRINCIPALES
   ========================================================================== */
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__banner {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.service-card__lead {
  font-size: 0.98rem;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.clean-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.clean-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.details-drawer {
  border-top: 1px solid var(--border-soft);
  padding-top: 0.9rem;
}

.details-drawer summary {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.details-drawer summary::-webkit-details-marker {
  display: none;
}

.details-drawer summary::after {
  content: "+ Ver todos los alcances";
  font-size: 0.85rem;
}

.details-drawer[open] summary::after {
  content: "− Ocultar detalle";
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.soft-chip {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  color: var(--text-body);
}

.card-cta-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.card-cta-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

[data-theme="dark"] .card-cta-btn:hover {
  background: #a5a8db;
  color: #141530;
}

/* ==========================================================================
   SOLUCIONES COMPLEMENTARIAS
   ========================================================================== */
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.compact-card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
}

.compact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.compact-card p {
  font-size: 0.94rem;
  color: var(--text-body);
  margin-bottom: 0.9rem;
}

.compact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.compact-chip {
  font-size: 0.8rem;
  padding: 0.28rem 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-weight: 500;
}

[data-theme="dark"] .compact-chip {
  color: #dcdffa;
}

/* ==========================================================================
   MISIÓN Y OBJETIVOS (3 CAJAS ARMONIZADAS)
   ========================================================================== */
.mission-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pastel-box {
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pastel-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-border);
}

.pastel-box__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.pastel-box h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.pastel-box p {
  font-size: 0.98rem;
  color: var(--text-body);
}

/* ==========================================================================
   EQUIPO PROFESIONAL
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.team-avatar {
  width: 7.25rem;
  height: 7.25rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-soft);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--text-main);
}

.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

[data-theme="dark"] .team-role {
  color: #a5a8db;
}

.team-bio {
  font-size: 0.93rem;
  color: var(--text-body);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.form-group--full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color 0.2s ease;
}

select.form-input {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-input {
  resize: vertical;
  min-height: 95px;
}

.form-alert {
  grid-column: span 2;
  display: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--text-main);
  font-size: 0.92rem;
}

.form-alert.is-visible {
  display: block;
}

/* ==========================================================================
   PIE DE PÁGINA (AZUL NOCHE DEL LOGO #22234a)
   ========================================================================== */
.site-footer {
  background: #22234a;       /* Exacto azul institucional del logo */
  color: #e5e7f6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

[data-theme="dark"] .site-footer {
  background: #121329;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col {
  width: 100%;
  min-width: 0;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: #8a8ec9;
  margin-top: 0.4rem;
  border-radius: var(--radius-pill);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  min-width: 0;
}

.footer-logo-img {
  max-width: 175px;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
}

.footer-brand-text {
  font-size: 0.94rem;
  color: #c0c3e2;
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #22234a;
  transform: translateY(-2px);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.25rem;
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
}

.contact-icon-box {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: calc(100% - 3.25rem);
  min-width: 0;
}

.contact-detail span.label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #a4a8cc;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-detail a,
.contact-detail address {
  font-style: normal;
  font-size: 0.95rem;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: #a5a8db;
}

.footer-map-wrap {
  margin-top: 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #171835;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.footer-map-header a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #a5a8db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-map-header a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-map-frame {
  width: 100%;
  max-width: 100%;
  height: 175px;
  border: 0;
  display: block;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: #9da1c6;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom p {
  word-break: normal;
  overflow-wrap: break-word;
}

.footer-bottom a {
  color: #c0c3e2;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .mission-cards,
  .core-grid,
  .other-services-grid,
  .team-grid,
  .contact-box,
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-block: 2rem 3rem;
  }

  .hero-desc {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-visual-card {
    padding: 1.25rem;
  }

  .visual-subcard {
    padding: 1rem 1.15rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-soft);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .compact-card {
    padding: 1.35rem 1.15rem;
  }

  .team-card {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.15rem;
  }

  .team-avatar {
    width: 6rem;
    height: 6rem;
  }

  .contact-box {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-form-card {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    width: 100%;
  }

  .form-group--full,
  .form-alert {
    grid-column: span 1;
    width: 100%;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    align-items: center;
  }

  .contact-detail a,
  .contact-detail address {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: 4.5rem;
  }

  .header-inner {
    height: 4.5rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    max-width: 130px;
    height: auto;
  }

  .theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.9rem;
  }

  .mobile-toggle {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .client-card {
    padding: 0.85rem 0.5rem;
    min-height: 98px;
  }

  .client-logo-wrap {
    height: 44px;
  }

  .client-logo-wrap img {
    max-height: 38px;
    max-width: 100%;
  }

  .client-name {
    font-size: 0.76rem;
  }

  .pill-feature {
    font-size: 0.82rem;
    padding: 0.35rem 0.7rem;
  }

  .details-drawer summary {
    font-size: 0.84rem;
  }
}
