/* =========================================================================
   Vista Clothing — Design System
   Brand: Purple/Magenta + Teal · "Become a Nature"
   ========================================================================= */

:root {
    /* Brand palette (sampled from logo) */
    --purple:        #8E2A6E;
    --purple-deep:   #6E1F56;
    --magenta:       #A82F86;
    --magenta-soft:  #C44C9E;
    --teal:          #2FA39C;
    --teal-deep:     #1F827C;
    --teal-soft:     #5FC2BB;

    --gradient-brand: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 55%, var(--teal) 130%);
    --gradient-warm:  linear-gradient(120deg, var(--purple-deep), var(--magenta));
    --gradient-cool:  linear-gradient(120deg, var(--magenta), var(--teal));

    /* Neutrals */
    --ink:        #221726;
    --ink-soft:   #4a3f4d;
    --muted:      #7a7280;
    --line:       #ece7ee;
    --cloud:      #f7f4f9;
    --cloud-2:    #f1edf4;
    --white:      #ffffff;

    /* UI */
    --radius:     18px;
    --radius-sm:  12px;
    --shadow-sm:  0 4px 18px rgba(110, 31, 86, .07);
    --shadow-md:  0 14px 40px rgba(110, 31, 86, .12);
    --shadow-lg:  0 30px 70px rgba(110, 31, 86, .18);

    --container:  1200px;
    --nav-h:      78px;

    --ease: cubic-bezier(.22, 1, .36, 1);

    --font-head: 'Poppins', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-script: 'Dancing Script', cursive;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Reusable bits ---------- */
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; font-size: .78rem;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--magenta);
    padding: 7px 16px; border-radius: 50px;
    background: linear-gradient(120deg, rgba(168,47,134,.10), rgba(47,163,156,.10));
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}
.section-title .accent {
    background: var(--gradient-cool);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.section-intro { color: var(--ink-soft); font-size: 1.06rem; max-width: 640px; }
.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 600; font-size: .98rem;
    padding: 15px 32px; border-radius: 50px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
    will-change: transform;
}
.btn-primary { background: var(--gradient-warm); color: #fff; box-shadow: 0 12px 30px rgba(142,42,110,.32); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(142,42,110,.42); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--purple); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--magenta); color: var(--magenta); transform: translateY(-3px); }

/* ceyMX brand: MX letters always red, works even inside gradient-text parents */
.brand-mx { color: #e02020; -webkit-text-fill-color: #e02020; font-style: normal; }

/* =========================================================================
   Navbar
   ========================================================================= */
.navbar {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .35s, box-shadow .35s, height .35s;
}
.navbar.scrolled {
    /* backdrop-filter moved to ::before — keeping it on the element itself
       creates a containing-block for position:fixed children (the mobile drawer),
       which clips it to the 66px navbar height instead of full viewport. */
    box-shadow: 0 6px 30px rgba(110,31,86,.08);
    height: 66px;
}
.navbar.scrolled::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo img { height: 40px; width: auto; transition: height .35s; }
.navbar.scrolled .nav-logo img { height: 34px; }

.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
    font-family: var(--font-head); font-weight: 500; font-size: .95rem;
    color: var(--ink); padding: 10px 16px; border-radius: 50px;
    position: relative; transition: color .25s, background .25s;
}
/* On transparent (top) state over the dark hero, links are light */
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.92); }
.navbar:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-link:hover, .nav-link.active { color: var(--magenta); }
.navbar:not(.scrolled) .nav-link:hover, .navbar:not(.scrolled) .nav-link.active { color: #fff; background: rgba(255,255,255,.15); }

.nav-cta {
    font-family: var(--font-head); font-weight: 600; font-size: .92rem;
    margin-left: 10px; padding: 11px 24px; border-radius: 50px;
    background: var(--gradient-warm); color: #fff;
    box-shadow: 0 8px 22px rgba(142,42,110,.35);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(142,42,110,.45); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1100; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    background: radial-gradient(1200px 600px at 75% -10%, rgba(47,163,156,.35), transparent 60%),
                radial-gradient(900px 600px at 10% 110%, rgba(168,47,134,.30), transparent 55%),
                linear-gradient(135deg, #2a0f24 0%, #5b1c4a 45%, #6e1f56 100%);
    color: #fff; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.hero-glow.g1 { width: 420px; height: 420px; background: var(--teal); top: -120px; right: -60px; }
.hero-glow.g2 { width: 360px; height: 360px; background: var(--magenta); bottom: -120px; left: -80px; }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .8rem; font-weight: 500; letter-spacing: .04em;
    padding: 8px 16px; border-radius: 50px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(6px); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-soft); box-shadow: 0 0 0 0 rgba(95,194,187,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,194,187,.6); } 70% { box-shadow: 0 0 0 12px rgba(95,194,187,0); } 100% { box-shadow: 0 0 0 0 rgba(95,194,187,0); } }

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
    color: #fff; margin-bottom: 22px;
}
.hero h1 .script { font-family: var(--font-script); font-weight: 700; font-size: 1.15em; background: linear-gradient(120deg, var(--teal-soft), #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; background: linear-gradient(120deg,#fff,var(--teal-soft)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.hero-stat .lbl { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .03em; margin-top: 6px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
    position: relative; border-radius: 26px; overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform .6s var(--ease);
}
.hero-card:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }
.hero-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-float {
    position: absolute; z-index: 3;
    background: rgba(255,255,255,.96); color: var(--ink);
    border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 12px;
    animation: float 4.5s ease-in-out infinite;
}
.hero-float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-float .t { font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.hero-float .s { font-size: .76rem; color: var(--muted); }
/* f1 moved to bottom-left — avoids models' faces at the top of the image */
.hero-float.f1 { bottom: 84px; left: -34px; }
.hero-float.f1 .ico { background: var(--gradient-cool); }
.hero-float.f2 { bottom: 28px; right: -28px; animation-delay: 1.4s; }
.hero-float.f2 .ico { background: var(--gradient-warm); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll .mouse { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero-scroll .mouse::after { content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: #fff; border-radius: 3px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } 100% { opacity: 0; } }

/* Marquee strip */
.marquee { background: var(--ink); color: rgba(255,255,255,.75); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-head); font-weight: 500; letter-spacing: .08em; font-size: .9rem; display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after { content: '✦'; color: var(--teal-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   About
   ========================================================================= */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.about-media .badge-card {
    position: absolute; bottom: -26px; left: -26px;
    background: var(--gradient-warm); color: #fff;
    border-radius: var(--radius-sm); padding: 22px 26px; box-shadow: var(--shadow-md);
}
.about-media .badge-card .y { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.about-media .badge-card .l { font-size: .82rem; opacity: .9; margin-top: 4px; }

.about-list { margin-top: 26px; display: grid; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .check { flex: none; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(120deg, rgba(168,47,134,.12), rgba(47,163,156,.12)); color: var(--teal-deep); display: grid; place-items: center; margin-top: 2px; }
.about-list b { font-family: var(--font-head); }

/* Stats band */
.stats { background: var(--gradient-brand); color: #fff; position: relative; overflow: hidden; }
.stats::before { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; }
.stat-item .num .suffix { font-size: .55em; }
.stat-item .lbl { margin-top: 10px; font-size: .92rem; color: rgba(255,255,255,.85); }
.stat-item { padding: 10px; position: relative; }
.stat-item:not(:last-child)::after { content:''; position:absolute; right:-15px; top:20%; height:60%; width:1px; background: rgba(255,255,255,.2); }

/* =========================================================================
   Capabilities
   ========================================================================= */
.capabilities { background: var(--cloud); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 50px; }
.cap-card {
    background: #fff; border-radius: var(--radius); padding: 34px 30px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
    position: relative; overflow: hidden;
}
.cap-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: var(--gradient-cool); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.cap-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.cap-card:hover::before { transform: scaleX(1); }
.cap-ico { width: 58px; height: 58px; border-radius: 16px; background: linear-gradient(120deg, rgba(142,42,110,.10), rgba(47,163,156,.10)); display: grid; place-items: center; color: var(--magenta); margin-bottom: 20px; }
.cap-ico svg { width: 28px; height: 28px; }
.cap-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.cap-card p { color: var(--ink-soft); font-size: .96rem; }

/* =========================================================================
   Gallery
   ========================================================================= */
.gallery { background: var(--white); }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 40px 0 44px; }
.filter-btn {
    font-family: var(--font-head); font-weight: 500; font-size: .94rem;
    padding: 11px 26px; border-radius: 50px; color: var(--ink-soft);
    background: var(--cloud); border: 1.5px solid transparent;
    transition: all .3s var(--ease);
}
.filter-btn:hover { color: var(--magenta); }
.filter-btn.active { background: var(--gradient-warm); color: #fff; box-shadow: 0 8px 20px rgba(142,42,110,.3); }

.gallery-grid { columns: 4; column-gap: 18px; }
.g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.g-item img { width: 100%; transition: transform .6s var(--ease); background: var(--cloud); }
.g-item::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(110,31,86,.6), transparent 55%); opacity: 0; transition: opacity .4s; }
.g-item .g-cap { position: absolute; left: 16px; bottom: 14px; color: #fff; z-index: 2; opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.g-item .g-cap svg { width: 18px; height: 18px; }
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.g-item:hover img { transform: scale(1.07); }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-cap { opacity: 1; transform: translateY(0); }
.g-item.is-hidden { display: none; }

.gallery-more { text-align: center; margin-top: 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(24,12,22,.92); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(560px, 90vw); max-height: 86vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2.4rem; line-height: 1; opacity: .85; transition: opacity .2s, transform .2s; }
.lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .25s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 24px; } .lb-next { right: 24px; }

/* =========================================================================
   Sustainability
   ========================================================================= */
.sustainability { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, #143d3a 0%, #1f827c 60%, #2fa39c 110%); }
.sustainability::before { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; }
.sus-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sus-content .section-tag { background: rgba(255,255,255,.14); color: #d7fffb; }
.sus-content .section-title { color: #fff; }
.sus-content .section-title .accent { background: linear-gradient(120deg,#fff,#bff3ef); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.sus-content .section-intro { color: rgba(255,255,255,.85); }
.sus-cards { display: grid; gap: 18px; }
.sus-card { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px); transition: transform .35s var(--ease), background .35s; }
.sus-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.16); }
.sus-card h4 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.sus-card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.sus-card p { color: rgba(255,255,255,.82); font-size: .94rem; }

/* =========================================================================
   Compliance
   ========================================================================= */
.compliance { background: var(--cloud); }
.comp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 50px; }
.comp-card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.comp-card h3 { font-size: 1.25rem; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.comp-card h3 .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-cool); color: #fff; display: grid; place-items: center; flex: none; }
.comp-card ul { display: grid; gap: 12px; }
.comp-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: .96rem; }
.comp-card li svg { flex: none; width: 20px; height: 20px; color: var(--teal-deep); margin-top: 3px; }

.cert-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 48px; }
.cert-pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 50px; padding: 12px 24px; font-family: var(--font-head); font-weight: 600; color: var(--purple); box-shadow: var(--shadow-sm); }
.cert-pill .tag { font-size: .7rem; font-weight: 600; color: var(--teal-deep); background: rgba(47,163,156,.12); padding: 3px 9px; border-radius: 50px; letter-spacing: .04em; }

/* =========================================================================
   Why partner / CTA
   ========================================================================= */
.why { background: var(--white); }
.why-wrap { background: var(--gradient-warm); border-radius: 30px; padding: clamp(40px,6vw,72px); color: #fff; position: relative; overflow: hidden; text-align: center; }
.why-wrap::before { content:''; position:absolute; width:340px; height:340px; border-radius:50%; background: var(--teal); filter: blur(80px); opacity:.4; top:-120px; right:-80px; }
.why-wrap::after { content:''; position:absolute; width:300px; height:300px; border-radius:50%; background: var(--magenta-soft); filter: blur(80px); opacity:.4; bottom:-130px; left:-70px; }
.why-wrap > * { position: relative; z-index: 2; }
.why-wrap h2 { color: #fff; font-size: clamp(1.8rem,3.6vw,2.7rem); font-weight: 800; margin-bottom: 16px; }
.why-wrap p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 32px; font-size: 1.1rem; }
.why-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 36px; }
.why-points span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 9px 20px; border-radius: 50px; font-size: .9rem; font-family: var(--font-head); font-weight: 500; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { background: var(--cloud); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; margin-top: 50px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
.ci-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.ci-card .ico { flex: none; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(120deg, rgba(142,42,110,.10), rgba(47,163,156,.10)); color: var(--magenta); display: grid; place-items: center; }
.ci-card h4 { font-size: 1rem; margin-bottom: 4px; }
.ci-card a, .ci-card p { color: var(--ink-soft); font-size: .94rem; word-break: break-word; }
.ci-card a:hover { color: var(--magenta); }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(26px,4vw,40px); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; margin-bottom: 8px; color: var(--ink); }
.field label .req { color: var(--magenta); }
.field input, .field select, .field textarea {
    width: 100%; font-family: var(--font-body); font-size: .98rem; color: var(--ink);
    padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--cloud); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); background: #fff; box-shadow: 0 0 0 4px rgba(168,47,134,.10); }
.field textarea { resize: vertical; min-height: 130px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.btn-submit { width: 100%; justify-content: center; margin-top: 6px; }
.btn-submit[disabled] { opacity: .65; cursor: not-allowed; }
.form-alert { border-radius: var(--radius-sm); padding: 14px 18px; font-size: .94rem; margin-bottom: 20px; display: none; }
.form-alert.show { display: block; animation: fade .3s ease; }
.form-alert.ok { background: rgba(47,163,156,.12); color: var(--teal-deep); border: 1px solid rgba(47,163,156,.3); }
.form-alert.err { background: rgba(200,60,60,.08); color: #b23b3b; border: 1px solid rgba(200,60,60,.25); }

.map-wrap { margin-top: 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: #1a0f18; color: rgba(255,255,255,.7); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 42px; background: #fff; padding: 8px 12px; border-radius: 10px; width: max-content; }
.footer-tag { margin: 18px 0 22px; font-size: .94rem; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.social-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); padding: 9px 16px; border-radius: 50px; font-size: .85rem; color: #fff; transition: background .25s; }
.social-pill:hover { background: var(--magenta); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col a, .footer-addr { display: block; color: rgba(255,255,255,.65); font-size: .92rem; margin-bottom: 11px; transition: color .25s; }
.footer-col a:hover { color: var(--teal-soft); }
.footer-addr { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Back to top */
.back-to-top { position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-warm); color: #fff; font-size: 1.3rem; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .3s, transform .3s; }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }

/* =========================================================================
   Inner page hero (events.php etc.)
   ========================================================================= */
.page-hero {
    padding: calc(var(--nav-h) + 70px) 0 64px;
    background: linear-gradient(135deg, var(--cloud) 0%, var(--cloud-2) 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(142,42,110,.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.page-hero .section-tag,
.page-hero .section-title,
.page-hero .section-intro { position: relative; z-index: 1; }

/* Gallery empty state */
.gallery-empty {
    text-align: center; padding: 90px 20px;
    color: var(--muted);
}
.gallery-empty-icon { margin: 0 auto 28px; width: 72px; height: 72px; border-radius: 50%;
    background: var(--cloud-2); display: grid; place-items: center; }
.gallery-empty-icon svg { opacity: .4; }
.gallery-empty h3 { font-size: 1.6rem; color: var(--ink); margin-bottom: 10px; }
.gallery-empty p { font-size: 1rem; max-width: 360px; margin: 0 auto; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .gallery-grid { columns: 3; }
    .hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    /* Flatten 3D tilt so card doesn't bleed outside the viewport on tablets */
    .hero-card { transform: none; }
    .hero-card:hover { transform: none; }
    /* Keep floats inside visual bounds */
    .hero-float.f1 { bottom: 84px; left: 10px; }
    .hero-float.f2 { bottom: 28px; right: 10px; }
}
@media (max-width: 860px) {
    .nav-menu {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
        background: #fff; flex-direction: column; align-items: stretch;
        padding: calc(var(--nav-h) + 20px) 28px 40px; gap: 6px;
        box-shadow: -20px 0 60px rgba(0,0,0,.15);
        transform: translateX(100%);
        visibility: hidden;
        /* delay visibility:hidden until after the slide-out transition ends */
        transition: transform .4s var(--ease), visibility 0s .4s;
        z-index: 1050;
    }
    .nav-menu.open {
        transform: translateX(0);
        visibility: visible;
        /* make visible immediately on open */
        transition: transform .4s var(--ease), visibility 0s 0s;
    }
    .navbar:not(.scrolled) .nav-link { color: var(--ink); }
    .nav-link { padding: 14px 18px; border-radius: var(--radius-sm); }
    .nav-cta { margin: 12px 0 0; text-align: center; justify-content: center; }
    .nav-toggle { display: flex; }
    /* Dark hero background: hamburger must be white, NOT dark */
    .navbar:not(.scrolled) .nav-toggle span { background: rgba(255,255,255,.92); }
    /* When menu is open the X sits over the white navbar area when scrolled */
    .nav-toggle.open span { background: var(--ink) !important; }

    .about-grid, .sus-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .about-media { max-width: 480px; margin: 0 auto; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .stat-item:nth-child(2)::after { display: none; }
    .cap-grid, .comp-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .gallery-grid { columns: 2; column-gap: 12px; }
    .g-item { margin-bottom: 12px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 1.7rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
    .lb-nav { width: 46px; height: 46px; font-size: 2.2rem; }
    /* Compact floats on small phones — keep fully inside visual card */
    .hero-float { padding: 10px 13px; gap: 9px; border-radius: 13px; }
    .hero-float .ico { width: 34px; height: 34px; border-radius: 10px; }
    .hero-float .t { font-size: .84rem; }
    .hero-float .s { font-size: .70rem; }
    .hero-float.f1 { bottom: 70px; left: 8px; }
    .hero-float.f2 { bottom: 16px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Nav backdrop overlay (mobile drawer)
   ========================================================================= */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 990; /* below navbar z:1000 */
    background: rgba(15, 5, 20, .6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* =========================================================================
   Client / Brand logos strip
   ========================================================================= */
.clients { background: var(--cloud); padding: clamp(36px,5vw,60px) 0; }
.clients-head { text-align: center; margin-bottom: 36px; }
.clients-head p { font-family: var(--font-head); font-weight: 600; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.clients-track-wrap { overflow: hidden; position: relative; }
.clients-track-wrap::before,
.clients-track-wrap::after { content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2; pointer-events:none; }
.clients-track-wrap::before { left:0; background: linear-gradient(to right, var(--cloud), transparent); }
.clients-track-wrap::after  { right:0; background: linear-gradient(to left,  var(--cloud), transparent); }
.clients-track { display: flex; align-items: center; gap: 56px; width: max-content; animation: clientScroll 28s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.client-logo { height: 44px; width: auto; opacity: .55; filter: grayscale(1); transition: opacity .3s, filter .3s; object-fit: contain; }
.client-logo:hover { opacity: 1; filter: grayscale(0); }
@keyframes clientScroll { to { transform: translateX(-50%); } }

/* =========================================================================
   People Development section
   ========================================================================= */
.people-dev { background: var(--white); }
.pdev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 50px; }
.pdev-cards { display: grid; gap: 18px; }
.pdev-card {
    background: var(--cloud); border-radius: var(--radius); padding: 24px 26px;
    border: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start;
    transition: transform .35s var(--ease), box-shadow .35s, background .3s;
}
.pdev-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); background: #fff; }
.pdev-card .ico {
    flex: none; width: 46px; height: 46px; border-radius: 13px;
    background: var(--gradient-warm); color: #fff;
    display: grid; place-items: center;
}
.pdev-card h4 { font-size: 1rem; margin-bottom: 5px; }
.pdev-card p { font-size: .92rem; color: var(--ink-soft); }
.pdev-programs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.pdev-prog-pill {
    background: var(--gradient-cool); color: #fff;
    border-radius: var(--radius-sm); padding: 14px 18px;
    font-family: var(--font-head); font-weight: 600; font-size: .88rem;
    text-align: center; transition: transform .3s var(--ease), box-shadow .3s;
}
.pdev-prog-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.pdev-welfare { margin-top: 30px; }
.pdev-welfare h4 { font-size: 1rem; margin-bottom: 14px; color: var(--ink); }
.pdev-welfare ul { display: grid; gap: 10px; }
.pdev-welfare li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.pdev-welfare li svg { flex: none; color: var(--teal-deep); margin-top: 3px; }

/* =========================================================================
   Smart Manufacturing section
   ========================================================================= */
.smart-mfg {
    background: linear-gradient(135deg, #1a0f23 0%, #2a1040 55%, #1a0f23 100%);
    color: #fff; position: relative; overflow: hidden;
}
.smart-mfg::before { content:''; position:absolute; inset:0; background-image: radial-gradient(rgba(95,194,187,.08) 1px, transparent 1px); background-size: 22px 22px; }
.smart-mfg-inner { position: relative; z-index: 2; }
.smart-mfg .section-tag { background: rgba(95,194,187,.15); color: var(--teal-soft); }
.smart-mfg .section-title { color: #fff; }
.smart-mfg .section-title .accent { background: linear-gradient(120deg, var(--teal-soft), #fff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.smart-mfg .section-intro { color: rgba(255,255,255,.8); }
.smfg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 50px; }
.smfg-cards { display: grid; gap: 16px; }
.smfg-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 22px 24px;
    display: flex; gap: 16px; align-items: flex-start;
    transition: background .3s, transform .35s var(--ease);
}
.smfg-card:hover { background: rgba(255,255,255,.12); transform: translateX(6px); }
.smfg-card .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-cool); display: grid; place-items: center; }
.smfg-card h4 { color: #fff; font-size: 1rem; margin-bottom: 5px; }
.smfg-card p { font-size: .9rem; color: rgba(255,255,255,.75); }
.smfg-erp-badge {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius); padding: 30px 32px; text-align: center;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.smfg-erp-badge .erp-name { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; background: var(--gradient-cool); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; letter-spacing: -.02em; }
.smfg-erp-badge .erp-sub { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: 8px; }
.smfg-erp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.smfg-stat { background: rgba(255,255,255,.07); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.smfg-stat .n { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; background: var(--gradient-cool); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.smfg-stat .l { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* Dual ERP system layout inside badge */
.erp-systems { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.erp-system { flex: 1; text-align: center; min-width: 0; }
.erp-plus { font-size: 2rem; color: rgba(255,255,255,.3); font-weight: 300; flex: none; line-height: 1; }
.erp-type { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 5px; line-height: 1.3; }
.erp-site-link {
    font-size: .7rem; color: rgba(255,255,255,.38);
    margin-top: 8px; display: inline-block;
    border-bottom: 1px dotted rgba(255,255,255,.25);
    transition: color .2s, border-color .2s;
}
.erp-site-link:hover { color: rgba(255,255,255,.85); border-bottom-color: rgba(255,255,255,.6); }
.erp-logo { max-height: 44px; width: auto; max-width: 120px; margin: 0 auto; object-fit: contain; }

/* Footer ceyMX credit link */
.ceymx-credit { color: rgba(255,255,255,.65); border-bottom: 1px dotted rgba(255,255,255,.3); transition: color .2s, border-color .2s; }
.ceymx-credit:hover { color: #fff; border-bottom-color: rgba(255,255,255,.7); }

/* =========================================================================
   WhatsApp floating button
   ========================================================================= */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 901;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 28px rgba(37,211,102,.45);
    display: grid; place-items: center; color: #fff;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.whatsapp-float:hover { transform: scale(1.12) translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,.55); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }
.whatsapp-float .wa-tooltip {
    position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
    background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 500;
    font-size: .82rem; padding: 7px 13px; border-radius: 8px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .25s;
}
.whatsapp-float .wa-tooltip::after { content:''; position:absolute; left:100%; top:50%; transform:translateY(-50%); border:6px solid transparent; border-left-color: var(--ink); }
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* Move back-to-top up when whatsapp button is present */
.back-to-top { bottom: 92px; }

/* =========================================================================
   PDF download button
   ========================================================================= */
.btn-pdf {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    padding: 12px 22px; border-radius: 50px; color: var(--purple);
    background: rgba(142,42,110,.08); border: 1.5px solid rgba(142,42,110,.22);
    transition: all .3s var(--ease);
}
.btn-pdf:hover { background: rgba(142,42,110,.14); border-color: var(--magenta); transform: translateY(-2px); }

/* =========================================================================
   Responsive additions for new sections
   ========================================================================= */
@media (max-width: 860px) {
    .pdev-grid, .smfg-grid { grid-template-columns: 1fr; }
    .pdev-programs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .pdev-programs { grid-template-columns: 1fr; }
    .smfg-erp-stats { grid-template-columns: 1fr 1fr; }
    .client-logo { height: 34px; }
}
