/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.img-responsive,
img,
video {
    max-width: 100%;
    height: auto;
}

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

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #1a202c;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo .logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.nav-logo h2 {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    margin: 0;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: #1a202c;
    background: rgba(226, 232, 240, 0.5);
}

.nav-link.active {
    color: #1a202c;
    background: rgba(226, 232, 240, 0.8);
    font-weight: 600;
}

.nav-link.quote-btn {
    background: #1a202c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-link.quote-btn:hover {
    background: #2d3748;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #1a202c;
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* Shared section intros (homepage and elsewhere) */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header--center {
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header__lead {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.65;
    color: #4a5568;
}

/* Hero Section */
.hero {
    background-color: #1a202c;
    background-image: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 140px 0 100px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
    letter-spacing: -0.025em;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #1a202c;
    color: white;
    box-shadow: 0 4px 14px rgba(26, 32, 44, 0.2);
}

.btn-primary:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 32, 44, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: #1a202c;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: #1a202c;
    border: 2px solid #1a202c;
}

.btn-outline:hover {
    background: #1a202c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 32, 44, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.industrial-icon {
    font-size: 8rem;
    opacity: 0.8;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a202c, #2d3748, #1a202c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 32, 44, 0.1);
    border-color: rgba(26, 32, 44, 0.2);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.2);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 0.2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

/* Services Preview */
.services-preview {
    padding: 100px 0;
    background: white;
    position: relative;
}

.services-preview .section-header h2 {
    font-size: 2.5rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.services-preview__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.02), rgba(45, 55, 72, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 32, 44, 0.1);
    border-color: rgba(26, 32, 44, 0.2);
}

.service-card i {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover i {
    transform: scale(1.05);
    color: #2d3748;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

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

/* Services Core Layout */
.services-core-layout {
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.service-hero-block {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(26, 32, 44, 0.15);
}

.service-hero-block p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.services-three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ============================================================
   Home gallery preview
   ============================================================ */
.home-gallery {
    padding: 88px 0 96px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.home-gallery__container {
    max-width: min(1200px, 100%);
}

.home-gallery__header {
    margin-bottom: 2.25rem;
}

.home-gallery__header .home-gallery__heading {
    font-size: 2.5rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.home-gallery__lead {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.home-gallery__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.home-gallery__tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #1a202c;
    aspect-ratio: 4 / 3;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(26, 32, 44, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-gallery__tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 32, 44, 0.14);
}

.home-gallery__tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-gallery__tile:hover img {
    transform: scale(1.04);
}

.home-gallery__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .home-gallery__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .home-gallery {
        padding: 64px 0 72px;
    }

    .home-gallery__header .home-gallery__heading {
        font-size: 2rem;
    }

    .home-gallery__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

/* ============================================================
   Gallery page
   ============================================================ */
.gallery-main {
    padding: 48px 0 80px;
    background: #f8fafc;
}

.gallery-page__wrap {
    max-width: 1400px;
}

/* Full gallery: same tile rhythm as the home preview — 4 columns, 4:3 cells, object-fit crop.
   Aspect ratio lives on <figure> so <button> does not collapse when browsers ignore ratio on buttons. */
.gallery-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    align-items: start;
}

@media (max-width: 900px) {
    .gallery-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

.gallery-card {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: block;
    aspect-ratio: 4 / 3;
}

.gallery-card__btn {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #1a202c;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 14px rgba(26, 32, 44, 0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.gallery-card__btn:hover {
    box-shadow: 0 18px 40px rgba(15, 20, 25, 0.18);
    transform: translateY(-3px);
}

.gallery-card__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #2d3748;
}

.gallery-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.gallery-card__btn:hover .gallery-card__img {
    transform: scale(1.04);
    opacity: 0.92;
}

.gallery-card__shine {
    position: absolute;
    inset: -40% -50%;
    z-index: 1;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 62%
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    pointer-events: none;
}

.gallery-card__btn:hover .gallery-card__shine {
    transform: translateX(100%);
}

.gallery-card__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15, 20, 25, 0.6);
    backdrop-filter: blur(10px);
    color: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-card__btn:hover .gallery-card__zoom,
.gallery-card__btn:focus-visible .gallery-card__zoom {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Lightbox
   ============================================================ */
body.gallery-lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-lightbox.is-open {
    opacity: 1;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 14, 0.94);
    backdrop-filter: blur(8px);
}

.gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 16px 96px;
}

.gallery-lightbox__stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(96vw, 1280px);
    max-height: calc(100vh - 200px);
}

.gallery-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    transition: opacity 0.25s ease;
}

.gallery-lightbox__stage.is-loading .gallery-lightbox__img {
    opacity: 0.55;
}

.gallery-lightbox__spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #f7fafc;
    border-radius: 50%;
    opacity: 0;
    animation: gallery-spin 0.9s linear infinite;
}

