﻿/* =============================================
   LANGHARD & CO – Global Styles
   ============================================= */

html, body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: #006bb7;
}

/* ---- Hero Sections ---- */

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
}

/* — Video hero — */

.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 130%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.65),
        rgba(22, 33, 62, 0.55)
    );
    z-index: 1;
}

.hero-overlay-green {
    background: linear-gradient(
        135deg,
        rgba(26, 58, 26, 0.6),
        rgba(45, 80, 22, 0.5)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 1.5rem 4rem;
    margin-top: -150px;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
}

/* — Image heroes (section pages) — parallax */

.hero-image {
    position: relative;
    overflow: hidden;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobile: fixed attachment is unreliable on touch devices */
@media (hover: none) {
    .hero-image {
        background-attachment: scroll;
    }

    .page-hero.hero-kontakt-img {
        background-position: center top;
    }
}

.page-hero.hero-it-img    { background-image: url('/images/langhardit.jpg'); }
.page-hero.hero-farm-img  { background-image: url('/images/langhardlantbruk.jpg'); }
.page-hero.hero-omoss-img { background-image: url('/images/omoss1.jpg'); }
.page-hero.hero-kontakt-img { background-image: url('/images/kontakt.jpeg'); background-position: center calc(50% - 200px); }

.hero-image h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.hero-image .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero {
    background-image: linear-gradient(135deg, #1a1a2e, #16213e);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.page-hero .lead {
    opacity: 0.8;
}

.page-hero.hero-image {
    padding: 0;
}

.page-hero.hero-it {
    background: linear-gradient(135deg, #0b1a2e, #162447, #1a1a2e);
}

.page-hero.hero-farm {
    background: linear-gradient(135deg, #1a3a1a, #2d5016, #1a3a1a);
}

/* ---- Content Sections ---- */

.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1a1a2e;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.trust-line {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
}

/* ---- Profile Cards (Om oss) ---- */

.profile-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2.5rem 0;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid rgba(26, 26, 46, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.profile-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
}

.profile-text p {
    margin: 0 0 0.75rem;
    line-height: 1.7;
    color: #444;
}

.vision-block {
    margin: 3rem 0;
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-left: 4px solid #1a1a2e;
    border-radius: 0 8px 8px 0;
}

.vision-block h2 {
    margin-top: 0;
}

.vision-block p {
    line-height: 1.7;
    color: #444;
}

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .vision-block {
        padding: 1.5rem;
    }
}

/* ---- Tagline Section (Home) ---- */

.tagline-section {
    padding: 3rem 0;
    background: #fff;
    text-align: center;
}

.tagline-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.tagline-sub {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
}

/* ---- Services Section (Home) ---- */

.services-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card-accent {
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.accent-it {
    background: linear-gradient(90deg, #00b4d8, #0077b6);
}

.accent-farm {
    background: linear-gradient(90deg, #588157, #a3b18a);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #1a1a2e;
}

.service-card p {
    color: #555;
    line-height: 1.7;
}

.btn-card {
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.btn-it {
    color: #0077b6;
}

.btn-it:hover {
    color: #005f8a;
}

.btn-farm {
    color: #588157;
}

.btn-farm:hover {
    color: #3d5a3c;
}

.brand-link {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #666;
}

.brand-link a {
    color: #006bb7;
    text-decoration: none;
    font-weight: 600;
}

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

/* ---- Farm Highlights ---- */

.farm-highlights {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e0e0e0;
}

.farm-highlights h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 1.5rem;
}

.farm-highlights h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #3d5a3c;
    margin: 0 0 0.5rem;
}

.farm-highlights p {
    line-height: 1.7;
    color: #444;
}

/* ---- Values Section ---- */

.values-section {
    padding: 4rem 0;
}

.values-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 1rem;
}

blockquote {
    border-left: 4px solid #1a1a2e;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    color: #444;
    font-style: italic;
    line-height: 1.7;
}

/* ---- Feature List ---- */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: #0077b6;
    font-weight: 600;
}

/* ---- CTA Section ---- */

.cta-section {
    padding: 3rem 0;
    text-align: center;
}

.cta-it {
    background: linear-gradient(135deg, #0b1a2e, #162447);
    color: #fff;
}

.cta-farm {
    background: linear-gradient(135deg, #1a3a1a, #2d5016);
    color: #fff;
}

.cta-section h2 {
    color: inherit;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.cta-section p {
    opacity: 0.85;
    margin: 0 0 1.5rem;
}

.btn-cta {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.25);
}

.text-center {
    text-align: center;
}

/* ---- Contact ---- */

.contact-info h3 {
    margin: 1.5rem 0 0.5rem;
    color: #1a1a2e;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #444;
}

.form-group .form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.btn-submit {
    background: #1a1a2e;
    color: #fff;
    border: none;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #2a2a4e;
}

.form-trust-line {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .content-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section,
    .page-hero {
        padding: 3rem 0 2.5rem;
    }
}

/* ---- Template utilities ---- */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(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xMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}