/* ===========================================================================
   ORELYNX Mining & Technical Services — site styles
   Palette: deep slate/navy + amber gold accent (mining / earth + premium)
   =========================================================================== */

:root {
    --navy: #0d1b2a;
    --navy-2: #13283e;
    --slate: #1b3a57;
    --steel: #2c5378;
    --amber: #f0a500;
    --amber-dark: #d18f00;
    --ink: #1a2230;
    --body: #4a5568;
    --muted: #8a97a8;
    --light: #f5f7fa;
    --light-2: #eef2f7;
    --line: #e2e8f0;
    --white: #ffffff;
    --radius: 14px;
    --shadow-sm: 0 4px 14px rgba(13, 27, 42, 0.06);
    --shadow: 0 12px 34px rgba(13, 27, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.18);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--body);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.25;
}

a { text-decoration: none; }
main { padding-top: 76px; }

/* ---------- Buttons ---------- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.6rem;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}
.btn-lg { padding: 0.85rem 2.1rem; }

.btn-accent {
    background: var(--amber);
    border: 2px solid var(--amber);
    color: var(--navy);
}
.btn-accent:hover {
    background: var(--amber-dark);
    border-color: var(--amber-dark);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(240, 165, 0, 0.35);
}
.btn-primary {
    background: var(--slate);
    border: 2px solid var(--slate);
}
.btn-primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: var(--slate);
    border: 2px solid var(--slate);
}
.btn-outline-primary:hover {
    background: var(--slate);
    border-color: var(--slate);
    transform: translateY(-2px);
}
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover { transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.orelynx-navbar {
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(8px);
    padding: 0.7rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.navbar-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--amber);
    color: var(--navy);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(240, 165, 0, 0.4);
}
.brand-text {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1;
}
.brand-text small {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--amber);
    margin-top: 3px;
}
.orelynx-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.2s;
}
.orelynx-navbar .nav-link:hover,
.orelynx-navbar .nav-link.active { color: var(--white); }
.orelynx-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    left: 1rem; right: 1rem; bottom: 0.2rem;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
}

/* ---------- Messages ---------- */
.message-container { margin-top: 90px; margin-bottom: -60px; position: relative; z-index: 5; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 58, 87, 0.82) 100%),
        url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0 7rem;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(240, 165, 0, 0.16), transparent 45%);
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.8rem;
    color: var(--amber);
    margin-bottom: 1rem;
}
.hero-title {
    color: var(--white);
    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    font-weight: 800;
    margin-bottom: 1.3rem;
}
.hero-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Stat strip ---------- */
.stat-strip {
    background: var(--amber);
    padding: 2.2rem 0;
}
.stat-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--navy);
    line-height: 1.1;
}
.stat-label {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(13, 27, 42, 0.75);
    margin-top: 0.3rem;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--navy); }
.section-eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.78rem;
    color: var(--amber-dark);
    margin-bottom: 0.8rem;
}
.section-eyebrow.light { color: var(--amber); }
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
}
.section-subtitle {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 680px;
}
.text-white { color: var(--white) !important; }
.text-light-muted { color: rgba(255, 255, 255, 0.72); }

/* ---------- Value cards ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}
.value-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-card i { font-size: 1.8rem; color: var(--amber-dark); }
.value-card h5 { margin: 0.7rem 0 0.4rem; font-size: 1.05rem; }
.value-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--slate), var(--navy));
    color: var(--amber);
    font-size: 1.6rem;
    margin-bottom: 1.1rem;
}
.service-card h5 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Service detail cards ---------- */
.service-detail-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-detail-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-detail-head .service-icon { margin-bottom: 0; flex-shrink: 0; width: 56px; height: 56px; font-size: 1.4rem; }
.service-detail-head h4 { font-size: 1.18rem; margin: 0; }

/* ---------- Check / info lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.35rem 0;
    color: var(--body);
    font-size: 0.96rem;
}
.check-list i { color: var(--amber-dark); margin-top: 0.25rem; flex-shrink: 0; }

/* ---------- Info panel ---------- */
.info-panel {
    background: var(--light);
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.info-panel h5 { margin-bottom: 1.1rem; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.info-list li:last-child { border-bottom: none; }
.info-list i { color: var(--amber-dark); font-size: 1.1rem; }

/* ---------- Pillar cards ---------- */
.pillar-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar-card .service-icon { margin: 0 auto 1.2rem; }
.pillar-dark {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}
.pillar-dark i { font-size: 2rem; color: var(--amber); margin-bottom: 0.9rem; display: block; }
.pillar-dark h5 { color: var(--white); }
.pillar-dark p { color: rgba(255, 255, 255, 0.72); margin: 0; }

/* ---------- Governance card ---------- */
.gov-card { text-align: center; }
.gov-level {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
}
.gov-tag {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--white);
    font-size: 1.05rem;
}
.gov-tag.accent { color: var(--amber); }
.gov-level p { margin: 0.3rem 0 0; color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; }
.gov-arrow { color: var(--amber); font-size: 1.3rem; margin: 0.5rem 0; }

/* ---------- Team ---------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.3);
}
.avatar-lg { width: 90px; height: 90px; font-size: 1.9rem; flex-shrink: 0; }

.team-card-compact {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.team-card-compact:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-card-compact .avatar { margin-bottom: 1rem; }
.team-card-compact h6 { margin-bottom: 0.3rem; font-size: 1rem; }

.team-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-body h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.team-body p { margin: 0.8rem 0 0; font-size: 0.93rem; color: var(--muted); }
.team-role {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--amber-dark);
    letter-spacing: 0.3px;
}

/* ---------- Tool badges ---------- */
.tool-badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.2rem; }
.tool-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 0.6rem 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.tool-badge i { color: var(--amber-dark); }

