:root {
    --color-ink: #101923;
    --color-navy: #183247;
    --color-slate: #556574;
    --color-teal: #1f7772;
    --color-gold: #b98542;
    --color-paper: #ffffff;
    --color-soft: #f4f7f6;
    --color-warm: #f8f5ef;
    --color-line: #dce4e6;
    --color-dark-line: rgba(255, 255, 255, 0.16);
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: Georgia, "Times New Roman", serif;
    --container: 1180px;
    --narrow: 760px;
    --header-height: 76px;
    --radius: 8px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 36px;
    --space-5: 56px;
    --space-6: 88px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    padding-top: var(--header-height);
    overflow-x: hidden;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

a:hover {
    color: var(--color-teal);
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure,
blockquote {
    margin-top: 0;
}

p {
    margin-bottom: var(--space-2);
    color: var(--color-slate);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: var(--space-2);
    color: var(--color-ink);
    line-height: 1.12;
    letter-spacing: 0;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

h1 {
    max-width: 850px;
    font-size: 64px;
}

h2 {
    max-width: 760px;
    font-size: 42px;
}

h3 {
    font-size: 20px;
}

ul,
ol {
    padding-left: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: var(--color-paper);
    color: var(--color-ink);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(31, 119, 114, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.container--narrow {
    max-width: var(--narrow);
}

.section {
    padding-block: var(--space-6);
}

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

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

.section-header {
    max-width: 760px;
    margin-bottom: var(--space-4);
}

.section-header p {
    max-width: 650px;
    font-size: 17px;
}

.eyebrow,
.card__meta {
    display: block;
    margin-bottom: 12px;
    color: var(--color-gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.grid {
    display: grid;
    gap: var(--space-3);
}

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

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

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

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stack > * {
    margin-bottom: 0;
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: var(--space-6);
}

.sidebar-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: var(--space-5);
}

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

.skip-to-content:focus {
    z-index: 2000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--color-teal);
    border-radius: 6px;
    background: var(--color-teal);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.btn:hover {
    background: #175f5b;
    border-color: #175f5b;
    color: #ffffff;
}

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

.btn--outline:hover {
    background: var(--color-soft);
    border-color: var(--color-teal);
    color: var(--color-teal);
}

#site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(220, 228, 230, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-3);
}

/* Keep legacy inner-page header controls aligned with the grouped header layout. */
.header-inner > .logo {
    margin-inline-end: auto;
}

.header-inner > #site-nav {
    order: 2;
}

.header-inner > .lang-switcher {
    order: 3;
}

.header-inner > #mobile-menu-btn {
    order: 4;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

#site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    list-style: none;
}

#site-nav a {
    position: relative;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 750;
}

#site-nav a:not(.btn)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: transparent;
    content: "";
}

#site-nav a.active:not(.btn)::after,
#site-nav a:not(.btn):hover::after {
    background: var(--color-gold);
}

#site-nav a.btn {
    color: #ffffff;
}

#mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 6px;
    background: transparent;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-ink);
    content: "";
}

.menu-icon::before {
    transform: translateY(-6px);
}

.menu-icon::after {
    transform: translateY(4px);
}

.page-header {
    padding-block: 78px 60px;
    background: var(--color-soft);
    border-bottom: 1px solid var(--color-line);
}

.page-header .container {
    max-width: var(--narrow);
}

.page-header h1 {
    font-size: 52px;
}

