/* ==========================================================
   cementstabilisering.se — Stylesheet
   Hjerpes Maskincentra AB
   Brand: Yellow (#f5c518), Dark (#1a1a1a), Charcoal (#2d2d2d)
   ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --yellow: #f5c518;
    --yellow-dark: #d4a90e;
    --yellow-light: #ffd94a;
    --dark: #1a1a1a;
    --charcoal: #2d2d2d;
    --gray-900: #1f1f1f;
    --gray-800: #333333;
    --gray-700: #444444;
    --gray-600: #666666;
    --gray-400: #999999;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font-main: 'neue-haas-grotesk-display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'neue-haas-grotesk-text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--yellow); }
h1, h2, h3, h4 { font-family: var(--font-main); font-weight: 700; line-height: 1.2; color: var(--dark); }

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

/* --- Topbar --- */
.topbar {
    background: var(--dark);
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}
.topbar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar a, .topbar-link { color: var(--yellow); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow-light); }
.topbar-divider { color: var(--gray-600); }
.topbar-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gray-200); }

/* --- Header / Nav --- */
.header {
    background: var(--charcoal);
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-link {
    color: var(--gray-200);
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--yellow); background: rgba(245,197,24,0.08); }
.nav-cta {
    background: var(--yellow);
    color: var(--dark) !important;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 8px;
    transition: all var(--transition);
}
.nav-cta:hover { background: var(--yellow-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,197,24,0.3); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--charcoal);
    min-width: 220px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 8px 0;
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-200);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.dropdown-menu a:hover { background: rgba(245,197,24,0.1); color: var(--yellow); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-200);
    margin: 5px 0;
    transition: all var(--transition);
    border-radius: 2px;
}
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('/assets/img/cementstabilisering-oversikt.webp') center/cover no-repeat;
    opacity: 0.35;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 24px;
    max-width: 800px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-highlight { color: var(--yellow); }
.hero-lead {
    font-size: 1.15rem;
    color: var(--gray-200);
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--gray-400);
}
.hero-trust-item { display: inline-flex; align-items: center; gap: 6px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: var(--yellow);
    color: var(--dark);
    border-color: var(--yellow);
}
.btn-primary:hover {
    background: var(--yellow-light);
    border-color: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,197,24,0.35);
    color: var(--dark);
}
.btn-secondary {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}
.btn-secondary:hover {
    background: var(--gray-800);
    color: var(--yellow);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--gray-600);
}
.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--gray-100); }
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* --- Intro Grid --- */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-text h2 { font-size: 1.8rem; margin-bottom: 20px; }
.intro-text p { margin-bottom: 16px; color: var(--gray-700); }
.intro-text .btn { margin-top: 8px; }
.intro-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.benefit-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.benefit-icon { margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.benefit-card p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* --- Process --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.process-step {
    text-align: center;
    position: relative;
}
.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--dark);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.process-step h3 { font-size: 1rem; margin-bottom: 10px; }
.process-step p { font-size: 0.9rem; color: var(--gray-600); }

/* --- Full-width Image Section --- */
.section-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}
.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,26,26,0.65);
    padding: 24px;
}
.image-overlay-text p {
    color: var(--white);
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
    max-width: 700px;
    font-family: var(--font-main);
}

/* --- Areas Grid --- */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}
.area-card {
    background: var(--white);
    padding: 24px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}
.area-card:hover {
    border-color: var(--yellow);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.area-card h3 { font-size: 0.95rem; color: var(--dark); margin-bottom: 4px; }
.area-region { font-size: 0.8rem; color: var(--gray-400); }

/* --- CTA Section --- */
.section-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
    padding: 80px 0;
}
.cta-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.cta-text h2 { color: var(--white); font-size: 2rem; margin-bottom: 16px; }
.cta-text p { color: var(--gray-400); margin-bottom: 24px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-contact-card {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--gray-700);
}
.cta-contact-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--yellow);
}
.cta-contact-card h3 { color: var(--white); margin-bottom: 4px; }
.contact-title { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 12px; }
.cta-contact-card a { color: var(--yellow); }
.cta-contact-card p { margin-bottom: 6px; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 48px auto 0; }
.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}
.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--dark);
    transition: color var(--transition);
}
.faq-item summary:hover { color: var(--yellow-dark); }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--yellow-dark);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 0 20px; color: var(--gray-600); line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }

/* --- Footer --- */
.footer { background: var(--dark); color: var(--gray-400); padding: 60px 0 0; }
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
    gap: 40px;
}
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 8px; }
.footer-address a { color: var(--yellow); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--gray-400); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--yellow); }

.social-links { display: flex; gap: 16px; margin: 20px 0 16px; }
.social-links a { opacity: 0.8; transition: opacity var(--transition), transform var(--transition); }
.social-links a:hover { opacity: 1; transform: translateY(-2px); }

/* Vecka Widget */
.week-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.8rem;
    padding: 6px 12px;
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
    margin-top: 4px;
}
.week-widget:hover { border-color: var(--yellow); color: var(--yellow); }

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-200);
    font-size: 0.85rem;
    margin-bottom: 16px;
    transition: color var(--transition);
}
.trust-badge:hover { color: var(--yellow); }
.aajoda-badge { display: inline-block; margin-top: 8px; transition: opacity var(--transition); }
.aajoda-badge:hover { opacity: 0.85; }
.aajoda-badge img { border-radius: 50%; }
.footer-references { font-size: 0.85rem; margin-bottom: 8px; }
.footer-references strong { color: var(--gray-200); }
.footer-orgnr { font-size: 0.75rem; color: var(--gray-600); margin-top: 12px; }

/* Copyright */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 40px;
    padding: 20px 0;
}
.copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-600);
}
.copyright a { color: var(--gray-600); }
.copyright a:hover { color: var(--yellow); }

/* --- Page Templates --- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 100%);
    padding: 120px 0 60px;
    text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: var(--gray-400); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.content-section { padding: 60px 0; }
.content-section h2 { margin-bottom: 16px; }
.content-section p { margin-bottom: 16px; color: var(--gray-700); }
.content-section ul { margin-bottom: 16px; padding-left: 24px; }
.content-section li { margin-bottom: 8px; color: var(--gray-700); }

/* City page highlight */
.city-highlight {
    background: var(--gray-100);
    border-left: 4px solid var(--yellow);
    padding: 24px 32px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 32px 0;
}
.city-highlight p { margin: 0; color: var(--gray-700); }

.city-other-areas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

/* Contact form placeholder */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 32px;
}
.contact-card {
    background: var(--gray-100);
    padding: 32px;
    border-radius: var(--radius-lg);
}
.contact-card h3 { margin-bottom: 16px; }
.contact-card p { margin-bottom: 8px; }
.contact-card a { color: var(--yellow-dark); font-weight: 600; }

/* Sitemap page */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.sitemap-section h3 { margin-bottom: 12px; font-size: 1rem; }
.sitemap-section a { display: block; color: var(--gray-700); padding: 4px 0; font-size: 0.9rem; }
.sitemap-section a:hover { color: var(--yellow-dark); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-grid { grid-template-columns: 1fr; text-align: center; }
    .cta-actions { justify-content: center; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
    .city-other-areas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .topbar-content { font-size: 0.75rem; gap: 8px; }
    .nav { height: 64px; }
    .nav-logo img { height: 36px; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 98;
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }
    .nav-link { width: 100%; padding: 12px 16px; font-size: 1rem; }
    .nav-cta { margin-left: 0; margin-top: 16px; text-align: center; width: 100%; justify-content: center; }
    .hamburger { display: block; z-index: 99; }
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 16px;
        background: transparent;
        min-width: 0;
    }
    .nav-dropdown.open .dropdown-menu { display: block; }
    
    .hero { min-height: 70vh; }
    .hero h1 { font-size: 1.8rem; }
    .hero-lead { font-size: 1rem; padding: 0 8px; }
    .hero-content { padding: 60px 16px; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.5rem; }
    .benefits-grid, .process-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .copyright { flex-direction: column; text-align: center; gap: 4px; }
    .section-image { height: 250px; }
    .image-overlay-text p { font-size: 1rem; }
    .sitemap-grid { grid-template-columns: 1fr; }
    .city-other-areas { grid-template-columns: 1fr; }
    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 1.6rem; }
    .intro-grid { gap: 24px; }
    .contact-info-grid { gap: 24px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .areas-grid { grid-template-columns: 1fr; }
}
