/* ===================================================
   DESIGN SYSTEM & GLOBAL RESETS
   =================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --gold: #D4AF37;
    --gold-subtle: rgba(212, 175, 55, 0.1);
    --black: #000000;
    --white: #FFFFFF;
    --dark-gray: #121212;
    --card-gray: #1a1a1a;
    --light-gray: #f4f4f4;
    --text-muted: #aaaaaa;
    --border-dark: #222222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Inter', -apple-system, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling on mobile */
    width: 100%;
}

/* Global Responsive Image Safeguard */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================================
   HEADER & NAVIGATION
   =================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.logo-container img {
    height: auto;
    width: auto;
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

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

.logo-text .full-name {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    letter-spacing: 1px;
    color: var(--white);
    white-space: nowrap;
}

.logo-text .short-name {
    display: none;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap; /* Allows menu links to adjust gracefully on smaller displays */
}

nav a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--gold);
}

/* ===================================================
   MOBILE & TABLET HAMBURGER MENU STYLES
   =================================================== */

/* Hamburger Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Transform Hamburger into "X" Icon when active */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Tablet & Mobile Dropdown View (900px and below) */
@media (max-width: 900px) {
    header {
        flex-direction: row; /* Keeps Logo left, Hamburger right */
        justify-content: space-between;
        padding: 15px 5%;
    }

    .menu-toggle {
        display: flex; /* Displays hamburger button */
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.98);
        border-bottom: 2px solid var(--gold);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.3s ease;
    }

    /* Expands dropdown open when clicked */
    nav.active {
        max-height: 400px;
        padding: 25px 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    nav a {
        font-size: 1rem;
        letter-spacing: 2px;
        display: block;
        padding: 5px 0;
    }
}

@media (max-width: 600px) {
    .logo-container img {
        max-height: 35px;
    }
    .logo-text .full-name {
        display: none;
    }
    .logo-text .short-name {
        display: inline-block;
    }
}
/* ===================================================
   HERO SECTIONS
   =================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--black);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 100%), url('images/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 850px;
}

/* Fluid Typography scaling for seamless phone/tablet display */
.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-content p {
    color: var(--light-gray);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
    font-weight: 300;
}

.detail-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 40px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--card-gray);
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    display: inline-block;
    padding: 15px 38px;
    border: 2px solid var(--gold);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    text-align: center;
}

.btn:hover {
    background-color: var(--gold);
    color: var(--black);
}

.btn-solid {
    background-color: var(--gold);
    color: var(--black);
}

.btn-solid:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 5px;
    padding: 12px 24px;
    align-self: flex-start;
}

.btn-gold:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
}

/* ===================================================
   SECTIONS & PRODUCT GRID
   =================================================== */
.section {
    padding: 80px 5%;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-transform: uppercase;
    margin-bottom: 50px;
    font-weight: 900;
}

.section-title span {
    color: var(--gold);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--gold);
    margin: 20px auto 0;
}

/* 2x2 Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--card-gray);
    color: var(--white);
    border-radius: 10px;
    overflow: hidden; /* Clips image zoom effect neatly inside card corners */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 4px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

/* Edge-to-edge card image container */
.product-img {
    width: 100%;
    height: 240px;                 /* Ideal height for balanced 16:9 images */
    background-size: cover;        /* Fills box frame with zero empty space */
    background-position: center;   /* Keeps product subject centered */
    background-repeat: no-repeat;
    transition: transform 0.4s ease; /* Smooth hover effect */
}

/* Subtle image zoom on hover */
.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background-color: var(--card-gray);
}

.product-info h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
}

.product-info .subtitle {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info p {
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Mobile & Tablet Adaptations */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr; /* Stacks to single column on small screens */
        gap: 25px;
    }
    .product-img {
        height: 200px;
    }
    .section {
        padding: 50px 4%;
    }
}

/* ===================================================
   GENERIC DETAIL PAGES (STANDARD TEXT LAYOUTS)
   =================================================== */
.detail-hero-simple {
    padding: 50px 5% 20px;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.detail-hero-content {
    max-width: 900px;
}

.detail-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 15px;
}

.detail-hero-content h1 span {
    color: var(--gold);
}

.detail-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 5%;
}

.detail-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 25px;
}

.detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.capabilities-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
    border-left: 4px solid var(--gold);
    padding-left: 15px;
}

.feature-list {
    list-style: none;
    margin-bottom: 45px;
}

