/* Root variables for colours and spacing */
:root {
    --bg-dark: #0f1014;
    --bg-section: #16171d;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    --accent: #dca600; /* warm amber inspired by heavy machinery */
    --text-light: #f3f3f3;
    --text-muted: #b5b5b5;
    --border-radius: 4px;
    --max-width: 1200px;
}

/* Reset some defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(15, 16, 20, 0.95);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}
.logo a {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-light);
}
.logo span {
    color: var(--accent);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    margin: 0.3rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: var(--border-radius);
    text-align: center;
    transition: background 0.2s, color 0.2s;
}
.primary-btn {
    background-color: var(--accent);
    color: #1a1a1a;
}
.primary-btn:hover {
    background-color: #b88d00;
    color: #000;
}
.secondary-btn {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}
.secondary-btn:hover {
    background-color: var(--accent);
    color: #1a1a1a;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    min-height: 70vh;
    display: flex;
    align-items: center;
}
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1rem;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.hero h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    color: var(--accent);
}
.hero p {
    margin-bottom: 1.5rem;
}
.hero-cta {
    margin-bottom: 1rem;
}
.trust-line {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
    background-color: var(--bg-section);
}
.section:nth-of-type(odd) {
    background-color: var(--bg-dark);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}
.section p {
    margin-bottom: 1rem;
    max-width: 800px;
}
.highlight {
    font-weight: bold;
    color: var(--accent);
    margin-top: 1rem;
}

/* Feilkode Section */
.feilkode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.feilkode-text {
    flex: 1 1 50%;
    min-width: 280px;
}
.feilkode-image {
    flex: 1 1 40%;
    text-align: center;
}
.feilkode-image img {
    width: 100%;
    border-radius: var(--border-radius);
}
.check-list {
    list-style: none;
    margin-top: 1rem;
}
.check-list li {
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-light);
}
.check-list li::before {
    content: '\2714'; /* check mark */
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.service-card {
    background-color: #1c1d24;
    padding: 1.5rem;
    border: 1px solid rgba(220, 166, 0, 0.15);
    border-radius: var(--border-radius);
    transition: transform 0.2s, border-color 0.2s;
}
.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--accent);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

/* Machine Types */
.machines {
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}
.machines .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
}
.machines-content {
    position: relative;
    z-index: 2;
}
.machine-list {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
    max-width: 600px;
    margin: 1rem 0 2rem;
}
.machine-list li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1rem;
}
.machine-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.machine-images {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.machine-card {
    flex: 1 1 260px;
    min-width: 0;
}
.machine-card img {
    width: 100%;
    border-radius: var(--border-radius);
    max-height: 200px;
    object-fit: cover;
}

/* Downtime Section */
.help-list {
    list-style: none;
    padding-left: 1rem;
    margin-top: 1rem;
}
.help-list li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1rem;
}
.help-list li::before {
    content: '\25B6'; /* small triangle */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.6rem;
    top: 0.4rem;
}

/* Why Section */
.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}
.why-image, .why-text {
    flex: 1 1 45%;
    min-width: 280px;
}
.why-image img {
    width: 100%;
    border-radius: var(--border-radius);
}
.why-feature {
    margin-bottom: 1.5rem;
}
.why-feature h3 {
    margin-bottom: 0.3rem;
    color: var(--accent);
}

/* Situations Section */
.situations-list {
    list-style: none;
    margin-top: 1rem;
}
.situations-list li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}
.situations-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Before Section */
.checklist {
    list-style: none;
    margin-top: 1rem;
}
.checklist li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}
.checklist li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Area Section */
.area-list {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
    margin-top: 1rem;
}
.area-list li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}
.area-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact Section */
.contact-details {
    margin: 1rem 0;
    overflow-wrap: anywhere;
}
.contact-buttons .btn {
    margin-top: 0.5rem;
}
.contact-list {
    list-style: none;
    margin: 1rem 0;
}
.contact-list li {
    margin-bottom: 0.4rem;
    padding-left: 1rem;
    position: relative;
}
.contact-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: #0c0d11;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.site-footer p {
    margin-bottom: 0.5rem;
}
.footer-note {
    font-size: 0.8rem;
    color: #7d7d7d;
}

/* Sticky Call Button */
.call-button {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--accent);
    color: #1a1a1a;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 200;
    display: none;
}
.call-button:hover {
    background-color: #b88d00;
    color: #000;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem 1rem;
        justify-content: center;
    }
    .main-nav a {
        display: block;
        font-size: 0.85rem;
        letter-spacing: 0.02em;
    }
    .main-nav {
        width: 100%;
    }
    .hero {
        min-height: auto;
    }
    .hero-content {
        max-width: 100%;
        padding: 3rem 1rem;
    }
    .hero h1,
    .hero h2,
    .hero p {
        overflow-wrap: anywhere;
    }
    .hero-cta,
    .contact-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .btn {
        width: min(100%, 320px);
        margin: 0;
    }
    .machine-list {
        columns: 1;
    }
    .area-list {
        columns: 1;
    }
    .why-grid {
        flex-direction: column;
    }
    .feilkode-grid {
        flex-direction: column;
    }
    .call-button {
        display: block;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 3rem 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .main-nav {
        display: none;
    }
    .site-header {
        justify-content: center;
    }
}
