:root {
    --bg: #0d0d0e;
    --bg-soft: #161718;
    --panel: #1a1b1d;
    --panel-strong: #202225;
    --charcoal: #2b2e31;
    --asphalt: #141518;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f2efe8;
    --muted: #b5b1a6;
    --orange: #d76b17;
    --orange-bright: #f08a16;
    --yellow: #f0b92d;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    --topbar-height: 42px;
    --radius: 22px;
    --radius-sm: 14px;
    --container: min(1180px, calc(100% - 40px));
    --header-height: 86px;
    --header-total-height: calc(var(--topbar-height) + var(--header-height));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Avoid subpixel horizontal rubber-band when inner regions scroll (e.g. product spec tables). */
    overscroll-behavior-x: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

section[id],
form[id] {
    scroll-margin-top: calc(var(--header-total-height) + 24px);
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(240, 185, 45, 0.04), transparent 14%),
        linear-gradient(180deg, #101113 0%, #0a0a0b 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: manipulation;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .mobile-cta-bar,
body.menu-open .whatsapp-float {
    opacity: 0;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("images/asphalt-pattern.svg");
    opacity: 0.24;
    pointer-events: none;
    z-index: -1;
}

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

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

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

h1,
h2,
h3,
h4 {
    margin: 0 0 0.8rem;
    font-family: "Oswald", sans-serif;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5.4rem);
}

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

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

iframe {
    border: 0;
    width: 100%;
    height: 100%;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: 88px 0;
    position: relative;
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
        rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-cta {
    padding-top: 40px;
}

.eyebrow,
.panel-kicker,
.card-topline,
.catalog-code,
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow);
}

.eyebrow::before,
.panel-kicker::before,
.card-topline::before {
    content: "";
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-bright), var(--yellow));
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 50px;
    padding: 0.85rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-bright) 100%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(240, 138, 22, 0.24);
}

.button-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.button-outline {
    border-color: rgba(240, 185, 45, 0.42);
    color: var(--text);
    background: transparent;
}