.gallery-lightbox__stage.is-loading .gallery-lightbox__spinner {
    opacity: 1;
}

@keyframes gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-lightbox__chrome {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gallery-lightbox__chrome > * {
    pointer-events: auto;
}

.gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #f7fafc;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.gallery-lightbox__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.gallery-lightbox__nav {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #f7fafc;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}

.gallery-lightbox__count {
    margin: 0;
    min-width: 70px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(247, 250, 252, 0.8);
}

@media (min-width: 900px) {
    .gallery-lightbox__controls {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        justify-content: space-between;
        padding: 0 24px;
    }

    .gallery-lightbox__count {
        position: absolute;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cta .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta .btn:hover::before {
    left: 100%;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

/* Success Page Styles */
.success-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.success-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 2rem;
}

.success-content h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    min-width: 160px;
}

@media (max-width: 768px) {
    .success-content h1 {
        font-size: 2rem;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 80px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section i {
    margin-right: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-logo-wrap {
    display: inline-block;
    background-color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 1rem;
    line-height: 0;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
    /* Stack contact columns sooner for tablets */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .services-grid-detailed.services-grid-two {
        grid-template-columns: 1fr;
    }
    
    .services-grid-detailed.services-grid-three {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-detailed.services-grid-three .service-detailed:last-child {
        grid-column: 1 / -1;
    }
    
    .services-three-grid {
        grid-template-columns: 1fr;
    }
    
    .service-primary {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .service-primary-image {
        height: auto;
        max-height: 260px;
        aspect-ratio: 16 / 9;
        align-self: stretch;
    }

    .service-primary-image.service-primary-image--portrait {
        aspect-ratio: 3 / 4;
        max-height: 280px;
    }

    .service-primary-content {
        overflow-y: visible;
        padding: 2rem;
    }

    .service-primary.service-primary--reverse .service-primary-content {
        padding: 2rem;
    }
}

/* Use the slide-out menu below ~993px so all items (Gallery, etc.) stay reachable; inline nav can clip on tablets. */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .industrial-icon {
        font-size: 5rem;
    }

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

    .services-grid-four {
        grid-template-columns: 1fr;
    }
    
    .services-three-grid {
        grid-template-columns: 1fr;
    }
    
    .service-hero-block p {
        font-size: 1.25rem;
    }
    
    .hero,
    .features,
    .services-preview,
    .home-gallery,
    .cta {
        padding: 60px 0;
    }
    
    .page-title {
        padding: 60px 0 40px;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title .breadcrumb {
        font-size: 0.85rem;
    }
    
    .features h2,
    .services-preview .section-header h2,
    .home-gallery__header .home-gallery__heading,
    .cta h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .feature-card,
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .services-grid,
    .features-grid {
        gap: 1.5rem;
    }
    
    .cta-content {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 120px;
    }

    /* Ensure form container has comfortable padding on mobile */
    .contact-form-container {
        padding: 1.25rem;
    }

    /* Make nav logo a bit smaller on mobile for better fit */
    .nav-logo .logo-img {
        height: 48px;
    }

    /* Contact tile readability on small screens */
    .method-details p,
    .method-details a,
    .contact-info > p {
        word-wrap: break-word;
        overflow-wrap: anywhere;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: white;
    padding: 140px 0 100px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* Page Title - Enhanced version */
.page-title {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    padding: 100px 0 80px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.95) 0%, rgba(45, 55, 72, 0.9) 50%, rgba(74, 85, 104, 0.85) 100%);
    z-index: 1;
}

.page-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 2;
}

.page-title .container {
    position: relative;
    z-index: 3;
}

.page-title h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
}

.page-title .breadcrumb {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.page-title .breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-title .breadcrumb a:hover {
    color: white;
}

.page-title .breadcrumb span {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: #ffffff;
}

.services-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.services-intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.services-scroll-cue {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    color: #718096;
    text-decoration: none;
    transition: color 0.2s ease;
}

.services-scroll-cue:hover,
.services-scroll-cue:focus-visible {
    color: #1a202c;
    outline: none;
}

.services-scroll-cue i {
    font-size: 1.75rem;
    line-height: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .services-scroll-cue i {
        animation: services-scroll-cue-bob 1.75s ease-in-out infinite;
    }
}

@keyframes services-scroll-cue-bob {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.75;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: #f8fafc;
}

#service-cards {
    scroll-margin-top: 96px;
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.services-grid-detailed.services-grid-four {
    grid-template-columns: repeat(4, 1fr);
}

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

.service-detailed {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.service-detailed:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 32, 44, 0.1);
    border-color: rgba(26, 32, 44, 0.2);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-detailed:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-detailed .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.2);
}

.service-detailed .service-icon i {
    font-size: 2rem;
    color: white;
}

.service-detailed h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.service-detailed p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.service-features li i {
    color: #1a202c;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Primary Service Layout */
.service-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
}

.service-primary-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 320px;
    overflow: hidden;
    align-self: start;
}

/* Portrait / tall photos: slightly taller frame, still capped */
.service-primary-image.service-primary-image--portrait {
    aspect-ratio: 3 / 4;
    max-height: 280px;
}

.service-primary-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    display: block;
}

.service-primary-image--portrait img {
    object-position: center 35%;
}

.service-primary-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-primary-content h2,
.service-primary-content h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

@media (min-width: 1025px) {
    /* Narrow photo column, wide text column. Card grows with content; uniform feel comes from balanced copy. */
    .service-primary {
        grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
        min-height: 360px;
    }

    .service-primary.service-primary--reverse {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    }

    .service-primary-image,
    .service-primary-image.service-primary-image--portrait {
        width: 100%;
        height: 100%;
        max-height: 100%;
        aspect-ratio: auto;
        align-self: stretch;
    }

    .service-primary-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .service-primary-content {
        padding: 2.5rem 3rem;
        justify-content: center;
    }

    .service-primary.service-primary--reverse .service-primary-image {
        order: 2;
    }
    .service-primary.service-primary--reverse .service-primary-content {
        order: 1;
    }
}

.service-primary-content p {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.services-grid-detailed.services-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #7B8798;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #556070;
    min-height: 250px;
}

.service-image-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: white;
}

.process-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.2);
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
}

