/* =====================================
   OLOFSSONS VVS AB
   ===================================== */

:root {
    --red: #d71930;
    --red-dark: #b51025;
    --dark: #191b20;
    --dark-light: #252830;
    --white: #ffffff;
    --light: #f5f6f8;
    --text: #292d33;
    --muted: #656b75;
    --border: #dfe2e7;
}

/* GRUNDINSTÄLLNINGAR */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
    background: white;
}

.container {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    line-height: 1.2;
}

p {
    margin-bottom: 25px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

/* =====================================
   HEADER
   ===================================== */

.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.navbar {
    width: 92%;
    max-width: 1500px;
    min-height: 155px;
    margin: 0 auto;
    padding: 15px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LOGOTYP */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 400px;
    max-height: 140px;
    object-fit: contain;
}

/* MENY */

.nav-links {
    display: flex;
    align-items: center;
    gap: 65px;
}

.nav-links a {
    position: relative;
    color: var(--dark);
    font-size: 21px;
    font-weight: 700;
    white-space: nowrap;
    padding: 10px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 3px;
    background: var(--red);
    transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* MOBILMENY */

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    border-radius: 2px;
    background: var(--dark);
}

/* =====================================
   STARTSIDA
   ===================================== */

.hero {
    background: linear-gradient(
        120deg,
        #191b20 0%,
        #242730 100%
    );

    color: white;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 115px 0;
}

.hero-content {
    width: 92%;
    max-width: 1500px;
}

.hero-text {
    max-width: 1000px;
}

.eyebrow {
    color: #ef4051;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 25px;
}

.eyebrow span {
    color: white;
    opacity: 0.7;
    margin: 0 5px;
}

.hero h1 {
    font-size: clamp(45px, 5vw, 76px);
    font-weight: 800;
    line-height: 1.13;
    max-width: 1050px;
    margin-bottom: 35px;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: #ef4051;
}

.hero-description {
    max-width: 850px;
    font-size: 21px;
    line-height: 1.85;
    color: #e0e1e5;
    margin-bottom: 45px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* KNAPPAR */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 17px 34px;
    border-radius: 8px;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--red);
    color: white;
    border: 2px solid var(--red);
}

.button-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    box-shadow: 0 8px 25px rgba(215,25,48,0.25);
}

.button-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.65);
}

.button-outline:hover {
    background: white;
    color: var(--dark);
}

/* =====================================
   OM OSS
   ===================================== */

.about {
    padding: 130px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 100px;
}

.about h2 {
    font-size: clamp(36px, 4vw, 55px);
    margin-bottom: 35px;
}

.about-text > p:not(.eyebrow) {
    font-size: 20px;
    line-height: 1.9;
    color: #4c525a;
}

.about-image {
    position: relative;
}

.about-image img {
    display: block;
    width: 100%;
    max-height: 630px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.15);
}

.image-label {
    position: absolute;
    bottom: 25px;
    left: 25px;

    background: white;
    padding: 13px 20px;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.label-dot {
    display: inline-block;
    background: var(--red);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

/* VÄRDEN */

.values {
    display: grid;
    gap: 22px;
    margin: 40px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.value-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--red);
    background: #fff0f2;
    border-radius: 50%;

    font-size: 25px;
    font-weight: bold;
}

.value-item h3 {
    font-size: 20px;
    margin: 0 0 4px;
}

.value-item p {
    font-size: 17px;
    color: var(--muted);
    margin: 0;
}

.text-link {
    color: var(--red);
    font-size: 19px;
    font-weight: 700;
}

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

/* =====================================
   TJÄNSTEÖVERSIKT
   ===================================== */

.service-strip {
    background: #f0f1f3;
    padding: 45px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.service-icon {
    font-size: 40px;
    color: var(--red);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.service-item p {
    font-size: 16px;
    color: var(--muted);
    margin: 0;
}

/* =====================================
   KONTAKT
   ===================================== */

.contact {
    background: linear-gradient(
        135deg,
        #191b20 0%,
        #2b2e37 100%
    );

    color: white;
    padding: 130px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 95px;
}

.contact-info h2 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.2;
    margin-bottom: 35px;
}

.contact-info h2 span {
    color: #ef4051;
}

.contact-intro {
    color: #d5d7dc;
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 55px;
}

/* KONTAKTUPPGIFTER */

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    min-width: 0;
}

.method-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--red);
    border-radius: 14px;
    color: white;
    font-size: 28px;
}

