:root {
    --blue: #2f3bb8;
    --blue-dark: #232c8f;
    --blue-soft: #eef0fc;
    --text: #1f2937;
    --muted: #5b6475;
    --line: #e6e9f0;
    --light: #f6f7fb;
    --white: #ffffff;
    --font: "Manrope", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-tap-highlight-color: transparent;
}

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

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

p {
    margin: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Stops the page behind from scrolling while the mobile menu is open */
body.menu-open {
    overflow: hidden;
}

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

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

/* ---------- Top bar ---------- */

.topbar {
    background: var(--light);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.topbar-hours,
.topbar-contact a {
    display: flex;
    align-items: center;
    gap: 7px;
}

.topbar img {
    width: 14px;
    height: 14px;
    opacity: 0.55;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-contact a {
    white-space: nowrap;
    transition: color 0.2s ease;
}

.topbar-contact a:hover {
    color: var(--blue);
}

.topbar-whatsapp {
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #25d366;
}

.topbar .topbar-whatsapp img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

/* Logo file is square with white space around it, so it is cropped to the text */
.brand {
    flex-shrink: 0;
}

.brand-logo {
    width: 170px;
    height: 80px;
    object-fit: cover;
}

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

.site-nav > a,
.nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav > a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
    color: var(--blue);
    background: var(--blue-soft);
}

/* Link of the page being viewed: blue pill with a line underneath */
.site-nav > a.is-active,
.nav-dropdown summary.is-active {
    position: relative;
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 600;
}

.site-nav > a.is-active::after,
.nav-dropdown summary.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -2px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

/* Ferrous / Non-Ferrous text is a link to its page, the arrow opens the menu */
.nav-dropdown summary a {
    color: inherit;
}

/* Product being viewed inside the dropdown */
.nav-dropdown-menu a.is-active {
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 600;
}

/* ---------- Dropdown ---------- */

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
    transition: transform 0.25s ease;
}

.nav-dropdown[open] summary img {
    transform: rotate(180deg);
}

/* The transparent top border fills the gap under the link,
   so the menu stays open while the mouse moves into it */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 230px;
    padding: 8px;
    background: var(--white);
    background-clip: padding-box;
    border-top: 12px solid transparent;
    border-radius: 12px;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.18);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--light);
    color: var(--blue);
}

/* ---------- Get a quote button ---------- */

.site-nav .nav-cta {
    gap: 8px;
    margin-left: 12px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    font-size: 14.5px;
}

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

.button-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.nav-cta:hover .button-arrow {
    transform: translate(2px, -2px);
}

/* ---------- Menu button (mobile) ---------- */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 12px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Footer ---------- */

.site-footer {
    background: #111834;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.5fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 56px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 10px;
    background: var(--white);
    border-radius: 10px;
}

/* Logo file is square with white space around it, so it is cropped to the text */
.footer-logo img {
    width: 150px;
    height: 70px;
    object-fit: cover;
}

.footer-about p {
    max-width: 300px;
    line-height: 1.7;
}

.footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer-whatsapp img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.footer-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

.footer-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
}

