/* 
   SS Flexipack Limited - Finbiz Redesign CSS
   Raw Vanilla CSS Implementation
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #e6222a;
    --primary-hover: #c41c23;
    --primary-light: #fff0f1;
    --primary-ultra-light: rgba(230, 34, 42, 0.05);
    
    --text-main: #4b5563;
    --text-light: #6b7280;
    --text-dark: #111827;
    
    --white: #ffffff;
    --off-white: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1200px;
    --container-padding: clamp(1rem, 3.5vw + 0.35rem, 2rem);
    --section-py: clamp(2.75rem, 6vw + 1.25rem, 6rem);
    --header-height: clamp(4.25rem, 11vw, 5.625rem);
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 15px 30px -5px rgba(0,0,0,0.05);
    --shadow-floating: 0 20px 40px -10px rgba(230, 34, 42, 0.2);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-duration: 1.55s;
    --reveal-duration-opacity: 1.35s;
}

/* Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: clamp(5rem, 8vw + 3.25rem, 7rem);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    font-size: clamp(0.9375rem, 0.35vw + 0.88rem, 1rem);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* In-viewport fade-up (layout + IntersectionObserver in app layout) */
.animate-on-scroll {
    opacity: 0;
    transform: translate3d(0, 2.25rem, 0);
    transition:
        opacity var(--reveal-duration-opacity) var(--ease-smooth) var(--reveal-delay, 0s),
        transform var(--reveal-duration) var(--ease-smooth) var(--reveal-delay, 0s);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-py) 0;
}

.section-light {
    background-color: var(--off-white);
}

/* Utility Layouts */
.grid {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid--loose {
    gap: clamp(1.5rem, 4vw, 4rem);
}
.items-center { align-items: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.7rem, 1.5vw, 0.875rem) clamp(1.25rem, 4vw, 2rem);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(0.875rem, 0.9vw + 0.78rem, 0.95rem);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background-color: var(--text-dark);
    color: var(--white);
}

/* Section Headers */
.section-header {
    margin-bottom: clamp(1.75rem, 4vw, 3.5rem);
}
.section-header.text-center {
    text-align: center;
    max-width: min(700px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}
.section-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: clamp(0.04em, 0.35vw + 0.03em, 0.08em);
    font-size: clamp(0.72rem, 1.1vw + 0.58rem, 0.875rem);
    font-weight: 600;
    display: block;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
    line-height: 1.35;
}
.section-title {
    font-size: clamp(1.35rem, 3.8vw + 0.65rem, 2.5rem);
    margin-bottom: clamp(0.65rem, 2vw, 1rem);
    color: var(--text-dark);
    line-height: 1.18;
    text-wrap: balance;
}
.section-title--lead {
    font-size: clamp(1.45rem, 4.5vw + 0.75rem, 2.85rem);
    line-height: 1.15;
}
.section-title span {
    font-weight: 300;
}
.section-desc {
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.15vw + 0.78rem, 1.05rem);
    line-height: 1.65;
    max-width: 65ch;
}
.section-desc.section-desc--center-narrow {
    max-width: min(38rem, 100%);
    margin-left: auto;
    margin-right: auto;
}

