/*==============================================================================
  theme/03-home.css
  HOME — Landing sections, hero collage, trusted logos, care / about, responsive
  Linked from templates/base.html in numbered order with the other theme modules.
==============================================================================*/

/* --------------------------------------------------------------------------
   HOME SECTION SPACING — Tighten padding between home blocks
   -------------------------------------------------------------------------- */
.page-home .layout_padding,
.page-home .about_section.layout_padding,
.page-home .specializations_section.layout_padding {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-home .about_section {
  position: relative;
  isolation: isolate;
  background-color: #1a1208;
  background-image: url("https://res.cloudinary.com/dggwquhpb/image/upload/f_auto,q_auto,w_1600/v1784299065/twig-cloth-plate_qaf2ep.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.page-home .about_section.layout_padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-home .about_section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(10, 37, 64, 0.55);
  pointer-events: none;
}

.page-home .about_section > .container {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

.page-home .about_section .row {
  align-items: stretch !important;
}

.page-home .about_section .row > [class*="col-"]:first-child {
  display: flex;
  align-self: stretch;
}

.page-home .about_section .img_container {
  width: 100%;
  height: auto;
  min-height: 100%;
  align-self: stretch;
}

.page-home .about_section .img_container .img-box {
  position: absolute;
  inset: 0;
}

.page-home .about_section .img_container .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.page-home .about_section .detail-box {
  justify-content: center;
  padding: 40px var(--page-pad-x) 40px clamp(28px, 4vw, 56px) !important;
}

.page-home .about_section .detail-box .heading_container h2,
.page-home .about_section .detail-box p {
  color: #ffffff !important;
}

/* Care experience — deep gold + framed copy + portrait */
.client_section {
  --client-gold: #5c4813;
  position: relative;
  background-color: var(--client-gold);
  overflow: hidden;
  min-height: min(70vh, 620px);
}

.client_section__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  min-height: inherit;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px var(--page-pad-x);
  box-sizing: border-box;
}

.client_section__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: 68ch;
  width: 100%;
  padding: 32px 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
  text-align: left;
}

.client_section__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.15;
  text-align: left;
}

.client_section__copy p {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 0 14px;
  text-align: justify;
  text-justify: inter-word;
}

.client_section__copy > p:last-of-type {
  margin-bottom: 0;
}

.client_section__overlay {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 10px;
  align-items: start;
  position: relative;
  z-index: 3;
}

