/* ============================================
   YOGI ALLOYS & EXTRUSIONS INC.
   Modern Industrial Website Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #c8a96e;
    --color-primary-dark: #a8893e;
    --color-dark: #0f172a;
    --color-darker: #080e1a;
    --color-navy: #1a1a2e;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-bg: #f8f8f6;
    --color-bg-alt: #f1f0ec;
    --color-white: #ffffff;
    --color-green: #16a34a;
    --color-green-light: #dcfce7;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1280px;
    --section-padding: 120px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Performance: Reduce motion for users who prefer it --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .stat-card,
    .product-card,
    .industry-card,
    .advantage-item,
    .process-step,
    .about-content,
    .about-image,
    .sustain-content,
    .sustain-image,
    .contact-info,
    .contact-form-wrapper {
        opacity: 1;
        transform: none;
    }
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Scroll Animations --- */
.stat-card,
.product-card,
.industry-card,
.advantage-item,
.process-step,
.about-content,
.about-image,
.sustain-content,
.sustain-image,
.contact-info,
.contact-form-wrapper,.stat-card-custom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.stat-card.in-view,
.product-card.in-view,
.industry-card.in-view,
.advantage-item.in-view,
.process-step.in-view,
.about-content.in-view,
.about-image.in-view,
.sustain-content.in-view,
.sustain-image.in-view,
.contact-info.in-view,
.contact-form-wrapper.in-view,.stat-card-custom {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(2) { transition-delay: 0.1s; }
.stat-card:nth-child(3) { transition-delay: 0.2s; }
.stat-card:nth-child(4) { transition-delay: 0.3s; }

.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.15s; }
.product-card:nth-child(4) { transition-delay: 0.2s; }
.product-card:nth-child(5) { transition-delay: 0.25s; }

.industry-card:nth-child(2) { transition-delay: 0.08s; }
.industry-card:nth-child(3) { transition-delay: 0.16s; }
.industry-card:nth-child(4) { transition-delay: 0.24s; }
.industry-card:nth-child(5) { transition-delay: 0.32s; }
.industry-card:nth-child(6) { transition-delay: 0.4s; }

.advantage-item:nth-child(2) { transition-delay: 0.1s; }
.advantage-item:nth-child(3) { transition-delay: 0.2s; }
.advantage-item:nth-child(4) { transition-delay: 0.1s; }
.advantage-item:nth-child(5) { transition-delay: 0.2s; }
.advantage-item:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 101;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 3px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links .has-dropdown > a .dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform 0.3s ease;
}

.nav-links .has-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.nav-links .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu ul {
    background: var(--color-dark);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    list-style: none;
}

.dropdown-menu ul li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7) !important;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.dropdown-menu ul li a::after {
    display: none;
}

.dropdown-menu ul li a:hover {
    color: var(--color-primary) !important;
    background: rgba(200, 169, 110, 0.08);
    padding-left: 28px;
}

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark) !important;
    background: var(--color-primary);
    padding: 10px 24px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--color-white);
    transform: translateY(-1px);
}

.nav-cta .arrow {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.nav-cta:hover .arrow {
    transform: translate(2px, -2px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 101;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 75vh;
    min-height: 0;
    display: flex;
    align-items: center;
    background: #0f172a;
    overflow: hidden;
}

.hero::after {
    display: none;
}

/* Hero Background Video */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.80) 0%, rgba(26, 26, 46, 0.65) 50%, rgba(10, 10, 26, 0.75) 100%);
    pointer-events: none;
}

/* Subtle scanline effect over video */
.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero > .hero-content {
    width: 100%;
}

.hero-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    padding-left: 48px;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 36px;
    height: 1.5px;
    background: var(--color-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 7vw, 86px);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-scroll {
    display: none;
}

.hero-scroll span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translate(2px, -2px);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-dark);
}

