/* ==========================================================================
   Ketenci & Ketenci — Homepage v5 (scroll-gallery variant)
   Modernizes the live site's owl-carousel pattern with native CSS scroll-snap.
   Scoped entirely under .hm5 — independent from .hm / .hm2 / .hm3 / .hm4
   ========================================================================== */

.hm5 {
  --h5-navy: #242c5a;
  --h5-navy-deep: #012346;
  --h5-red: #e5212d;
  --h5-ink: #1c2136;
  --h5-muted: #5a6079;
  --h5-paper: #faf8f4;
  --h5-line: #e2e0d8;
  --h5-font-display: 'Space Grotesk', sans-serif;
  --h5-font-body: 'Roboto', sans-serif;

  font-family: var(--h5-font-body);
  color: var(--h5-ink);
  background: #fff;
  overflow-x: hidden;
}
.hm5 * { box-sizing: border-box; }

.h5-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.h5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--h5-red);
  margin: 0 0 1rem;
}
.h5-eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--h5-red); display: inline-block; }

.h5-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.h5-row-head h2 {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  color: var(--h5-navy);
  margin: 0;
  line-height: 1.25;
}
.h5-row-head p { margin: .6rem 0 0; color: var(--h5-muted); font-size: .95rem; max-width: 46ch; }

.h5-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--h5-navy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}
.h5-link:hover { color: var(--h5-red); }

.h5-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .95rem 1.7rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.h5-btn-primary { background: var(--h5-navy); color: #fff; border: 1px solid var(--h5-navy); }
.h5-btn-primary:hover { background: var(--h5-red); border-color: var(--h5-red); transform: translateY(-1px); }

/* ================================= HERO =================================== */

.h5-hero {
  position: relative;
  padding: 5.4rem 0 4rem;
  color: #fff;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}
.h5-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.h5-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h5-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,35,70,.35) 0%, rgba(1,35,70,.62) 55%, rgba(1,35,70,.86) 100%);
}

.h5-hero-inner { position: relative; z-index: 1; width: 100%; }

.h5-hero-badge-inline {
  display: inline-flex;
  align-items: baseline;
  gap: .7rem;
  background: linear-gradient(135deg, rgba(1,35,70,.55) 0%, rgba(1,35,70,.9) 100%);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(3px);
  border-radius: 100px;
  padding: .7rem 1.4rem;
  margin-bottom: 1.8rem;
}
.h5-hero-badge-inline .h5-hero-badge-num {
  font-family: var(--h5-font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: #fff;
  line-height: 1;
}
.h5-hero-badge-inline .h5-hero-badge-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}

.h5-hero-grid {
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.h5-hero h1 {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0 0 1.3rem;
  max-width: 17ch;
}
.h5-hero-lede { font-size: 1.06rem; line-height: 1.75; color: rgba(255,255,255,.82); max-width: 52ch; margin: 0 0 1.9rem; }
.h5-hero-ctas { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.h5-hero-ctas .h5-btn-primary { background: var(--h5-red); border-color: var(--h5-red); }
.h5-hero-ctas .h5-btn-primary:hover { background: #fff; color: var(--h5-navy-deep); border-color: #fff; }
.h5-hero-ctas .h5-link { color: #fff; border-color: rgba(255,255,255,.5); }
.h5-hero-ctas .h5-link:hover { color: var(--h5-red); border-color: var(--h5-red); }

.h5-hero-strip {
  display: flex;
  gap: 0;
  margin-top: 2rem;
}
.h5-hero-strip-item {
  flex: 1;
  padding: 1.1rem 1.6rem 1.1rem 0;
  border-right: 1px solid rgba(255,255,255,.22);
  margin-right: 1.6rem;
}
.h5-hero-strip-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.h5-hero-strip-item a {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
}
.h5-hero-strip-item a:hover { color: var(--h5-red); }
.h5-hero-strip-item span {
  display: block;
  font-size: .76rem;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
}

/* ============================== SCROLL GALLERY ============================= */

.h5-gallery { padding: 3.4rem 0; border-bottom: 1px solid var(--h5-line); }

.h5-gallery-nav { display: flex; gap: .6rem; }
.h5-gnav-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--h5-line);
  background: #fff;
  color: var(--h5-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.h5-gnav-btn:hover { border-color: var(--h5-navy); color: var(--h5-red); }

.h5-scroll-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: 2rem;
  padding-bottom: .6rem;
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
  scrollbar-width: none;
}
.h5-scroll-track::-webkit-scrollbar { display: none; }

.h5-card {
  flex: 0 0 240px;
  text-decoration: none;
  color: inherit;
}
.h5-card-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--h5-paper);
}
.h5-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.h5-card:hover .h5-card-photo img { transform: scale(1.04); }
.h5-card-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--h5-red);
  margin: .9rem 0 .3rem;
  display: block;
}
.h5-card-title {
  font-family: var(--h5-font-body);
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--h5-navy);
  line-height: 1.3;
}

