:root {
  --primary: #1e2e4a;
  --primary-deep: #121c2c;
  --primary-light: #2f4d7f;
  --secondary: #b38345;
  --secondary-deep: #8a6530;
  --dark: #15181f;
  --gray: #5b6472;
  --light: #f5f6f9;
  --white: #ffffff;
  --soft: #eef2f8;
  --green: #16a34a;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --shadow-sm: 0 2px 10px rgba(18, 28, 44, 0.09);
  --shadow-md: 0 10px 26px rgba(18, 28, 44, 0.13);
  --shadow-lg: 0 18px 40px rgba(18, 28, 44, 0.18);
}

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

html {
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  z-index: 2000;
  transition: top 200ms var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(25, 21, 18, 0.06);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.2px;
}

.logo-text span {
  color: var(--secondary);
}

.menu {
  display: flex;
  gap: 8px;
  list-style: none;
}

.menu a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.menu a:hover {
  color: var(--primary);
  background: var(--soft);
}

.menu a.active {
  color: var(--primary);
}

.menu a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 10%, var(--primary-light) 0%, var(--primary) 45%, var(--primary-deep) 100%);
  color: var(--white);
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 85% 100%, rgba(179, 131, 69, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f2dfb8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-weight: 600;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  max-width: 18ch;
}

.hero-identity {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding-left: 15px;
  border-left: 3px solid var(--secondary);
}

.hero-identity strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.hero-identity span {
  color: #f2dfb8;
  font-size: 13.5px;
  line-height: 1.5;
}

.hero p {
  font-size: 17.5px;
  color: #e4e9f2;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero p.hero-lead {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.7;
}

.hero p.hero-closing {
  margin-bottom: 28px;
  color: #f2dfb8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 13px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #e4e9f2;
}

.hero-card li strong {
  display: block;
  margin-bottom: 3px;
  color: var(--white);
  font-size: 14.5px;
  line-height: 1.35;
}

.hero-card li p {
  max-width: none;
  margin: 0;
  color: #d3ddec;
  font-size: 12.5px;
  line-height: 1.5;
}

.hero-card li .glyph {
  flex: none;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  color: #eec488;
}

.hero-card li .glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), color 200ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--secondary-deep);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(35, 26, 10, 0.18);
}

.btn-primary:hover {
  background: #71542a;
  box-shadow: 0 8px 18px rgba(35, 26, 10, 0.22);
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-solid-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(14, 20, 32, 0.22);
}

.btn-solid-primary:hover {
  background: #0e1622;
}