.btn-primary:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-dark {
    background: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    padding: 100px 0;
    background: var(--color-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    color: var(--color-primary-dark);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-number sup {
    font-size: 24px;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.stat-desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.section-label.light {
    color: var(--color-primary);
}

.section-label.green {
    color: var(--color-green);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-title.light {
    color: var(--color-white);
}

.section-header {
    margin-bottom: 64px;
}

.section-header.center {
    text-align: center;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 600px;
    line-height: 1.7;
        margin: auto;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-placeholder {
    border-radius: 12px;
    overflow: hidden;
}

.about-img-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

.about-accent-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 20px 28px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(200, 169, 110, 0.3);
}

.accent-number {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.accent-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.about-text {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.about-feature strong {
    display: block;
    font-size: 15px;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.about-feature p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.product-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
}

.product-img {
    overflow: hidden;
    position: relative;
}

.product-img svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.6s ease;
    object-fit: cover;
}

.product-card:hover .product-img svg {
    transform: scale(1.05);
}

.product-info {
    padding: 32px;
}

.product-card-large .product-info {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.product-card-large .product-info h3 {
    font-size: 28px;
}

.product-info p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-link .arrow {
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: var(--color-dark);
}

.product-link:hover .arrow {
    transform: translate(3px, -3px);
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    background: var(--color-bg);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.industry-card:hover {
    background: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.industry-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    transition: all 0.4s ease;
}

.industry-card:hover .industry-icon {
    background: var(--color-primary);
    color: var(--color-dark);
}

.industry-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages {
    position: relative;
    padding: var(--section-padding) 0;
    background:
        linear-gradient(135deg, #0f172a 0%, #1a1a2e 60%, #0a0e1a 100%);
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(200, 169, 110, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.advantages-header {
    text-align: center;
    margin-bottom: 64px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.advantage-item {
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(200, 169, 110, 0.3);
    transform: translateY(-4px);
}

.advantage-num {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.4;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* Light background variant for advantage items (used on subpages) */
.page-content .advantage-item,
.alt-bg .advantage-item {
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: var(--color-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.page-content .advantage-item:hover,
.alt-bg .advantage-item:hover {
    background: var(--color-white);
    border-color: rgba(200, 169, 110, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.page-content .advantage-item h3,
.alt-bg .advantage-item h3 {
    color: var(--color-dark);
}

.page-content .advantage-item p,
.alt-bg .advantage-item p {
    color: var(--color-text-light);
}

.page-content .advantage-num,
.alt-bg .advantage-num {
    opacity: 0.6;
}

/* ============================================
   SUSTAINABILITY SECTION
   ============================================ */
.sustainability {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.sustain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sustain-content p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 36px;
}

.sustain-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.sustain-stat {
    text-align: center;
}

.sustain-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--color-green);
    margin-bottom: 4px;
}

.sustain-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sustain-img-placeholder {
    border-radius: 12px;
    overflow: hidden;
}

.sustain-img-placeholder svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.process-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process-step h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.process-connector {
    width: 60px;
    min-width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--color-primary), rgba(200, 169, 110, 0.2));
    margin-top: 24px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
    background: var(--color-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.contact-item svg {
    min-width: 20px;
    margin-top: 4px;
    color: var(--color-primary);
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 48px;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contact-form select {
    color: rgba(255, 255, 255, 0.35);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.contact-form select option {
    background: var(--color-dark);
    color: var(--color-white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    margin-top: 8px;
    padding: 16px 32px;
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-darker);
    padding: 80px 0 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo .logo-name {
    font-size: 20px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--color-primary);
    color: var(--color-dark);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4,
.footer-col .footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 20px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    margin-top: 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(200, 169, 110, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-dark);
    color: var(--color-primary);
    transform: translateY(-4px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .sustain-grid {
        gap: 48px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card-large {
        grid-column: 1 / -1;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        flex: 0 0 calc(33.33% - 16px);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 100;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--color-white);
    }

    .nav-links .has-dropdown > a .dropdown-arrow {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid currentColor;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        padding-top: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease;
    }

    .has-dropdown.dropdown-open .dropdown-menu {
        max-height: 400px;
    }

    .has-dropdown.dropdown-open > a .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu ul {
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 8px;
        padding: 8px 0;
        min-width: unset;
        box-shadow: none;
    }

    .dropdown-menu ul li a {
        font-size: 16px;
        padding: 8px 20px;
        text-align: center;
    }

    .dropdown-menu ul li a:hover {
        padding-left: 20px;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        padding-top: 140px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .stat-card {
        padding: 28px 24px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-accent-box {
        bottom: -10px;
        right: 10px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-large {
        grid-template-columns: 1fr;
    }

    /* Industries */
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .industry-card {
        padding: 28px 20px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-item {
        padding: 28px 24px;
    }

    /* Sustainability */
    .sustain-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sustain-stats {
        gap: 24px;
    }

    /* Process */
    .process-step {
        flex: 0 0 calc(50% - 12px);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Touch targets: ensure minimum 44x44px for all interactive elements */
    .footer-col ul li a,
    .footer-legal a {
        display: inline-block;
        padding: 4px 0;
        min-height: 44px;
        line-height: 36px;
    }

    .footer-socials a {
        min-width: 44px;
        min-height: 44px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sustain-stats {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .process-step {
        flex: 0 0 100%;
    }
}

/* ============================================
   SUBPAGE STYLES
   ============================================ */

/* Page Hero (shorter banner for subpages) */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: #0f172a;
    overflow: hidden;
}

.page-hero .hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.page-hero .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.80) 0%, rgba(26, 26, 46, 0.65) 50%, rgba(10, 10, 26, 0.75) 100%);
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 2;
}

.page-hero h1,
.page-hero .section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.page-hero p,
.page-hero .section-desc {
    color: rgba(255, 255, 255, 0.6);
    max-width: 640px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}

.breadcrumb .current {
    color: var(--color-primary);
}

/* Page Content */
.page-content {
    padding: var(--section-padding) 0;
}

.page-content.alt-bg {
    background: var(--color-white);
}

.page-content.dark-bg {
    background: var(--color-dark);
}

/* Content Grid (text + sidebar/image) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 40px);
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
    margin-top: 32px;
}

.content-text p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-text ul {
    list-style: none;
    margin-bottom: 24px;
}

.content-text ul li {
    font-size: 15px;
    color: var(--color-text);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.content-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 2px;
    background: var(--color-primary);
}

/* Feature/Spec Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--color-white);
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-card .card-icon {
    width: 56px;
    height: 56px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.spec-table thead {
    background: var(--color-dark);
}

.spec-table th {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    letter-spacing: 0.5px;
}

.spec-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.spec-table tbody tr:nth-child(even) {
    background: var(--color-bg);
}

.spec-table tbody tr:hover {
    background: rgba(200, 169, 110, 0.06);
}

/* Related Products */
.related-products {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: start;
}

.related-card {
    display: block;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.related-card .related-img {
    height: 180px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
}

.related-card .related-info {
    padding: 24px;
}

.related-card .related-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.related-card .related-info p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* CTA Banner */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
    text-align: center;
}

.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 42px);
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Image Placeholder for subpages */
.img-placeholder {
    background: var(--color-dark);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Timeline (for About/Process pages) */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: 48px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), rgba(200, 169, 110, 0.1));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--color-bg);
}

.timeline-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.timeline-item .timeline-year {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 1px;
    margin-bottom: 4px;
    display: block;
}

.timeline-item p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Values Grid (About page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.value-card {
    text-align: center;
    padding: 40px 28px;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.value-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Team Grid (Careers) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.team-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.team-card .team-img {
    height: 200px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.team-card .team-info {
    padding: 24px;
}

.team-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 13px;
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* Job Listings (Careers) */
.job-listing {
    background: var(--color-white);
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.job-listing h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.job-listing .job-meta {
    font-size: 13px;
    color: var(--color-text-light);
    display: flex;
    gap: 16px;
}

.job-listing .job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.blog-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.blog-card .blog-img {
    height: 200px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 14px;
}

.blog-card .blog-info {
    padding: 24px;
}

.blog-card .blog-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.blog-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
}

.blog-card h3 a:hover {
    color: var(--color-primary-dark);
}

.blog-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card .blog-date {
    font-size: 12px;
    color: var(--color-text-light);
}

/* Case Study Card */
.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
    transition: box-shadow 0.3s ease;
}

.case-study-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.case-study-card .case-img {
    height: 100%;
    min-height: 280px;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 16px;
}

.case-study-card .case-info {
    padding: 40px 40px 40px 0;
}

.case-study-card .case-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.case-study-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-study-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-study-card .case-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.case-study-card .case-stat {
    text-align: center;
}

.case-study-card .case-stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1;
}

.case-study-card .case-stat-label {
    font-size: 11px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* Legal Content (Privacy, Terms) */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-padding) 0;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-dark);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 32px 0 12px;
}

.legal-content p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 0;
}

.legal-content ul li {
    font-size: 15px;
    color: var(--color-text);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: 1.7;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 2px;
    background: var(--color-primary);
}

/* Sitemap Links */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: var(--section-padding) 0;
}

.sitemap-col h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}

.sitemap-col ul li {
    margin-bottom: 8px;
}

.sitemap-col ul li a {
    font-size: 15px;
    color: var(--color-text);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sitemap-col ul li a:hover {
    color: var(--color-primary-dark);
    padding-left: 4px;
}

/* Process Detail (expanded process page) */
.process-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.process-detail:last-child {
    border-bottom: none;
}

.process-detail:nth-child(even) {
    direction: rtl;
}

.process-detail:nth-child(even) > * {
    direction: ltr;
}

.process-detail .process-num {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 12px;
}

.process-detail h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.process-detail p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Certification badges */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.cert-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-card .cert-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: rgba(200, 169, 110, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.cert-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.cert-card p {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Alloy table colors */
.alloy-series {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    background: rgba(200, 169, 110, 0.1);
    color: var(--color-primary-dark);
}

/* ============================================
   CONTACT SUBPAGE
   ============================================ */
.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--color-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 18px;
}

.section-gray {
    background: var(--color-bg);
}

/* Contact Grid - Subpage (light bg) */
.page-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.page-contact-info h2,
.page-contact-form h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 32px;
}

/* Contact Info Items */
.page-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.page-contact-item .contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.page-contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.page-contact-item p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
}

.page-contact-item a {
    color: var(--color-primary);
    font-weight: 500;
}

.page-contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form - Subpage (light bg) */
.page-contact-form {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.page-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.page-contact-form .form-group {
    margin-bottom: 20px;
}

.page-contact-form .form-group.full-width {
    grid-column: 1 / -1;
}

.page-contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.page-contact-form label .required {
    color: #e74c3c;
}

.page-contact-form input,
.page-contact-form select,
.page-contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

.page-contact-form input::placeholder,
.page-contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.page-contact-form select {
    appearance: none;
    color: rgba(0, 0, 0, 0.45);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(0,0,0,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.page-contact-form input:focus,
.page-contact-form select:focus,
.page-contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

.page-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact-form .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-dark);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.page-contact-form .btn-primary:hover {
    background: #b8963e;
    transform: translateY(-1px);
}

/* Contact Page Additional Info Cards */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.contact-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(200, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 4px;
}

.contact-card a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Subpage Responsive */
@media (max-width: 1024px) {
    .content-grid {
        gap: 48px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-study-card {
        grid-template-columns: 1fr;
    }

    .case-study-card .case-info {
        padding: 32px;
    }

    .process-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .process-detail:nth-child(even) {
        direction: ltr;
    }

    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-contact-form {
        padding: 28px;
    }

    .page-contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sitemap-grid {
        grid-template-columns: 1fr;
    }

    .job-listing {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .case-study-card .case-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .spec-table {
        font-size: 13px;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .case-study-card .case-info {
        padding: 24px;
    }
}

/* ============================================
   PRODUCT SHOWCASE SECTION (Apex-inspired)
   ============================================ */
.product-showcase {
    padding: 80px 0;
    background: var(--color-white);
}

.product-showcase .section-header {
    margin-bottom: 50px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.showcase-card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--color-dark);
    aspect-ratio: 3 / 4;
    cursor: pointer;
    text-decoration: none;
    border-radius: 12px;
}

/* Real image layer */
.showcase-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.showcase-card:hover .showcase-card-img {
    opacity: 0.3;
}

/* SVG placeholder (used until real images) */
.showcase-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a 0%, #1a2744 100%);
    transition: opacity 0.5s ease;
}

.showcase-card-placeholder svg {
    width: 60%;
    height: auto;
    max-height: 50%;
}

.showcase-card:hover .showcase-card-placeholder {
    opacity: 0.15;
}

/* Gradient overlay at bottom */
.showcase-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 70%
    );
    z-index: 1;
    transition: opacity 0.5s ease;
}

.showcase-card:hover .showcase-card-overlay {
    opacity: 0;
}

/* Content: positioned at bottom, moves to center via transform on hover */
.showcase-card-content {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-card-content {
    transform: translateY(-100px);
}

/* Hide number on these cards */
.showcase-card-number {
    display: none;
}

/* Title */
.showcase-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    transition: color 0.4s ease, transform 0.4s ease;
}

.showcase-card:hover .showcase-card-title {
    color: var(--color-primary);
    transform: translateY(-10px);
}

/* Hide description */
.showcase-card-desc {
    display: none;
}

/* READ MORE button — hidden by default, appears on hover */
.showcase-card-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 28px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark);
    background: var(--color-primary);
    border: none;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.showcase-card:hover .showcase-card-link {
    opacity: 1;
    transform: translateY(0);
}

.showcase-card-link:hover {
    background: #dbbf82;
}

/* Hide the arrow icon inside link */
.showcase-card-link .link-arrow {
    display: none;
}

/* Accent bar at bottom of each card */
.showcase-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    z-index: 3;
    transition: width 0.4s ease;
}

.showcase-card:hover::after {
    width: 80px;
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .showcase-card {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 600px) {
    .product-showcase {
        padding: 60px 0;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .showcase-card {
        aspect-ratio: 4 / 3;
    }
    .showcase-card-title {
        font-size: 18px;
    }
    /* Show link on mobile since no hover */
    .showcase-card-link {
        opacity: 1;
        transform: translateY(0);
    }
    .showcase-card-content {
        justify-content: center;
        padding: 0 24px;
    }
    .showcase-card-overlay {
        opacity: 0;
    }
    .showcase-card-placeholder {
        opacity: 0.3;
    }
}

/* ============================================
   SUBPAGE UTILITY CLASSES
   ============================================ */

/* Auto-fit grid for stats — replaces inline grid-template-columns */
.stats-grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

/* Auto-fit grid for content cards */
.content-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* 5-column stats grid with responsive fallback */
.stats-grid-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

@media (max-width: 1024px) {
    .stats-grid-5 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .stats-grid-5 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .stats-grid-5 {
        grid-template-columns: 1fr !important;
    }
}

/* 3-column stats grid with responsive fallback */
.stats-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .stats-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .stats-grid-3 {
        grid-template-columns: 1fr !important;
    }
}

/* 4-column features grid with responsive fallback */
.features-grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .features-grid-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   PROCESS STEPS GRID (Subpage variant)
   ============================================ */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    counter-reset: process-counter;
}

.process-step-card {
    position: relative;
    padding: 48px 32px 40px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: all 0.4s ease;
}

.process-step-card:nth-child(1) { border-radius: 12px 0 0 0; }
.process-step-card:nth-child(3) { border-radius: 0 12px 0 0; }
.process-step-card:nth-child(4) { border-radius: 0 0 0 12px; }
.process-step-card:nth-child(6) { border-radius: 0 0 12px 0; }

.process-step-card:hover {
    background: var(--color-white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    z-index: 2;
    border-color: rgba(200, 169, 110, 0.2);
}

.process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.08);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.process-step-card:hover .process-step-num {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: scale(1.1);
}

.process-step-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}

.process-step-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* Connecting arrows removed by request */

@media (max-width: 1024px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step-card { border-radius: 0 !important; }
    .process-step-card:nth-child(1) { border-radius: 12px 0 0 0 !important; }
    .process-step-card:nth-child(2) { border-radius: 0 12px 0 0 !important; }
    .process-step-card:nth-child(5) { border-radius: 0 0 0 12px !important; }
    .process-step-card:nth-child(6) { border-radius: 0 0 12px 0 !important; }
}

@media (max-width: 640px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-step-card {
        border-radius: 0 !important;
        padding: 32px 24px;
    }

    .process-step-card:first-child { border-radius: 12px 12px 0 0 !important; }
    .process-step-card:last-child { border-radius: 0 0 12px 12px !important; }
}