/* Typography utilities (inner pages, responsive) */
.section-title--sm {
    font-size: clamp(1.05rem, 2.2vw + 0.72rem, 1.28rem);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.section-title--feature {
    font-size: clamp(1.35rem, 3.8vw + 0.65rem, 2.2rem);
    line-height: 1.18;
}
.section--page-top {
    padding-top: clamp(3rem, 8vw, 6rem);
}
.section--page-y {
    padding-block: clamp(3rem, 10vw, 6rem);
}
.products-stack {
    margin-bottom: clamp(3rem, 8vw, 6rem);
}
.products-stack:last-child {
    margin-bottom: 0;
}
.about-policy-grid {
    gap: clamp(1.25rem, 3vw, 2rem);
}
.about-policy-card {
    background: var(--white);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.about-policy-card--accent {
    border-left: 4px solid var(--primary);
}
.about-policy-card--dark {
    border-left: 4px solid var(--gray-900);
}
.about-ceo-message-grid {
    gap: clamp(1.5rem, 4vw, 4rem);
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-ceo-message-copy {
    padding: clamp(1.5rem, 5vw, 4rem);
}
.about-ceo-quote {
    font-size: clamp(0.94rem, 0.8vw + 0.85rem, 1rem);
    color: var(--text-main);
    font-style: italic;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    line-height: 1.65;
}
.about-ceo-quote-mark {
    font-size: clamp(2.25rem, 14vw, 4rem);
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: clamp(-1rem, -3vw, -1.25rem);
    left: clamp(-0.5rem, -2vw, -1.25rem);
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    pointer-events: none;
}
.about-ceo-quote p {
    position: relative;
    z-index: 2;
    margin: 0;
}
.about-ceo-photo-col {
    height: 100%;
    min-height: clamp(220px, 52vw, 400px);
    background-size: cover;
    background-position: center;
}

.contact-grid {
    gap: clamp(1.5rem, 4vw, 4rem);
}
.contact-info-block {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: flex-start;
}
.contact-info-block:last-of-type {
    margin-bottom: 0;
}
.contact-info-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.02rem, 1.8vw + 0.82rem, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}
.contact-address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.65;
    font-size: clamp(0.88rem, 1.1vw + 0.78rem, 1rem);
}
.contact-email-link {
    color: var(--primary);
    font-weight: 500;
    word-break: break-word;
}
.contact-form-card {
    background: var(--white);
    padding: clamp(1.35rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
}
.contact-form-title {
    font-size: clamp(1.2rem, 3vw + 0.85rem, 1.8rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}
.form-stack {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}
.form-control {
    width: 100%;
    padding: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 0.9vw + 0.85rem, 1rem);
    outline: none;
    transition: border-color 0.3s;
}
.form-control:focus {
    border-color: var(--primary);
}
textarea.form-control {
    min-height: clamp(8rem, 25vw, 9.5rem);
    resize: vertical;
}
.contact-submit-btn {
    width: 100%;
    padding: clamp(0.85rem, 2vw, 1rem);
    font-size: clamp(0.95rem, 1vw + 0.88rem, 1.1rem);
}
.contact-map-wrap {
    height: clamp(220px, 42vw, 400px);
    min-height: 200px;
    background: var(--gray-200);
    position: relative;
}
.contact-map-wrap iframe {
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.leadership-role-pill {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.82rem, 1.2vw + 0.72rem, 0.9rem);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    line-height: 1.35;
}
.leadership-card-teaser {
    font-size: clamp(0.82rem, 1vw + 0.75rem, 0.85rem);
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}
.leadership-index-name {
    margin-bottom: 0.25rem;
    font-size: clamp(1rem, 2vw + 0.82rem, 1.1rem);
    line-height: 1.3;
}
.leadership-index-role {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(0.75rem, 1vw + 0.68rem, 0.8rem);
    margin-bottom: 0.5rem;
}
.leadership-index-teaser {
    color: var(--text-light);
    font-size: clamp(0.78rem, 0.9vw + 0.72rem, 0.8rem);
    line-height: 1.45;
    margin: 0;
}

.careers-lead-title {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw + 0.85rem, 1.2rem);
    color: var(--text-dark);
    font-weight: 600;
}
.careers-lead-text {
    font-size: clamp(0.88rem, 1.1vw + 0.8rem, 0.95rem);
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.55;
}

.about-checklist--compact {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.leadership-page-section {
    padding-block: clamp(3rem, 10vw, 8rem);
}
.leadership-grid-top {
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.leadership-grid-directors {
    gap: clamp(1.25rem, 3vw, 2rem);
}
.leadership-card.leadership-card--top {
    padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem);
}
.leadership-card.leadership-card--director {
    padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 2.5vw, 1.5rem);
}
.leadership-photo-top {
    width: clamp(104px, 30vw, 150px);
    height: clamp(104px, 30vw, 150px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    display: block;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--white);
}
.leadership-photo-director {
    width: clamp(72px, 24vw, 100px);
    height: clamp(72px, 24vw, 100px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto clamp(1rem, 2.5vw, 1.5rem);
    display: block;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--white);
}
.leadership-top-name {
    font-size: clamp(1.08rem, 2.4vw + 0.82rem, 1.35rem);
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 0 0.25rem;
    color: var(--text-dark);
    line-height: 1.25;
}
.leadership-card .leadership-index-name {
    margin-bottom: 0.25rem;
}
.leadership-card .leadership-role-pill {
    margin-bottom: 1rem;
}
.leadership-card .leadership-card-teaser {
    margin-bottom: 0.5rem;
}

.cert-section-intro {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(1.5rem, 4vw, 2rem);
}
.cert-section-grid-wrap {
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(4rem, 12vw, 8rem);
}
/* Same soft section fill as .services-bg but without ::before/::after overlays on top of content */
.cert-section-grid-wrap--fill {
    background: linear-gradient(165deg, var(--off-white) 0%, #eef0f3 42%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}
.cert-features-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
}
.cert-feature-card {
    padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.cert-doc-grid {
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: stretch;
}
.cert-doc-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.06), 0 10px 24px -8px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}
.cert-doc-link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
    flex: 1 1 auto;
    min-height: 0;
}
.cert-doc-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.cert-doc-figure {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    background: linear-gradient(165deg, #f3f4f6 0%, #e5e7eb 55%, #f9fafb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}
.cert-doc-img-wrap {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    max-height: min(56vh, 34rem);
    margin: 0 auto;
    padding: clamp(0.5rem, 1.5vw, 0.85rem);
    box-sizing: border-box;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12), 0 4px 10px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}
.cert-doc-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
}
@media (max-width: 768px) {
    .cert-doc-img-wrap {
        max-height: min(48vh, 26rem);
    }
}
.cert-doc-title {
    margin: 0;
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1rem, 2.5vw, 1.35rem);
    font-size: clamp(1rem, 1.2vw + 0.85rem, 1.15rem);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.35;
    border-top: 1px solid var(--gray-200);
}
.cert-doc-empty {
    margin: 0;
    padding: 2rem 0;
}

.careers-intro-section {
    padding-block: clamp(3rem, 10vw, 6rem);
}
.careers-culture-section {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 12vw, 8rem);
}
.careers-hr-callout {
    background: var(--off-white);
    padding: clamp(1.15rem, 3vw, 1.5rem);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

/* --- Header & Navigation --- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.top-bar a {
    color: var(--white);
    opacity: 0.9;
}
.top-bar a:hover {
    opacity: 1;
}
.top-bar-social {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}
.site-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: var(--shadow-md);
    border-bottom: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    height: var(--header-height);
    min-height: 4.25rem;
}

.site-header .brand-logo {
    min-width: 0;
    flex-shrink: 1;
    text-decoration: none;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}
.site-header .brand-logo img {
    height: clamp(2rem, 6.5vw, 3.125rem);
    width: auto;
    flex-shrink: 0;
}
.brand-logo-text {
    font-size: clamp(0.78rem, 2vw + 0.52rem, 1.125rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
}
.site-header .brand-logo .brand-logo-text {
    margin-left: clamp(0.35rem, 1.5vw, 0.625rem);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(0.88rem, 0.5vw + 0.82rem, 0.95rem);
    position: relative;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-cta-btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}
.search-icon {
    background: var(--gray-100);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}
.search-icon:hover {
    background: var(--primary);
    color: var(--white);
}

/* Dropdown */
.dropdown {
    position: relative;
    padding: 10px 0;
}
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
}
.nav-links li:hover .dropdown-icon {
    transform: rotate(180deg);
    color: var(--primary);
}
.dropdown-icon {
    margin-left: 0;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform-origin: center;
}
.dropdown-icon svg {
    display: block;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    color: var(--text-main) !important;
    padding: 0.75rem 1.5rem;
    display: block;
    font-weight: 400;
}
.dropdown-menu a::after {
    display: none;
}
.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    padding-left: 2rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(22rem, 85svh, 52rem);
    min-height: 20rem;
    background-color: var(--gray-900);
    overflow: hidden;
    touch-action: pan-y;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 6s linear;
}
.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.4) 50%, transparent 100%);
    z-index: 3;
}