.client_section__overlay li {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.client_section__overlay li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

.client_section__media {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(48%, 560px);
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.client_section__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 100%);
  mask-image: linear-gradient(to left, #000 40%, transparent 100%);
}

@media (max-width: 991px) {
  .client_section {
    min-height: min(78vh, 640px);
  }

  .client_section__layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 24px;
    align-content: center;
  }

  .client_section__copy {
    max-width: none;
    width: 100%;
    background: rgba(92, 72, 19, 0.28);
  }

  .client_section__overlay {
    margin-top: 18px;
    padding-top: 16px;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .client_section__media {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .client_section__media img {
    object-position: center top;
    opacity: 0.5;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .client_section__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(92, 72, 19, 0.42);
    pointer-events: none;
  }
}

/* Push About below the fold on large screens — logos stay where they are */
@media (min-width: 1024px) {
  .page-home .about_section.layout_padding {
    margin-top: 6vh;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 767px) {
  .page-home .layout_padding,
  .page-home .specializations_section.layout_padding {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  .page-home .about_section.layout_padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .page-home .about_section .row {
    gap: 0 !important;
  }

  .page-home .about_section .row > [class*="col-"]:first-child {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page-home .about_section .img_container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    max-height: none !important;
    margin: 0 !important;
    display: block !important;
  }

  .page-home .about_section .img_container .img-box {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-home .about_section .img_container .img-box img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .page-home .about_section .detail-box {
    padding: 24px var(--page-pad-x) 28px !important;
  }

  .page-home .hero-section .trusted-logos {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .logo_marquee__img {
    height: 42px;
  }

  .logo_track__set {
    gap: 40px;
    padding-right: 40px;
  }

  .logo_track {
    animation-duration: 32s;
  }
}

.about_section .detail-box p {
  text-align: justify !important;
  text-justify: inter-word;
  margin-top: 0 !important;
  margin-bottom: 0.85em !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.about_section .detail-box .heading_container,
.about_section .detail-box .heading_container h2 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left;
}

.about_section .detail-box .heading_container h2 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  padding-bottom: 0;
  text-transform: none;
}

/* Remove template underline bar under About heading */
.about_section .detail-box .heading_container h2::before {
  display: none !important;
  content: none !important;
}

.about_section .detail-box .heading_container {
  margin-bottom: 10px;
}

.about_section .row {
  align-items: stretch !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.about_section .row > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
}

.about_section .img_container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
}

.about_section .img_container .img-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: none !important;
  border: 0 !important;
}

.about_section .img_container .img-box img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: none !important;
}

.about_section .detail-box {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  margin-left: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.about_section .detail-box > * {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.about_section .detail-box .btn-box {
  margin-top: auto;
  padding-top: 28px;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  /* Space between portrait and About copy on larger screens */
  .about_section .detail-box {
    padding: 0 0 0 40px !important;
  }

  .about_section .detail-box p {
    font-size: 15px;
    line-height: 1.75;
  }
}

@media (min-width: 992px) {
  .about_section .detail-box {
    padding: 0 0 0 56px !important;
  }
}

.page-home .hero_area {
  min-height: auto;
  background: var(--bg);
}

.page-home .hero_bg_box {
  display: none;
}

/* --------------------------------------------------------------------------
   HERO SECTION — Home page headline, eyebrow, primary CTA
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  min-height: calc(91vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Stripe-style corner pattern — background only, does not affect text layout */
.hero-section__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.hero-section__pattern {
  position: absolute;
  top: -12%;
  right: -8%;
  width: min(820px, 72vw);
  height: min(820px, 72vw);
  display: block;
  object-fit: contain;
  object-position: top right;
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: kmpdcFloat 14s ease-in-out infinite;
}

/* Stripe-style photo collage — right side of hero */
.hero-section__collage {
  position: absolute;
  z-index: 1;
  top: 44%;
  right: max(
    calc(var(--page-pad-x) + 72px),
    calc((100% - var(--page-max)) / 2 + 72px)
  );
  transform: translateY(-50%);
  width: min(430px, 40vw);
  pointer-events: none;
  user-select: none;
}

.hero-collage {
  position: relative;
  width: 100%;
}

.hero-collage__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.68fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 1.02 / 1;
}

.hero-collage__shot {
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.hero-collage__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Outer corners rounded; shared/inner edges stay sharp */
.hero-collage__shot--tall {
  grid-row: 1 / -1;
  border-radius: 48px 0 0 0;
}

.hero-collage__shot--tall img {
  object-position: 50% 22%;
}

.hero-collage__shot--top {
  grid-row: 1 / 2;
  border-radius: 0 48px 0 0;
}

.hero-collage__shot--top img {
  object-position: 50% 8%;
}

.hero-collage__shot--bottom {
  grid-row: 2 / 3;
  border-radius: 0 0 48px 0;
}

.hero-collage__shot--bottom img {
  object-position: 50% 52%;
}

.hero-collage__deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-collage__deco--arcs {
  top: -22%;
  left: -18%;
  width: 118%;
  height: 58%;
  overflow: visible;
}

.hero-collage__deco--dots {
  background-image: radial-gradient(rgba(10, 37, 64, 0.18) 1px, transparent 1.15px);
  background-size: 9px 9px;
  opacity: 0.8;
}

.hero-collage__deco--dots-bl {
  left: -6%;
  bottom: 2%;
  width: 58px;
  height: 46px;
}

.hero-collage__deco--dots-r {
  right: -10%;
  top: 28%;
  width: 36px;
  height: 120px;
}

.hero-collage__deco--waves {
  left: 36%;
  bottom: -5%;
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

.hero-content {
  max-width: min(560px, 52%);
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-section__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 16px;
}

/* Stripe-style vertical grid line — center of left page padding */
.hero-section__rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(
    calc(var(--page-pad-x) / 2),
    calc((100% - var(--page-max)) / 2 + var(--page-pad-x) / 2)
  );
  width: 1px;
  background: #e6ebf1;
  pointer-events: none;
  z-index: 2;
}

.hero-section__inner {
  max-width: var(--page-max) !important;
  width: 100%;
  margin: 0 auto;
  padding: 96px var(--page-pad-x) 48px !important;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-eyebrow {
  font-family: var(--font);
  font-size: clamp(52px, 6.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #0a2540;
  margin: 0 0 14px;
  line-height: 1.12;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-eyebrow strong {
  color: #0a2540;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hero-copy {
  font-family: var(--font);
  font-size: clamp(22px, 3.35vw, 44px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #697488;
  margin: 0;
  max-width: none;
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-copy__line {
  display: block;
  white-space: nowrap;
}

.hero-copy__line:not(.hero-copy__lead) {
  color: #0a2540;
}

.hero-copy__lead {
  color: #0a2540;
  font-weight: 600;
}

.hero-copy .accent {
  color: var(--primary);
  font-weight: 600;
}

.hero-copy .accent-light {
  color: #a5acb8;
}

.hero-buttons {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* --------------------------------------------------------------------------
   TRUSTED LOGOS — Infinite logo marquee beneath the hero
   -------------------------------------------------------------------------- */
.hero-section .trusted-logos {
  background: var(--bg);
  border-top: 1px solid #e6ebf1;
  border-bottom: 1px solid #e6ebf1;
  padding: 18px 0;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.logo_marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo_track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: logoMarquee 40s linear infinite;
}

.logo_track__set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 56px;
  padding-right: 56px;
}

.logo_marquee__img {
  height: 48px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

@keyframes logoMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   HOME RESPONSIVE — Hero collage + about layout
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section__pattern {
    top: -8%;
    right: -16%;
    width: min(560px, 85vw);
    height: min(560px, 85vw);
    opacity: 0.45;
  }

  .hero-section__collage {
    top: 28px;
    right: calc(var(--page-pad-x) + 28px);
    transform: none;
    width: min(240px, 38vw);
  }

  .hero-collage__grid {
    gap: 8px;
  }

  .hero-collage__shot--tall {
    border-radius: 36px 0 0 0;
  }

  .hero-collage__shot--top {
    border-radius: 0 36px 0 0;
  }

  .hero-collage__shot--bottom {
    border-radius: 0 0 36px 0;
  }

  .hero-collage__deco--waves {
    width: 48px;
    height: 48px;
  }

  .hero-collage__deco--dots-bl {
    width: 44px;
    height: 34px;
  }

  .hero-collage__deco--dots-r {
    width: 28px;
    height: 90px;
  }

  .hero-content {
    max-width: min(420px, 54%);
  }

  .hero-section__inner {
    padding: 72px var(--page-pad-x) 28px !important;
  }

  .hero-section__main {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  .hero-section__inner {
    padding: 48px var(--page-pad-x) 20px !important;
  }

  .hero-section__pattern {
    top: -6%;
    right: -28%;
    width: 360px;
    height: 360px;
    opacity: 0.35;
  }

  .hero-section__collage {
    display: none;
  }

  .hero-collage__grid {
    gap: 6px;
    aspect-ratio: 1 / 1;
  }

  .hero-collage__shot--tall {
    border-radius: 36px 0 0 0;
  }

  .hero-collage__shot--top {
    border-radius: 0 36px 0 0;
  }

  .hero-collage__shot--bottom {
    border-radius: 0 0 36px 0;
  }

  .hero-collage__deco--arcs {
    top: -24%;
    left: -20%;
  }

  .hero-collage__deco--dots-bl {
    width: 36px;
    height: 28px;
    background-size: 7px 7px;
  }

  .hero-collage__deco--dots-r {
    width: 22px;
    height: 72px;
    background-size: 7px 7px;
  }

  .hero-collage__deco--waves {
    width: 42px;
    height: 42px;
    left: 34%;
    bottom: -7%;
  }

  .hero-content {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-copy__line {
    white-space: normal;
  }

  .hero-eyebrow {
    font-size: 52px;
    max-width: none;
  }

  .hero-copy {
    font-size: 26px;
    line-height: 1.28;
  }

  .about_section .row {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .about_section .row > [class*="col-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    position: relative;
    z-index: 1;
  }

  .about_section .img_container {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    width: 100%;
    align-self: auto !important;
  }

  .about_section .img_container .img-box {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden;
  }

  .about_section .img_container .img-box img {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
  }

  .about_section .detail-box {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: relative;
    z-index: 2;
  }

  .about_section .detail-box .heading_container h2 {
    font-size: 30px;
  }

  .about_section .detail-box p {
    font-size: 14px;
    line-height: 1.7;
  }

  .about_section .detail-box .btn-box {
    margin-top: 20px !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 2;
  }

  .about_section .detail-box .btn-box a {
    position: relative;
    z-index: 2;
  }

  .hero-buttons {
    margin-top: 28px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
  }

  .hero-buttons .btn-primary {
    width: auto;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
  }
}

