/*
Theme Name: IT Support
Author: Jonas Landhage
Author URI: https://landhage.com
Description: Enkel ensidig WordPress-sida för IT-support m.m.
Version: 1.0
License: GNU General Public License v2 or later
*/

:root {
    --color-bg: #0b1120;
    --color-bg-alt: #020617;
    --color-section: #020617;
    --color-card: #0f172a;
    --color-primary: #38bdf8;
    --color-primary-soft: rgba(56, 189, 248, 0.15);
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-border: #1f2937;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
    --radius-xl: 18px;
    --radius-full: 999px;
    --max-width: 1100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #020617 100%);
    color: var(--color-text);
    line-height: 1.6;
}

/* Layout */

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

section {
    padding: 4rem 0;
    scroll-margin-top: 80px;
}

.section-inner {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.05), rgba(15, 23, 42, 0.9));
    border-radius: var(--radius-xl);
    padding: 2.5rem clamp(1.75rem, 3vw, 3rem);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
}

/* Header / Nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, #38bdf8, #0ea5e9 50%, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5f4ff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.45);
}

.logo-text-main {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.18s ease-out;
}

.nav-links a:hover {
    color: var(--color-primary);
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 1px rgba(8, 47, 73, 0.4);
}

.nav-cta {
    display: flex;
    gap: 0.5rem;
}

.btn {
    border-radius: var(--radius-full);
    padding: 0.55rem 1.15rem;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(to right, #38bdf8, #0ea5e9);
    color: #0b1120;
    box-shadow: 0 12px 32px rgba(56, 189, 248, 0.65);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.8);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    color: var(--color-text);
    border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
    border-color: rgba(56, 189, 248, 0.7);
    color: var(--color-primary);
}

/* Hero */

.hero {
    padding-top: 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.9));
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.32);
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2.75rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.35rem, 4vw, 2.9rem);
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.hero-title span {
    background: linear-gradient(to right, #e5e7eb, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    color: var(--color-text-muted);
    font-size: 0.97rem;
    max-width: 34rem;
}

.hero-cta {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-supporting {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.hero-supporting strong {
    color: var(--color-text);
}

.hero-right {
    position: relative;
}

.hero-panel {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.95));
    border-radius: 22px;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
}

.hero-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hero-kpi-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 18px;
    padding: 0.9rem 0.85rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.hero-kpi-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.hero-kpi-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
}

.hero-kpi-sub {
    font-size: 0.76rem;
    color: #9ca3af;
}

/* Section headings */

.section-header {
    margin-bottom: 1.5rem;
}

.section-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.section-title {
    font-size: 1.45rem;
    margin: 0 0 0.4rem;
}

.section-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 28rem;
}

/* Tjänster */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.service-card {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.13), rgba(15, 23, 42, 0.98));
    border-radius: 16px;
    padding: 1.1rem 1rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
    font-size: 0.9rem;
}

.service-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.service-title {
    font-size: 0.98rem;
    margin: 0 0 0.4rem;
}

.service-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Recensioner */

.reviews-grid {
    display: grid;
    gap: 0.9rem;
}

.review-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
    font-size: 0.86rem;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.review-name {
    font-weight: 500;
}

.review-stars {
    font-size: 0.78rem;
    color: #fbbf24;
}

/* Karta + kontakt */

.map-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 1.5rem;
}

.map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    background: #020617;
    height: 100%;
}

.map-iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;  /* öka vid behov, t.ex. 360–380px */
    border: 0;
    display: block;
}

.contact-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: 18px;
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.contact-row-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
}

.contact-link {
    color: var(--color-primary);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(30, 64, 175, 0.7);
    padding: 1.3rem 1.5rem 2.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Responsivitet */

@media (max-width: 900px) {
    .hero-layout,
    .map-contact-layout,
    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .nav-links {
        display: none;
    }

    .nav {
        padding-inline: 1.1rem;
    }

    .section-inner {
        padding: 1.75rem 1.4rem;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2.05rem;
    }

    section {
        padding: 3rem 0;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
