/* ============================================================
   IMPUESTO — page templates (extends impuesto.css)
   Services overview, service detail, industries, about,
   connect, resources.
   ============================================================ */

/* ---------- Compact page hero (navy, centered) ---------- */
.hero--page { padding-top: clamp(140px, 18vh, 200px); padding-bottom: clamp(56px, 8vw, 96px); }
.hero--page .hero__inner { display: block; }
.page-hero { max-width: 50ch; }
.page-hero--center { margin-inline: auto; text-align: center; }
.page-hero .eyebrow { color: var(--yellow); margin-bottom: 22px; }
.page-hero .eyebrow::before { background: var(--yellow); }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
.page-hero__sub { color: rgba(229,233,239,0.82); font-size: clamp(1.08rem, 1.6vw, 1.3rem); margin-top: 22px; max-width: 42ch; }
.page-hero--center .page-hero__sub { margin-inline: auto; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.page-hero--center .page-hero__cta { justify-content: center; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--navy-pale); margin-bottom: 26px; }
.crumbs a { color: var(--navy-pale); transition: color .2s; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span { opacity: 0.5; }
.page-hero--center .crumbs { justify-content: center; }

/* hero icon badge for detail pages */
.hero__badge { width: 64px; height: 64px; border-radius: 18px; background: rgba(248,208,8,0.12); border: 1px solid rgba(248,208,8,0.3); display: grid; place-items: center; margin-bottom: 28px; }
.page-hero--center .hero__badge { margin-inline: auto; }
.hero__badge svg { width: 30px; height: 30px; }

/* ---------- Logos strip (light) ---------- */
.logostrip { background: var(--white); border-bottom: 1px solid var(--n-200); padding-block: 30px; }
.logostrip__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 40px; }
.logostrip__label { width: 100%; text-align: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.logostrip .logo-card { background: transparent; border: none; color: var(--navy-pale); padding: 0; }

/* ---------- The problem ---------- */
.problem { background: var(--white); }
.problem__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.problem h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.problem__body { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--slate); line-height: 1.6; }
.problem__body p + p { margin-top: 1em; }
.problem__mark { display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--navy-line); font-size: 4rem; line-height: 0.6; height: 40px; }

/* ---------- Section intro (centered) ---------- */
.sintro { text-align: center; max-width: 52ch; margin: 0 auto 52px; }
.sintro .eyebrow { justify-content: center; margin-bottom: 16px; }
.sintro h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.sintro p { color: var(--slate); font-size: 1.1rem; }

/* ---------- Feature grid ("What you get" cards) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fcard {
  background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius);
  padding: 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.fcard::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: var(--yellow); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.fcard:hover::after { transform: scaleX(1); }
.fcard__n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--navy-mid); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.fcard h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.fcard p { color: var(--slate); font-size: 0.97rem; }

/* services overview cards (link variant) */
.svc-grid--lg .svc { padding: 32px; }
.svc-grid--lg .svc p { font-size: 1.0rem; }

/* ---------- Check list ---------- */
.checks { background: var(--paper); }
.check-list { display: grid; gap: 14px; max-width: 60ch; }
.check-list--2 { grid-template-columns: 1fr 1fr; max-width: none; gap: 16px 40px; }
.check-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--n-200); }
.check-list--cards .check-item { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius); padding: 22px; }
.check-item__ic { width: 28px; height: 28px; border-radius: 9px; background: var(--navy); display: grid; place-items: center; flex: none; margin-top: 2px; }
.check-item__ic svg { width: 15px; height: 15px; }
.check-item b { font-weight: 700; color: var(--ink); font-size: 1.05rem; display: block; margin-bottom: 3px; font-family: var(--font-display); letter-spacing: -0.01em; }
.check-item p, .check-item span.t { color: var(--slate); font-size: 0.98rem; display: block; }

