:root {
    --navy: #141f72;
    --navy-dark: #0b1248;
    --navy-mid: #1c2b8f;
    --terracotta: #c74a1a;
    --terracotta-light: #e05a28;
    --gold: #c9a227;
    --sand: #f6f1e8;
    --stone: #ebe6dc;
    --ink: #161616;
    --muted: #5d5a54;
    --line: rgba(20, 31, 114, 0.12);
    --white: #fff;
    --shadow: 0 22px 50px rgba(11, 18, 72, 0.12);
    --radius: 18px;
    --header-h: 118px;
    --font: "Outfit", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy-dark);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 96px 0;
}

.section-head {
    max-width: 680px;
    margin-bottom: 48px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin-bottom: 14px;
}

.section-head p,
.lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--terracotta-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(199, 74, 26, 0.28);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-mid);
}

.btn-ghost {
    border-color: var(--navy);
    color: var(--navy);
}

.btn-ghost:hover {
    background: var(--navy);
    color: var(--white);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(11, 18, 72, 0.06);
}

.header-top {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
}

.header-top-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 36px;
    flex-wrap: wrap;
}

.header-top a:hover {
    color: var(--gold);
}

.header-top .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.header-top-parent {
    margin-left: auto;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 12px;
    font-size: 0.85rem;
}

.logo-word {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-word strong {
    font-family: var(--display);
    font-size: 1.35rem;
    color: var(--navy);
}

.logo-word small {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
}

.logo-light .logo-mark {
    background: var(--terracotta);
}

.logo-light .logo-word strong,
.logo-light .logo-word small {
    color: var(--white);
}

.logo-light .logo-word small {
    color: var(--gold);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    font-weight: 500;
    font-size: 0.84rem;
    padding: 10px 8px;
    color: var(--ink);
}

.site-nav > ul > li > a {
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--terracotta);
}

.has-sub {
    position: relative;
}

.has-sub > a i {
    font-size: 0.65rem;
    margin-left: 4px;
}

.site-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px 0;
    flex-direction: column;
    z-index: 20;
}

.site-nav .has-sub:hover > .sub-menu,
.site-nav .has-sub:focus-within > .sub-menu,
.site-nav .has-sub.open > .sub-menu {
    display: flex;
}

.sub-menu a {
    display: block;
    padding: 9px 18px;
}

.sub-menu a:hover {
    background: var(--sand);
}

.nav-cta {
    padding: 10px 18px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--navy);
}

.nav-overlay {
    display: none;
}

/* Home hero */
.hero {
    position: relative;
    min-height: max(560px, calc(100vh - var(--header-h)));
    color: var(--white);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1s ease, transform 8s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 18, 72, 0.88) 0%, rgba(11, 18, 72, 0.45) 62%, rgba(199, 74, 26, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    padding: 80px 0 100px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.7rem, 6vw, 5rem);
    max-width: 16ch;
    margin: 10px 0 20px;
}

.hero-content p {
    max-width: 42ch;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dots button.active {
    background: var(--terracotta);
    transform: scale(1.2);
}

/* Page hero */
.page-hero {
    position: relative;
    color: var(--white);
    padding: 90px 0 72px;
    background:
        linear-gradient(90deg, rgba(11, 18, 72, 0.9), rgba(11, 18, 72, 0.55)),
        var(--hero-image) center/cover no-repeat;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    margin: 10px 0 12px;
}

.page-hero p {
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.86);
}

.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.6;
}

/* Intro / split */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.split img,
.media-card {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.checklist li {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.checklist i {
    color: var(--terracotta);
    margin-top: 5px;
}

/* Stats */
.stats {
    background: var(--navy-dark);
    color: var(--white);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat strong {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    color: var(--gold);
}

.stat span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mineral-card,
.industry-card,
.value-card,
.resource-card,
.step-card,
.log-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s ease;
}

.mineral-card:hover,
.industry-card:hover,
.resource-card:hover,
.log-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.mineral-card img,
.industry-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    margin-bottom: 8px;
}

.formula {
    color: var(--terracotta);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--navy);
    font-weight: 600;
}

.sand {
    background: var(--sand);
}

.stone {
    background: var(--stone);
}

/* Process */
.process {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    counter-reset: step;
}

.step-card {
    padding: 24px 18px;
    text-align: center;
}

.step-card::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--display);
    font-size: 1.6rem;
    color: var(--terracotta);
    margin-bottom: 10px;
}

/* Quality / values */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card,
.log-card {
    padding: 28px 24px;
}

.icon-bubble {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(199, 74, 26, 0.1);
    color: var(--terracotta);
    margin-bottom: 16px;
    font-size: 1.2rem;
}