.hero-content-wrapper {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}
.hero-slider .hero-content-wrapper.container {
    padding-left: max(env(safe-area-inset-left), clamp(1rem, 4vw, var(--container-padding)));
    padding-right: max(env(safe-area-inset-right), clamp(1rem, 4vw, var(--container-padding)));
}

.hero-content {
    max-width: min(56rem, 100%);
    width: 100%;
    padding: 0;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s ease 0.3s, opacity 1s ease 0.3s;
}
.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-subtitle {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: clamp(0.06em, 0.15vw + 0.05em, 0.14em);
    text-transform: uppercase;
    font-size: clamp(0.62rem, 1.1vw + 0.52rem, 0.9rem);
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.35;
    flex-wrap: wrap;
}
.hero-subtitle::before {
    content: '';
    flex-shrink: 0;
    width: clamp(1.25rem, 4vw, 2.5rem);
    height: 2px;
    background: var(--primary);
    display: block;
}

.hero-title {
    font-size: clamp(1.55rem, 4.2vw + 0.85rem, 3.65rem);
    line-height: 1.12;
    color: var(--white);
    margin-bottom: clamp(0.85rem, 2vw, 1.5rem);
    max-width: 100%;
    text-wrap: balance;
}
.hero-title span {
    color: var(--primary);
}

.hero-desc {
    color: var(--gray-200);
    font-size: clamp(0.88rem, 1.35vw + 0.62rem, 1.12rem);
    line-height: 1.6;
    margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
    max-width: min(34rem, 100%);
}

.hero-content .btn {
    padding: clamp(0.65rem, 1.2vw, 0.875rem) clamp(1.15rem, 3vw, 2rem);
    font-size: clamp(0.82rem, 0.9vw + 0.68rem, 0.95rem);
}

/* Slider Controls */
.hero-controls {
    position: absolute;
    bottom: clamp(1.15rem, 3.5vw, 3rem);
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 2vw, 1rem);
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}
.hero-dot:hover {
    background: var(--white);
}

@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(
            165deg,
            rgba(17, 24, 39, 0.92) 0%,
            rgba(17, 24, 39, 0.72) 42%,
            rgba(17, 24, 39, 0.45) 100%
        );
    }
    .hero-content-wrapper {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: clamp(20rem, 78svh, 36rem);
    }
    .hero-subtitle::before {
        display: none;
    }
    .hero-subtitle {
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition-duration: 0.01ms;
    }
    .hero-slide-bg {
        transition: none;
    }
    .hero-slide.active .hero-slide-bg {
        transform: scale(1);
    }
    .hero-content {
        transition-duration: 0.01ms;
    }
}

/* Home landing: section rhythm on small screens */
.home-about-section {
    padding-block: clamp(3rem, 12vw, 8rem);
}
.home-services-section {
    padding-block: clamp(3rem, 10vw, 8rem);
}

/* Home services: center cards; partial rows stay centered (not left-aligned) */
.home-services-section .services-showcase-grid {
    --svc-gap: clamp(1.15rem, 3vw, 1.75rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--svc-gap);
}
.home-services-section .service-showcase-card {
    flex: 1 1 260px;
    max-width: min(100%, 300px);
    min-width: 0;
}

/* --- About Us Section --- */
.about-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.about-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: clamp(0.88rem, 1.2vw + 0.78rem, 0.98rem);
    color: var(--text-dark);
    line-height: 1.4;
}
.about-check-item .icon {
    color: var(--primary);
    font-size: 1.25rem;
}
.about-ceo-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
}
.ceo-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ceo-profile img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.ceo-profile h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.ceo-profile p {
    font-size: 0.8rem;
    color: var(--text-light);
}
.about-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.phone-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.phone-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}
.phone-text strong {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* About Images Overlap */
.about-images {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}
.img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.img-overlap {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
}
.experience-badge {
    position: absolute;
    bottom: -2rem;
    left: 2rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-floating);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}
.exp-years {
    font-size: clamp(1.85rem, 5vw + 0.85rem, 2.5rem);
    font-weight: 700;
    font-family: var(--font-heading);
    line-height: 1;
}
.exp-text {
    font-size: clamp(0.8rem, 1.5vw + 0.68rem, 0.9rem);
    font-weight: 500;
    line-height: 1.2;
}