.page-header--image {
    position: relative;
    display: flex;
    min-height: 390px;
    align-items: center;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.page-header--image::before {
    position: absolute;
    inset: 0;
    background: rgba(8, 27, 36, 0.1);
    content: "";
}

.page-header--image .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-header--image .eyebrow {
    color: #e1bb72;
}

.page-header--image h1,
.page-header--image p {
    color: #ffffff;
}

.page-header--image .breadcrumb {
    justify-content: center;
    color: rgba(255, 255, 255, 0.78);
}

.page-header--image .breadcrumb a {
    color: #ffffff;
}

.page-header--products {
    background-image: url("../../images/banners/products-banner.jpg");
    background-image: image-set(
        url("../../images/banners/products-banner.webp") type("image/webp"),
        url("../../images/banners/products-banner.jpg") type("image/jpeg")
    );
}

.page-header--cases {
    background-image: url("../../images/banners/services-cases-banner.jpg");
    background-image: image-set(
        url("../../images/banners/services-cases-banner.webp") type("image/webp"),
        url("../../images/banners/services-cases-banner.jpg") type("image/jpeg")
    );
}

.page-header--articles {
    background-image: url("../../images/banners/articles-banner.jpg");
    background-image: image-set(
        url("../../images/banners/articles-banner.webp") type("image/webp"),
        url("../../images/banners/articles-banner.jpg") type("image/jpeg")
    );
}

.page-header--about {
    background-image: url("../../images/banners/about-banner.jpg");
    background-image: image-set(
        url("../../images/banners/about-banner.webp") type("image/webp"),
        url("../../images/banners/about-banner.jpg") type("image/jpeg")
    );
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--space-2) 0 0;
    list-style: none;
    color: var(--color-slate);
    font-size: 14px;
}

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

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-nav a {
    padding: 9px 13px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    color: var(--color-slate);
    font-size: 13px;
    font-weight: 700;
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: #ffffff;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.card__image {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-soft);
    border-bottom: 1px solid var(--color-line);
    color: var(--color-slate);
}

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

.card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: var(--space-3);
}

.card__title {
    margin-bottom: 10px;
    font-size: 20px;
}

.card__desc {
    flex: 1;
    margin-bottom: var(--space-3);
    font-size: 15px;
}

.card__action {
    align-self: flex-start;
    margin-top: auto;
}

.case-card__result {
    margin-top: auto;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-line);
    color: var(--color-slate);
    font-size: 14px;
}

.case-card__result strong {
    color: var(--color-navy);
}

.case-study-intro {
    align-items: center;
}

.case-study-visual {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--color-soft);
    border-radius: var(--radius);
}

.case-study-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: var(--space-4) 0 0;
    border-top: 1px solid var(--color-line);
    border-left: 1px solid var(--color-line);
}

.case-facts div {
    padding: var(--space-2);
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.case-facts dt {
    margin-bottom: 4px;
    color: var(--color-slate);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.case-facts dd {
    margin: 0;
    color: var(--color-navy);
    font-weight: 700;
}

.home-hero {
    position: relative;
    display: flex;
    min-height: clamp(570px, 68vh, 720px);
    align-items: center;
    overflow: hidden;
    background: var(--color-navy);
    color: #ffffff;
}

.home-hero::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(8, 27, 36, 0.1);
    content: "";
}

.home-hero__layout {
    position: relative;
    z-index: 2;
    padding-block: clamp(88px, 12vh, 138px);
    text-align: center;
}

.home-hero__content {
    width: min(100%, 860px);
    margin-inline: auto;
}

.home-hero .eyebrow {
    color: #e1bb72;
}

.home-hero h1 {
    margin-bottom: var(--space-3);
    color: #ffffff;
}

.home-hero__lead {
    max-width: 760px;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.75;
}

.home-hero__actions {
    justify-content: center;
    margin-top: var(--space-4);
}

.home-hero .btn--outline {
    border-color: rgba(255, 255, 255, 0.75);
    color: #ffffff;
}

.home-hero .btn--outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-navy);
}

.home-hero__media {
    position: absolute;
    z-index: 0;
    inset: 0;
    margin: 0;
    overflow: hidden;
    background: var(--color-navy);
}

.home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
}

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

.hero-proof__item {
    min-height: 124px;
    padding: var(--space-3) var(--space-4);
    border-right: 1px solid var(--color-line);
}

.hero-proof__item:first-child {
    padding-left: 0;
}

.hero-proof__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.hero-proof strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: 28px;
}

.hero-proof span {
    color: var(--color-slate);
    font-size: 14px;
}

.trust-strip {
    background: var(--color-soft);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.capability-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.capability-item {
    padding: var(--space-3);
    border-right: 1px solid var(--color-line);
}

.capability-item:last-child {
    border-right: 0;
}

.capability-item span {
    display: block;
    margin-bottom: 18px;
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 28px;
}

.capability-item h3 {
    font-size: 17px;
}

.product-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-line);
}

.machinery-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    align-items: stretch;
    margin-bottom: var(--space-5);
    overflow: hidden;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.machinery-feature--spaced {
    margin-top: var(--space-4);
    margin-bottom: 0;
}

.machinery-feature__media {
    min-height: 360px;
    margin: 0;
    overflow: hidden;
    background: var(--color-soft);
}

.machinery-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machinery-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 5vw, 68px);
}