section {
  padding: 96px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-title p {
  color: var(--gray);
  max-width: 640px;
  margin: auto;
  font-size: 15.5px;
}

.dark-section .section-title h2 {
  color: var(--white);
}

.dark-section .section-title p {
  color: #d8e0ec;
}

/* Reveal-on-scroll (progressive enhancement; JS adds .is-visible) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.card {
  display: block;
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

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

.card-featured {
  grid-column: span 2;
  background: linear-gradient(155deg, var(--soft) 0%, var(--white) 55%);
  border: 1px solid rgba(179, 131, 69, 0.25);
}

.card-featured .badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: rgba(122, 31, 43, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--secondary-deep);
  margin-bottom: 18px;
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 19px;
}

.card > p {
  color: var(--gray);
  margin-bottom: 14px;
  font-size: 14.5px;
}

.card ul {
  padding-left: 18px;
  color: var(--gray);
  font-size: 14px;
}

.card li {
  margin-bottom: 6px;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--secondary-deep);
  font-weight: 700;
  font-size: 13.5px;
}

.card:hover .card-cta {
  text-decoration: underline;
}

.about {
  background: var(--white);
}

.about-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.profile-card {
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--white);
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.profile-photo {
  display: block;
  width: 100%;
  height: clamp(390px, 46vw, 540px);
  object-fit: cover;
  object-position: center 18%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-card-content {
  padding: 28px 32px 30px;
}

.profile-card h3 {
  font-weight: 600;
  font-size: 27px;
  margin-bottom: 12px;
}

.profile-card p {
  color: #e2e8f2;
  font-size: 14.5px;
  margin-bottom: 9px;
}

.profile-card p:last-child {
  margin-bottom: 0;
}

.about-text h2 {
  font-weight: 600;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  max-width: 62ch;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.strengths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.strength {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--soft);
  padding: 13px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.strength .glyph {
  flex: none;
  color: var(--secondary-deep);
}

.dark-section {
  background: radial-gradient(130% 130% at 100% 0%, #24406b 0%, var(--primary-deep) 55%, #0a0f18 100%);
  color: var(--white);
}

.strength-carousel {
  max-width: 980px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.strength-viewport {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(3, 10, 22, 0.38);
}

.strength-track {
  display: flex;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.why-item {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  overflow: hidden;
}

.why-image {
  display: block;
  width: 100%;
  height: clamp(330px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  filter: saturate(0.86) contrast(1.04);
}

.why-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
}

.why-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 14px;
  color: #eec488;
}

.why-item p {
  font-size: 15px;
  line-height: 1.75;
  color: #d3ddec;
}

.strength-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
}

.carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
}

.carousel-dots {
  display: flex;
  gap: 9px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 280ms ease, background-color 280ms ease;
}

.carousel-dot[aria-current="true"] {
  width: 28px;
  border-radius: 999px;
  background: var(--secondary);
}

@media (max-width: 720px) {
  .why-item {
    grid-template-columns: 1fr;
  }

  .why-image {
    height: 245px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .why-content {
    min-height: 210px;
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strength-track {
    transition: none;
  }
}

.contact {
  background: var(--white);
}

.contact-intro-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.section-title .contact-intro-copy p {
  max-width: none;
  margin: 0;
}

.contact-intro-copy strong {
  color: var(--primary);
}

.section-title .contact-intro-cta {
  margin-top: 4px;
  color: var(--primary);
  font-size: 16px;
}

.contact-box {
  background: var(--light);
  padding: 32px 36px;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  font-weight: 600;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 12px;
  font-size: 14.5px;
}

footer {
  background: #10141c;
  color: #9aa3b4;
  padding: 26px 0;
  text-align: center;
  font-size: 13.5px;
}

.footer-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #7c8494;
}

.footer-meta a {
  color: #b9c3d6;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.footer-meta a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-meta .footer-sep {
  color: #38404f;
}

.whatsapp {
  position: fixed;
  bottom: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.whatsapp:active {
  transform: scale(0.96);
}

@media (max-width: 900px) {
  .hero-grid,
  .about-box {
    grid-template-columns: 1fr;
  }

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

  .card-featured {
    grid-column: span 2;
  }

  .menu {
    display: none;
  }

  .hero h1 {
    font-size: 34px;
    max-width: none;
  }

  section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  .grid,
  .grid-2,
  .why-grid,
  .strengths {
    grid-template-columns: 1fr;
  }

  .card-featured {
    grid-column: span 1;
  }

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

  .hero h1 {
    font-size: 29px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Lead capture modal */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 12, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  z-index: 2000;
}

.lead-overlay[hidden] {
  display: none;
}

.lead-dialog {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(20, 14, 12, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .lead-dialog {
    animation: leadDialogIn 320ms var(--ease-out);
  }
}

@keyframes leadDialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lead-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-deep), #0a0f18);
  color: var(--white);
  padding: 22px 52px 22px 22px;
}

.lead-avatar {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.lead-header-text .eyebrow-small {
  display: block;
  font-size: 12px;
  color: #d8e0ec;
  margin-bottom: 2px;
}

.lead-header-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

.lead-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #d7f4e2;
  margin-top: 4px;
}

.lead-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
}

.lead-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}

.lead-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lead-close:active {
  transform: scale(0.92);
}

.lead-body {
  padding: 24px 22px 22px;
}

.lead-greeting {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 8px;
}

.lead-body > p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.lead-field {
  margin-bottom: 16px;
}

.lead-field label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--dark);
  margin-bottom: 6px;
}

.lead-field input {
  width: 100%;
  border: 1.5px solid #d9dee6;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.lead-field input:focus-visible {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(179, 131, 69, 0.18);
}

.lead-phone-row {
  display: flex;
  gap: 8px;
}

.lead-phone-prefix {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1.5px solid #d9dee6;
  border-radius: 12px;
  background: var(--soft);
  color: var(--gray);
  font-size: 14.5px;
  font-weight: 600;
}

.lead-phone-row input {
  flex: 1;
}

.lead-turnstile {
  margin: 4px 0 18px;
  min-height: 65px;
}

.lead-error {
  display: none;
  background: #fdecec;
  color: #9f1c1c;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.lead-error.is-visible {
  display: block;
}

.lead-submit {
  width: 100%;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  padding: 14px 22px;
  box-shadow: 0 6px 14px rgba(10, 60, 30, 0.2);
}

.lead-submit:hover:not(:disabled) {
  background: #128a3e;
}

.lead-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .lead-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .lead-dialog {
    max-width: none;
  }
}