.process-step p {
    color: #4a5568;
    line-height: 1.6;
}

/* Industries Section */
.industries-section {
    padding: 100px 0;
    background: #f8fafc;
}

.industries-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a202c;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.industry-item {
    background: white;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.industry-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 32, 44, 0.1);
    border-color: rgba(26, 32, 44, 0.2);
}

.industry-item i {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
}

.industry-item h4 {
    color: #1a202c;
    font-size: 1.1rem;
    font-weight: 600;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Story Content */
.story-content {
    padding: 60px 0;
    background: white;
    position: relative;
}

.story-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.story-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto  0rem;
}

.story-intro h2 {
    font-size: 2.2rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.story-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
}

.story-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 3rem 2rem;
}

.story-section h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.story-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a202c, #2d3748);
    border-radius: 2px;
}

.story-section p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.story-section p:last-child {
    margin-bottom: 0;
}

.story-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-tile {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.story-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a202c, #2d3748, #1a202c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.story-tile:hover::before {
    transform: scaleX(1);
}

.story-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 32, 44, 0.1);
    border-color: rgba(26, 32, 44, 0.2);
}

.tile-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(26, 32, 44, 0.2);
}

.tile-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-tile:hover .tile-icon::after {
    opacity: 0.2;
}

.story-tile:hover .tile-icon {
    transform: scale(1.05);
}

.tile-icon i {
    font-size: 1.75rem;
    color: white;
}

.story-tile h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #1a202c;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.story-tile p {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .story-content {
        padding: 40px 0;
    }
    
    .story-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .story-intro p {
        font-size: 1rem;
    }
    
    .story-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }
    
    .story-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .story-section h2::after {
        width: 60px;
        height: 3px;
        bottom: -0.5rem;
    }
    
    .story-section p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .story-tiles {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .story-tile {
        padding: 2rem 1.5rem;
    }
    
    .tile-icon {
        width: 64px;
        height: 64px;
    }
    
    .tile-icon i {
        font-size: 1.75rem;
    }
}

/* Mission & Values */
.mission-values {
    padding: 80px 0;
    background: #f8fafc;
}

.mission-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mission-card .card-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.mission-card .card-icon i {
    font-size: 2rem;
    color: #232931;
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #232931;
}

.mission-card p {
    color: #556070;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.mission-card ul {
    list-style: none;
    text-align: left;
}

.mission-card ul li {
    color: #556070;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.mission-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Leadership Team */
.leadership {
    padding: 80px 0;
    background: white;
}

.leadership h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: #7B8798;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-photo i {
    font-size: 3rem;
    color: #7B8798;
}

.team-member h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #232931;
}

.team-member .position {
    color: #232931;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member .bio {
    color: #556070;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Certifications */
.certifications {
    padding: 80px 0;
    background: #f8fafc;
}

.certifications h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-3px);
}

.cert-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cert-icon i {
    font-size: 2rem;
    color: #232931;
}

.cert-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #232931;
}

.cert-item p {
    color: #556070;
    font-size: 0.9rem;
}

/* Facilities */
.facilities {
    padding: 80px 0;
    background: white;
}

.facilities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.facilities-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.facility-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #232931;
}

.facility-info p {
    color: #556070;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.facility-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    color: #556070;
}