/* ---------- Page header ---------- */
.page-header {
    background: linear-gradient(120deg, var(--navy) 0%, var(--slate) 100%);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute; right: -60px; top: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(240, 165, 0, 0.18), transparent 70%);
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.page-header p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 620px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        linear-gradient(120deg, rgba(13, 27, 42, 0.95), rgba(27, 58, 87, 0.92)),
        url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 4.5rem 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ---------- Contact ---------- */
.contact-info { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info li { display: flex; align-items: flex-start; gap: 1rem; padding: 0.7rem 0; }
.contact-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--slate), var(--navy));
    color: var(--amber);
    font-size: 1.2rem;
}
.contact-info strong { color: var(--ink); font-family: 'Poppins', sans-serif; }

.form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}
.form-label { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}
.form-control:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.18);
}
.form-error { color: #d9534f; font-size: 0.82rem; margin-top: 0.3rem; }
.btn-accent i { margin-right: 0.4rem; }

/* ---------- Footer ---------- */
.orelynx-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}
.orelynx-footer .brand-text { font-size: 1.15rem; }
.footer-text { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.footer-heading {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255, 255, 255, 0.65); font-size: 0.92rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
.footer-contact li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; font-size: 0.9rem; }
.footer-contact i { color: var(--amber); }
.footer-divider { border-color: rgba(255, 255, 255, 0.12); margin: 2.5rem 0 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .orelynx-navbar { background: var(--navy); }

    /* Mobile menu as a solid panel that sits below the bar */
    .navbar-collapse {
        background: var(--navy-2);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        margin-top: 0.75rem;
        padding: 0.5rem 0.75rem 0.9rem;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    }
    .orelynx-navbar .navbar-nav { width: 100%; }
    .orelynx-navbar .nav-item { width: 100%; }
    .orelynx-navbar .nav-link {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }
    .orelynx-navbar .nav-link.active::after { display: none; }
    .orelynx-navbar .nav-link.active { color: var(--amber); }
    .orelynx-navbar .nav-item:last-child .nav-link { border-bottom: none; }

    /* Contact button: full-width tap target */
    .navbar-nav .ms-lg-3 { margin-top: 0.75rem; }
    .orelynx-navbar .btn-accent {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .navbar-toggler { border-color: rgba(255, 255, 255, 0.25); }
    .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(240, 165, 0, 0.3); }

    .hero { padding: 6rem 0 4.5rem; }
    .section { padding: 4.5rem 0; }
    .page-header { padding: 3.5rem 0 2.8rem; }

    /* Even-out the service detail header on narrow screens */
    .service-detail-card { padding: 1.8rem 1.5rem; }
}

@media (max-width: 575px) {
    main { padding-top: 70px; }
    .value-grid { grid-template-columns: 1fr; }
    .team-card { flex-direction: column; text-align: center; }
    .team-card .avatar { margin: 0 auto; }
    .team-body { text-align: center; }
    .section { padding: 3.5rem 0; }
    .hero { padding: 5rem 0 3.5rem; }
    .hero-title { font-size: 2rem; }
    .hero-lead { font-size: 1.02rem; }

    /* Full-width stacked CTA buttons = bigger tap targets */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .cta-band .btn { width: 100%; }

    /* Brand text a touch smaller so it never crowds the toggler */
    .brand-text { font-size: 1.1rem; }
    .brand-text small { font-size: 0.55rem; letter-spacing: 1px; }
    .brand-mark { width: 40px; height: 40px; font-size: 1rem; }

    /* Stat strip: keep long values from overflowing the 2-col grid */
    .stat-value { font-size: 1.35rem; }
    .stat-label { font-size: 0.68rem; }

    .page-header h1 { font-size: 1.8rem; }
    .page-header p { font-size: 1rem; }
    .section-title { font-size: 1.6rem; }

    .form-panel { padding: 1.6rem 1.3rem; }
    .service-detail-head { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
    .info-panel, .pillar-card { padding: 1.6rem 1.3rem; }
}