.machinery-feature__content h3 {
    margin-block: 10px var(--space-2);
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
}

.machinery-feature__content .btn {
    align-self: flex-start;
    margin-top: var(--space-2);
}

.product-brief-visual {
    margin: 0 0 var(--space-4);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--color-soft);
    border-radius: var(--radius);
}

.product-brief-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category {
    min-height: 210px;
    padding: var(--space-4);
    border-right: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.product-category:nth-child(3n) {
    border-right: 0;
}

.product-category h3 {
    margin-top: 42px;
    font-family: var(--font-display);
    font-size: 24px;
}

.product-category a {
    color: var(--color-teal);
    font-size: 14px;
    font-weight: 800;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.service-item {
    padding-top: var(--space-3);
    border-top: 2px solid var(--color-gold);
}

.service-item__media {
    margin-bottom: var(--space-3);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--color-soft);
    border-radius: var(--radius);
}

.service-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.service-item:hover .service-item__media img {
    transform: scale(1.025);
}

.service-item h3 {
    font-family: var(--font-display);
    font-size: 26px;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    list-style: none;
}

.process-item {
    padding: var(--space-3);
    border-top: 1px solid var(--color-line);
    border-right: 1px solid var(--color-line);
}

.process-item:last-child {
    border-right: 0;
}

.process-item span {
    display: block;
    margin-bottom: 28px;
    color: var(--color-gold);
    font-family: var(--font-display);
    font-size: 32px;
}

.process-item h3 {
    font-size: 17px;
}

.geo-section {
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.geo-section__layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: var(--space-6);
}

.geo-section__intro {
    max-width: 430px;
}

.geo-section__intro p {
    font-size: 17px;
}

.geo-answer-list {
    border-top: 1px solid var(--color-line);
}

.geo-answer {
    display: grid;
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-line);
}

.geo-answer h3,
.geo-answer p {
    margin: 0;
}

.geo-answer h3 {
    font-family: var(--font-display);
    font-size: 20px;
}

.geo-answer p {
    font-size: 15px;
}

.about-preview {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-6);
}

.about-preview img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius);
}

.article-content {
    max-width: 760px;
}

.article-content h2,
.article-content h3 {
    margin-top: var(--space-4);
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
}

.article-content li {
    margin-bottom: 8px;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.product-gallery__main,
.product-gallery__thumb {
    display: grid;
    place-items: center;
    background: var(--color-soft);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    color: var(--color-slate);
}

.product-gallery__main {
    aspect-ratio: 4 / 3;
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.product-gallery__thumb {
    aspect-ratio: 1;
    font-size: 12px;
}

.notice {
    padding: var(--space-2);
    background: var(--color-warm);
    border-left: 3px solid var(--color-gold);
    color: var(--color-slate);
}

.cta-section {
    padding-block: 72px;
    background: var(--color-navy);
    color: #ffffff;
}

.cta-section h2,
.cta-section p {
    color: #ffffff;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.78);
}

.cta-section .container {
    max-width: 820px;
    text-align: center;
}

.floating-contact {
    position: fixed;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.floating-contact__link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: floatingPopIn 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.floating-contact__link:nth-child(1) { animation-delay: 200ms; }
.floating-contact__link:nth-child(2) { animation-delay: 100ms; }

@keyframes floatingPopIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.floating-contact__link:hover,
.floating-contact__link:focus-visible {
    color: #ffffff;
    transform: translateY(-4px) scale(1.05);
}

.floating-contact__link:active {
    transform: translateY(2px) scale(0.95);
}

.floating-contact__link--whatsapp {
    background: #25d366;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
}

.floating-contact__link--whatsapp:hover {
    background: #20bf5a;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}

.floating-contact__link--email {
    background: linear-gradient(135deg, #1A323D, #0A161A);
    box-shadow: 0 10px 25px rgba(26, 50, 61, 0.35);
}

.floating-contact__link--email:hover {
    box-shadow: 0 14px 30px rgba(26, 50, 61, 0.5);
}

.floating-contact__link svg {
    width: 28px;
    height: 28px;
    transition: transform 300ms ease;
}

.floating-contact__link--whatsapp svg {
    width: 34px;
    height: 34px;
}

.floating-contact__link:hover svg {
    transform: scale(1.1);
}

.floating-contact__label {
    position: absolute;
    right: calc(100% + 16px);
    width: max-content;
    max-width: 220px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px) scale(0.95);
    transition: all 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: right center;
}

.floating-contact__label::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

.floating-contact__link:hover .floating-contact__label,
.floating-contact__link:focus-visible .floating-contact__label {
    opacity: 1;
    transform: translateX(0) scale(1);
}

#site-footer {
    padding-block: 68px 26px;
    background: #101923;
    color: #ffffff;
}

#site-footer h3,
#site-footer h4 {
    color: #ffffff;
}

#site-footer p,
#site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

#site-footer a:hover {
    color: #ffffff;
}

#site-footer .stack ul {
    display: grid;
    gap: 8px;
    margin: 0;
    list-style: none;
}