.feature i {
    color: #10b981;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.facility-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.facility-icon {
    width: 200px;
    height: 200px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-icon i {
    font-size: 5rem;
    color: #232931;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #232931;
}

.contact-info > p {
    font-size: 1.1rem;
    color: #556070;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-2px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: #232931;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.5rem;
}

.method-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #232931;
}

.method-details p {
    color: #556070;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.method-details span {
    color: #7B8798;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #232931;
    text-align: center;
}

/* Form styling for p-based structure */
.contact-form p {
    margin-bottom: 1.5rem;
}

.contact-form p:last-child {
    margin-bottom: 0;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D323C;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #7B8798;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    margin-top: 0.5rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #232931;
    box-shadow: 0 0 0 3px rgba(35, 41, 49, 0.1);
}

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

.contact-form input[type="checkbox"] {
    width: auto;
    margin: 0 0.5rem 0 0;
    margin-top: 0;
}

.contact-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Legacy form-group styles for backward compatibility */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D323C;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #7B8798;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #232931;
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8fafc;
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.map-placeholder {
    background: white;
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.map-icon {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.map-icon i {
    font-size: 2rem;
    color: #232931;
}

.map-placeholder p {
    color: #556070;
    margin-bottom: 0.5rem;
}

.map-placeholder p:last-child {
    color: #232931;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #232931;
}

.faq-item p {
    color: #556070;
    line-height: 1.6;
}

/* Quote Form Section */
.quote-form-section {
    padding: 80px 0;
    background: #f8fafc;
}

.quote-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-header {
    background: #232931;
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.form-header p {
    opacity: 1;
    color: #f7fafc;
}

.quote-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #7B8798;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #232931;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #232931;
}

/* Form styling for p-based structure in quote form */
.quote-form p {
    margin-bottom: 1.5rem;
}

.quote-form p:last-child {
    margin-bottom: 0;
}

.quote-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D323C;
    font-size: 0.95rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #7B8798;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    margin-top: 0.5rem;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: #232931;
    box-shadow: 0 0 0 3px rgba(35, 41, 49, 0.1);
}

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

.quote-form input[type="checkbox"] {
    width: auto;
    margin: 0 0.5rem 0 0;
    margin-top: 0;
}

.quote-form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.quote-form button {
    width: 100%;
    margin-top: 1rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2D323C;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #7B8798;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #232931;
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #556070;
    font-size: 0.875rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-submit {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #7B8798;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-note {
    margin-top: 1rem;
    color: #556070;
    font-size: 0.9rem;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background: white;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #232931;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 2.5rem;
    color: #232931;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #232931;
}

.benefit-item p {
    color: #556070;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .features h2,
    .services-preview .section-header h2,
    .home-gallery__header .home-gallery__heading,
    .cta h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-title {
        padding: 80px 0 60px;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
    
    .page-title .breadcrumb {
        font-size: 0.9rem;
    }

    .services-grid-detailed {
        grid-template-columns: 1fr;
    }

    .services-grid-detailed.services-grid-four {
        grid-template-columns: 1fr;
    }

    .services-grid-detailed.services-grid-two {
        grid-template-columns: 1fr;
    }
    
    .services-grid-detailed.services-grid-three {
        grid-template-columns: 1fr;
    }
    
    .service-primary {
        grid-template-columns: 1fr;
    }
    
    .service-primary-image {
        max-height: 220px;
    }
    
    .service-primary-content {
        padding: 2rem;
    }
    
    .service-primary-content h2,
    .service-primary-content h3 {
        font-size: 1.75rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-stats {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .facilities-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-methods {
        gap: 1.5rem;
    }

    .contact-method {
        flex-direction: row;            /* icon on the side */
        align-items: center;            /* center content vertically */
        text-align: left;               /* neat, readable text */
        gap: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }

    .method-details {
        flex: 1;
    }

    .method-icon {
        width: 48px;
        height: 48px;
    }

    .method-icon i {
        font-size: 1.25rem;
    }

    .method-details h4 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .method-details p {
        font-size: 0.95rem;
    }

    .method-details span {
        font-size: 0.85rem;
        color: #7B8798;
    }

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

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

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

    .quote-form {
        padding: 1rem;
    }

    .form-header {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* Image Placeholders */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #7B8798;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #556070;
    transition: all 0.3s ease;
    min-height: 200px;
}

.image-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #7B8798 100%);
    border-color: #7B8798;
}

.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #556070;
}

.image-placeholder p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.hero-placeholder {
    min-height: 400px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.hero-placeholder i {
    font-size: 4rem;
    color: #232931;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    min-height: 200px;
}

.map-placeholder-img {
    min-height: 300px;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        max-height: 300px;
    }

    .hero-placeholder {
        min-height: 300px;
    }

    .hero-placeholder i {
        font-size: 3rem;
    }

    .team-photo {
        width: 150px;
        height: 150px;
        min-height: 150px;
    }
}
