/* Shared layout repairs, loaded after the existing theme. */
img, video { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; min-width: 0; }
:where(.hero-grid, .split, .contact-layout, .contact-cards, .footer-grid, .form-grid) > * { min-width: 0; }
:where(h1, h2, h3, p, a) { overflow-wrap: break-word; }
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #e30613; outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
.brand { flex-shrink: 0; }
.brand img { flex-shrink: 0; }
.blog-post-page { background: linear-gradient(180deg, #fff6f7, #fff 420px); }
.article { max-width: 880px; }
.article-breadcrumb { display: flex; gap: 12px; margin-bottom: 32px; color: var(--muted); font-size: 14px; }
.article-breadcrumb a:hover { color: var(--red); }
.article-head h1 { font-size: clamp(30px, 4.5vw, 52px); line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
.article-head .lead { max-width: 760px; line-height: 1.7; }
.article-meta { margin: 24px 0 32px; color: var(--muted); font-size: 14px; }
.article-content { padding: clamp(22px, 4vw, 48px); border-radius: 20px; line-height: 1.85; font-size: 17px; box-shadow: 0 12px 40px rgba(17,17,17,.035); overflow-wrap: anywhere; }
.article-content h2 { margin: 32px 0 16px; font-size: clamp(22px, 3vw, 29px); line-height: 1.35; letter-spacing: -.02em; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content p { margin-bottom: 18px; }
.article-end { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.blog-card { display: flex; flex-direction: column; min-width: 0; }
.blog-card h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.3; }
.blog-card a { margin-top: auto; }
.footer-contact a, .footer-brand p, .direct-apply a { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; min-height: 44px; cursor: pointer; }
  .nav-links { position: absolute; inset: 100% 16px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; max-height: calc(100dvh - 100px); overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .lang-switch { align-self: flex-start; margin: 8px 0 12px; }
  .lang-switch button { min-height: 40px; }
}
@media (max-width: 760px) {
  .page { padding: 38px 0 60px; }
  .contact-layout { grid-template-columns: 1fr; }
  .article-breadcrumb { margin-bottom: 24px; }
  .article-head .lead { font-size: 18px; }
  .article-content { font-size: 16px; }
  .campaign-flyout { position: relative; inset: auto; width: min(100% - 28px, 500px); margin: 24px auto; animation: none; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; min-height: 70px; }
  .brand { gap: 7px; }
  .brand .brand-text, .brand .brand-text span { font-size: clamp(13px, 3.8vw, 16px); }
  .brand img { width: 36px; height: 36px; }
  .menu-toggle { padding: 8px 10px; }
  .hero-copy h1, .page-head h1 { font-size: clamp(30px, 8.5vw, 40px); }
  .hero-grid { gap: 24px; }
  .stats span { padding: 18px; min-height: auto; }
  .article-end { flex-direction: column; }
  .contact-form, .apply-form { padding: 20px; }
  input, select, textarea { font-size: 16px; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Blog cards: consistent columns, cover ratios and reading rhythm. */
.blog-list-page { padding-top: 52px; background: linear-gradient(180deg, #fff8f9, #fff 340px); }
.blog-intro { margin-bottom: 30px; }
.blog-intro h1 { margin-bottom: 12px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.blog-intro > p { margin-bottom: 0; color: var(--muted); font-size: 16px; }
.blog-list-page .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.blog-list-page .blog-card { overflow: hidden; padding: 0; border: 1px solid #e9e9ed; border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(17,17,17,.025); transition: box-shadow .2s, border-color .2s; }
.blog-list-page .blog-card:hover { border-color: #f3c8ce; box-shadow: 0 12px 32px rgba(17,17,17,.065); }
.blog-list-page .blog-card a { margin: 0; padding: 0; width: auto; border-radius: 0; background: transparent; color: inherit; font-weight: inherit; display: inline; }
.blog-list-page .blog-card .blog-cover { display: block; position: relative; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: #f7eef0; }
.blog-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.blog-category { margin-bottom: 12px; color: #bb2334; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-list-page .blog-card h2 { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; min-height: 4.2em; }
.blog-list-page .blog-card h2 a { overflow-wrap: anywhere; }
.blog-list-page .blog-card h2 a:hover { color: var(--red); }
.blog-card-body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 24px; color: #6a6a73; font-size: 14px; line-height: 1.75; }
.blog-list-page .blog-card .blog-read-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid #efeff2; font-size: 13px; font-weight: 700; }
.blog-read-link span { color: var(--red); font-size: 21px; }
.blog-cover-placeholder { padding: 24px; background: radial-gradient(circle at 90% 0, #f4bac2, transparent 60%), #fff0f2 !important; }
.blog-cover-placeholder::after { content: ''; position: absolute; right: -30px; bottom: -55px; width: 180px; height: 180px; border: 1px solid #e8aab3; border-radius: 50%; box-shadow: 0 0 0 24px #e3061305, 0 0 0 48px #e3061304; }
.blog-placeholder-label { display: block; position: relative; z-index: 1; font-size: 9px; letter-spacing: .12em; font-weight: 700; color: #ab3344; }
.blog-placeholder-title { display: block; position: relative; z-index: 1; margin: 22px 0 12px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -.03em; }
.blog-placeholder-tag { position: relative; z-index: 1; color: #98646d; font-size: 10px; }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 18px; margin: 0 0 24px; }
@media (min-width: 621px) and (max-width: 980px) {
  .blog-list-page .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .blog-list-page { padding-top: 34px; }
  .blog-list-page .blog-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog-card-body { padding: 22px; }
  .blog-list-page .blog-card h2 { font-size: 21px; min-height: 0; }
  .blog-placeholder-title { font-size: 27px; }
}

/* Logo placement (2026-10-21): full horizontal logo in header & footer, uncropped mark in hero. */
.site-header .brand { gap: 0; line-height: 0; }
.site-header .brand img.brand-logo { width: auto; height: 46px; max-width: 100%; border-radius: 0; object-fit: contain; }
.footer-brand img.footer-logo { display: block; width: auto; height: 50px; max-width: 100%; margin: 0 0 18px; border-radius: 0; object-fit: contain; }
.logo-core { padding: 22px; }
.logo-core img { border-radius: 0; object-fit: contain; }
@media (max-width: 560px) {
  .site-header .brand img.brand-logo { height: 34px; }
  .footer-brand img.footer-logo { height: 42px; }
  .logo-core { padding: 18px; }
}
@media (max-width: 360px) {
  .site-header .brand img.brand-logo { height: 30px; }
}

/* Impact strip redesign (2026-10-21) */
.impact-strip {
  padding: 44px 0;
  background:
    radial-gradient(90% 160% at 0% 0%, rgba(255,70,80,.55) 0%, transparent 55%),
    radial-gradient(80% 140% at 100% 100%, rgba(70,0,8,.75) 0%, transparent 60%),
    linear-gradient(115deg, #e30613 0%, #c3050f 55%, #8e0510 100%);
  box-shadow: none;
}
.impact-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 45%, transparent 55%, #000);
  pointer-events: none;
}
.impact-strip .impact-grid { gap: 18px; text-align: left; align-items: stretch; }
.impact-strip .impact-grid .impact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 34px rgba(70,0,8,.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.impact-strip .impact-grid .impact-item:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 20px 40px rgba(70,0,8,.3);
}
.impact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: #fff;
  color: var(--red);
  box-shadow: 0 10px 22px rgba(60,0,6,.28);
}
.impact-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.impact-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.impact-strip .impact-icon { display: none; }
.impact-strip .impact-grid strong {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(60,0,6,.25);
  white-space: nowrap;
}
.impact-strip .impact-grid small { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; line-height: 1.3; }
@media (max-width: 1000px) and (min-width: 761px) {
  .impact-strip .impact-grid .impact-item { flex-direction: column; text-align: center; gap: 12px; padding: 20px 14px; }
}
@media (max-width: 760px) {
  .impact-strip { padding: 30px 0; }
  .impact-strip .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .impact-strip .impact-grid .impact-item { flex-direction: column; text-align: center; gap: 10px; padding: 18px 10px; border-radius: 16px; }
  .impact-ico { width: 46px; height: 46px; border-radius: 13px; }
  .impact-ico svg { width: 22px; height: 22px; }
  .impact-strip .impact-grid strong { font-size: 26px; }
  .impact-strip .impact-grid small { font-size: 13px; }
}
