/* === SOILTECH ASA — Corporate Style === */
/* Colors: primary #004093, hover #005a87, accent #00843e, footer #1a2332 */

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: #004093; text-decoration: none; transition: color .2s; }
a:hover { color: #005a87; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header {
    background: #fff;
    border-bottom: 2px solid #004093;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-logo img {
    height: 44px;
    width: auto;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #004093;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.site-nav a:hover,
.site-nav a.active {
    color: #005a87;
    border-bottom-color: #00843e;
}
.site-nav .nav-linkedin {
    display: flex;
    align-items: center;
    border-bottom: none;
}
.site-nav .nav-linkedin svg {
    width: 22px;
    height: 22px;
    fill: #004093;
    transition: fill .2s;
}
.site-nav .nav-linkedin:hover svg { fill: #005a87; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #004093;
    margin: 5px 0;
    border-radius: 2px;
    transition: .3s;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/assets/img/hero.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,64,147,.82) 0%, rgba(0,90,135,.72) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 60px 20px;
    color: #fff;
}
.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero-content p {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 28px;
    opacity: .92;
}
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #00843e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.btn-primary:hover {
    background: #006d33;
    color: #fff;
    transform: translateY(-1px);
}
.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    color: #004093;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #004093;
    border-radius: 4px;
    cursor: pointer;
    transition: .2s;
}
.btn-outline:hover {
    background: #004093;
    color: #fff;
}

/* === SECTIONS === */
.section { padding: 70px 0; }
.section-alt { background: #f5f7fa; }
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #004093;
    text-align: center;
    margin-bottom: 14px;
}
.section-subtitle {
    font-size: 17px;
    color: #666;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 42px;
}

/* === SERVICE CARDS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.07);
    transition: transform .25s, box-shadow .25s;
    border: 1px solid #eef1f5;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,64,147,.12);
}
.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card-body {
    padding: 24px;
}
.service-card-icon {
    width: 48px;
    height: 48px;
    background: #004093;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.service-card-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}
.service-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #004093;
    margin-bottom: 10px;
}
.service-card-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
}

/* === ABOUT === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-text h2 {
    font-size: 30px;
    font-weight: 800;
    color: #004093;
    margin-bottom: 16px;
}
.about-text p {
    font-size: 15px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.65;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}
.about-stat {
    text-align: center;
    padding: 18px;
    background: #f0f5ff;
    border-radius: 8px;
}
.about-stat strong {
    display: block;
    font-size: 28px;
    color: #004093;
    font-weight: 800;
}
.about-stat span {
    font-size: 13px;
    color: #666;
}

/* === LEAD FORM === */
.form-section {
    background: linear-gradient(135deg, #004093 0%, #005a87 100%);
    padding: 60px 0;
    color: #fff;
}
.form-section .section-title { color: #fff; }
.form-section .section-subtitle { color: rgba(255,255,255,.8); }
.lead-form {
    max-width: 560px;
    margin: 0 auto;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 36px;
    border: 1px solid rgba(255,255,255,.2);
}
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: rgba(255,255,255,.9);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 6px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,.5);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00843e;
    background: rgba(255,255,255,.18);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit {
    width: 100%;
    padding: 14px;
    background: #00843e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
    text-transform: uppercase;
}
.form-submit:hover { background: #006d33; }
.form-note {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.6);
    margin-top: 12px;
}
.form-note a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* === CONTACT === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.contact-item {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.contact-icon {
    width: 56px;
    height: 56px;
    background: #f0f5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.contact-icon svg {
    width: 26px;
    height: 26px;
    fill: #004093;
}
.contact-item h3 {
    font-size: 18px;
    color: #004093;
    font-weight: 700;
    margin-bottom: 8px;
}
.contact-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* === FOOTER === */
.site-footer {
    background: #1a2332;
    color: #ccc;
    padding: 52px 0 0;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-col p {
    line-height: 1.65;
    margin-bottom: 8px;
}
.footer-col a {
    color: #9cb8d8;
    transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #9cb8d8;
    font-size: 14px;
}
.footer-links a:hover { color: #fff; }
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.footer-social a:hover { background: #004093; }
.footer-social svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #888;
}

/* EU Compliance */
.eu-compliance {
    background: #151d28;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}
.eu-compliance a { color: #9cb8d8; }

/* === PAGE CONTENT === */
.page-hero {
    background: linear-gradient(135deg, #004093 0%, #005a87 100%);
    padding: 48px 0;
    text-align: center;
    color: #fff;
}
.page-hero h1 {
    font-size: 34px;
    font-weight: 800;
}
.page-hero p {
    font-size: 16px;
    opacity: .85;
    margin-top: 8px;
}
.page-content {
    padding: 48px 0;
    min-height: 60vh;
}
.page-content h2 {
    font-size: 24px;
    color: #004093;
    font-weight: 700;
    margin: 28px 0 14px;
}
.page-content h3 {
    font-size: 20px;
    color: #004093;
    font-weight: 600;
    margin: 22px 0 10px;
}
.page-content p {
    margin-bottom: 14px;
    color: #555;
    line-height: 1.65;
}
.page-content ul,
.page-content ol {
    margin: 0 0 16px 24px;
    color: #555;
}
.page-content li { margin-bottom: 6px; }
.page-content a { color: #004093; text-decoration: underline; }
.page-content a:hover { color: #005a87; }

/* FAQ */
.faq-item {
    border: 1px solid #e8ecf2;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
    color: #004093;
    transition: background .2s;
}
.faq-question:hover { background: #f0f4fa; }
.faq-question svg {
    width: 20px;
    height: 20px;
    fill: #004093;
    transition: transform .25s;
}
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s, padding .3s;
}
.faq-answer.open {
    padding: 18px 22px;
    max-height: 600px;
}

/* Thank-you page */
.thankyou-box {
    text-align: center;
    max-width: 560px;
    margin: 40px auto;
    padding: 48px;
    background: #f8fafc;
    border-radius: 12px;
}
.thankyou-icon {
    width: 80px;
    height: 80px;
    background: #00843e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.thankyou-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}
.thankyou-box h1 {
    font-size: 30px;
    color: #004093;
    margin-bottom: 12px;
}
.thankyou-box p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    padding: 36px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: modalIn .3s ease;
}
@keyframes modalIn { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #999;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-box h3 {
    font-size: 22px;
    color: #004093;
    font-weight: 700;
    margin-bottom: 18px;
}
.modal-form .form-group { margin-bottom: 14px; }
.modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d7e2;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #004093;
}
.modal-form .form-submit {
    background: #004093;
    width: 100%;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.modal-form .form-submit:hover { background: #005a87; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .site-header .container { height: 60px; }
    .site-nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 20px; border-bottom: 2px solid #004093; box-shadow: 0 8px 20px rgba(0,0,0,.1); gap: 16px; }
    .site-nav.open { display: flex; }
    .menu-toggle { display: block; }
    .hero { min-height: 400px; }
    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-title { font-size: 26px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
    .lead-form { padding: 24px 18px; }
    .about-stats { grid-template-columns: 1fr; }
}