.top-contact-bar {
    min-height: var(--topbar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
        linear-gradient(90deg, rgba(240, 185, 45, 0.08), rgba(240, 185, 45, 0) 22%),
        rgba(6, 6, 7, 0.78);
}

.top-contact-wrap {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.top-contact-left,
.top-contact-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-contact-link,
.top-contact-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d8d2c4;
    transition: color 0.22s ease, transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.top-contact-link {
    font-size: 0.83rem;
    letter-spacing: 0.01em;
}

.top-contact-link:hover,
.top-contact-link:focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

.top-contact-icon,
.top-contact-social {
    width: 32px;
    height: 32px;
    border-radius: 999px;
}

.top-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    color: var(--yellow);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-social {
    justify-content: center;
    flex: 0 0 32px;
    color: #e8e1d0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-social:hover,
.top-contact-social:focus-visible {
    color: #111111;
    background: linear-gradient(135deg, var(--yellow), var(--orange-bright));
    border-color: rgba(240, 185, 45, 0.46);
    transform: translateY(-2px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(10, 10, 11, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(215, 107, 23, 0), rgba(215, 107, 23, 0.8), rgba(240, 185, 45, 0.75), rgba(215, 107, 23, 0));
}

.header-wrap {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-family: "Oswald", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
}

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

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.96rem;
}

.site-nav > a,
.nav-dropdown-toggle {
    color: #ebe6d8;
    font-weight: 600;
    opacity: 0.94;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"],
.nav-dropdown-toggle:hover {
    color: #fff;
}

.nav-home-link {
    display: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.nav-arrow {
    width: 16px;
    height: 16px;
    display: inline-flex;
    transform: rotate(90deg);
}

.nav-arrow svg,
.top-contact-icon svg,
.top-contact-social svg,
.list-icon svg,
.catalog-arrow svg,
.mobile-cta-bar svg,
.whatsapp-float svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, 86vw);
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: rgba(19, 20, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: grid;
    gap: 0.2rem;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(240, 185, 45, 0.22);
}

.dropdown-overview {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(215, 107, 23, 0.18), rgba(240, 185, 45, 0.08));
}

.dropdown-title {
    font-family: "Oswald", sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dropdown-copy {
    color: var(--muted);
    font-size: 0.88rem;
}

.nav-cta {
    margin-left: 6px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
}

.home-hero,
.page-hero {
    position: relative;
    min-height: calc(100vh - var(--header-total-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.home-hero {
    background:
        linear-gradient(90deg, rgba(8, 8, 9, 0.9) 0%, rgba(8, 8, 9, 0.78) 42%, rgba(8, 8, 9, 0.36) 100%),
        url("images/refinery.png") center center / cover no-repeat;
}

.page-hero {
    min-height: 520px;
    background:
        linear-gradient(90deg, rgba(8, 8, 9, 0.92) 0%, rgba(8, 8, 9, 0.76) 45%, rgba(8, 8, 9, 0.3) 100%),
        url("images/refinery.png") center center / cover no-repeat;
}

.page-hero-overlay,
.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 18%, rgba(240, 185, 45, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(240, 185, 45, 0.08), transparent 25%);
    pointer-events: none;
}

.home-hero-grid,
.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 38px;
    align-items: center;
    padding: 72px 0;
}

.page-hero-copy,
.page-hero-panel {
    min-width: 0;
}

.hero-intro {
    max-width: 700px;
    font-size: 1.08rem;
    color: #ddd7c8;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-stats {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-stats div,
.metric-card {
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(12px);
}

.hero-stats strong,
.metric-card strong {
    display: block;
    font-family: "Oswald", sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}

.hero-stats span,
.metric-card span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-panel-card,
.supply-card-inner,
.sidebar-card,
.feature-card,
.catalog-card,
.process-step,
.timeline-item,
.map-card,
.form-card,
.stack-card,
.sector-card,
.industry-row,
.product-category-card,
.cta-panel,
.supply-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel-card,
.supply-card-inner,
.sidebar-card,
.feature-card,
.catalog-card,
.process-step,
.map-card,
.form-card,
.stack-card,
.sector-card,
.product-category-card {
    padding: 28px;
}

.hero-panel-card strong,
.supply-card-inner strong {
    display: block;
    margin-top: 12px;
    font-family: "Oswald", sans-serif;
    font-size: 1.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.panel-list,
.feature-list,
.footer-contact {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.feature-list li,
.panel-list li,
.footer-contact li,
.contact-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.feature-list li > span:last-child,
.panel-list li > span:last-child,
.footer-contact li > span:last-child,
.contact-list li > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
}

.list-icon {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    margin-top: 3px;
}

.section-heading {
    max-width: 840px;
    margin-bottom: 34px;
}

.section-heading.narrow {
    max-width: 720px;
}

.capability-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.capability-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.product-category-grid,
.feature-grid,
.catalog-grid,
.sector-grid {
    display: grid;
    gap: 22px;
}

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

.product-category-card {
    overflow: hidden;
    padding: 0;
}

.product-category-visual {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-category-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.product-category-body {
    padding: 28px;
}

.product-chips,
.reach-tags,
.industry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-chips span,
.reach-tags span,
.industry-meta span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6e1d5;
    font-size: 0.88rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.split-section,
.reach-preview,
.contact-layout,
.detail-layout {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.split-section > *,
.reach-preview > *,
.contact-layout > * {
    min-width: 0;
}

.supply-grid,
.detail-grid,
.form-grid,
.process-grid {
    display: grid;
    gap: 18px;
}

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

.supply-grid div {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.supply-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.sector-card,
.industry-row {
    position: relative;
}

.sector-index,
.industry-index,
.timeline-date {
    font-family: "Oswald", sans-serif;
    font-size: 1.25rem;
    color: var(--orange-bright);
}

.reach-preview.large .reach-graphic,
.reach-preview .reach-graphic {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.industry-stack {
    display: grid;
    gap: 18px;
}

.industry-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(220px, 280px);
    gap: 22px;
    padding: 24px 28px;
}

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

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

.feature-card.large {
    min-height: 100%;
}

.process-step {
    min-height: 100%;
}

.process-step span {
    display: inline-flex;
    margin-bottom: 14px;
    font-family: "Oswald", sans-serif;
    font-size: 2rem;
    color: var(--orange-bright);
}

.cta-panel {
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background:
        linear-gradient(135deg, rgba(215, 107, 23, 0.16), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
}

.page-hero-panel,
.category-visual-panel {
    align-self: stretch;
}

.category-visual-panel img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.03);
}

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

.catalog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-arrow {
    width: 20px;
    height: 20px;
    color: var(--yellow);
    display: inline-flex;
    transform: rotate(0deg);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--muted);
}

.detail-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.detail-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.detail-sidebar {
    min-width: 0;
}

.detail-sidebar .sidebar-card {
    min-width: 0;
    max-width: 100%;
}

.detail-main img,
.category-visual-panel img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.detail-section,
.detail-card,
.detail-note {
    min-width: 0;
    max-width: 100%;
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.detail-note {
    color: #d6d0c2;
}

.detail-note strong {
    color: var(--yellow);
}

.spec-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    max-width: 100%;
    touch-action: pan-x pan-y;
}

.spec-table {
    min-width: 440px;
}

.spec-table th,
.spec-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-table th {
    width: 42%;
    font-weight: 700;
    color: #fff;
}

.spec-table td {
    color: var(--muted);
}

.sidebar-links {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sidebar-links a {
    color: #f3eddf;
    text-decoration: underline;
    text-decoration-color: rgba(240, 185, 45, 0.42);
    text-underline-offset: 0.22rem;
}

.cta-actions.vertical {
    flex-direction: column;
    align-items: stretch;
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.contact-list strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
}

.form-card .form-note {
    font-size: 0.92rem;
    margin-top: 14px;
}

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

label {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: #dfd7c7;
}

.full-width {
    grid-column: 1 / -1;
}

input,
textarea {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #8f8a7f;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(240, 185, 45, 0.28);
    border-color: rgba(240, 185, 45, 0.42);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.form-status {
    min-height: 1.4em;
    margin-top: 10px;
    color: var(--yellow);
}

.map-card {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.map-frame {
    min-height: 420px;
}

.map-copy {
    padding: 30px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 28px;
}

.stacked-cards {
    display: grid;
    gap: 18px;
}

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

.site-footer {
    margin-top: 90px;
    background: linear-gradient(180deg, #0b0b0c 0%, #050506 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    padding: 60px 0 34px;
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 0.9fr 1fr;
    gap: 28px;
}

.footer-copy {
    max-width: 360px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-socials a,
.footer-links a,
.footer-contact a {
    color: #ddd6c5;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-wrap {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mobile-cta-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(14, 14, 15, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    z-index: 60;
}

.mobile-cta-bar a {
    min-height: 56px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    font-weight: 700;
}

.mobile-cta-bar span:first-child {
    width: 18px;
    height: 18px;
    color: var(--yellow);
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 94px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1fbb5a, #149647);
    color: white;
    box-shadow: 0 18px 34px rgba(20, 150, 71, 0.3);
    z-index: 58;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .reveal {
        transition: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 720px) {
    .reveal {
        transform: translateY(10px);
        transition-duration: 0.35s;
    }
}


.page-hero-about,
.page-hero-solutions,
.page-hero-reach,
.page-hero-updates,
.page-hero-contact,
.page-hero-category,
.page-hero-product {
    background-blend-mode: multiply, normal;
}

@media (max-width: 1120px) {
    .site-nav {
        gap: 16px;
        font-size: 0.9rem;
    }

    .home-hero-grid,
    .page-hero-grid,
    .split-section,
    .contact-layout,
    .reach-preview,
    .detail-layout,
    .capability-strip,
    .map-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-category-grid,
    .catalog-grid,
    .sector-grid,
    .feature-grid.three-col,
    .capability-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .industry-row,
    .timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 74px;
    }

    /* Mobile: fixed backgrounds repaint on scroll and cause visible "shake" / jank. */
    html {
        scroll-behavior: auto;
    }

    body {
        background-attachment: scroll;
    }

    .home-hero,
    .page-hero {
        min-height: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-home-link {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-total-height) 16px auto 16px;
        display: none;
        max-height: calc(100vh - var(--header-total-height) - 24px);
        max-height: calc(100dvh - var(--header-total-height) - 24px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        background: rgba(15, 15, 16, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

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

    .site-nav > .nav-home-link + .nav-dropdown + a[href$="index.html"] {
        display: none;
    }

    .site-nav > a,
    .nav-dropdown-toggle,
    .nav-cta {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        left: auto;
        transform: none;
        width: 100%;
        max-height: min(52vh, 420px);
        max-height: min(52dvh, 420px);
        overflow-y: auto;
        margin-top: 8px;
        grid-template-columns: 1fr;
        display: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.is-open .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
    }

    .dropdown-link {
        min-width: 0;
    }

    .hero-stats,
    .product-category-grid,
    .catalog-grid,
    .sector-grid,
    .feature-grid.two-col,
    .feature-grid.three-col,
    .supply-grid,
    .detail-grid,
    .process-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .mobile-cta-bar {
        display: grid;
    }

    body {
        padding-bottom: 104px;
    }
}

@media (max-width: 720px) {
    :root {
        --topbar-height: 0px;
        --header-total-height: var(--header-height);
    }

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

    .top-contact-bar {
        display: none;
    }

    .section {
        padding: 72px 0;
    }

    .brand {
        gap: 10px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-mark img {
        width: 30px;
        height: 30px;
    }

    .brand-copy strong {
        font-size: 1.12rem;
    }

    .brand-copy small {
        letter-spacing: 0.12em;
        font-size: 0.62rem;
    }

    .hero-actions,
    .cta-actions,
    .form-actions,
    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .home-hero-grid,
    .page-hero-grid {
        padding: 52px 0;
    }

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

    .hero-panel-card strong,
    .supply-card-inner strong {
        font-size: 1.55rem;
    }

    .product-category-body,
    .hero-panel-card,
    .feature-card,
    .catalog-card,
    .process-step,
    .sidebar-card,
    .detail-card,
    .detail-section,
    .stack-card,
    .sector-card,
    .cta-panel,
    .form-card {
        padding: 22px;
    }

    .footer-bottom-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }

    .product-chips span,
    .reach-tags span,
    .industry-meta span {
        padding: 0.42rem 0.72rem;
        font-size: 0.82rem;
    }

    .whatsapp-float {
        bottom: 102px;
        width: 54px;
        height: 54px;
    }

    /* Spec table must not force product cards wider than the viewport on phones */
    .detail-card .spec-table,
    .detail-section .spec-table {
        min-width: 0;
        width: 100%;
        table-layout: fixed;
    }

    .detail-card .spec-table th,
    .detail-card .spec-table td,
    .detail-section .spec-table th,
    .detail-section .spec-table td {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

@media (max-width: 420px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .mobile-cta-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 6px;
        padding: 6px;
    }

    .mobile-cta-bar a {
        min-height: 52px;
        font-size: 0.74rem;
        padding: 8px 4px;
    }

    .whatsapp-float {
        right: 12px;
    }
}
