/* =============================================
   Helberg Bygg og Maling AS – site.css
   ============================================= */

/* --- Brand colour tokens --- */
:root {
    --brand-dark:   #555555;
    --brand-accent: #8c352c;
    --brand-light:  #f5f5f5;
    --brand-text:   #111111;
}

/* --- Bootstrap overrides & utilities --- */
.bg-helberg {
    background-color: var(--brand-dark) !important;
}

.text-accent {
    color: var(--brand-accent) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.btn-accent {
    background-color: var(--brand-accent);
    color: #ffffff;
    font-weight: 600;
    border: none;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: color-mix(in srgb, var(--brand-accent) 80%, black);
    color: #ffffff;
}

/* --- Typography --- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    color: var(--brand-text);
    background-color: #ffffff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --- Navbar --- */
.navbar-logo {
    height: 80px;
    width: auto;
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 56px;
    }
}

.footer-logo {
    height: 60px;
    width: auto;
}

.mesterbrev-logo {
    height: 70px;
    width: auto;
}

.mesterbrev-logo-footer {
    height: 90px;
    width: auto;
}

.navbar .nav-link {
    font-weight: 500;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.navbar .nav-link:hover {
    color: var(--brand-accent) !important;
}

/* --- Footer --- */
.footer-section {
    background-color: #f0f0f0;
    border-top: 3px solid var(--brand-accent);
}

.footer-link {
    color: #444;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

.footer-miljo-img {
    height: 120px;
    width: auto;
    display: block;
}

.partner-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* --- Focus ring --- */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(140, 53, 44, 0.4);
}

/* --- Hero --- */
.hero-index {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/images/hero/dewalt_mob.jpg') center/cover no-repeat;
}

@media (min-width: 768px) {
    .hero-index {
        background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/images/hero/dewalt.jpg') center/cover no-repeat;
    }
}

/* --- Section spacing --- */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-light {
    background-color: var(--brand-light);
}

/* --- Utilities --- */
.service-card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.service-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.border-accent {
    border-color: var(--brand-accent) !important;
}
