:root {
    --ink: #17202a;
    --muted: #667085;
    --line: #e4e7ec;
    --paper: #ffffff;
    --soft: #f3f6f8;
    --blue: #1f5f8b;
    --blue-dark: #12344d;
    --green: #2f7d57;
    --gold: #d89216;
    --clay: #a6532c;
    --shadow: 0 18px 45px rgba(23, 32, 42, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

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

.site-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.topbar {
    background: #17202a;
    color: #f2f4f7;
    font-size: 13px;
}

.topbar-row {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar a {
    color: #f2f4f7;
    text-decoration: none;
    font-weight: 700;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-row {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
    font-weight: 950;
}

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

.brand-copy strong {
    font-size: 16px;
}

.brand-copy small {
    max-width: 260px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu {
    display: flex;
    align-items: center;
    gap: 3px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.language-switcher a {
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
}

.menu a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 10px;
    color: #344054;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
}

.menu a:hover,
.menu a.active,
.language-switcher a.active {
    background: #eef6f1;
    color: var(--green);
}

.menu .contact-link {
    background: #fff8e8;
    color: #8a560d;
}

.menu .admin-link {
    background: var(--ink);
    color: #fff;
}

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.menu-button span:not(.sr-only) {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--ink);
}

.hero {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 52, 77, .92), rgba(18, 52, 77, .68) 52%, rgba(18, 52, 77, .35)),
        linear-gradient(0deg, rgba(23, 32, 42, .34), rgba(23, 32, 42, .08));
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: end;
    gap: 42px;
    padding: 96px 0;
}

.hero-content h1,
.page-hero h1 {
    max-width: 880px;
    margin: 12px 0 18px;
    font-size: 64px;
    line-height: 1.02;
    font-weight: 950;
}

.hero-content p,
.page-hero p {
    max-width: 700px;
    color: #eef4f7;
    font-size: 18px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    color: var(--gold);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.button-row,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    background: var(--gold);
    color: #1f1604;
}

.btn.light {
    background: #fff;
    color: var(--ink);
}

.btn.secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--blue-dark);
}

.btn.full {
    width: 100%;
}

.btn-icon {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .34);
    line-height: 1;
}

.hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat {
    min-height: 128px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 12px;
    color: #e7edf2;
    font-size: 13px;
    font-weight: 800;
}

.section {
    padding: 76px 0;
}

.section.muted {
    background: #fff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h2 {
    margin: 8px 0 0;
    font-size: 36px;
    line-height: 1.12;
}

h3 {
    margin: 8px 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    gap: 44px;
    align-items: start;
}

.prose-card,
.value-card,
.project-card,
.plant-card,
.update-card,
.contact-card,
.contact-form,
.office-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.prose-card {
    padding: 28px;
}

.prose-card p:first-child {
    margin-top: 0;
}

.mini-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.mini-facts span,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #e8f5ee;
    color: var(--green);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 900;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.value-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
    min-height: 280px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -62px;
    top: -62px;
    border-radius: 50%;
    background: rgba(216, 146, 22, .18);
}

.vision-card {
    background: #fffdf8;
}

.leader-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.leader-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.leader-photo {
    min-height: 250px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-photo span {
    font-size: 46px;
    font-weight: 950;
}

.leader-copy {
    padding: 24px 24px 24px 0;
}

[dir="rtl"] .leader-copy {
    padding: 24px 0 24px 24px;
}

.leader-copy strong {
    display: block;
    color: var(--clay);
    font-size: 13px;
    text-transform: uppercase;
}

.mission-card {
    background: #f8fbff;
}

.card-grid,
.plant-grid,
.update-grid,
.office-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card,
.plant-card,
.update-card {
    overflow: hidden;
}

.project-image,
.update-placeholder {
    min-height: 170px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(31, 95, 139, .95), rgba(47, 125, 87, .9)),
        #1f5f8b;
    color: #fff;
}

.project-image span,
.update-placeholder {
    font-size: 54px;
    font-weight: 950;
}

.project-body,
.plant-body,
.update-body {
    padding: 22px;
}