#site-footer img {
    width: auto;
    height: 54px;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer-bottom {
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-dark-line);
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-partner {
    color: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    line-height: 1.5;
}

.footer-partner a {
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
}

.footer-partner a:hover,
.footer-partner a:focus-visible {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1080px) {
    h1 {
        font-size: 54px;
    }

    h2 {
        font-size: 38px;
    }

    #site-nav ul {
        gap: 18px;
    }

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

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

    .capability-item:nth-child(3) {
        border-right: 0;
    }

    .capability-item:nth-child(-n + 3) {
        border-bottom: 1px solid var(--color-line);
    }

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

    .process-item:nth-child(3) {
        border-right: 0;
    }

    .process-item:nth-child(-n + 3) {
        border-bottom: 1px solid var(--color-line);
    }
}

@media (max-width: 1100px) {
    #mobile-menu-btn {
        display: block;
    }

    #site-nav {
        position: absolute;
        top: var(--header-height);
        right: 20px;
        left: 20px;
        display: none;
        padding: var(--space-3);
        background: var(--color-paper);
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
    }

    #site-nav.is-open {
        display: block;
    }

    #site-nav ul {
        display: grid;
        gap: 14px;
    }

    #site-nav a {
        display: flex;
        min-height: 42px;
        align-items: center;
    }

    #site-nav a:not(.btn)::after {
        display: none;
    }
}

@media (max-width: 860px) {
    :root {
        --header-height: 68px;
        --space-6: 68px;
    }

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

    h2 {
        font-size: 34px;
    }

    .detail-layout,
    .machinery-feature,
    .about-preview,
    .geo-section__layout,
    .sidebar-layout {
        grid-template-columns: 1fr;
    }

    .geo-section__layout {
        gap: var(--space-4);
    }

    .geo-section__intro {
        max-width: 680px;
    }

    .home-hero {
        min-height: 600px;
    }

    .machinery-feature__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

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

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

    .hero-proof__item,
    .hero-proof__item:first-child,
    .hero-proof__item:last-child {
        padding: var(--space-3);
    }

    .hero-proof__item:nth-child(odd) {
        border-right: 1px solid var(--color-line);
    }

    .hero-proof__item:nth-child(even) {
        border-right: 0;
    }

    .hero-proof__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--color-line);
    }

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

    .product-category:nth-child(3n) {
        border-right: 1px solid var(--color-line);
    }

    .product-category:nth-child(2n) {
        border-right: 0;
    }

    .about-preview img {
        max-height: 440px;
    }
}

