/* ============================================================
   Aggreko AR Experience - restyled to match the Equipment
   Explorer: Inter Tight, orange #FD6E39, ink #101010, paper
   #FBFAF5, cards rounded top-left + bottom-right only.
   ============================================================ */

@font-face {
    font-family: "Inter Tight";
    src: url("../fonts/InterTight-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --orange: #FD6E39;
    --ink: #101010;
    --paper: #FBFAF5;
    --radius-card: 22px;
    --font-main: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */

.site-header {
    padding: 18px clamp(20px, 5vw, 60px) 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.logo { height: 42px; display: block; }

.header-right { display: flex; align-items: center; gap: 12px; }

.ee-link,
.help-btn {
    height: 36px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ee-link:hover,
.help-btn:hover { background: var(--ink); color: var(--paper); }
.ee-link svg,
.help-btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */

.hero {
    margin: clamp(28px, 6vh, 64px) 0 10px;
    max-width: 820px;
    padding: 0 clamp(20px, 5vw, 60px);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}
.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}
.hero-title {
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0 0 18px;
}
.hero-title .highlight { color: var(--orange); }
.hero-sub {
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(16, 16, 16, 0.72);
    margin: 0;
    max-width: 560px;
}

/* legacy background orbs: removed from the design */
.bg-orb { display: none; }

/* ---------- product grid ---------- */

.products-section {
    padding: clamp(30px, 5vh, 50px) clamp(20px, 5vw, 60px) 20px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-card) 0 var(--radius-card) 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(16, 16, 16, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(16, 16, 16, 0.14);
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(to bottom, #F4F2EB, #EAE8E0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.35s ease;
}
.product-card:hover .card-thumb { transform: scale(1.05); }

.ar-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 12px 0 12px 0;
}
.ar-badge svg { width: 13px; height: 13px; }

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 18px 16px;
}
.card-category {
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--orange);
}
.card-title {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    margin: 6px 0 6px;
}
.card-desc {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(16, 16, 16, 0.62);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-cta .cta-label {
    font-weight: 600;
    font-size: 14px;
}
.card-cta .go {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.product-card:hover .card-cta .go { background: var(--orange); color: var(--ink); }
.card-cta .go svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */

.site-footer {
    padding: 40px clamp(20px, 5vw, 60px);
    color: rgba(16, 16, 16, 0.45);
    font-size: 13px;
}
.site-footer p { margin: 0; }

/* ---------- help modal ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 16, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 60;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
    position: relative;
    width: min(680px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: var(--paper);
    border-radius: var(--radius-card) 0 var(--radius-card) 0;
    padding: 34px clamp(22px, 4vw, 40px) 30px;
    box-shadow: 0 24px 70px rgba(16, 16, 16, 0.35);
    transform: translateY(14px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(16, 16, 16, 0.07);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}
.modal-close:hover { background: rgba(16, 16, 16, 0.16); }

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.modal-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.modal-intro {
    font-size: 15px;
    color: rgba(16, 16, 16, 0.72);
    margin: 0 0 24px;
}

.modal-sections { display: flex; flex-direction: column; gap: 22px; }
.modal-section {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.section-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px 0 12px 0;
    background: rgba(253, 110, 57, 0.14);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-section h3 {
    font-size: 15.5px;
    font-weight: 600;
    margin: 0 0 6px;
}
.modal-section p,
.modal-section li {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(16, 16, 16, 0.75);
}
.modal-section p { margin: 0 0 8px; }
.modal-section ul,
.modal-section ol { margin: 0 0 8px; padding-left: 18px; }
.modal-section li { margin-bottom: 4px; }
.modal-section li::marker { color: var(--orange); }
.modal-section strong { color: var(--ink); }

.modal-cta {
    margin-top: 26px;
    height: 44px;
    width: 100%;
    border: none;
    border-radius: 22px;
    background: var(--orange);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.12s ease;
}
.modal-cta:hover { transform: translateY(-1px); }
.modal-cta .btn-arrow { width: 18px; height: 18px; }

@media (max-width: 560px) {
    .logo { height: 32px; }
    .ee-link span { display: none; }
    .ee-link { padding: 0 10px; }
}