.meta-list,
.meta-line {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.amount {
    margin-bottom: 0;
    color: var(--clay);
    font-weight: 950;
}

.service-list {
    display: grid;
    gap: 12px;
}

.service-list.expanded {
    gap: 16px;
}

.service-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.service-row:hover {
    border-color: rgba(31, 95, 139, .35);
    box-shadow: var(--shadow);
}

.service-number {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5f8;
    color: var(--blue);
    font-weight: 950;
}

.plant-card img,
.update-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-hero {
    background:
        linear-gradient(90deg, rgba(18, 52, 77, .95), rgba(47, 125, 87, .82)),
        url("../../uploads/company-profile/pages/cover-01.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero-inner {
    padding: 86px 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.equipment-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.equipment-table th,
.equipment-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eef1f4;
    text-align: start;
}

.equipment-table th {
    background: #f8fafb;
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: 22px;
    align-items: stretch;
}

.lead-contact,
.contact-form {
    padding: 28px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 7px;
}

label {
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

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

textarea {
    resize: vertical;
}

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

.office-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
}

.office-card a {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-weight: 850;
    text-decoration: none;
}

.office-pin {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff8e8;
    color: #8a560d;
    font-weight: 950;
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-strip > div {
    padding: 22px;
    border-left: 4px solid var(--gold);
    background: #fff;
}

.contact-strip a {
    display: block;
    margin-top: 8px;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.cta-section {
    padding-top: 0;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(18, 52, 77, .96), rgba(47, 125, 87, .94)),
        var(--blue-dark);
    color: #fff;
}

.cta.compact {
    background:
        linear-gradient(135deg, rgba(166, 83, 44, .94), rgba(216, 146, 22, .9)),
        var(--clay);
}

.cta h2 {
    max-width: 820px;
}

.cta p,
.cta h2 {
    color: #fff;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    color: var(--muted);
    font-weight: 800;
}

.pagination-wrap {
    margin-top: 26px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.footer {
    background: #17202a;
    color: #d0d5dd;
    padding: 54px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer h4 {
    margin: 0 0 14px;
    color: #fff;
}

.footer p {
    max-width: 520px;
    color: #c9d2dc;
}

.footer a {
    display: block;
    margin: 9px 0;
    color: #d0d5dd;
    text-decoration: none;
}

.footer-brand {
    color: #fff;
    font-weight: 950;
}

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-row a {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #98a2b3;
    font-size: 13px;
}

[dir="rtl"] .value-card::before {
    right: auto;
    left: -62px;
}

[dir="rtl"] body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

[dir="rtl"] .topbar-row,
[dir="rtl"] .nav-row,
[dir="rtl"] .section-head,
[dir="rtl"] .button-row,
[dir="rtl"] .contact-actions,
[dir="rtl"] .footer-bottom {
    direction: rtl;
}

[dir="rtl"] .contact-strip > div {
    border-left: 0;
    border-right: 4px solid var(--gold);
}

@media (max-width: 1060px) {
    .menu-button {
        display: grid;
    }

    .menu {
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .split-grid,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 46px;
    }

    .value-grid,
    .value-grid.three,
    .leader-grid,
    .card-grid,
    .plant-grid,
    .update-grid,
    .office-grid,
    .contact-strip {
        grid-template-columns: 1fr;
    }

    .section-head,
    .cta,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .site-container {
        width: min(100% - 28px, 1180px);
    }

    .topbar-row {
        align-items: start;
        justify-content: center;
        flex-direction: column;
        padding: 9px 0;
    }

    .brand-copy small {
        max-width: 170px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-grid {
        gap: 24px;
        padding: 68px 0;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 36px;
    }

    .hero-content p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-panel,
    .leader-card,
    .service-row,
    .office-card {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        min-height: auto;
    }

    .leader-copy,
    [dir="rtl"] .leader-copy {
        padding: 22px;
    }

    .section {
        padding: 54px 0;
    }

    h2 {
        font-size: 28px;
    }

    .button-row,
    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
