:root {
    --ink: #0d1726;
    --muted: #5f6d7c;
    --line: #d9e2ec;
    --soft: #f4f7fa;
    --white: #ffffff;
    --blue: #0b5cab;
    --blue-dark: #063b72;
    --steel: #7e8fa1;
    --metal: #c9d2dc;
    --shadow: 0 20px 60px rgba(13, 23, 38, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.35rem, 6vw, 5.4rem);
    max-width: 980px;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
    font-size: 1.08rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(217, 226, 236, 0.78);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #2d79bd);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(11, 92, 171, 0.22);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
}

.brand small {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 10px 13px;
    color: #263648;
    border-radius: 8px;
    font-weight: 650;
    font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--blue);
    background: #eef5fb;
}

.site-nav .nav-cta {
    color: var(--white);
    background: var(--ink);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.active {
    color: var(--white);
    background: var(--blue);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 90vh;
    display: grid;
    align-items: end;
    padding: clamp(90px, 12vh, 160px) clamp(18px, 5vw, 72px) 42px;
    overflow: hidden;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 16, 28, 0.93), rgba(8, 16, 28, 0.72) 42%, rgba(8, 16, 28, 0.08) 76%),
        url("../images/engineering-hero.png") center right / cover no-repeat;
    transform: scale(1.02);
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    content: "";
    background: linear-gradient(0deg, rgba(8, 16, 28, 0.8), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 930px;
}

.hero h1,
.hero .hero-copy,
.dark-band h2,
.dark-band p {
    color: var(--white);
}

