/* Technobuild DK ApS - Scandinavian engineering theme */
:root {
    --tb-primary: #1e3a5f;
    --tb-secondary: #3d5a80;
    --tb-accent: #e07a2f;
    --tb-dark: #0d1b2a;
    --tb-light: #f8f9fa;
    --tb-white: #ffffff;
    --tb-gray: #6c757d;
    --tb-cream: #eef1f6;
    --tb-border: #d6dde6;
    --shadow-soft: 0 12px 30px rgba(13, 27, 42, 0.08);
    --shadow-card: 0 20px 40px rgba(13, 27, 42, 0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-heading: "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Source Sans Pro", Arial, sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
    --max-width: 1180px;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--tb-dark);
    background: var(--tb-light);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

p {
    margin: 0 0 1rem 0;
    color: #1f2b3a;
}

h1, h2, h3, h4, h5 {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--tb-dark);
}

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

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-header p {
    max-width: 640px;
    margin: 0.5rem auto 0;
    color: var(--tb-gray);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tb-accent);
    font-weight: 700;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(224, 122, 47, 0.12);
    color: var(--tb-dark);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.grid-2 {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
    display: grid;
    gap: 1.8rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.shadowed {
    box-shadow: var(--shadow-card);
}

.highlight {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(224, 122, 47, 0.08));
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.list-check li {
    position: relative;
    padding-left: 1.5rem;
    color: #1f2b3a;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tb-accent);
    font-weight: 800;
}

.badge-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    background: var(--tb-cream);
    color: var(--tb-dark);
    font-weight: 600;
    border: 1px solid var(--tb-border);
}

/* Header */
.tb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--tb-dark);
    color: var(--tb-white);
    font-size: 0.95rem;
}

.bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
}

.contact-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.contact-bar a {
    color: var(--tb-white);
    opacity: 0.92;
}

.divider {
    color: rgba(255, 255, 255, 0.45);
}

.nav-shell {
    background: var(--tb-white);
    box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--tb-primary);
}

.brand-suffix {
    color: var(--tb-accent);
    font-size: 0.95rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 700;
    color: var(--tb-dark);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--tb-accent);
}

.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
    min-width: 240px;
    flex-direction: column;
    gap: 0.25rem;
}

.has-dropdown:hover .dropdown {
    display: flex;
}

.dropdown a {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    color: var(--tb-dark);
}

.dropdown a:hover {
    background: var(--tb-cream);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
}

.lang-switch a {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    border: 1px solid transparent;
    color: inherit;
}

.lang-switch a.active {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: var(--tb-white);
}

.lang-switch .divider {
    color: rgba(0, 0, 0, 0.3);
}

/* Hero */
.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    color: var(--tb-white);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(13, 27, 42, 0.8) 0%, rgba(13, 27, 42, 0.55) 50%, rgba(13, 27, 42, 0.3) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
    padding: 2rem 0;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: #e5e9ef;
}

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

.hero-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-tags .badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--tb-white);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--tb-primary);
    color: var(--tb-white);
}

.btn-primary:hover {
    background: var(--tb-dark);
}

.btn-secondary {
    background: var(--tb-white);
    color: var(--tb-primary);
    border-color: var(--tb-white);
}

.btn-outline {
    background: transparent;
    color: var(--tb-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-dark {
    background: transparent;
    color: var(--tb-primary);
    border-color: var(--tb-border);
}

.btn-orange {
    background: var(--tb-accent);
    color: var(--tb-white);
    border-color: var(--tb-accent);
}

.btn-orange:hover {
    background: #c9641d;
    border-color: #c9641d;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: var(--tb-primary);
}

/* Value / Service cards */
.values-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.value-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.value-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.08);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: var(--tb-primary);
    margin-bottom: 0.8rem;
}

.service-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.service-card .card-body p {
    color: var(--tb-gray);
}

.service-card .card-body a {
    margin-top: auto;
    color: var(--tb-primary);
    font-weight: 700;
}

.project-feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: center;
    background: var(--tb-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--tb-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.project-feature img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.project-body {
    padding: 1.75rem;
}

.project-tags {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.project-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

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

.project-card .card-body {
    padding: 1.25rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--tb-gray);
    font-weight: 600;
    font-size: 0.95rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.stat {
    background: var(--tb-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--tb-border);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-soft);
}

.stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--tb-primary);
}

.timeline {
    border-left: 2px solid var(--tb-border);
    padding-left: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--tb-primary);
    background: var(--tb-white);
}

.timeline-item .year {
    font-weight: 800;
    color: var(--tb-primary);
}

.feature-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.media-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--tb-border);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.news-card {
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    background: var(--tb-white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.news-card img {
    height: 170px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 1.25rem;
}

.news-meta {
    color: var(--tb-gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.contact-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

form {
    display: grid;
    gap: 1rem;
}

input, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--tb-border);
    background: var(--tb-white);
    font-family: var(--font-body);
    font-size: 1rem;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-card {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.cta-section {
    padding: 70px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--tb-white);
}

.cta-section p {
    color: #e2e6ec;
}

.footer {
    background: var(--tb-dark);
    color: var(--tb-white);
    padding: 70px 0 40px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.footer h4 {
    margin-bottom: 0.9rem;
}

.footer p,
.footer a {
    color: #d7dce3;
}

.footer a:hover {
    color: var(--tb-accent);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9aa4b3;
    font-size: 0.95rem;
}

.legal {
    background: var(--tb-white);
    border: 1px solid var(--tb-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.legal h3 {
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid var(--tb-border);
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }
}

@media (max-width: 840px) {
    .bar-inner,
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu {
        flex-wrap: wrap;
    }

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 640px) {
    section {
        padding: 60px 0;
    }

    .top-bar {
        text-align: left;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .service-card img,
    .project-card img,
    .news-card img {
        height: 200px;
    }
}
