/* ===========================================================================
   CoolHotspot.dk – design system
   Brand: green #62BE3F, black #0A0A0A, white, light grey #F5F6F7, text #222
   =========================================================================== */

:root {
    --green: #62BE3F;
    --green-dark: #4fa332;
    --green-soft: rgba(98, 190, 63, 0.12);
    --black: #0A0A0A;
    --ink: #222222;
    --muted: #5b6168;
    --white: #ffffff;
    --grey: #F5F6F7;
    --border: #e4e7ea;

    --orange: #f2971d;
    --red: #e0413b;
    --blue: #2f78d0;
    --gray-status: #98a0a8;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --shadow: 0 6px 22px rgba(10, 10, 10, 0.07);
    --shadow-lg: 0 16px 44px rgba(10, 10, 10, 0.12);
    --container: 1180px;

    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--black); font-weight: 800; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.section { padding: 76px 0; }
.section--grey { background: var(--grey); }
.section--dark { background: var(--black); color: #d7dade; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: #aeb4bb; }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em;
    font-size: .78rem; font-weight: 700; color: var(--green-dark);
    background: var(--green-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--green); background: rgba(98,190,63,.16); }

.text-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55em; justify-content: center;
    font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
    border: 2px solid transparent; cursor: pointer; transition: .18s ease;
    text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #08210a; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #1c1c1c; color: #fff; }
.btn--outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn--ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { color: var(--black); display: flex; align-items: center; }
.logo svg { height: 40px; width: auto; }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    color: var(--ink); font-weight: 600; font-size: .96rem; padding: 9px 14px;
    border-radius: 10px; transition: .15s;
}
.nav a:hover { color: var(--green-dark); text-decoration: none; background: var(--green-soft); }
.nav a.is-active { color: var(--green-dark); background: var(--green-soft); }

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

.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: 8px;
    color: var(--black);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Nav "Systemer" dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle {
    font-family: inherit; background: none; border: 0; color: var(--ink);
    font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: 10px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: .15s;
}
.dropdown-toggle:hover, .has-dropdown:focus-within .dropdown-toggle {
    color: var(--green-dark); background: var(--green-soft);
}
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 244px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column;
    gap: 2px; z-index: 70;
}
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { display: flex; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px;
    font-weight: 600; font-size: .92rem; color: var(--ink); white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--green-soft); color: var(--green-dark); text-decoration: none; }
.dropdown-menu a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green-dark); }
.dropdown-menu a svg:last-child { width: 13px; height: 13px; margin-left: auto; opacity: .55; }

/* The nav-embedded CTA only shows inside the mobile menu (desktop uses header-actions). */
.nav-cta { display: none; }
.logo svg { display: block; }