.hero-copy {
    max-width: 820px;
    margin-top: 22px;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-panel {
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    bottom: 42px;
    z-index: 2;
    width: min(360px, calc(100% - 36px));
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-panel span,
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-panel strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 14px 34px rgba(11, 92, 171, 0.26);
}

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

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

.btn-outline.dark {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.btn-small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.section {
    padding: clamp(64px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.muted {
    background: var(--soft);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 6vw, 86px);
    align-items: start;
}

.text-stack {
    display: grid;
    gap: 18px;
    font-size: 1.03rem;
}

.text-link {
    width: fit-content;
    color: var(--blue);
    font-weight: 800;
    border-bottom: 2px solid rgba(11, 92, 171, 0.22);
}

.section-head {
    max-width: 820px;
    margin-bottom: 32px;
}

.card-grid,
.feature-grid,
.product-grid,
.industry-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.feature-grid > div,
.product-card,
.industry-grid article,
.process-grid > div,
.contact-card,
.rfq-form,
.admin-login,
.table-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(13, 23, 38, 0.07);
}

.category-card {
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-card:nth-child(2) img,
.product-card:nth-child(2n) img {
    object-position: 74% 50%;
}

.category-card:nth-child(3) img,
.product-card:nth-child(3n) img {
    object-position: 92% 50%;
}

.category-card > div,
.product-card > div,
.industry-grid article,
.process-grid > div {
    padding: 22px;
}

.category-card h3,
.product-card h2,
.industry-grid h2,
.process-grid h3,
.feature-grid h3 {
    margin-bottom: 10px;
}

.category-card a {
    display: inline-block;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 800;
}

.feature-grid > div {
    padding: 26px;
}

.feature-grid strong,
.process-grid span {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    margin-bottom: 22px;
    color: var(--blue);
    background: #eaf3fb;
    border-radius: 8px;
}

.dark-band {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(9, 24, 43, 0.96), rgba(6, 59, 114, 0.88)),
        url("../images/engineering-hero.png") center / cover no-repeat;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-grid span {
    padding: 12px 16px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.cta-section {
    text-align: center;
    background:
        linear-gradient(180deg, #ffffff, #f3f7fb);
}

.cta-section h2 {
    max-width: 780px;
    margin: 0 auto 26px;
}

.page-hero {
    min-height: 460px;
    display: grid;
    align-items: end;
    padding: 120px clamp(18px, 5vw, 72px) 72px;
    background:
        linear-gradient(90deg, rgba(8, 16, 28, 0.92), rgba(8, 16, 28, 0.62), rgba(8, 16, 28, 0.15)),
        url("../images/engineering-hero.png") center right / cover no-repeat;
}

.page-hero.compact {
    min-height: 390px;
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 18px;
    font-size: 1.1rem;
}

.product-card {
    display: grid;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.product-card p {
    margin-bottom: 18px;
}

.industry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 22px;
    align-items: start;
    background: var(--soft);
}

.rfq-form,
.contact-card {
    padding: clamp(22px, 4vw, 34px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

label {
    display: grid;
    gap: 7px;
    color: #243244;
    font-size: 0.92rem;
    font-weight: 750;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: #fbfdff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

input:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(11, 92, 171, 0.12);
}

textarea {
    resize: vertical;
}

label.full,
.form-grid .full {
    grid-column: 1 / -1;
}

label small {
    color: #b42318;
    font-weight: 650;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 750;
}

.alert.success {
    color: #075e3a;
    background: #e7f8ef;
    border: 1px solid #bce8ce;
}

.alert.error {
    color: #9f1c15;
    background: #fff0ee;
    border: 1px solid #f2c6c0;
}

.contact-card {
    position: sticky;
    top: 96px;
}

.contact-card h2 {
    margin-bottom: 12px;
}

.contact-card .btn {
    margin: 22px 0;
}

.contact-lines {
    display: grid;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
}

.site-footer {
    padding: 56px clamp(18px, 5vw, 72px) 24px;
    background: #08111d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h3,
.site-footer strong,
.site-footer a,
.site-footer p,
.footer-bottom {
    color: var(--white);
}

.site-footer p,
.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
}

.footer-brand {
    margin-bottom: 18px;
}

.site-footer div:nth-child(3) a {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--white);
    background: #18a858;
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(24, 168, 88, 0.32);
    font-weight: 900;
}

[data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body,
.admin-page {
    min-height: 100vh;
    background: var(--soft);
}

.admin-body {
    display: grid;
    place-items: center;
    padding: 18px;
}

.admin-login {
    width: min(430px, 100%);
    display: grid;
    gap: 16px;
    padding: 32px;
}

.admin-login h1 {
    font-size: 2rem;
}

.admin-note {
    font-size: 0.88rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(18px, 4vw, 42px);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.admin-header-actions,
.row-actions,
.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.admin-main {
    padding: 24px clamp(18px, 4vw, 42px) 42px;
}

.admin-search,
.bulk-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.bulk-actions {
    justify-content: flex-end;
}

.bulk-actions select {
    min-height: 40px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.rfq-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rfq-table th,
.rfq-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.rfq-table th {
    color: var(--ink);
    background: #f8fafc;
}

.rfq-table a {
    color: var(--blue);
    font-weight: 800;
}

.delete-btn,
.edit-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 800;
}

.delete-btn {
    color: #9f1c15;
    background: #fff0ee;
    border: 1px solid #f2c6c0;
}

.edit-btn {
    color: var(--blue);
    background: #eef5fb;
    border: 1px solid #cfe1f3;
}

.edit-form {
    max-width: 1080px;
}

.current-file {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.current-file a {
    color: var(--blue);
    font-weight: 800;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-label input {
    width: auto;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px 18px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.open {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-bottom: 270px;
    }

    .hero-panel {
        left: 18px;
        right: 18px;
        bottom: 30px;
        width: auto;
    }

    .two-column,
    .dark-band,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .feature-grid,
    .product-grid,
    .industry-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand small {
        display: none;
    }

    .hero,
    .page-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        padding-top: 92px;
        padding-bottom: 300px;
    }

    .hero-bg {
        background:
            linear-gradient(180deg, rgba(8, 16, 28, 0.9), rgba(8, 16, 28, 0.75), rgba(8, 16, 28, 0.35)),
            url("../images/engineering-hero.png") center / cover no-repeat;
    }

    .hero-actions,
    .admin-search,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .card-grid,
    .feature-grid,
    .product-grid,
    .industry-grid,
    .process-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    label.full {
        grid-column: auto;
    }

    .section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
