/* Bakonescape Netlify Static Site
   Shared design layer for index.html + mining.html
*/

:root {
    --primary-earth: #2D3A2D;
    --accent-green: #4A6741;
    --light-sage: #8BA882;
    --warm-stone: #F2F0E9;
    --deep-forest: #1B241B;
    --ink: #172017;
    --stone-line: rgba(45, 58, 45, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background: var(--warm-stone);
    overflow-x: hidden;
}

h1, h2, h3, h4, .heading-font {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.nav-glass {
    background: rgba(27, 36, 27, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.hero-home {
    background:
        linear-gradient(115deg, rgba(27, 36, 27, 0.86), rgba(45, 58, 45, 0.72), rgba(27, 36, 27, 0.55)),
        url('https://i.imgur.com/eEJRJaW.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-mining {
    background:
        linear-gradient(115deg, rgba(27, 36, 27, 0.88), rgba(45, 58, 45, 0.76), rgba(27, 36, 27, 0.56)),
        url('https://i.imgur.com/bP2OnUi.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-home,
    .hero-mining {
        background-attachment: scroll;
    }
}

.accent-line {
    width: 74px;
    height: 5px;
    background: linear-gradient(90deg, var(--light-sage), rgba(139,168,130,0.2));
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green);
    color: white;
    padding: 14px 30px;
    min-height: 52px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.09em;
    border-radius: 999px;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 35px rgba(27,36,27,0.18);
}

.btn-primary:hover {
    background: var(--light-sage);
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(27,36,27,0.24);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 999px;
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.section-spacing {
    padding: 96px 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.division-card {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border-radius: 28px;
    cursor: pointer;
    isolation: isolate;
    box-shadow: 0 28px 60px rgba(27,36,27,0.24);
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform 0.45s cubic-bezier(.16,.84,.44,1), box-shadow 0.45s ease;
}

.division-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(27,36,27,0.32);
}

.division-card .bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.85s ease;
    z-index: -2;
}

.division-card:hover .bg-img {
    transform: scale(1.07);
}

.division-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(27,36,27,0.96) 3%, rgba(27,36,27,0.46) 54%, rgba(27,36,27,0.18)),
        radial-gradient(circle at top right, rgba(139,168,130,0.24), transparent 38%);
    z-index: -1;
}

.division-badge {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(242,240,233,0.10);
    color: var(--light-sage);
    border: 1px solid rgba(242,240,233,0.18);
    backdrop-filter: blur(6px);
}

.metric-card,
.service-card,
.control-card {
    background: white;
    border: 1px solid var(--stone-line);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(27,36,27,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.metric-card:hover,
.service-card:hover,
.control-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 65px rgba(27,36,27,0.12);
    border-color: rgba(139,168,130,0.42);
}

.service-card {
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    border-bottom-color: var(--light-sage);
}

.project-card {
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 80px rgba(0,0,0,0.27);
}

.client-logo {
    max-height: 106px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: transform 0.25s ease;
}

.client-logo:hover {
    transform: scale(1.04);
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-btn {
    background: white;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 25px rgba(27,36,27,0.13);
    color: var(--primary-earth);
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--light-sage);
    color: white;
    transform: scale(1.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #c6c6bd;
    transition: all 0.25s ease;
    cursor: pointer;
}

.dot.active {
    width: 28px;
    background: var(--accent-green);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8,12,8,0.68);
    backdrop-filter: blur(8px);
    padding: 1.25rem;
}

.modal-backdrop.open {
    display: flex;
}

.modal-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 35px 90px rgba(0,0,0,0.28);
    border: 1px solid rgba(139,168,130,0.35);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(27,36,27,0.18);
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

.input-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(45,58,45,0.15);
    border-radius: 16px;
    background: white;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(139,168,130,0.22);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: white;
    color: var(--primary-earth);
    border-radius: 12px;
}