/* ---------- Why band (navy) ---------- */
.why { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.why__bg { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(rgba(141,163,199,0.18) 1.3px, transparent 1.5px); background-size: 30px 30px; mask-image: radial-gradient(80% 80% at 70% 20%, #000, transparent); }
.why__inner { position: relative; z-index: 2; }
.why h2 { color: var(--white); margin-bottom: 40px; max-width: 20ch; }
.why .eyebrow { color: var(--yellow); margin-bottom: 16px; }
.why .eyebrow::before { background: var(--yellow); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(141,163,199,0.18); border-radius: var(--radius); padding: 28px; transition: background .3s, border-color .3s, transform .3s; }
.why-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(248,208,8,0.4); transform: translateY(-4px); }
.why-card__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; margin-bottom: 18px; }
.why-card__ic svg { width: 22px; height: 22px; }
.why-card p { color: var(--mist); font-size: 1.0rem; line-height: 1.5; }

/* ---------- Industries grid ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind-card {
  background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px; min-height: 230px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.ind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.ind-card__ic { width: 50px; height: 50px; border-radius: 13px; background: var(--navy); display: grid; place-items: center; }
.ind-card__ic svg { width: 26px; height: 26px; }
.ind-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.ind-card p { color: var(--slate); font-size: 0.97rem; flex: 1; }
.ind-card .link-arrow { font-size: 0.9rem; margin-top: 4px; }

/* ---------- Lede paragraph (industry detail intro) ---------- */
.lede-sec { background: var(--white); }
.lede { max-width: 58ch; }
.lede h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; }
.lede p { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--slate); line-height: 1.6; }

/* ---------- About ---------- */
.belief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.belief { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--n-200); }
.belief__q { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--yellow); line-height: 0.6; height: 28px; }
.belief b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin: 18px 0 8px; letter-spacing: -0.01em; }
.belief p { color: var(--slate); font-size: 0.98rem; }

.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.founder__photo { aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--navy); box-shadow: var(--shadow-md); }
.founder__photo .ph-stripes { position: absolute; inset: 0; flex-direction: column; gap: 10px; }
.founder__photo .ph-stripes .ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(248,208,8,0.18); display: grid; place-items: center; }
.founder__name { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.founder__role { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--navy-mid); margin: 12px 0 24px; line-height: 1.7; }
.founder__bio p { color: var(--slate); font-size: 1.05rem; line-height: 1.6; }
.founder__bio p + p { margin-top: 1em; }
.founder__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.founder__links a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy-line); transition: box-shadow .2s, transform .2s; color: var(--navy); }
.founder__links a:hover { box-shadow: inset 0 0 0 1.5px var(--navy-mid); transform: translateY(-2px); }

/* ---------- Connect / form ---------- */
.connect-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.expect h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 28px; }
.expect__list { display: grid; gap: 18px; }
.expect__item { display: flex; gap: 16px; align-items: flex-start; }
.expect__item .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--mist); display: grid; place-items: center; flex: none; }
.expect__item .ic svg { width: 18px; height: 18px; }
.expect__item b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; display: block; margin-bottom: 3px; }
.expect__item p { color: var(--slate); font-size: 0.97rem; }
.expect__alt { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--n-200); }
.expect__alt h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.expect__alt a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-weight: 600; color: var(--navy); transition: color .2s; }
.expect__alt a:hover { color: var(--amber); }
.expect__alt a .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; flex: none; }
.expect__alt a .ic svg { width: 16px; height: 16px; }