@media (max-width: 640px) {
    :root {
        --space-5: 44px;
        --space-6: 56px;
    }

    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    h1,
    .page-header h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 19px;
    }

    .geo-answer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .logo img {
        height: 40px;
    }

    .floating-contact {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(16px, env(safe-area-inset-bottom));
        gap: 12px;
    }

    .floating-contact__link {
        width: 54px;
        height: 54px;
    }

    .floating-contact__link svg {
        width: 24px;
        height: 24px;
    }

    .floating-contact__label {
        display: none;
    }

    .home-hero {
        min-height: 540px;
    }

    .home-hero__lead {
        font-size: 17px;
    }

    .home-hero__layout {
        padding-block: 72px;
    }

    .home-hero__media img {
        object-position: 58% center;
    }

    .home-hero__actions,
    .cluster {
        display: grid;
        width: 100%;
    }

    .home-hero__actions .btn,
    .cluster .btn {
        width: 100%;
    }

    .hero-proof,
    .grid--2,
    .grid--3,
    .grid--4,
    .service-list,
    .product-category-grid,
    #site-footer .grid--4 {
        grid-template-columns: 1fr;
    }

    .hero-proof__item,
    .hero-proof__item:nth-child(odd),
    .hero-proof__item:nth-child(even),
    .hero-proof__item:nth-child(-n + 2) {
        min-height: 0;
        padding: var(--space-3) 0;
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .hero-proof__item:last-child {
        border-bottom: 0;
    }

    .capability-list,
    .process-list {
        grid-template-columns: 1fr;
    }

    .capability-item,
    .capability-item:nth-child(3),
    .process-item,
    .process-item:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }

    .capability-item:last-child,
    .process-item:last-child {
        border-bottom: 0;
    }

    .product-category,
    .product-category:nth-child(3n),
    .product-category:nth-child(2n) {
        border-right: 0;
    }

    .product-category {
        min-height: 170px;
    }

    .machinery-feature__media {
        max-height: 260px;
        aspect-ratio: 4 / 3;
    }

    .machinery-feature__content {
        padding: 28px 22px 32px;
    }

    .machinery-feature__content .btn {
        width: 100%;
    }

    .page-header {
        padding-block: 56px 42px;
    }

    .page-header--image {
        min-height: 330px;
        padding-block: 54px;
    }

    .category-nav {
        display: grid;
    }

    .category-nav a {
        text-align: center;
    }

    .card__image {
        max-height: 230px;
    }

    .service-item__media {
        max-height: 240px;
    }

    .about-preview img {
        max-height: 360px;
    }

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

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

/* =========================================
   PREMIUM ENHANCEMENTS
   ========================================= */

/* 1. Micro-animations: Card & Feature Hover Lifts */
.card, .service-item, .machinery-feature, .product-category {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.card:hover, .service-item:hover, .machinery-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(16, 25, 35, 0.08);
}

.product-category:hover {
    background: var(--color-soft);
    transform: translateY(-4px);
}

/* 2. Micro-animations: Image Zoom (Ken Burns effect) */
.card__image img, .service-item__media img, .machinery-feature__media img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__image img, .service-item:hover .service-item__media img, .machinery-feature:hover .machinery-feature__media img {
    transform: scale(1.05);
}

/* 3. Button Polish */
.btn {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, color 0.3s ease;
}
.btn:not(.btn--outline):hover {
    box-shadow: 0 8px 20px rgba(31, 119, 114, 0.3);
    transform: translateY(-1px);
}

/* 4. Scroll Reveal Animations (Intersection Observer targets) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Pattern Backgrounds */
.section--soft {
    background-image: radial-gradient(rgba(31, 119, 114, 0.03) 2px, transparent 2px);
    background-size: 32px 32px;
}
.section--warm {
    background-image: repeating-linear-gradient(45deg, rgba(185, 133, 66, 0.02) 0, rgba(185, 133, 66, 0.02) 1px, transparent 1px, transparent 16px);
}

/* SVG Icon Styling */
.svg-icon {
    width: 32px;
    height: 32px;
    color: var(--color-gold);
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.capability-item:hover .svg-icon, .process-item:hover .svg-icon {
    transform: scale(1.15) translateY(-4px);
    color: var(--color-teal);
}


/* Language Switcher */
.header-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-switcher {
    position: relative;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-ink);
    cursor: pointer;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.lang-switcher__toggle:hover, .lang-switcher__toggle[aria-expanded="true"] {
    background: var(--color-soft);
}

.lang-switcher__toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-teal);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 160px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(8, 27, 36, 0.08);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.lang-switcher.is-open .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__dropdown a {
    display: block;
    padding: 8px 16px;
    color: var(--color-slate);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-switcher__dropdown a:hover {
    background: var(--color-soft);
    color: var(--color-teal);
}

.lang-switcher__dropdown a.active {
    color: var(--color-navy);
    font-weight: 700;
    background: var(--color-soft);
}

/* RTL Global Foundation */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .header-controls,
[dir="rtl"] #site-nav ul,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .category-nav,
[dir="rtl"] .process-list,
[dir="rtl"] .service-list,
[dir="rtl"] .card__content {
    text-align: right;
}

[dir="rtl"] .lang-switcher__dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-switcher__toggle svg {
    margin-left: 6px;
    margin-right: 0;
}

[dir="rtl"] .btn {
    text-align: center;
}

/* Adjust nav links for RTL */
[dir="rtl"] #site-nav ul {
    gap: 28px;
}