/* --- Services/Products Grid --- */
.services-bg {
    background: linear-gradient(165deg, var(--off-white) 0%, #eef0f3 42%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}
.services-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 250, 251, 0.65) 100%);
    transform: rotate(-3deg);
    z-index: 0;
}
.services-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse 80% 50% at 100% 0%, rgba(230, 34, 42, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(17, 24, 39, 0.04), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Services showcase (home) */
.services-showcase-section .section-header {
    position: relative;
    z-index: 1;
}
.services-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.15rem, 3vw, 1.75rem);
    position: relative;
    z-index: 1;
    margin-top: clamp(1.75rem, 4vw, 3rem);
}
.service-showcase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 4px 6px -1px rgba(17, 24, 39, 0.05), 0 2px 4px -2px rgba(17, 24, 39, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.45s ease,
        border-color 0.35s ease;
    color: inherit;
    text-align: center;
    outline: none;
}
.service-showcase-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #f87171 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
    z-index: 3;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.service-showcase-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    pointer-events: none;
    z-index: 2;
}
.service-showcase-card:hover,
.service-showcase-card:focus-visible {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(230, 34, 42, 0.12), 0 20px 40px -15px rgba(17, 24, 39, 0.12);
    border-color: rgba(230, 34, 42, 0.22);
}
.service-showcase-card:hover::before,
.service-showcase-card:focus-visible::before {
    transform: scaleX(1);
}
.service-showcase-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.service-showcase-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f3f4f6 0%, var(--white) 48%, #f9fafb 100%);
    padding: 0;
    overflow: hidden;
    width: 100%;
}
.service-showcase-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.6s ease;
    transform: translateX(-30%);
    pointer-events: none;
}
.service-showcase-card:hover .service-showcase-media::before,
.service-showcase-card:focus-visible .service-showcase-media::before {
    opacity: 1;
    transform: translateX(30%);
}
.service-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.34, 1.3, 0.64, 1), filter 0.45s ease;
    filter: drop-shadow(0 12px 20px rgba(17, 24, 39, 0.08));
}
.service-showcase-card:hover .service-showcase-media img,
.service-showcase-card:focus-visible .service-showcase-media img {
    transform: scale(1.06) translateY(-6px);
    filter: drop-shadow(0 20px 28px rgba(230, 34, 42, 0.12));
}
.service-showcase-body {
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(0.9rem, 2.5vw, 1.25rem) clamp(1.15rem, 3vw, 1.5rem);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.service-showcase-title {
    font-size: clamp(0.92rem, 1.8vw + 0.72rem, 1.1rem);
    font-weight: 700;
    margin: 0;
    transition: color 0.35s ease;
    line-height: 1.35;
    max-width: min(16rem, 100%);
}
.service-showcase-card:hover .service-showcase-title,
.service-showcase-card:focus-visible .service-showcase-title {
    color: var(--primary);
}
@media (prefers-reduced-motion: reduce) {
    .service-showcase-card,
    .service-showcase-card::before,
    .service-showcase-media img,
    .service-showcase-media::before {
        transition-duration: 0.01ms !important;
    }
    .service-showcase-card:hover,
    .service-showcase-card:focus-visible {
        transform: none;
    }
    .service-showcase-card:hover .service-showcase-media img,
    .service-showcase-card:focus-visible .service-showcase-media img {
        transform: none;
    }
}

/* Events (home + /events page) */
.events-section {
    position: relative;
    z-index: 0;
}
.events-section--home .section-header {
    margin-bottom: 2.75rem;
}
.events-section--page .section-header {
    margin-bottom: 3rem;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.15rem, 3vw, 1.75rem);
    margin-top: 0;
}
.events-grid--home {
    margin-top: 0;
}
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.4s ease, border-color 0.35s ease;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 34, 42, 0.2);
}
.event-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}
.event-card-media:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    z-index: 1;
}
.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.event-card:hover .event-card-media img {
    transform: scale(1.05);
}
.event-card-date {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.event-card-body {
    padding: clamp(1.05rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.35rem) clamp(1.2rem, 3vw, 1.5rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
}
.event-card-title {
    font-size: clamp(1rem, 1.8vw + 0.78rem, 1.15rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.event-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}
.event-card-title a:hover,
.event-card-title a:focus-visible {
    color: var(--primary);
}
.event-card-excerpt {
    margin: 0;
    font-size: clamp(0.88rem, 1.1vw + 0.78rem, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
}
.event-card-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-top: 0.25rem;
    align-self: flex-start;
}
.event-card-link:hover {
    color: var(--primary-hover);
}
.events-home-foot {
    margin-top: 2.25rem;
    margin-bottom: 0;
}
@media (max-width: 1024px) {
    .events-grid,
    .events-grid--home,
    .events-section--page .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .events-grid,
    .events-grid--home,
    .events-section--page .events-grid {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .event-card-media img {
        transition: none;
    }
    .event-card:hover {
        transform: none;
    }
    .event-card:hover .event-card-media img {
        transform: none;
    }
}

/* Event detail page */
.event-detail-hero {
    position: relative;
    min-height: clamp(320px, 52vh, 520px);
    display: flex;
    align-items: flex-end;
    color: var(--white);
}
.event-detail-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.event-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0.52) 0%,
        rgba(17, 24, 39, 0.35) 35%,
        rgba(17, 24, 39, 0.88) 100%
    );
    pointer-events: none;
}
.event-detail-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 5.5rem;
    padding-bottom: 3rem;
}
.event-detail-breadcrumb {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}
.event-detail-breadcrumb a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.event-detail-breadcrumb a:hover,
.event-detail-breadcrumb a:focus-visible {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.event-detail-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
    user-select: none;
}
.event-detail-breadcrumb-current {
    color: rgba(255, 255, 255, 0.72);
    max-width: 100%;
    line-height: 1.4;
}
.event-detail-category {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.28rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.event-detail-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    max-width: 920px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.event-detail-meta {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}
.event-detail-body-wrap {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    background: var(--white);
}
.event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 3rem 3.5rem;
    align-items: start;
}
.event-detail-article {
    min-width: 0;
    max-width: 42rem;
}
.event-detail-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--gray-200);
}
.event-detail-p {
    margin: 0 0 1.15rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-main);
}
.event-detail-p:last-of-type {
    margin-bottom: 0;
}
.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}
.event-detail-back {
    border-color: var(--gray-200);
    color: var(--text-dark);
}
.event-detail-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ultra-light);
}
.event-detail-aside {
    position: sticky;
    top: 7.5rem;
    padding: 1.5rem;
    background: var(--off-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.event-detail-aside-title {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
}
.event-detail-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.event-detail-related-card {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.65rem;
    margin: 0 -0.65rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.event-detail-related-card:hover,
.event-detail-related-card:focus-visible {
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.event-detail-related-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.event-detail-related-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 58px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-200);
}
.event-detail-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.event-detail-related-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.event-detail-related-text time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
}
.event-detail-related-title {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-detail-related-card:hover .event-detail-related-title {
    color: var(--primary);
}
@media (max-width: 1024px) {
    .event-detail-layout {
        grid-template-columns: 1fr;
    }
    .event-detail-aside {
        position: static;
        order: 2;
    }
    .event-detail-article {
        max-width: none;
        order: 1;
    }
}
@media (max-width: 768px) {
    .event-detail-hero-inner {
        padding-top: 4.5rem;
        padding-bottom: 2.25rem;
    }
    .event-detail-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .event-detail-related-card {
        transition: none;
    }
}

/* Gallery page */
.gallery-page {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
}
.gallery-page-intro {
    margin-bottom: 2.75rem;
}
.gallery-page-lead {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.15rem;
}
.gallery-item {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    background: var(--gray-100);
    text-decoration: none;
    color: inherit;
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    outline: none;
}
.gallery-item:hover,
.gallery-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(230, 34, 42, 0.15), var(--shadow-lg);
    border-color: rgba(230, 34, 42, 0.25);
}
.gallery-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.gallery-item-inner {
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.gallery-item-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.34, 1.15, 0.64, 1);
}
.gallery-item:hover .gallery-item-inner img,
.gallery-item:focus-visible .gallery-item-inner img {
    transform: scale(1.06);
}
.gallery-item-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.88) 0%, transparent 100%);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}
.gallery-item-caption span {
    display: block;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
@media (max-width: 480px) {
    .gallery-grid {
        gap: 0.85rem;
    }
    .gallery-page {
        padding-top: 2.25rem;
        padding-bottom: 3.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item-inner img {
        transition: none;
    }
    .gallery-item:hover,
    .gallery-item:focus-visible {
        transform: none;
    }
    .gallery-item:hover .gallery-item-inner img,
    .gallery-item:focus-visible .gallery-item-inner img {
        transform: none;
    }
}

/* Gallery lightbox */
body.gallery-lightbox-open {
    overflow: hidden;
}
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    padding-top: max(1.25rem, env(safe-area-inset-top));
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.gallery-lightbox[hidden] {
    display: none !important;
}
.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.92);
    cursor: pointer;
    z-index: 0;
}
.gallery-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1200px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    pointer-events: none;
}
.gallery-lightbox-panel .gallery-lightbox-img-wrap,
.gallery-lightbox-panel .gallery-lightbox-caption {
    pointer-events: auto;
}
.gallery-lightbox-img-wrap {
    max-height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.gallery-lightbox-img-wrap img {
    max-width: 100%;
    max-height: min(78vh, 820px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}
.gallery-lightbox-caption {
    margin: 0;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    max-width: 40rem;
    line-height: 1.45;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.gallery-lightbox-caption:empty {
    display: none;
}
.gallery-lightbox-close {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top));
    right: max(0.85rem, env(safe-area-inset-right));
    z-index: 10023;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}
.gallery-lightbox-close:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}
.gallery-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10023;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}
.gallery-lightbox-nav:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}
.gallery-lightbox-nav--prev {
    left: max(0.65rem, env(safe-area-inset-left));
}
.gallery-lightbox-nav--next {
    right: max(0.65rem, env(safe-area-inset-right));
}
.gallery-lightbox-nav[hidden] {
    display: none !important;
}
@media (max-width: 480px) {
    .gallery-lightbox-nav--prev {
        left: 0.35rem;
    }
    .gallery-lightbox-nav--next {
        right: 0.35rem;
    }
    .gallery-lightbox-nav {
        width: 2.4rem;
        height: 2.4rem;
    }
    .gallery-lightbox-img-wrap,
    .gallery-lightbox-img-wrap img {
        max-height: min(70vh, 640px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-lightbox {
        transition: none;
    }
    .gallery-lightbox-close:hover,
    .gallery-lightbox-close:focus-visible {
        transform: none;
    }
}

/* Leadership: index cards (links) + detail page */
a.leadership-card {
    cursor: pointer;
    font: inherit;
    color: inherit;
    width: 100%;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}
a.leadership-card:hover,
a.leadership-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 34, 42, 0.2);
}
a.leadership-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.leadership-card-hint {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.25s ease;
}
a.leadership-card:hover .leadership-card-hint,
a.leadership-card:focus-visible .leadership-card-hint {
    color: var(--primary);
}
.leadership-detail-breadcrumb {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    text-align: center;
}
.leadership-detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.leadership-detail-breadcrumb a:hover,
.leadership-detail-breadcrumb a:focus-visible {
    text-decoration: underline;
}
.leadership-detail-breadcrumb-sep {
    color: var(--text-light);
    user-select: none;
}
.leadership-detail-breadcrumb-current {
    color: var(--text-main);
    max-width: 100%;
    line-height: 1.4;
}
.leadership-detail-page-title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.35rem, 4.2vw + 0.72rem, 2.35rem);
    line-height: 1.18;
    text-wrap: balance;
}
.leadership-detail-role-line {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.leadership-detail-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}
.leadership-detail-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
}
.leadership-detail-aside {
    position: sticky;
    top: clamp(5rem, 12vw, 7rem);
}
.leadership-detail-photo {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
    outline: 1px solid var(--gray-200);
}
.leadership-detail-back {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.leadership-detail-teaser {
    font-size: clamp(0.95rem, 1.4vw + 0.82rem, 1.05rem);
    line-height: 1.65;
    color: var(--text-dark);
    font-weight: 500;
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.leadership-detail-body p {
    margin: 0 0 1rem;
    font-size: clamp(0.94rem, 0.5vw + 0.9rem, 1rem);
    line-height: 1.75;
    color: var(--text-main);
}
.leadership-detail-body p:last-child {
    margin-bottom: 0;
}
.leadership-detail-body ol.leadership-bio-list,
.leadership-detail-body ul.leadership-bio-list {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.65;
}
.leadership-detail-body ol.leadership-bio-list li,
.leadership-detail-body ul.leadership-bio-list li {
    margin-bottom: 0.5rem;
}
.leadership-detail-others {
    padding-top: 0;
    padding-bottom: 3.5rem;
    background: var(--white);
}
.leadership-detail-others-title {
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
    color: var(--text-dark);
}
.leadership-detail-others-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.leadership-detail-others-list a {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.leadership-detail-others-list a:hover,
.leadership-detail-others-list a:focus-visible {
    border-color: rgba(230, 34, 42, 0.25);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
}
.leadership-detail-others-role {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-light);
}
@media (max-width: 900px) {
    .leadership-detail-layout {
        grid-template-columns: 1fr;
    }
    .leadership-detail-aside {
        position: static;
        text-align: center;
    }
    .leadership-detail-back {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    a.leadership-card:hover,
    a.leadership-card:focus-visible {
        transform: none;
    }
}

/* --- Technology: 2-up machinery cards, full image (contain, no crop) --- */
.tech-machine-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
.tech-machine-section:first-of-type {
    padding-top: 4.5rem;
}
.tech-machines-list {
    align-items: start;
}
.tech-machine-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
}
.tech-machine-card .tech-machine-header {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    border-bottom: 1px solid var(--gray-200);
}
.tech-machine-card .tech-machine-media {
    position: relative;
    flex: 1 1 auto;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #f9fafb 0%, #f3f4f6 50%, #e5e7eb 100%);
    padding: clamp(0.5rem, 1.5vw, 1rem);
    min-height: 10rem;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.tech-machine-card .tech-machine-img {
    position: static;
    max-width: 100%;
    width: auto;
    max-height: min(52vh, 30rem);
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin-inline: auto;
}
.tech-machine-header {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.tech-machine-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 1rem 1.25rem;
    background: var(--gray-900);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}
.tech-machine-heading-main {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    background: var(--white);
    display: flex;
    align-items: center;
}
.tech-machine-heading-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
}
.tech-machine-kicker {
    margin: 0;
}
.tech-machine-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}
.tech-machine-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
}
@media (max-width: 900px) {
    .tech-machine-header {
        flex-direction: column;
        align-items: stretch;
    }
    .tech-machine-num {
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: clamp(1.05rem, 3vw, 1.35rem);
    }
    .tech-machine-heading-main {
        padding: 0.85rem 1rem;
    }
}