.contact-method span {
    display: block;
    font-size: 13px;
    color: #adb1ba;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-method strong {
    font-size: 19px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.contact-method:hover strong {
    color: #ff6575;
}

/* =====================================
   FORMULÄR
   ===================================== */

.form-container {
    background: white;
    color: var(--text);
    padding: 45px;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.form-header {
    margin-bottom: 35px;
}

.form-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    background: #fff0f2;
    color: var(--red);
    font-size: 30px;
    margin-bottom: 20px;
}

.form-header h3 {
    font-size: 30px;
    margin-bottom: 12px;
}

.form-header p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-group label span {
    color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;

    border: 1.5px solid var(--border);
    border-radius: 9px;

    background: #f9fafb;
    color: var(--text);
    font-size: 16px;

    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #aab0ba;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    background: white;
    box-shadow: 0 0 0 4px rgba(215,25,48,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #969ba5;
}

.form-group textarea {
    min-height: 155px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 19px;
    font-size: 18px;
}

.privacy-note {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.hidden {
    display: none;
}

/* =====================================
   FOOTER
   ===================================== */

.footer {
    background: #111317;
    padding: 55px 0;
    color: white;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.footer h3 span {
    color: #ef4051;
}

.footer p {
    font-size: 15px;
    color: #aeb2ba;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.footer-links a:hover {
    color: #ef4051;
}

/* =====================================
   SURFPLATTA
   ===================================== */

@media (max-width: 1100px) {

    .navbar {
        min-height: 120px;
    }

    .logo img {
        width: 280px;
        max-height: 110px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links a {
        font-size: 18px;
    }

    .about-grid,
    .contact-grid {
        gap: 50px;
    }

    .form-container {
        padding: 30px;
    }
}

/* =====================================
   MOBIL
   ===================================== */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    html {
        scroll-padding-top: 105px;
    }

    /* HEADER */

    .navbar {
        min-height: 100px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }

    .logo img {
        width: 205px;
        max-height: 85px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 20px;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a::after {
        display: none;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding: 90px 0;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 48px);
        letter-spacing: -0.5px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 1.8;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    /* OM OSS */

    .about {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about h2 {
        font-size: 36px;
    }

    .about-text > p:not(.eyebrow) {
        font-size: 18px;
    }

    .about-image img {
        max-height: 450px;
    }

    .image-label {
        bottom: 15px;
        left: 15px;
        padding: 10px;
        font-size: 12px;
    }

    /* TJÄNSTER */

    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-item {
        justify-content: flex-start;
    }

    /* KONTAKT */

    .contact {
        padding: 85px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-info h2 {
        font-size: 38px;
    }

    .contact-intro {
        font-size: 18px;
    }

    .contact-method strong {
        font-size: 17px;
    }

    /* FORMULÄR */

    .form-container {
        padding: 25px;
        border-radius: 12px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-header h3 {
        font-size: 26px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    /* FOOTER */

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

    .footer-links {
        flex-wrap: wrap;
    }
}

/* MINDRE MOBILER */

@media (max-width: 380px) {
    .logo img {
        width: 170px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .form-container {
        padding: 20px;
    }
}

/* TILLGÄNGLIGHET */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
}

/* =====================================
   UTFÖRDA ARBETEN - FRAMTIDA SEKTION
   ===================================== */

.projects {
    background: #f5f6f8;
    padding: 120px 0;
}

.projects-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.projects-header h2 {
    font-size: clamp(36px, 4vw, 55px);
    margin-bottom: 25px;
}

.projects-header > p:not(.eyebrow) {
    font-size: 19px;
    color: #656b75;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 16px;
    color: #656b75;
    margin: 0;
}

/* Surfplatta */

@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil */

@media (max-width: 768px) {
    .projects {
        padding: 75px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 260px;
    }
}

/* TACKMEDDELANDE */

.success-message {
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px 15px;
    animation: fadeIn 0.4s ease;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e7f6ec;
    color: #198754;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
}

.success-message h2 {
    font-size: clamp(28px, 3vw, 38px);
    color: #191b20;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 19px;
    color: #656b75;
    line-height: 1.8;
    max-width: 400px;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
