/* ============================================
   Fiberlinq - Lightweight Static Site
   ============================================ */

/* Fonts */
@import url('../fonts/fonts.css');

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #54595F;
    background: #fff;
}

a {
    text-decoration: none;
    color: #0274be;
    transition: color 0.2s;
}

a:hover {
    color: #191970;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', sans-serif;
    color: #124272;
    line-height: 1.2;
}

h1 { font-weight: 600; font-size: 52px; }
h2 { font-weight: 700; font-size: 36px; }
h3 { font-weight: 600; font-size: 20px; }
h5 { font-weight: 400; font-size: 16px; }

p { margin-bottom: 1em; }

ul { list-style: none; }

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

/* ============================================
   Topbar
   ============================================ */
.topbar {
    background: #EC652B;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 6px 0;
}

.topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

.topbar a {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar a:hover {
    opacity: 0.85;
    color: #fff;
}

.topbar svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: #124272;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 50px;
    width: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #EC652B;
}

/* ============================================
   Hero Section (slideshow)
   ============================================ */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #fff;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(91deg, rgba(154,162,209,0.32), rgba(247,218,186,0.32));
    z-index: 1;
}

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

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    color: rgba(255,255,255,0.9);
}

.hero .btn {
    margin-top: 10px;
}

/* ============================================
   Postcode Check
   ============================================ */
.postcode-section {
    background: #124272;
    padding: 60px 0;
}

.postcode-section h3 {
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-size: 24px;
    color: #fff;
}

.postcode-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.postcode-form .form-fields {
    display: flex;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.postcode-form .field-group {
    flex: 1 1 0;
    min-width: 120px;
}

.postcode-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.postcode-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.postcode-form input:focus {
    outline: none;
    border-color: #FF6B18;
    box-shadow: 0 0 0 2px rgba(255, 107, 24, 0.1);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    background: #FF6B18;
    color: #fff;
    padding: 13px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-align: center;
}

.btn:hover {
    background: #124272;
    color: #fff;
}

.btn-check {
    border-radius: 4px;
    padding: 12px 30px;
    font-weight: 700;
    flex-shrink: 0;
    height: fit-content;
}

/* ============================================
   Feature Bar (gradient strip)
   ============================================ */
.feature-bar {
    background: linear-gradient(199deg, #FF6B18, #2A2273 78%);
    padding: 40px 0;
    color: #fff;
}

.feature-bar .container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item svg {
    width: 36px;
    height: 36px;
    fill: #fff;
}

.feature-item h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 80px 0;
    background: #F5F5F5;
}

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

.services .section-header h2 {
    margin-bottom: 10px;
}

.services .section-header p {
    color: #7A7A7A;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #AFAFAF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 8px -4px rgba(0,0,0,0.5);
    transition: border 0.7s;
    text-align: center;
}

.service-card:hover {
    border: 3px solid #FF6B18;
    padding: 28px; /* compensate border growth */
}

.service-card svg {
    width: 40px;
    height: 40px;
    fill: #FF6B18;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: #7A7A7A;
    font-size: 14px;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 80px 0;
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about h2 {
    margin-bottom: 20px;
}

.about p {
    color: #7A7A7A;
}

.about-image img {
    border-radius: 10px;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 80px 0;
    background: #F5F5F5;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
    padding: 30px;
}

.contact-card svg {
    width: 40px;
    height: 40px;
    fill: #FF6B18;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card p {
    color: #7A7A7A;
}

.contact-card a {
    color: #124272;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 8px -4px rgba(0,0,0,0.5);
}

.contact-form h3 {
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B18;
    box-shadow: 0 0 0 2px rgba(255,107,24,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq {
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 15px;
}

.faq-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #7A7A7A;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B18;
    display: inline-block;
}

.faq-item {
    border-bottom: 1px solid #d5d8dc;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 40px 18px 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #124272;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #FF6B18;
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 0 0 0;
}

.faq-answer-inner {
    padding: 0 0 18px 0;
    color: #7A7A7A;
    line-height: 1.7;
}

/* ============================================
   Info Section (dark blue)
   ============================================ */
.info-dark {
    background: #124272;
    color: #fff;
    padding: 60px 0;
}

.info-dark h2 {
    color: #fff;
    margin-bottom: 15px;
}

.info-dark p, .info-dark a {
    color: rgba(255,255,255,0.85);
}

.info-dark a:hover {
    color: #FF6B18;
}

/* ============================================
   Page Header (for subpages)
   ============================================ */
.page-header {
    background: #124272;
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 66, 114, 0.6);
}

.page-header h1 {
    color: #fff;
    font-size: 42px;
    position: relative;
    z-index: 1;
}

.page-header--contact {
    background-image: url('../img/header-contact.jpg');
}

.page-header--faq {
    background-image: url('../img/header-faq.jpg');
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #124272;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer .footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer a:hover {
    color: #FF6B18;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.footer-socials a:hover {
    background: #FF6B18;
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

/* ============================================
   Loading Overlay (postcode check)
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-popup {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 90%;
    width: 400px;
}

.loading-popup p {
    margin: 20px 0 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B18;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Qustodio page
   ============================================ */
.content-page {
    padding: 60px 0;
}

.content-page .container {
    max-width: 800px;
}

.content-page p {
    color: #54595F;
    line-height: 1.8;
}

/* ============================================
   Openingstijden bar
   ============================================ */
.hours-bar {
    background: #124272;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.hours-bar p {
    font-size: 17px;
    margin-bottom: 5px;
}

.hours-bar a {
    color: #fff;
}

.hours-bar a:hover {
    opacity: 0.85;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 40px; }
    h2 { font-size: 30px; }

    .feature-bar .container {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about .container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    .topbar .container {
        justify-content: center;
        gap: 15px;
        font-size: 12px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #124272;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 20px;
    }

    .header {
        position: sticky;
    }

    .header .container {
        position: relative;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 50px 0;
    }

    /* Postcode form */
    .postcode-form {
        flex-direction: column;
    }

    .postcode-form .form-fields {
        flex-direction: column;
        width: 100%;
    }

    .postcode-form .field-group {
        width: 100%;
    }

    .postcode-form .btn-check {
        width: 100%;
    }

    /* Feature bar */
    .feature-bar .container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