/* --- Home: client logos (strategic partners) --- */
.clients-logo-section {
    background: var(--white);
    padding-top: clamp(2.5rem, 8vw, 5rem);
    padding-bottom: clamp(2.5rem, 8vw, 5rem);
}
.clients-logo-section .section-header {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.clients-logo-lead {
    max-width: min(40rem, 100%);
    margin: clamp(0.75rem, 2vw, 1rem) auto 0;
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.2vw + 0.8rem, 1.05rem);
    line-height: 1.65;
    padding: 0;
}
.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}
.clients-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1.5rem 1.25rem;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.34, 1.28, 0.64, 1), box-shadow 0.45s ease, border-color 0.35s ease,
        background-color 0.35s ease;
    outline: none;
}
.clients-logo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 90% at 50% -20%, rgba(230, 34, 42, 0.09), transparent 62%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.clients-logo-card img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.22);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    transition: filter 0.45s ease, opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.28, 0.64, 1),
        drop-shadow 0.45s ease;
}
.clients-logo-card:hover,
.clients-logo-card:focus-visible {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(230, 34, 42, 0.14), 0 12px 24px -10px rgba(17, 24, 39, 0.1);
    border-color: rgba(230, 34, 42, 0.28);
    background: var(--white);
}
.clients-logo-card:hover::after,
.clients-logo-card:focus-visible::after {
    opacity: 1;
}
.clients-logo-card:hover img,
.clients-logo-card:focus-visible img {
    opacity: 1;
    transform: scale(1.08) translateY(-2px);
    filter: grayscale(0) drop-shadow(0 10px 22px rgba(230, 34, 42, 0.12));
}
.clients-logo-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.clients-logo-foot {
    margin-top: 2rem;
    margin-bottom: 0;
}
.clients-logo-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
}
.clients-logo-link:hover {
    color: var(--primary-hover);
}