.feature-list li {
    font-size: 1.05rem;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "■";
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.feature-list li strong {
    color: var(--white);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 5% 20px;
    border-top: 2px solid var(--gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-col h4 {
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===================================================
   ABOUT PAGE STYLES
   =================================================== */
.section-tag {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

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

.section-subtitle {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 70px;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.3;
}

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

.specialization-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--gold);
    padding: 24px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.specialization-card h4 {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.specialization-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Vision & Mission Cards */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 40px;
}

.vision-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 26, 1) 100%);
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-box h3 {
    color: var(--gold);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.vision-box p {
    color: var(--white);
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 500;
}

.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mission-item {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mission-item .num {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mission-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Industry Badges Grid */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.industry-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.industry-card h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; }
    .vm-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   CONSULTATION PAGE STYLES
   =================================================== */
.text-center {
    text-align: center;
}

/* Horizontal Scroll Container */
.consult-grid {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for the custom scrollbar */
}

/* Custom Gold Scrollbar Styling */
.consult-grid::-webkit-scrollbar {
    height: 6px;
}

.consult-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.consult-grid::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Fixed-width Cards that Snap into Focus */
.consult-card {
    flex: 0 0 300px; /* Keeps each card at a fixed width so they overflow horizontally */
    scroll-snap-align: start;
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    padding: 30px 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.consult-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.consult-card .icon-label {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.consult-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.consult-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Engineering Process Flow */
/* Horizontal Scroll Container for Consultation Process */
.process-grid {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px; /* Space for custom scrollbar */
}

/* Custom Gold Scrollbar Styling */
.process-grid::-webkit-scrollbar {
    height: 6px;
}

.process-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.process-grid::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

/* Fixed-width Process Cards with Snap */
.process-step {
    flex: 0 0 280px; /* Prevents shrinking and keeps step cards at a set width */
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 25px;
    position: relative;
}
.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 10px;
}

.process-step h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
}

/* Consultation Form Container */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    margin-top: 40px;
}

.form-info {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    padding: 35px;
    border-radius: 10px;
}

.form-info h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.form-info-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    margin-top: 25px;
}

.info-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.info-list li::before {
    content: "✓";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Form Inputs Styling */
.consultation-form {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    padding: 40px;
    border-radius: 10px;
}

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

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.form-group input,
.form-group select,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: auto; /* Pushes the input box to the bottom so fields align baseline to baseline */
    background: var(--dark-gray);
    border: 1px solid var(--border-dark);
    color: var(--white);
    padding: 14px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23D4AF37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-submit-btn {
    width: 100%;
    padding: 16px;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 900px) {
    .form-layout { grid-template-columns: 1fr; }
    .form-group-row { grid-template-columns: 1fr; }
}

/* ===================================================
   NEWS PAGE STYLES
   =================================================== */
/* Featured Article Card */
.featured-article {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-top: 4px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-article:hover {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.article-content {
    padding: 45px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.article-badge {
    background: var(--gold);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.article-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.article-body {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 18px;
}

.article-highlight {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--gold);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 6px 6px 0;
}

.article-highlight p {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Feature List inside Article Body */
.article-body .feature-list {
    margin: 20px 0;
    padding-left: 20px;
    color: var(--text-muted);
}

.article-body .feature-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Sidebar / Updates Grid */
.updates-header {
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.updates-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 5px;
}

.notice-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.notice-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .article-content {
        padding: 25px;
    }

    .article-title {
        font-size: 1.5rem;
    }
}

/* ===================================================
   CONTACT PAGE STYLES
   =================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-title {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--gold);
    padding: 28px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.card-icon {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-details h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.card-details p, 
.card-details a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
}

.card-details a:hover {
    color: var(--gold);
}

/* Contact Form Container */
.contact-form-container {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    padding: 40px;
    border-radius: 10px;
}

.contact-form-container h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.contact-form-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

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

/* Reusing form-group styling with perfect alignment */
.contact-form-container .form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.contact-form-container .form-group label {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.3;
}

.contact-form-container .form-group input,
.contact-form-container .form-group select,
.contact-form-container .form-group textarea {
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
    background: var(--dark-gray);
    border: 1px solid var(--border-dark);
    color: var(--white);
    padding: 14px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-form-container .form-group input:focus,
.contact-form-container .form-group select:focus,
.contact-form-container .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.contact-form-container .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23D4AF37' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    cursor: pointer;
    text-align: center;
}

/* Map Container */
.map-section {
    margin-top: 60px;
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    overflow: hidden;
    padding: 10px;
}

.map-frame {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 6px;
    filter: grayscale(100%) invert(92%) contrast(83%);
}

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ===================================================
   PRODUCT CONSUMABLES PAGE STYLES
   =================================================== */
/* Asymmetric Split Hero Layout */
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 24px 50px;
    align-items: center;
}

.hero-left h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-left h1 span {
    background: linear-gradient(135deg, #ffffff 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.badge-supplier {
    font-size: 0.75rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Hero Feature Card */
.hero-summary-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-top: 3px solid var(--gold);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.hero-summary-card h3 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-tagline {
    font-size: 0.88rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-dark);
}

.summary-list {
    list-style: none;
}

.summary-item {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.summary-icon {
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.summary-text h4 {
    color: var(--white);
    font-size: 0.95rem;
}

.summary-text p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Stat Ribbon */
.stat-ribbon {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(5, 5, 5, 1) 100%);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 40px 0;
    margin: 30px 0 70px;
}

.stat-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 24px;
}

.stat-box {
    text-align: center;
    padding: 15px;
    border-right: 1px solid var(--border-dark);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Section Wrapper & Product Cards */
.section-wrapper {
    max-width: 1300px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.7), 0 0 15px rgba(212, 175, 55, 0.22);
}

.product-header-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-dark);
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-body h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.product-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.spec-list {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}

.spec-list li {
    color: var(--white);
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
}

.spec-list li span.val {
    color: var(--gold);
    font-weight: 600;
}

.btn-center {
    text-align: center;
}

/* PDF Catalogs Section */
.catalog-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.download-card {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-top: 4px solid var(--gold);
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.2);
}

.download-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pdf-icon-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
    letter-spacing: 1px;
}

.download-card h3 {
    color: var(--white);
    font-size: 1.35rem;
}

.download-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 25px;
}

.btn-download {
    background: var(--gold);
    color: var(--black);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-download:hover {
    background: #e5be3f;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.22);
}

/* Material Table */
.catalog-container {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 35px;
    overflow-x: auto;
}

.catalog-table-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.catalog-table th, 
.catalog-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

.catalog-table th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.catalog-table tr:hover td {
    background: rgba(212, 175, 55, 0.03);
}

.grade-tag {
    color: var(--gold);
    font-weight: 700;
    font-family: monospace;
    font-size: 0.95rem;
}

/* QA Workflow Grid */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.qa-step {
    background: var(--card-gray);
    border: 1px solid var(--border-dark);
    border-top: 3px solid var(--gold);
    border-radius: 8px;
    padding: 25px 20px;
}

.qa-num {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.qa-step h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.qa-step p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.cta-banner h2 {
    font-size: 2.1rem;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-banner h2 span {
    color: var(--gold);
}

.cta-banner p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 0.98rem;
}

.cta-group-center {
    justify-content: center;
}

.footer-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .catalog-download-grid { grid-template-columns: 1fr; }
    .qa-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-container { grid-template-columns: repeat(2, 1fr); }
    .stat-box { border-right: none; border-bottom: 1px solid var(--border-dark); }
}

@media (max-width: 600px) {
    .hero-left h1 { font-size: 2.2rem; }
    .qa-grid { grid-template-columns: 1fr; }
    .stat-container { grid-template-columns: 1fr; }
}

/* ===================================================
   BUTTON STYLES & MOBILE OVERLAP FIX
   =================================================== */
.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-gold,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0; /* Resets margins that cause overlapping */
    height: auto; /* Ensures clean height calculation */
}

.btn-gold {
    background: var(--gold);
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    .cta-group {
        flex-direction: column;
        align-items: stretch; /* Stretches buttons evenly across container */
        width: 100%;
        gap: 12px; /* Adds 12px gap between top and bottom button */
    }

    .cta-group .btn-gold,
    .cta-group .btn-outline {
        width: 100%;
        padding: 10px 14px; /* Reduced padding to fit smaller screens */
        font-size: 0.85rem; /* Scaled font size so text fits neatly */
        white-space: normal; /* Allows long button text to wrap cleanly if needed */
        margin: 0;
    }
}

/* ===================================================
   RESENSYS SHM PAGE STYLES & MOBILE FIXES
   =================================================== */

/* Hero Section */
.resensys-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('images/resensys-hero-bridge.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--gold, #d4af37);
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.resensys-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0 0 15px;
    color: var(--white, #ffffff);
    line-height: 1.2;
}

.resensys-hero h1 span {
    color: var(--gold, #d4af37);
}

.resensys-hero p {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--white, #ffffff);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Button & CTA Group Rules */
.cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin: 0;
    height: auto;
}

.btn-gold {
    background: var(--gold, #d4af37);
    color: #000000;
    border: 1px solid var(--gold, #d4af37);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    background: #000000;
    color: var(--gold, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white, #ffffff);
    border: 1px solid var(--gold, #d4af37); /* Gold outline frame */
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold, #d4af37);
}

.btn-center {
    width: 100%;
    text-align: center;
}

/* Smart Metrics Bar */
.smart-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.metric-card {
    background-color: var(--card-gray, #0a0a0a);
    border: 1px solid var(--gold, #d4af37);
    border-radius: 8px;
    padding: 22px 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.metric-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--gold, #d4af37);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--white, #ffffff);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Hardware & Platform Tech Grid */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--white, #ffffff);
    font-weight: 800;
}

.section-title span {
    color: var(--gold, #d4af37);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted, #aaaaaa);
    margin-bottom: 50px;
    font-size: 1rem;
}

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

.tech-card {
    background-color: var(--card-gray, #0a0a0a);
    border: 1px solid var(--border-dark, #222222);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: var(--gold, #d4af37);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.tech-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--gold, #d4af37);
}

.tech-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-body h3 {
    color: var(--white, #ffffff);
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.tech-tag {
    color: var(--gold, #d4af37);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.tech-body p {
    color: var(--text-muted, #cccccc);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.feature-list li {
    color: var(--white, #ffffff);
    font-size: 0.88rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.feature-list li::before {
    content: "✦";
    color: var(--gold, #d4af37);
    margin-right: 10px;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Dashboard Mockup Box */
.dashboard-preview-box {
    background-color: var(--card-gray, #0a0a0a);
    border: 1px solid var(--gold, #d4af37);
    border-radius: 10px;
    padding: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.preview-info h3 {
    font-size: 1.8rem;
    color: var(--white, #ffffff);
    margin-top: 0;
    margin-bottom: 15px;
}

.preview-info h3 span {
    color: var(--gold, #d4af37);
}

.preview-info p {
    color: var(--text-muted, #cccccc);
    line-height: 1.6;
    margin-bottom: 25px;
}

.preview-info .cta-group {
    justify-content: flex-start;
}

.dashboard-mockup {
    border: 1px solid var(--gold, #d4af37);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.dashboard-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

/* Applications Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-dark, #333333);
    transition: border-color 0.3s ease;
}

.app-item:hover {
    border-color: var(--gold, #d4af37);
}

.app-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.app-item:hover .app-bg {
    transform: scale(1.08);
}

.app-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.2) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.app-overlay h4 {
    margin: 0;
    color: var(--gold, #d4af37);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-overlay p {
    margin: 5px 0 0;
    color: var(--white, #ffffff);
    font-size: 0.85rem;
}

/* Mobile & Tablet Responsive Rules */
@media (max-width: 1024px) {
    .tech-grid { grid-template-columns: 1fr; }
    .dashboard-preview-box { grid-template-columns: 1fr; text-align: center; }
    .preview-info .cta-group { justify-content: center; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .resensys-hero h1 { font-size: 2.1rem; }
    .app-grid { grid-template-columns: 1fr; }
    .smart-metrics { grid-template-columns: 1fr; margin-top: -20px; }

    /* Mobile Stacking Fixes for Buttons */
    .cta-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .cta-group .btn-gold,
    .cta-group .btn-outline {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.88rem;
        white-space: normal;
        margin: 0;
    }
}

/* ===================================================
   SYNTEGRIS HORIZONTAL SCROLL CARDS (FULL OVERLAY)
   =================================================== */

/* 1. Main Horizontal Scroll Container */
.syntegris-grid {
    display: flex;
    justify-content: flex-start;  /* Default to left-align for safe scrolling on mobile/tablet */
    align-items: center;
    overflow-x: auto;
    gap: 25px;
    
    width: 100%;                  /* Resets back to 100% to fix the mobile layout break */
    
    padding: 20px 20px 35px 20px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 1b. Center cards ONLY on large desktop screens where they fully fit */
@media (min-width: 1360px) {
    .syntegris-grid {
        justify-content: center; 
    }
}

/* 2. Individual Card Container with Full Background Image */
.syntegris-card {
    position: relative;
    flex: 0 0 310px;              /* Uniform card width */
    min-height: 440px;
    scroll-snap-align: start;     /* Snaps cards smoothly into view */
    background-color: #121f3d;    /* Deep Blue Fallback */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid var(--gold, #d4af37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 3. Card Hover Lift & Glow */
.syntegris-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

/* 4. Dark Gradient Overlay (Ensures text is legible over images) */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top, 
        rgba(18, 31, 61, 0.95) 0%, 
        rgba(18, 31, 61, 0.6) 55%, 
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    transition: background 0.3s ease;
}

.syntegris-card:hover .card-overlay {
    background: linear-gradient(
        to top, 
        rgba(18, 31, 61, 1) 0%, 
        rgba(18, 31, 61, 0.75) 60%, 
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* 5. Text Container (Forces background to be transparent) */
.syntegris-card .product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    z-index: 2;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: transparent !important; /* Strips out any solid background color */
}

.syntegris-card .product-info h3 {
    margin-bottom: 6px;
    color: var(--gold, #d4af37);
}

.syntegris-card .product-info .subtitle {
    margin-bottom: 12px;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.syntegris-card .product-info p {
    margin-bottom: 20px;
    font-size: 0.92em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* 6. Standardized Card Buttons */
.syntegris-card .btn {
    display: block;
    width: 100%;              /* Forces identical width for all buttons */
    box-sizing: border-box;
    padding: 12px 15px;       /* Uniform button height */
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;      /* Keeps button text on one line */
    margin-top: auto;
}

/* 7. Custom Gold Scrollbar */
.syntegris-grid::-webkit-scrollbar {
    height: 8px;
}

.syntegris-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.syntegris-grid::-webkit-scrollbar-thumb {
    background: var(--gold, #d4af37);
    border-radius: 10px;
}

/* 8. Mobile Adjustments */
@media (max-width: 600px) {
    .syntegris-grid {
        padding: 20px 20px 35px 20px;
    }

    .syntegris-card {
        flex: 0 0 85%;            /* Shows a peek of the next card on mobile */
        min-height: 400px;
    }
}


/* ===================================================
   STANDARDIZED CARD BUTTONS
   =================================================== */
.syntegris-card .btn {
    display: block;
    width: 100%;              /* Forces every button to be the exact same width */
    box-sizing: border-box;   /* Prevents padding from breaking width calculations */
    padding: 12px 15px;       /* Consistent height across all buttons */
    text-align: center;       /* Centers all text */
    font-size: 0.85rem;       /* Keeps text legible and uniform */
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;      /* Prevents longer text from breaking onto a 2nd line */
    margin-top: auto;         /* Keeps all buttons aligned at the bottom */
}

/* ===================================================
   COMBINED HERO & WHO WE ARE BACKGROUND
   =================================================== */
.hero-overview-wrapper {
    position: relative;
    /* Gradient overlay + background image path */
    background-image: linear-gradient(rgba(10, 18, 36, 0.85), rgba(10, 18, 36, 0.92)), url('images/about-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Force child sections to be transparent so wrapper image shows through */
.hero-overview-wrapper .detail-hero-simple,
.hero-overview-wrapper .section {
    background: transparent !important;
}

/* Optional: Slight dark tint on specialization cards so text stands out over the picture */
.hero-overview-wrapper .specialization-card {
    background: rgba(18, 31, 61, 0.7);
    backdrop-filter: blur(5px); /* Adds a modern glassmorphism effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================================
   INFOGRAPHIC SECTION
   =================================================== */
.infographic-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(18, 31, 61, 0.5); /* Matching dark navy container */
    border: 1px solid rgba(212, 175, 55, 0.25); /* Subtle gold border */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
}

.infographic-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.infographic-container:hover .infographic-img {
    transform: scale(1.015); /* Subtle zoom effect on hover */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .infographic-container {
        padding: 15px;
    }
}

/* ===================================================
   COMBINED ECOSYSTEM & SECTOR EXPERTISE SECTION
   =================================================== */
.infographic-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(18, 31, 61, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
}

.infographic-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.infographic-container:hover .infographic-img {
    transform: scale(1.015);
}

/* Divider to seamlessly transition between Infographic and Grid */
.combined-section-divider {
    width: 100%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold, #d4af37), transparent);
    margin: 50px auto;
    opacity: 0.6;
}