.cform { background: var(--white); border: 1px solid var(--n-200); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); position: relative; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--font-text); font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--n-300); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(16,42,96,0.08); }
.field input::placeholder, .field textarea::placeholder { color: var(--n-400); }
.checkrow { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 14px; }
.checkrow input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.checkrow label { font-size: 0.9rem; color: var(--slate); line-height: 1.45; }
.checkrow a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.cform .btn { width: 100%; margin-top: 8px; }
.cform__success { margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #E8F6EF; border: 1px solid #B7E2CC; color: #15603F; font-weight: 600; font-size: 0.95rem; display: none; align-items: center; gap: 10px; }
.cform__success.show { display: flex; animation: menuIn .4s var(--ease); }

/* ---------- Resources extras ---------- */
.res-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { font-family: var(--font-text); font-weight: 600; font-size: 0.9rem; padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--n-300); color: var(--slate); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--navy-mid); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.news { background: var(--navy); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; color: var(--white); position: relative; overflow: hidden; margin-top: 56px; }
.news__bg { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(141,163,199,0.2) 1.3px, transparent 1.5px); background-size: 26px 26px; mask-image: radial-gradient(80% 100% at 90% 0%, #000, transparent 70%); }
.news__c { position: relative; z-index: 2; }
.news h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2rem); }
.news p { color: var(--navy-pale); margin-top: 8px; }
.news__form { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; }
.news__form input { font-family: var(--font-text); font-size: 1rem; padding: 14px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: var(--white); min-width: 240px; }
.news__form input::placeholder { color: var(--navy-pale); }
.news__form input:focus { outline: none; border-color: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid, .why-grid, .ind-grid, .belief-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .problem__inner { grid-template-columns: 1fr; gap: 20px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 360px; }
  .connect-grid { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .feature-grid, .feature-grid--2, .why-grid, .ind-grid, .belief-grid, .check-list--2 { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
}

/* ============================================================
   HERO ABSTRACT ART (one distinct motif per page)
   ============================================================ */
.hero--page .hero__inner:has(.hero__art) {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__art { position: relative; width: 100%; max-width: 440px; justify-self: center; color: #8DA3C7; }
.hero__art svg, .hero__art video { width: 100%; height: auto; display: block; }
.ha-spin { transform-box: fill-box; transform-origin: center; animation: haSpin 48s linear infinite; }
.ha-spin-rev { transform-box: fill-box; transform-origin: center; animation: haSpin 64s linear infinite reverse; }
.ha-float { animation: haFloat 6s ease-in-out infinite; }
.ha-float2 { animation: haFloat 7.6s ease-in-out infinite 0.6s; }
.ha-draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: haDraw 2.2s var(--ease) 0.5s forwards; }
.ha-pulse { animation: haPulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes haSpin { to { transform: rotate(360deg); } }
@keyframes haFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes haDraw { to { stroke-dashoffset: 0; } }
@keyframes haPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.6; } }
@media (max-width: 920px) {
  .hero--page .hero__inner:has(.hero__art) { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; margin-top: 8px; order: 2; }
  .page-hero { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ha-spin, .ha-spin-rev, .ha-float, .ha-float2, .ha-pulse { animation: none; }
  .ha-draw { stroke-dashoffset: 0; animation: none; }
}

/* ---------- Single Resource/Blog Page ---------- */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: clamp(160px, 18vh, 200px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.blog-hero {
  margin-top: clamp(28px, 4vw, 40px);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.blog-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--navy-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}

.blog-banner {
  aspect-ratio: 16/9;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.blog-banner .ph-stripes {
  position: absolute;
  inset: 0;
}

.blog-banner .ph-stripes span {
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.blog-body {
  color: var(--slate);
  font-size: 1.0825rem;
  line-height: 1.7;
}

.blog-body p {
  margin-bottom: 1.5em;
}

.blog-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: var(--ink);
}

.blog-body h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  color: var(--ink);
}

.blog-body ul {
  margin-bottom: 1.5em;
  padding-left: 24px;
}

.blog-body li {
  margin-bottom: 0.6em;
}

.blog-body strong {
  color: var(--ink);
}

.blog-body hr {
  border: 0;
  border-top: 1px solid var(--n-200);
  margin: 40px 0;
}

/* Responsive adjustments for tables in blog body */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.8em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--n-200);
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.table-responsive th,
.table-responsive td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--n-200);
}

.table-responsive th {
  background: var(--paper);
  font-weight: 700;
  color: var(--ink);
}

.table-responsive tr:last-child td {
  border-bottom: none;
}