/* Home: infinite horizontal marquee (partner logos), two rows */
.clients-logo-marquee {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.clients-logo-marquee-row {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.clients-logo-marquee-inner {
    width: 100%;
}
.clients-logo-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    padding: 0.35rem 0 0.5rem;
    animation: clients-logo-marquee-scroll 75s linear infinite;
}
.clients-logo-marquee-row--reverse .clients-logo-marquee-track {
    animation-name: clients-logo-marquee-scroll-reverse;
    animation-duration: 88s;
}
.clients-logo-marquee:hover .clients-logo-marquee-track {
    animation-play-state: paused;
}
.clients-logo-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 168px;
    max-width: 200px;
    min-height: 100px;
    padding: 1rem 1.1rem;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.clients-logo-marquee-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.clients-logo-marquee-item:hover,
.clients-logo-marquee-item:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -14px rgba(230, 34, 42, 0.12), var(--shadow-md);
    border-color: rgba(230, 34, 42, 0.22);
    background: var(--white);
}
.clients-logo-marquee-item img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.92;
    transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}
.clients-logo-marquee-item:hover img,
.clients-logo-marquee-item:focus-visible img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}
.clients-logo-marquee-item--mirror {
    pointer-events: none;
}
@keyframes clients-logo-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
@keyframes clients-logo-marquee-scroll-reverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .clients-logo-marquee-row {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .clients-logo-marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: var(--container-max);
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
        box-sizing: border-box;
    }
    .clients-logo-marquee-item--mirror {
        display: none;
    }
}

