/* Irazusta Company LLC — styles */
:root {
  --slate: #3E4F66;      /* logo navy */
  --slate-deep: #2B384A;
  --steel: #C8CACD;      /* logo gray */
  --ink: #232C38;
  --muted: #5B6675;
  --paper: #F6F7F8;
  --mist: #E6E9ED;
  --white: #FFFFFF;
  --maxw: 1180px;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--slate-deep); }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

/* Language switching: English is the default, visible without JS */
html[data-lang="es"] .en { display: none !important; }
html:not([data-lang="es"]) .es { display: none !important; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 247, 248, 0.94);
  border-bottom: 1px solid var(--mist);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(246, 247, 248, 0.82); backdrop-filter: blur(8px); }
}
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 22px; height: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-name span { font-weight: 400; color: var(--muted); }

.nav { margin-left: auto; display: flex; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--slate); text-decoration: underline; }

.lang {
  display: inline-flex; border: 1px solid var(--steel); border-radius: 999px; padding: 2px;
}
.lang button {
  font: inherit; font-size: 0.8rem; font-weight: 500; border: 0; background: transparent;
  color: var(--muted); padding: 4px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--slate); color: var(--white); }

.menu-btn {
  display: none; font: inherit; font-size: 0.9rem; border: 1px solid var(--steel);
  background: var(--white); color: var(--ink); border-radius: 6px; padding: 6px 12px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 96px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 24px; max-width: 16ch; text-wrap: balance;
}
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 13px 24px; border-radius: 4px; border: 1px solid var(--slate);
}
.btn-primary { background: var(--slate); color: var(--white); }
.btn-primary:hover { background: var(--slate-deep); color: var(--white); }
.btn-ghost { color: var(--slate); background: transparent; }
.btn-ghost:hover { background: var(--white); }

/* The monogram: the one orchestrated moment */
.mark { justify-self: center; width: min(100%, 330px); }
.mark .z { animation: z-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
.mark .i-top { animation: bar-in .7s cubic-bezier(.2,.7,.2,1) .35s both; transform-origin: 50% 0; }
.mark .i-stem { animation: stem-in .8s cubic-bezier(.2,.7,.2,1) .55s both; transform-origin: 50% 0; transform-box: fill-box; }
.mark .i-base { animation: bar-in .7s cubic-bezier(.2,.7,.2,1) .9s both; }
@keyframes z-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes stem-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.facts {
  margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--steel);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.facts dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 56px;
}
.section-head { position: relative; padding-left: 22px; align-self: start; }
.section-head::before {
  /* echo of the I-beam stem */
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--slate);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 12px; font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; }
h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 700; }
.body p { margin: 0 0 18px; max-width: 64ch; }
.body > p:first-child { font-size: 1.2rem; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.principles div { border-top: 3px solid var(--steel); padding-top: 18px; }
.principles p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.alt { background: var(--white); border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }

.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px; padding: 22px 0; border-top: 1px solid var(--mist);
}
.steps li:last-child { border-bottom: 1px solid var(--mist); }
.steps li::before { content: counter(s); font-size: 1.6rem; font-weight: 700; color: var(--steel); line-height: 1.2; }
.steps p { margin: 0; color: var(--muted); }

.partners {
  margin-top: 48px; background: var(--paper); border-left: 5px solid var(--slate);
  padding: 32px 36px;
}
.partners ul { margin: 12px 0 24px; padding-left: 20px; }
.partners li { margin-bottom: 8px; }

.growth-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 8px; }
.growth-list article { padding: 24px 0 0; border-top: 1px solid var(--steel); }
.growth-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.status {
  display: inline-block; font-size: 0.78rem; color: var(--slate); border: 1px solid var(--steel);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 14px;
}