/* ================================= ABOUT =================================== */

.h5-about { background: var(--h5-paper); padding: 4.4rem 0; position: relative; overflow: hidden; }
.h5-about-globe {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 0;
}
.h5-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.4rem; position: relative; z-index: 1; }
.h5-about-head {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  color: var(--h5-navy);
  line-height: 1.28;
  margin: 0 0 1rem;
}
.h5-about-text p { color: var(--h5-muted); line-height: 1.8; margin: 0 0 1.2rem; font-size: .98rem; }
.h5-about-text p:last-child { margin-bottom: 0; }

.h5-about-legal h3 {
  font-family: var(--h5-font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h5-navy);
  margin: 0 0 1.1rem;
}
.h5-legal-list { list-style: none; margin: 0; padding: 0; }
.h5-legal-list li { border-top: 1px solid var(--h5-line); }
.h5-legal-list li:last-child { border-bottom: 1px solid var(--h5-line); }
.h5-legal-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  font-size: .92rem;
  color: var(--h5-ink);
  text-decoration: none;
}
.h5-legal-list a:hover { color: var(--h5-red); }
.h5-legal-list a::after { content: "→"; color: var(--h5-muted); font-size: .82rem; }
.h5-legal-list a:hover::after { color: var(--h5-red); }

/* =================================== TRUST ================================== */

.h5-trust { padding: 3.4rem 0; border-bottom: 1px solid var(--h5-line); }
.h5-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.8rem;
}
.h5-award-img {
  height: 92px;
  width: auto;
  filter: grayscale(100%);
  opacity: .7;
  transition: opacity .15s ease, filter .15s ease;
}
.h5-award-img:hover { filter: grayscale(0%); opacity: 1; }

/* ================================ EDITORIAL ================================= */

.h5-editorial { padding: 4.6rem 0; border-bottom: 1px solid var(--h5-line); }
.h5-editorial-grid { display: grid; grid-template-columns: .55fr 1fr; gap: 4rem; align-items: center; }
.h5-editorial-figure {
  font-family: var(--h5-font-display);
  font-size: clamp(4.2rem, 7.5vw, 6.5rem);
  font-weight: 600;
  color: var(--h5-navy);
  line-height: .85;
  border-left: 3px solid var(--h5-red);
  padding-left: 1.6rem;
}
.h5-editorial-figure span {
  display: block;
  font-family: var(--h5-font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h5-muted);
  margin-top: .6rem;
}
.h5-editorial-text h2 {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  color: var(--h5-navy);
  line-height: 1.28;
  margin: 0 0 1.1rem;
  max-width: 26ch;
}
.h5-editorial-text p {
  color: var(--h5-muted);
  line-height: 1.75;
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

/* =================================== CTA ===================================== */

.h5-cta { background: linear-gradient(135deg, var(--h5-navy) 0%, var(--h5-navy-deep) 100%); padding: 4.8rem 0; }
.h5-cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.h5-cta h2 {
  font-family: var(--h5-font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: #fff;
  line-height: 1.25;
  margin: 0 0 .9rem;
  max-width: 20ch;
}
.h5-cta > .h5-container > .h5-cta-grid > div:first-child p {
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  max-width: 46ch;
  margin: 0;
}
.h5-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.h5-cta .h5-btn-primary { background: var(--h5-red); border-color: var(--h5-red); }
.h5-cta .h5-btn-primary:hover { background: #fff; color: var(--h5-navy-deep); border-color: #fff; }
.h5-cta-contact {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
}
.h5-cta-contact svg { flex-shrink: 0; opacity: .85; }
.h5-cta-contact:hover { color: #fff; border-color: #fff; }
.h5-cta-contact:hover svg { opacity: 1; }

/* ================================ RESPONSIVE ================================= */

@media (max-width: 1024px) {
  .h5-hero-strip { flex-wrap: wrap; row-gap: 1.2rem; }
  .h5-hero-strip-item { flex: 1 1 40%; }
  .h5-about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .h5-about-globe { width: 380px; height: 380px; right: -12%; opacity: .6; }
  .h5-editorial-grid { grid-template-columns: 1fr; gap: 2rem; }
  .h5-editorial-figure { border-left: none; border-top: 3px solid var(--h5-red); padding-left: 0; padding-top: 1.2rem; }
  .h5-cta-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .h5-container { padding: 0 1.25rem; }
  .h5-hero { min-height: 400px; padding: 3.4rem 0 2.6rem; }
  .h5-scroll-track { margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
  .h5-card { flex-basis: 200px; }
  .h5-row-head { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .h5-trust-badges { gap: 1.8rem; }
  .h5-award-img { height: 56px; }
  .h5-about-globe { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .h5-btn, .h5-card-photo img, .h5-gnav-btn { transition: none; }
  .h5-scroll-track { scroll-behavior: auto; }
}