/* ---------- Hero ---------- */
.hero {
    position: relative; background: radial-gradient(1200px 600px at 80% -10%, #17301a 0%, transparent 55%), var(--black);
    color: #cfd3d8; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(98,190,63,.12) 1px, transparent 0);
    background-size: 34px 34px; opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding-top: 74px; padding-bottom: 84px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__lead { font-size: 1.18rem; color: #b8bec5; max-width: 540px; margin-bottom: 26px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.hero__list li { display: flex; align-items: center; gap: 12px; color: #d7dce1; font-weight: 500; }
.hero__list svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; }
.hero-card {
    background: linear-gradient(160deg, #141414, #0c0c0c); border: 1px solid #232323;
    border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
}
.hero-device {
    aspect-ratio: 4/3; border-radius: var(--radius); background:
        radial-gradient(400px 200px at 50% 0%, rgba(98,190,63,.18), transparent 60%), #101010;
    border: 1px solid #262626; display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-device svg { width: 60%; color: var(--green); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.hero-stat { background: #121212; border: 1px solid #232323; border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.hero-stat b { color: #fff; display: block; font-size: 1.35rem; }
.hero-stat span { font-size: .76rem; color: #8b9199; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); transition: .18s ease; height: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d4dccf; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); margin-bottom: 0; }

.icon-badge {
    width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center;
    justify-content: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: 18px;
}
.icon-badge svg { width: 28px; height: 28px; }

.card--access { display: flex; flex-direction: column; }
.card--access .card-body { flex: 1; }
.card--access .btn { margin-top: 18px; }

.card-warning {
    font-size: .82rem; color: var(--muted); background: var(--grey); border-radius: 10px;
    padding: 10px 12px; margin-top: 14px; display: flex; gap: 8px; align-items: flex-start;
}
.card-warning svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--orange); }

.link-more { font-weight: 700; color: var(--green-dark); display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }
.link-more svg { width: 18px; height: 18px; transition: transform .15s; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- Status ---------- */
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-badge {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem;
    padding: 6px 12px; border-radius: 999px;
}
.st-green  { background: rgba(98,190,63,.14); color: #3f8f27; }
.st-orange { background: rgba(242,151,29,.15); color: #b9770f; }
.st-red    { background: rgba(224,65,59,.14); color: #c5322c; }
.st-blue   { background: rgba(47,120,208,.14); color: #2664b0; }
.st-gray   { background: rgba(152,160,168,.18); color: #656d75; }

.dot-green  { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-red    { background: var(--red); }
.dot-blue   { background: var(--blue); }
.dot-gray   { background: var(--gray-status); }

.status-banner {
    display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: var(--radius);
    font-weight: 700; font-size: 1.1rem; margin-bottom: 30px; border: 1px solid var(--border);
}
.status-banner.st-green  { background: rgba(98,190,63,.10); }
.status-banner.st-orange { background: rgba(242,151,29,.10); }
.status-banner.st-red    { background: rgba(224,65,59,.09); }
.status-banner.st-blue   { background: rgba(47,120,208,.09); }
.status-banner .status-dot { width: 16px; height: 16px; }

/* timeline / history bars */
.timeline { display: flex; gap: 2px; align-items: flex-end; height: 34px; }
.timeline--sm { height: 22px; }
.timeline span {
    flex: 1; border-radius: 3px; min-width: 3px; height: 100%; background: var(--gray-status);
    transition: opacity .15s;
}
.timeline span:hover { opacity: .7; }
.tl-green  { background: var(--green); }
.tl-orange { background: var(--orange); }
.tl-red    { background: var(--red); }
.tl-blue   { background: var(--blue); }
.tl-gray   { background: #d4d9de; }

.service-row {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.service-row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.service-row__title { display: flex; align-items: center; gap: 14px; }
.service-row__title .icon-badge { margin: 0; width: 46px; height: 46px; }
.service-row__title h3 { margin: 0; font-size: 1.15rem; }
.service-row__title p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; }
.service-meta div span { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.service-meta div b { color: var(--ink); font-size: 1rem; }
.history-block { margin-top: 20px; }
.history-block h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.history-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 16px; }

/* mini status widget (front page) */
.status-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.status-widget__row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px; align-items: center; padding: 15px 22px; border-bottom: 1px solid var(--border); }
.status-widget__row:last-child { border-bottom: 0; }
.status-widget__name { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.status-widget__uptime { color: var(--muted); font-size: .88rem; }
.status-widget__foot { padding: 18px 22px; text-align: center; background: var(--grey); }

/* ---------- Incidents / maintenance ---------- */
.incident { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; background: #fff; }
.incident h3 { margin-bottom: 6px; }
.incident__meta { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.incident__timeline { border-left: 2px solid var(--border); padding-left: 18px; margin-top: 14px; }
.incident__update { margin-bottom: 14px; position: relative; }
.incident__update::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.incident__update small { color: var(--muted); }
.maint { border-left: 4px solid var(--blue); background: rgba(47,120,208,.05); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .94rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; transition: .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft);
}
.field textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: auto; margin-top: 4px; }
.field--check label { margin: 0; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-hint { font-size: .84rem; color: var(--muted); }

/* ---------- Flash ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; border: 1px solid; }
.flash--success { background: rgba(98,190,63,.12); border-color: rgba(98,190,63,.4); color: #35801f; }
.flash--error { background: rgba(224,65,59,.1); border-color: rgba(224,65,59,.35); color: #b5322c; }

/* ---------- Info list ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { width: 22px; height: 22px; color: var(--green-dark); flex-shrink: 0; }
.info-list b { display: block; }
.info-list span { color: var(--muted); }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green-dark); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #a9afb6; padding: 60px 0 26px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer a { color: #a9afb6; }
.site-footer a:hover { color: var(--green); text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-desc { max-width: 320px; font-size: .94rem; }
.footer-bottom { border-top: 1px solid #222; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-ext { display: inline-flex; align-items: center; gap: 6px; }
.footer-ext svg { width: 14px; height: 14px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--black); color: #cfd3d8; padding: 60px 0; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #aeb4bb; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .85rem; color: #8b9199; margin-bottom: 16px; }
.breadcrumb a { color: #8b9199; }
.breadcrumb a:hover { color: var(--green); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 640px;
    margin: 0 auto; background: #101112; color: #d7dade; border: 1px solid #262a2e;
    border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.cookie-banner h3 { color: #fff; font-size: 1.05rem; }
.cookie-banner p { font-size: .9rem; color: #aeb4bb; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-hidden { display: none !important; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.stack { display: grid; gap: 14px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--grey); color: var(--muted); }
.badge--example { background: rgba(242,151,29,.16); color: #b9770f; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero__visual { order: -1; max-width: 460px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .nav, .header-actions .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        position: absolute; top: 74px; left: 0; right: 0; background: #fff;
        padding: 14px 22px 22px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .nav.is-open a { padding: 12px 14px; font-size: 1.05rem; }
    .nav.is-open .btn { display: inline-flex; margin-top: 8px; }
    .nav.is-open .nav-cta { display: inline-flex; }
    /* Dropdown becomes an inline sub-list inside the mobile menu */
    .nav.is-open .has-dropdown { display: flex; flex-direction: column; }
    .nav.is-open .dropdown-toggle { width: 100%; justify-content: flex-start; font-size: 1.05rem; padding: 12px 14px; }
    .nav.is-open .dropdown-menu {
        position: static; display: flex; box-shadow: none; border: 0; padding: 2px 0 6px 14px;
        min-width: 0; border-left: 2px solid var(--border); margin-left: 14px;
    }
    .nav.is-open .dropdown-menu a { font-size: .98rem; }
    .grid--2, .grid--3, .grid--4, .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .status-widget__row { grid-template-columns: 1fr auto; }
    .status-widget__uptime { display: none; }
}
@media (min-width: 761px) {
    .nav { display: flex !important; }
}