/* CTA band */
.cta-band {
    background:
        linear-gradient(90deg, rgba(11, 18, 72, 0.92), rgba(199, 74, 26, 0.78)),
        url("https://images.unsplash.com/photo-1494412574643-ff11af0c3c5f?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: var(--white);
    padding: 80px 0;
}

.cta-band h2,
.cta-band p {
    color: var(--white);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cta-band .enquiry-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 28px;
    border-radius: var(--radius);
}

.cta-band label span,
.cta-band .form-note {
    color: rgba(255, 255, 255, 0.8);
}

.cta-band input,
.cta-band select,
.cta-band textarea {
    background: rgba(255, 255, 255, 0.95);
}

/* Forms */
.enquiry-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.enquiry-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.enquiry-form .full {
    grid-column: 1 / -1;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 400;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
    outline: 2px solid rgba(199, 74, 26, 0.35);
    border-color: var(--terracotta);
}

.form-note {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 400;
    margin: 14px 0 18px;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fde8e4;
    color: #8a2a12;
}

.alert-ok {
    background: #e7f6ee;
    color: #146c43;
}

/* Product */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.spec-table th {
    width: 38%;
    color: var(--navy);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    background: var(--sand);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}

a.chip:hover {
    background: var(--navy);
    color: var(--white);
}

.site-header.is-sticky .header-bar {
    min-height: 70px;
}

.notice {
    background: #fff8e8;
    border-left: 4px solid var(--gold);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
    margin: 18px 0;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font: inherit;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.mineral-card.is-hidden {
    display: none;
}

/* Contact */
.office-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    border: 0;
    background: var(--stone);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.tab-btn.active {
    background: var(--navy);
    color: var(--white);
}

.map-frame {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: var(--radius);
}

.office-panel {
    display: none;
}

.office-panel.active {
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.office-card {
    background: var(--sand);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* FAQ */
.faq details {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--terracotta);
    font-size: 1.3rem;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    padding-top: 10px;
    color: var(--muted);
}

/* Footer */
.site-footer {
    background: #090d2e;
    color: rgba(255, 255, 255, 0.78);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.site-footer a:hover {
    color: var(--gold);
}

.site-footer li {
    margin-bottom: 8px;
}

.footer-contact i {
    color: var(--gold);
    width: 18px;
    margin-right: 8px;
}

.footer-parent {
    display: inline-block;
    margin-top: 16px;
    color: var(--gold);
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    font-size: 0.85rem;
}

.footer-bottom .footer-credit {
    color: var(--gold);
}

.about-credit {
    margin-top: 28px;
    font-size: 0.82rem;
    color: var(--muted);
}

.about-credit a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.float-cta {
    position: fixed;
    right: 18px;
    bottom: 90px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-cta a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    font-weight: 600;
}

.float-cta a:hover {
    background: var(--terracotta);
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--terracotta);
    color: var(--white);
    display: none;
    place-items: center;
    z-index: 40;
}

.back-top.show {
    display: grid;
}

.vm-grid,
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.origin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.origin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
}

.origin-flag {
    font-size: 2.2rem;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.origin-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    flex-shrink: 0;
    margin-top: 4px;
}

.panel {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--line);
}

.timeline {
    display: grid;
    gap: 20px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-item strong {
    color: var(--terracotta);
}

.filter-empty {
    display: none;
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

@media (max-width: 1024px) {
    .split,
    .cta-layout,
    .contact-grid,
    .footer-grid,
    .process,
    .stats-grid,
    .icon-grid,
    .card-grid,
    .origin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process,
    .stats-grid,
    .icon-grid {
        grid-template-columns: 1fr 1fr;
    }

    .header-top-parent {
        display: none;
    }
}

@media (max-width: 1100px) {
    :root {
        --header-h: 96px;
    }

    .nav-toggle {
        display: flex;
        z-index: 60;
    }

    .nav-overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(9, 13, 46, 0.45);
        z-index: 54;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 20px 30px;
        z-index: 55;
        transition: right 0.3s ease;
        overflow: auto;
    }

    .site-nav.open {
        right: 0;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav > ul > li > a {
        white-space: normal;
    }

    .site-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 8px;
    }

    .site-nav .has-sub:hover > .sub-menu,
    .site-nav .has-sub:focus-within > .sub-menu {
        display: none;
    }

    .site-nav .has-sub.open > .sub-menu {
        display: flex;
    }

    .site-nav .nav-cta {
        display: inline-flex;
        margin-top: 16px;
    }

    .split,
    .cta-layout,
    .contact-grid,
    .footer-grid,
    .card-grid,
    .process,
    .stats-grid,
    .icon-grid,
    .vm-grid,
    .two-col,
    .enquiry-form .form-grid,
    .timeline-item,
    .origin-grid {
        grid-template-columns: 1fr;
    }

    .split img,
    .media-card {
        height: 280px;
    }

    .float-cta span {
        display: none;
    }
}