/* Inline forms (Contáctanos section + service request forms) */
.contact-form-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 36px;
  margin-top: 22px;
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 6px;
}

.contact-form-card > p {
  color: var(--gray);
  font-size: 14.5px;
  margin-bottom: 22px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-field select,
.lead-field textarea {
  width: 100%;
  border: 1.5px solid #d9dee6;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.lead-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b6472'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.293l3.71-4.06a.75.75 0 111.11 1.012l-4.25 4.65a.75.75 0 01-1.11 0l-4.25-4.65a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.lead-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.lead-field select:focus-visible,
.lead-field textarea:focus-visible {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(179, 131, 69, 0.18);
}

.form-success {
  display: none;
  background: #eaf7ee;
  color: #146c34;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

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

@media (max-width: 600px) {
  .contact-form-card {
    padding: 24px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Service detail pages */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 13.5px;
  color: var(--gray);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.service-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 20px 0 20px 28px;
}

.service-hero-photo {
  display: block;
  width: 100%;
  height: clamp(300px, 34vw, 430px);
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 54px rgba(8, 18, 35, 0.38);
}

@media (max-width: 900px) {
  .service-hero-visual {
    padding: 12px 0 4px;
  }

  .service-hero-photo {
    height: clamp(260px, 62vw, 400px);
    border-radius: 14px;
  }
}

.service-detail h2 {
  font-weight: 600;
  font-size: 27px;
  color: var(--primary);
  margin: 44px 0 14px;
}

.service-detail > .container > h2:first-child,
.service-detail h2:first-of-type {
  margin-top: 0;
}

.service-detail p {
  color: var(--gray);
  font-size: 15.5px;
  max-width: 72ch;
  margin-bottom: 14px;
}

.process-steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

.process-steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 62px;
  background: var(--soft);
  border-radius: 14px;
}

.process-steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-steps strong {
  display: block;
  color: var(--dark);
  font-size: 15.5px;
  margin-bottom: 4px;
}

.process-steps span {
  color: var(--gray);
  font-size: 14.5px;
}

.includes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 8px;
}

.includes-item {
  background: var(--white);
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  padding: 20px 22px;
}

.includes-item h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--primary);
  margin-bottom: 6px;
}

.includes-item p {
  font-size: 14px;
  margin-bottom: 0;
}

.who-for-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0 8px;
}

.who-for-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 600;
}

.who-for-list .glyph {
  flex: none;
  color: var(--secondary-deep);
}

@media (max-width: 700px) {
  .includes-grid {
    grid-template-columns: 1fr;
  }
}

/* Strategic technology partner */
.technology-partner {
  background: linear-gradient(145deg, #111c2e 0%, var(--primary-deep) 62%, #172b49 100%);
  color: var(--white);
  overflow: hidden;
}

.partner-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.partner-eyebrow {
  display: inline-block;
  color: #eec488;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partner-brandline {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.partner-logo-link {
  flex: none;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  transition: transform 200ms ease, filter 200ms ease;
}

.partner-logo-link:hover,
.partner-logo-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.partner-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.partner-copy h2 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.partner-copy p {
  color: #d3ddec;
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.partner-copy strong {
  color: var(--white);
}

.partner-cta {
  margin-top: 14px;
}

.partner-visual {
  position: relative;
}

.partner-visual::before {
  content: "";
  position: absolute;
  inset: -12px 18px 18px -12px;
  border: 1px solid rgba(179, 131, 69, 0.48);
  border-radius: 18px;
}

.partner-visual img {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(350px, 36vw, 465px);
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.partner-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(48px, 7vw, 76px);
}

.partner-capability {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.partner-number {
  display: block;
  margin-bottom: 18px;
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 13px;
}

.partner-capability h3 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.partner-capability p {
  color: #c6d2e4;
  font-size: 13.5px;
  line-height: 1.65;
}

.partner-outcome {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 3px solid var(--secondary);
  background: rgba(179, 131, 69, 0.1);
  color: #dce5f2;
  font-size: 14px;
}

.partner-outcome strong {
  flex: none;
  color: #eec488;
}

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

@media (max-width: 760px) {
  .partner-intro {
    grid-template-columns: 1fr;
  }

  .partner-visual {
    order: -1;
  }

  .partner-visual img {
    height: 300px;
  }

  .partner-logo-link {
    width: 68px;
    height: 68px;
  }

  .partner-capabilities {
    grid-template-columns: 1fr;
  }

  .partner-outcome {
    display: block;
  }

  .partner-outcome strong {
    display: block;
    margin-bottom: 5px;
  }
}
