/* Advance Group Home Page — responsive, isolated page styles */
.home-page{overflow:hidden;background:#fff;color:#102f32}
.home-container{width:min(100% - 48px,1450px);margin-inline:auto}
.home-hero{position:relative}
.hero-slider{position:relative;width:100%;height:clamp(260px,22vw,410px);overflow:hidden;background:#073b46}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .65s ease}
.hero-slide.is-active{opacity:1;visibility:visible}
.hero-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-arrow{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:54px;height:54px;border:1px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(0,47,52,.68);color:#fff;font-size:2.5rem;line-height:1;display:grid;place-items:center;transition:background .2s,transform .2s}
.hero-arrow:hover{background:#079c56;transform:translateY(-50%) scale(1.06)}
.hero-prev{left:clamp(14px,2vw,34px)}.hero-next{right:clamp(14px,2vw,34px)}
.hero-dots{position:absolute;z-index:4;left:50%;bottom:17px;transform:translateX(-50%);display:flex;gap:11px}
.hero-dot{width:13px;height:13px;padding:0;border:2px solid #fff;border-radius:50%;background:rgba(255,255,255,.85);transition:background .2s,transform .2s}
.hero-dot.is-active{background:#09bd55;transform:scale(1.13)}
.hero-bottom-wave{position:absolute;z-index:2;bottom:-1px;left:0;width:100%;height:clamp(24px,4vw,55px);background:linear-gradient(170deg,transparent 0 32%,#36d65b 33% 51%,#087c5d 52% 70%,transparent 71%);clip-path:polygon(0 30%,12% 75%,28% 95%,50% 100%,72% 95%,88% 75%,100% 28%,100% 100%,0 100%);pointer-events:none}
.welcome-section{position:relative;padding:18px 0 24px;background:linear-gradient(180deg,#fff 0%,#fbfffd 100%);isolation:isolate}
.welcome-inner{position:relative;z-index:1;text-align:center}
.welcome-inner h1,.who-card h2,.units-heading h2{font-weight:800;color:#064c49}
.welcome-inner h1{font-family:Georgia,serif;font-size:clamp(1.8rem,2.5vw,2.65rem);margin:0 0 6px}
.heading-accent{display:block;width:78px;height:4px;border-radius:8px;background:#0bb44f;margin:0 auto 12px}
.welcome-inner p{max-width:1120px;margin:0 auto;font-size:clamp(.96rem,1.1vw,1.12rem);line-height:1.55;color:#14272a}
.welcome-wave{position:absolute;z-index:-1;top:20px;width:35%;height:150px;opacity:.55;pointer-events:none}
.welcome-wave-left{left:0;background:linear-gradient(160deg,transparent 25%,#c5f1df 26%,#e9faf3 65%,transparent 66%);clip-path:polygon(0 20%,100% 100%,0 100%)}
.welcome-wave-right{right:0;background:linear-gradient(160deg,transparent 25%,#c5f1df 26%,#e9faf3 65%,transparent 66%);clip-path:polygon(100% 20%,100% 100%,0 100%)}
.who-section{display:grid;grid-template-columns:1.2fr 1fr;align-items:stretch;gap:20px;padding-top:10px;padding-bottom:18px}
.who-photo{min-width:0;display:flex;align-items:center}
.who-photo img{width:100%;height:clamp(220px,15vw,300px);display:block;object-fit:cover;border-radius:20px;border:2px solid #e4f5ec;box-shadow:0 5px 16px rgba(0,45,35,.12)}
.who-card{min-width:0;padding:clamp(20px,2vw,32px);border:1px solid #d8f3e7;border-radius:20px;background:linear-gradient(135deg,#effbf6,#e1f7ee);box-shadow:0 4px 14px rgba(0,45,35,.08);display:flex;flex-direction:column;justify-content:center}
.who-card h2{font-size:clamp(1.65rem,2vw,2.2rem);margin:0 0 6px}
.who-card .heading-accent{margin:0 0 12px 0;width:78px}
.who-card p{font-size:clamp(.98rem,1.05vw,1.12rem);line-height:1.55;margin:0;color:#102c2e}
.units-section{position:relative;padding:4px 0 46px;isolation:isolate}
.units-section::before,.units-section::after{content:"";position:absolute;z-index:-1;bottom:0;width:34%;height:125px;pointer-events:none}
.units-section::before{left:0;background:linear-gradient(160deg,transparent 18%,#bcebd4 19%,#e8fff4 65%,#35d99a 66%,transparent 90%);clip-path:polygon(0 10%,100% 80%,100% 100%,0 100%)}
.units-section::after{right:0;background:linear-gradient(200deg,transparent 18%,#bcebd4 19%,#e8fff4 65%,#35d99a 66%,transparent 90%);clip-path:polygon(100% 10%,0 80%,0 100%,100% 100%)}
.units-heading{display:flex;align-items:center;justify-content:center;gap:24px;margin:0 auto 18px}
.units-heading h2{font-family:Georgia,serif;font-size:clamp(1.8rem,2.2vw,2.45rem);margin:0;white-space:nowrap}
.units-heading>span{width:min(10vw,145px);height:2px;background:#0dbb55}
.unit-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.unit-card{min-width:0;display:flex;align-items:center;gap:clamp(12px,1.6vw,24px);padding:14px clamp(16px,2vw,30px);min-height:96px;border-radius:22px;color:#fff;text-decoration:none;box-shadow:0 8px 18px rgba(0,72,53,.16);transition:transform .22s,box-shadow .22s}
.unit-card:hover{color:#fff;transform:translateY(-3px);box-shadow:0 12px 24px rgba(0,72,53,.22)}
.unit-card-garments{background:linear-gradient(105deg,#006c5c,#00896c)}
.unit-card-accessories{background:linear-gradient(105deg,#079c25,#25bd00)}
.unit-icon{flex:0 0 58px;width:58px;height:58px;border-radius:14px;background:#fff;color:#07804c;display:grid;place-items:center;font-size:2rem}
.unit-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.unit-copy strong{font-size:clamp(1rem,1.25vw,1.35rem);line-height:1.2}
.unit-copy small{font-size:clamp(.85rem,1vw,1rem);color:rgba(255,255,255,.95)}
.unit-arrow{margin-left:auto;flex:0 0 42px;width:42px;height:42px;border:1.5px solid rgba(255,255,255,.9);border-radius:50%;display:grid;place-items:center;font-size:1.65rem;line-height:1}
@media(max-width:767.98px){
 .home-container{width:min(100% - 30px,620px)}.hero-slider{height:clamp(230px,54vw,360px)}
 .hero-arrow{width:42px;height:42px;font-size:2rem}.hero-dots{bottom:12px}
 .welcome-section{padding:20px 0 18px}.welcome-inner p{font-size:.96rem}
 .who-section{grid-template-columns:1fr;gap:14px;padding-top:8px}
 .who-photo img{height:clamp(210px,55vw,330px)}.who-card{padding:22px}
 .unit-cards{grid-template-columns:1fr;gap:13px}.unit-card{min-height:84px;border-radius:17px}
 .units-section{padding-bottom:32px}.units-heading{gap:12px;margin-bottom:14px}.units-heading>span{width:12vw}
}
@media(max-width:420px){
 .home-container{width:calc(100% - 24px)}.hero-slider{height:230px}
 .hero-arrow{width:36px;height:36px;font-size:1.8rem}
 .unit-icon{flex-basis:48px;width:48px;height:48px;font-size:1.65rem}
 .unit-arrow{flex-basis:36px;width:36px;height:36px;font-size:1.4rem}.unit-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){.hero-slide,.hero-arrow,.hero-dot,.unit-card{transition:none}}


/* Hero banner: preserve the complete 1920 x 700 image at every viewport */
.home-hero{width:100%;}
.hero-slider{
  width:100%;
  height:auto;
  aspect-ratio:1920 / 700;
  min-height:0;
  background:#073b46;
}
.hero-slide{inset:0;width:100%;height:100%;}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
.hero-bottom-wave{pointer-events:none;}
@media(max-width:767.98px){
  .hero-slider{height:auto;aspect-ratio:1920 / 700;}
  .hero-arrow{width:34px;height:34px;font-size:1.7rem;}
  .hero-dots{bottom:5px;gap:7px;}
  .hero-dot{width:9px;height:9px;}
}

/* Layout safety and cache-proof responsive corrections */
.home-page{width:100%;max-width:100%;overflow:hidden;}
.home-page *{box-sizing:border-box;}
.home-container{width:min(100% - 48px,1450px);margin-left:auto;margin-right:auto;}
.welcome-inner{width:100%;}
.welcome-inner p{width:100%;}
.who-section{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);}
.who-photo,.who-card{min-width:0;}
.who-photo img{width:100%;max-width:100%;height:100%;min-height:280px;object-fit:cover;}
@media(max-width:767.98px){
 .home-container{width:calc(100% - 28px);}
 .who-section{grid-template-columns:minmax(0,1fr);}
 .who-photo img{height:auto;min-height:0;aspect-ratio:16/9;}
 .welcome-inner p{overflow-wrap:anywhere;}
}


/* Who We Are: centered heading, justified full description */
.who-card h2{ text-align:center; width:100%; }
.who-card .heading-accent{ margin-left:auto; margin-right:auto; }
.who-card p{ text-align:justify; text-justify:inter-word; hyphens:auto; }


/* Automatic banner slider: gentle zoom during each 5-second slide */
.hero-slide img{transform:scale(1);}
.hero-slide.is-active img{animation:heroKenBurns 5s ease-in-out both;}
@keyframes heroKenBurns{from{transform:scale(1)}to{transform:scale(1.075)}}
@media(prefers-reduced-motion:reduce){.hero-slide.is-active img{animation:none;}}

/* =====================================================================
   EFFECTS — added 2026-12-02 (visual effects only, no other change).
   Scroll fade-in/reveal, smoother hero cross-fade, hover zoom/lift,
   gold line draw-in. [data-fx] is tagged at runtime by global.js and
   is hidden ONLY while <html> has .fx-on (added only when
   IntersectionObserver exists and reduced motion is off) — so if the
   script fails, everything stays fully visible.
   ===================================================================== */
/* Scroll reveal */
html.fx-on .home-page [data-fx]{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
html.fx-on .home-page [data-fx].fx-in{opacity:1;transform:none}
/* Hero slideshow: smoother, slower cross-fade */
.home-page .hero-slide{transition:opacity 1.15s ease,visibility 0s linear 1.15s}
.home-page .hero-slide.is-active{transition:opacity 1.15s ease,visibility 0s linear 0s}
.home-page .hero-dot.is-active{transform:scale(1.35)}
/* Who We Are photo: hover zoom (frame keeps the rounded corners) */
.home-page .who-photo{overflow:hidden;border-radius:20px}
.home-page .who-photo img{transition:transform .6s ease}
.home-page .who-photo:hover img{transform:scale(1.06)}
/* Unit cards: icon zoom + arrow slide on hover (lift already existed) */
.home-page .unit-icon{transition:transform .25s ease}
.home-page .unit-card:hover .unit-icon{transform:scale(1.1) rotate(-4deg)}
.home-page .unit-arrow{transition:transform .25s ease}
.home-page .unit-card:hover .unit-arrow{transform:translateX(4px)}
/* Gold line draw-in: heading accent + Our Business Units side rules */
.home-page [data-fx] .heading-accent{transform:scaleX(0);transform-origin:center;transition:transform .8s ease .25s}
.home-page [data-fx].fx-in .heading-accent{transform:scaleX(1)}
.home-page [data-fx] .units-heading>span{transform:scaleX(0);transition:transform .8s ease .25s}
.home-page [data-fx].fx-in .units-heading>span{transform:scaleX(1)}
@media (prefers-reduced-motion: reduce){
  html.fx-on .home-page [data-fx]{opacity:1;transform:none;transition:none}
  .home-page [data-fx] .heading-accent,.home-page [data-fx] .units-heading>span{transform:none;transition:none}
  .home-page .who-photo img,.home-page .unit-icon,.home-page .unit-arrow{transition:none}
  .home-page .who-photo:hover img,.home-page .unit-card:hover .unit-icon,.home-page .unit-card:hover .unit-arrow{transform:none}
}

/* =====================================================================
   OUR BUSINESS UNITS — modern frosted-glass cards (ported 2026-12-02
   from the approved home-page-improved-design demo).
   ONLY the two unit cards change: translucent blur card, green-to-gold
   gradient border, deep-green gradient icon chip with gold ring, hover
   lift + gold sheen sweep + arrow slides right and turns gold.
   Card text, links (/garments/, /accessories/), icons, layout and
   everything else on the page stay exactly as-is. Colours are the
   demo's values, written out literally (this file has no :root vars):
   green #2a7f62, green-2 #3a9a78, green-deep #17573f,
   green-ink #0f3d2c, gold #c6a15b, gold-soft #ecd9a8,
   ink #1c2b25, muted #50655c.
   ===================================================================== */
.home-page .unit-card{position:relative;min-width:0;overflow:hidden;display:flex;align-items:center;gap:clamp(14px,1.8vw,24px);padding:22px clamp(18px,2.2vw,32px);min-height:116px;border-radius:20px;color:#1c2b25;text-decoration:none;border:1.5px solid transparent;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 12px 28px rgba(15,61,44,.12),inset 0 1px 0 rgba(255,255,255,.9);transition:transform .25s ease,box-shadow .25s ease}
.home-page .unit-card::before{content:"";position:absolute;inset:0;background:radial-gradient(380px 190px at 92% -30%,rgba(198,161,91,.28),rgba(198,161,91,0) 62%);pointer-events:none}
.home-page .unit-card::after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:55%;background:linear-gradient(105deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);transition:left .7s ease;pointer-events:none}
.home-page .unit-card:hover::after{left:115%}
.home-page .unit-card:hover{color:#1c2b25;transform:translateY(-5px);box-shadow:0 22px 42px rgba(15,61,44,.20),0 0 0 1px rgba(198,161,91,.35)}
.home-page .unit-card-garments{background:linear-gradient(155deg,rgba(255,255,255,.95) 0%,rgba(232,246,238,.90) 55%,rgba(214,238,224,.92) 100%) padding-box,linear-gradient(115deg,#c6a15b 0%,#2a7f62 50%,#ecd9a8 100%) border-box}
.home-page .unit-card-accessories{background:linear-gradient(155deg,rgba(255,255,255,.95) 0%,rgba(240,249,243,.90) 55%,rgba(226,244,233,.92) 100%) padding-box,linear-gradient(115deg,#ecd9a8 0%,#3a9a78 50%,#c6a15b 100%) border-box}
.home-page .unit-icon{position:relative;flex:0 0 62px;width:62px;height:62px;border-radius:16px;background:linear-gradient(140deg,#3a9a78 0%,#2a7f62 55%,#17573f 100%);color:#fff;display:grid;place-items:center;font-size:2rem;box-shadow:0 8px 18px rgba(23,87,63,.35),inset 0 0 0 1.5px rgba(236,217,168,.65),inset 0 1px 0 rgba(255,255,255,.35);transition:transform .3s ease,box-shadow .3s ease}
.home-page .unit-card:hover .unit-icon{transform:scale(1.08) rotate(-3deg);box-shadow:0 12px 24px rgba(23,87,63,.40),inset 0 0 0 1.5px #ecd9a8,inset 0 1px 0 rgba(255,255,255,.4)}
.home-page .unit-copy{position:relative;min-width:0;display:flex;flex-direction:column;gap:3px}
.home-page .unit-copy strong{font-size:clamp(1.12rem,1.6vw,1.42rem);line-height:1.2;font-weight:800;letter-spacing:.01em;color:#0f3d2c}
.home-page .unit-copy small{font-size:clamp(.88rem,1.15vw,1.02rem);color:#50655c;line-height:1.45}
.home-page .unit-arrow{position:relative;margin-left:auto;flex:0 0 46px;width:46px;height:46px;border:1.5px solid #2a7f62;border-radius:50%;display:grid;place-items:center;color:#2a7f62;background:rgba(255,255,255,.6);font-size:1.65rem;line-height:1;transition:background .25s ease,border-color .25s ease,transform .25s ease,color .25s ease}
.home-page .unit-card:hover .unit-arrow{background:#c6a15b;border-color:#c6a15b;color:#22301f;transform:translateX(5px)}
@media (max-width:767.98px){
  .home-page .unit-card{min-height:96px;border-radius:18px}
}
@media (max-width:520px){
  .home-page .unit-icon{flex-basis:52px;width:52px;height:52px;border-radius:13px}
  .home-page .unit-arrow{flex-basis:40px;width:40px;height:40px}
  .home-page .unit-card{padding:16px 14px}
}
@media (prefers-reduced-motion:reduce){
  .home-page .unit-card,.home-page .unit-card::after,.home-page .unit-icon{transition:none}
  .home-page .unit-card:hover .unit-icon{transform:none}
}