/* Clients page: tighter vertical rhythm */
.clients-page-intro {
    padding-top: 2.75rem;
    padding-bottom: 2rem;
}
.clients-page-intro .section-header {
    margin-bottom: 0;
}

/* Client roster / all clients (clients page) */
.clients-all-section {
    background-color: var(--white);
    position: relative;
    overflow: visible;
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
}
.clients-all-section .container {
    position: relative;
    z-index: 1;
}
.clients-all-section .section-header {
    margin-bottom: 0.5rem;
}
.client-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 1.1rem;
    margin-top: 1.25rem;
}
@media (min-width: 1200px) {
    .client-all-grid {
        grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    }
}
.client-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 1rem;
}
.client-roster-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 0.85rem 0.5rem;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.client-roster-logo-wrap {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.65rem;
}
.client-roster-logo-wrap img {
    max-width: 100%;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}
/* Clients page: card hover motion */
.clients-all-section .client-roster-card {
    background: var(--white);
    min-height: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.34, 1.28, 0.64, 1), box-shadow 0.45s ease, border-color 0.35s ease,
        background-color 0.35s ease;
}
.clients-all-section .client-roster-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #fb7185 50%, var(--primary) 100%);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.28, 0.64, 1);
    z-index: 3;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.clients-all-section .client-roster-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 110% 85% at 50% -25%, rgba(230, 34, 42, 0.1), transparent 58%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}
.clients-all-section .client-roster-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 22px 44px -14px rgba(230, 34, 42, 0.13), 0 14px 28px -12px rgba(17, 24, 39, 0.09);
    border-color: rgba(230, 34, 42, 0.26);
    background: var(--white);
}
.clients-all-section .client-roster-card:hover::before {
    transform: scaleX(1);
    animation: client-card-accent-shift 2.2s ease-in-out infinite;
}
.clients-all-section .client-roster-card:hover::after {
    opacity: 1;
}
@keyframes client-card-accent-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}
.clients-all-section .client-roster-logo-wrap,
.clients-all-section .client-roster-name {
    position: relative;
    z-index: 1;
}
.clients-all-section .client-roster-logo-wrap img {
    transition: transform 0.55s cubic-bezier(0.34, 1.28, 0.64, 1), filter 0.45s ease, opacity 0.35s ease;
    filter: drop-shadow(0 3px 10px rgba(17, 24, 39, 0.07));
}
.clients-all-section .client-roster-card:hover .client-roster-logo-wrap img {
    transform: scale(1.1) translateY(-3px);
    filter: drop-shadow(0 14px 26px rgba(230, 34, 42, 0.14));
}
.clients-all-section .client-roster-name {
    transition: color 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.28, 0.64, 1);
}
.clients-all-section .client-roster-card:hover .client-roster-name {
    color: var(--primary);
    transform: translateY(-1px);
}
.clients-all-section .client-roster-fallback {
    width: 52px;
    height: 52px;
    font-size: 0.72rem;
    transition: transform 0.45s cubic-bezier(0.34, 1.28, 0.64, 1), background-color 0.35s ease, color 0.35s ease,
        box-shadow 0.35s ease;
}
.clients-all-section .client-roster-card:hover .client-roster-fallback {
    transform: scale(1.08);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(230, 34, 42, 0.15);
}
.client-roster-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}
.client-roster-name {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-main);
    margin: 0;
}
@media (prefers-reduced-motion: reduce) {
    .clients-logo-card,
    .clients-logo-card::after,
    .clients-logo-card img,
    .clients-all-section .client-roster-card,
    .clients-all-section .client-roster-card::before,
    .clients-all-section .client-roster-card::after,
    .clients-all-section .client-roster-logo-wrap img,
    .clients-all-section .client-roster-name,
    .clients-all-section .client-roster-fallback {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
    .clients-logo-card:hover,
    .clients-logo-card:focus-visible,
    .clients-all-section .client-roster-card:hover {
        transform: none;
    }
    .clients-logo-card:hover img,
    .clients-logo-card:focus-visible img,
    .clients-all-section .client-roster-card:hover .client-roster-logo-wrap img {
        transform: none;
    }
    .clients-all-section .client-roster-card:hover .client-roster-name {
        transform: none;
    }
    .clients-all-section .client-roster-card:hover .client-roster-fallback {
        transform: none;
    }
}
.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    border: 1px solid var(--gray-100);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-ultra-light);
}