/* Consulting: the one dark band */
.consulting { background: var(--slate-deep); color: #E9ECF0; }
.consulting h2, .consulting h3 { color: var(--white); }
.consulting .section-head::before { background: var(--steel); }
.consulting .section-head p, .consulting .muted { color: #B8C0CB; }
.consulting a { color: var(--white); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 36px 0 44px; }
.services div { border-top: 1px solid rgba(200, 202, 205, .35); padding-top: 16px; }
.services p { margin: 0; color: #B8C0CB; font-size: 0.98rem; }
.programs { margin: 0 0 36px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.programs li { border: 1px solid rgba(200, 202, 205, .45); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; }
.consulting .steps li { border-color: rgba(200, 202, 205, .25); }
.consulting .steps li::before { color: var(--steel); }
.consulting .steps p { color: #B8C0CB; }
.note { font-size: 0.9rem; color: #B8C0CB; margin-top: 28px; max-width: 70ch; }

/* Contact */
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 8px 0 36px; }
.contact-list dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--ink); color: #B8C0CB; padding: 48px 0; font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #E9ECF0; }
.site-footer strong { color: var(--white); font-weight: 500; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.legal p, .legal li { max-width: 70ch; }
.updated { color: var(--muted); margin-bottom: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .mark { order: -1; width: 150px; justify-self: start; }
  .principles, .growth-list, .contact-list, .facts { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-block; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--mist); padding: 8px 28px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .wrap { padding: 0 20px; }
  .partners { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark * { animation: none !important; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 400px) { .brand-name { font-size: 0.95rem; } .brand-name span { display: none; } .header-row { gap: 12px; } }

/* Contact buttons: email + Zadarma call widget */
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
/* Zadarma button: match the site's buttons (type, corners, transitions) */
#myZadarmaCallmeWidget19950 button,
#myZadarmaCallmeWidget19950 a,
#myZadarmaCallmeWidget19950 [class*="button"],
#myZadarmaCallmeWidget19950 [class*="btn"] {
  font-family: var(--font) !important;
  font-weight: 500 !important;
  border-radius: 4px !important;
}
/* Zadarma "Call us" button: same size, shape and type as "Send us an email" */
.contact-actions .btn { min-width: 214px; text-align: center; }
#myZadarmaCallmeWidget19950 .callme__content {
  border-radius: 4px !important;
  box-shadow: none !important;
  padding: 18.5px 24px !important;
  border: 0 !important;
}
#myZadarmaCallmeWidget19950 .callme__icon__text {
  font-family: var(--font) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 17px !important;
  height: auto !important;
}
#myZadarmaCallmeWidget19950 .icon-default-phone-ico { display: none !important; }
#myZadarmaCallmeWidget19950 .connecting-phone-ico,
#myZadarmaCallmeWidget19950 .done-ico,
#myZadarmaCallmeWidget19950 .finish-phone-ico { top: 50% !important; margin-top: -8px !important; }
/* Zadarma button text follows the EN/ES language selector */
#myZadarmaCallmeWidget19950 .callme__icon__text { font-size: 0 !important; line-height: 0 !important; }
#myZadarmaCallmeWidget19950 .callme__icon__text::after { font-size: 1rem; line-height: 17px; display: inline-block; vertical-align: top; }
#myZadarmaCallmeWidget19950 .default-phone-ico { vertical-align: top !important; }
#myZadarmaCallmeWidget19950 .default-phone-ico .callme__icon__text::after { content: "Call us"; }
#myZadarmaCallmeWidget19950 .connecting-phone-ico .callme__icon__text::after { content: "Connecting…"; }
#myZadarmaCallmeWidget19950 .done-ico .callme__icon__text::after { content: "Call ended"; }
html[data-lang="es"] #myZadarmaCallmeWidget19950 .default-phone-ico .callme__icon__text::after { content: "Llámenos"; }
html[data-lang="es"] #myZadarmaCallmeWidget19950 .connecting-phone-ico .callme__icon__text::after { content: "Conectando…"; }
html[data-lang="es"] #myZadarmaCallmeWidget19950 .done-ico .callme__icon__text::after { content: "Llamada finalizada"; }