/* Short line under the heading */
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #6d78f2;
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-links a {
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    padding-left: 4px;
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact p,
.footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.footer-contact img {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

.footer-contact a span {
    word-break: break-word;
    transition: color 0.2s ease;
}

.footer-contact a:hover span {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13.5px;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}

/* ---------- Back to top button ---------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--blue);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 20px -6px rgba(47, 59, 184, 0.6);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
}

.back-to-top img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transform: rotate(180deg);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue-dark);
}

/* ==========================================================================
   Shared: buttons and section headings
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn img {
    width: 16px;
    height: 16px;
}

.btn:hover .button-arrow {
    transform: translate(2px, -2px);
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

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

.btn-white {
    background: var(--white);
    color: var(--blue);
}

.btn-white:hover {
    background: var(--blue-soft);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.btn-outline-light img {
    filter: brightness(0) invert(1);
}

.btn-outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--text);
}

.btn-outline-light:hover img {
    filter: none;
}

.section {
    padding: 96px 0;
}

.section-light {
    background: var(--light);
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

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

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--blue);
    font-size: 15px;
    font-weight: 600;
}

/* Filter turns the black icon into the brand blue */
.section-link img,
.feature-icon img {
    filter: invert(22%) sepia(66%) saturate(2800%) hue-rotate(228deg) brightness(82%);
}

.section-link img {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.section-link:hover img {
    transform: translateX(4px);
}

/* ==========================================================================
   Home: hero slider
   ========================================================================== */

.hero {
    position: relative;
    height: clamp(520px, 78vh, 760px);
    overflow: hidden;
    background: #111834;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease;
}

.hero-slide.is-active .hero-image {
    transform: scale(1);
}

/* Dark overlay so the text is easy to read */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 40, 0.85) 0%, rgba(10, 16, 40, 0.55) 50%, rgba(10, 16, 40, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-content > * {
    max-width: 620px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active .hero-content > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.is-active .hero-title {
    transition-delay: 0.15s;
}

.hero-slide.is-active .hero-text {
    transition-delay: 0.3s;
}

.hero-slide.is-active .hero-buttons {
    transition-delay: 0.45s;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.hero-title {
    margin: 0 0 18px;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero-text {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.hero-arrow img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 24px;
}

.hero-prev img {
    transform: rotate(180deg);
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--white);
}

/* ==========================================================================
   Home: who we are
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.about-text .section-title {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--muted);
    line-height: 1.75;
}

.about-text .btn {
    margin-top: 12px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: var(--blue-soft);
    border-radius: 12px;
}

.feature-icon img {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.feature-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* ==========================================================================
   Home: product cards
   ========================================================================== */

.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.product-card {
    width: calc((100% - 48px) / 3);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 20px 40px -18px rgba(15, 23, 42, 0.25);
    transform: translateY(-4px);
}

.product-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--line);
}

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

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
}

.product-info h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.product-arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--light);
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.product-arrow img {
    width: 16px;
    height: 16px;
}

.product-card:hover .product-arrow {
    background: var(--blue);
}

.product-card:hover .product-arrow img {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Home: call to action
   ========================================================================== */

.cta {
    padding: 72px 0;
    background: var(--blue);
    color: var(--white);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-title {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-text .about-lead {
    color: var(--text);
    font-size: 17px;
}

.about-image {
    position: relative;
    padding: 0 0 20px 20px;
}

/* Soft blue block behind the photo */
.about-image::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70%;
    height: 75%;
    background: var(--blue-soft);
    border-radius: 20px;
}

.about-image img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.35);
}

/* ==========================================================================
   Inner pages: banner and breadcrumb
   ========================================================================== */

.page-banner {
    padding: 48px 0;
    background: var(--light);
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

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

.breadcrumb img {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

.breadcrumb span {
    color: var(--text);
    font-weight: 500;
}

.page-title {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Product page
   ========================================================================== */

.product-detail {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
    gap: 56px;
}

/* Photo stays in place while the text on the right scrolls with the page
   (top = sticky header height + a little gap) */
.product-photo {
    position: sticky;
    top: 108px;
}

.product-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.35);
}

.product-heading {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
}

.product-content p {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.75;
}

.product-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 28px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.product-specs div {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.product-specs div:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.product-specs div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.product-specs dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13px;
}

.product-specs dd {
    margin: 0;
    font-weight: 600;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
}

.btn-whatsapp img {
    filter: brightness(0) invert(1);
}

.btn-whatsapp:hover {
    background: #1fb857;
}

.share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.share-label {
    margin-right: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.share a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.share img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.share a:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.share a:hover img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Previous / all products / next */
.post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 72px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-nav-all {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.post-nav-all img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.post-nav-all:hover {
    background: var(--blue-soft);
}

.post-nav-prev,
.post-nav-next {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-nav-next {
    justify-self: end;
    text-align: right;
}

.post-nav small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-nav-prev img,
.post-nav-next img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.post-nav-prev img {
    transform: rotate(180deg);
}

.post-nav-prev:hover,
.post-nav-next:hover {
    color: var(--blue);
}

.post-nav-next:hover img {
    transform: translateX(4px);
}

.post-nav-prev:hover img {
    transform: rotate(180deg) translateX(4px);
}

/* Intro text on the Ferrous / Non-Ferrous listing pages */
.listing-intro {
    max-width: 720px;
    margin: -20px 0 40px;
    color: var(--muted);
    line-height: 1.75;
}

/* ==========================================================================
   404 page
   ========================================================================== */

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

.not-found p {
    max-width: 480px;
    margin: 16px auto 32px;
    color: var(--muted);
}

.not-found-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-outline {
    border-color: var(--line);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.contact-card {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.2);
    transform: translateY(-4px);
}

.contact-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
}

.contact-card p,
.contact-card a {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--blue);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: stretch;
}

.contact-intro {
    margin: 12px 0 28px;
    color: var(--muted);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Same height for text boxes and the dropdown */
.form-field input,
.form-field select {
    height: 48px;
}

/* Custom arrow for the dropdown, with space on the right */
.form-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background: var(--white) url("/assets/icons/chevron-down.svg") no-repeat right 16px center / 16px 16px;
    cursor: pointer;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.contact-form .btn {
    align-self: flex-start;
    border: 0;
    font-family: inherit;
}

.contact-form .btn img {
    filter: brightness(0) invert(1);
}

/* Spam trap: moved off screen, bots still see it */
.form-trap {
    position: absolute;
    left: -9999px;
}

.form-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14.5px;
}

.form-success {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #e8f8ee;
    color: #146c3a;
}

.form-success img {
    width: 18px;
    height: 18px;
}

.form-error {
    background: #fdecec;
    color: #a12626;
}

.contact-map {
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--light);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-content > * {
        transition: none;
    }
}