/* About: mission & vision cards */
.about-mv-grid {
    gap: 2rem;
}
.service-card.about-mv-card {
    text-align: left;
    padding: 2.25rem 2rem 2.5rem;
    border-top: 3px solid var(--primary);
    overflow: hidden;
}
.service-card.about-mv-card--vision {
    border-top-color: var(--gray-900);
}
.service-card.about-mv-card .service-title {
    margin-bottom: 0.85rem;
    font-size: 1.3rem;
}
.service-card.about-mv-card .service-desc {
    margin-bottom: 0;
    line-height: 1.65;
}
.about-mv-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    color: var(--primary);
    background: linear-gradient(145deg, var(--primary-light) 0%, rgba(230, 34, 42, 0.08) 100%);
    box-shadow: 0 4px 14px rgba(230, 34, 42, 0.12);
}
.about-mv-card--vision .about-mv-icon {
    color: var(--gray-900);
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--off-white) 100%);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}
.about-mv-icon svg {
    flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
    .service-card.about-mv-card:hover {
        transform: none;
    }
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.service-icon.cert-emoji {
    font-size: clamp(2.5rem, 12vw, 4rem);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    line-height: 1;
}
.service-title {
    font-size: clamp(1.05rem, 2.2vw + 0.82rem, 1.25rem);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.service-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: clamp(0.88rem, 1.1vw + 0.78rem, 0.95rem);
    line-height: 1.6;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}
.service-link span {
    color: var(--primary);
    transition: var(--transition);
}
.service-link:hover span {
    transform: translateX(5px);
}

/* --- Red CTA Strip --- */
.cta-strip {
    background: var(--primary);
    position: relative;
    padding: clamp(2rem, 4vw, 3.25rem) 0;
    overflow: hidden;
}
.cta-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: multiply;
}
.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.85rem, 2.5vw, 1.5rem);
    flex-wrap: wrap;
}
.cta-title {
    color: var(--white);
    font-size: clamp(1rem, 0.35rem + 2.4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    max-width: min(100%, 38rem);
    margin: 0;
    flex: 1 1 16rem;
    min-width: 0;
}
.cta-content .btn {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 1024px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    .cta-title {
        flex: none;
        max-width: 36rem;
    }
}
@media (max-width: 640px) {
    .cta-strip {
        padding: clamp(1.65rem, 5vw, 2.25rem) 0;
    }
    .cta-title {
        font-size: clamp(0.95rem, 3.5vw + 0.55rem, 1.2rem);
        line-height: 1.4;
    }
    .cta-content .btn {
        white-space: normal;
        text-align: center;
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 17.5rem;
    }
}
@media (max-width: 380px) {
    .cta-title {
        font-size: 0.9rem;
    }
    .cta-content .btn {
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
    }
}

/* Inner Page Header */
.page-header {
    background-color: var(--gray-900);
    background-image: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)), url('../images/page-header-bg.png');
    background-size: cover;
    background-position: center;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
}
.page-header--plain::after {
    display: none;
}
.page-header--plain {
    overflow: visible;
}
.page-title {
    font-size: clamp(1.35rem, 5.5vw + 0.65rem, 3rem);
    margin-bottom: 0.75rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: clamp(0.04em, 0.4vw + 0.02em, 0.08em);
    line-height: 1.15;
    text-wrap: balance;
}
.breadcrumb {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: clamp(0.68rem, 1.8vw + 0.55rem, 0.9rem);
    text-transform: uppercase;
    letter-spacing: clamp(0.04em, 0.35vw + 0.02em, 0.08em);
    line-height: 1.45;
}
.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
}
.breadcrumb a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Footer */
.site-footer {
    background-color: var(--gray-900);
    color: #9ca3af;
    padding-top: clamp(2.75rem, 9vw, 5rem);
    font-size: clamp(0.9rem, 1.1vw + 0.8rem, 1rem);
}
.footer-brand {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.footer-brand img {
    height: clamp(2.5rem, 9vw, 3.75rem);
    width: auto;
    background: var(--white);
    padding: 5px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.footer-brand-title {
    font-weight: 700;
    color: var(--white);
    font-size: clamp(1.05rem, 3.5vw + 0.7rem, 1.5rem);
    line-height: 1.2;
    margin: 0;
    font-family: var(--font-heading);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(1.75rem, 5vw, 3rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.footer-col h3 {
    color: var(--white);
    font-size: clamp(1.05rem, 1.8vw + 0.82rem, 1.25rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}
.footer-col address,
.footer-col .footer-address {
    font-style: normal;
    line-height: 1.65;
    font-size: clamp(0.88rem, 1vw + 0.78rem, 1rem);
}
.footer-col .footer-contact-block {
    margin-top: 1rem;
}
.footer-col .footer-contact-block a {
    color: var(--primary);
    word-break: break-word;
}
.footer-bottom-inner .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}
.footer-desc {
    margin: 1.5rem 0;
    line-height: 1.65;
    max-width: 50ch;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.25rem;
}
.footer-social a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.footer-social a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    color: #fff;
}
.footer-social svg {
    flex-shrink: 0;
}
.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    background-color: #030712;
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero { flex-direction: column; }
    .hero-left, .hero-right { width: 100%; min-height: 400px; }
    .hero-right { padding: 3rem 2rem; }
    .services-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .clients-logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    html {
        scroll-padding-top: calc(var(--header-height) + 0.35rem);
    }
    .top-bar { display: none; }
    .site-header .brand-logo img {
        height: clamp(2.75rem, 10vw, 3.75rem);
    }
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        max-height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: clamp(1.25rem, 4vw, 2rem);
        gap: clamp(1.25rem, 3vw, 2rem);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    .nav-open .main-nav {
        transform: translateX(0);
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }
    .dropdown-toggle {
        display: inline-flex;
        align-items: center;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: none;
        border-left: none;
        margin-left: 1rem;
        margin-top: 0.5rem;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .mobile-menu-toggle { display: flex; z-index: 1001; }

    .nav-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    /* Machinery cards: image spans full card width on mobile */
    .tech-machine-card .tech-machine-media {
        width: 100%;
        align-self: stretch;
        min-height: 0;
    }
    .tech-machine-card .tech-machine-img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
    }
    .services-showcase-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .home-services-section .service-showcase-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .clients-logo-grid {
        grid-template-columns: 1fr;
    }
    .about-checklist { grid-template-columns: 1fr; }
    .about-ceo-block { flex-direction: column; align-items: flex-start; }
    .about-images {
        padding-right: 0;
        padding-bottom: 0;
        margin-top: clamp(1.5rem, 5vw, 3rem);
    }
    .img-overlap { display: none; }
    .experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.25rem;
        width: 100%;
        max-width: 22rem;
        justify-content: center;
        flex-wrap: wrap;
        text-align: left;
        padding: clamp(1.1rem, 3vw, 1.5rem);
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: clamp(0.82rem, 2.5vw, 0.95rem);
    }
}

@media (max-width: 480px) {
    .clients-logo-marquee-item {
        min-width: 120px;
        max-width: 155px;
        min-height: 76px;
        padding: 0.6rem 0.75rem;
    }
    .clients-logo-marquee-item img {
        max-height: 44px;
    }
    .clients-logo-marquee-track {
        gap: 0.75rem;
    }
    .clients-logo-link {
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    }
}
