/*
Theme Name: Riool- & Bestrating Pro (RRS Clone)
*/

:root {
    /* Palette Mapped from RRS Structure */
    /* RRS Yellow Background -> Our Navy Background */
    --c-primary: #1A2B3C;

    /* RRS Black Elements -> Our Darker Navy or Pure Black */
    --c-dark: #0f1a24;

    /* RRS CTA/Accents -> Our Action Orange */
    --c-action: #FF8C00;

    /* Backgrounds */
    --c-bg: #F4F4F4;
    --c-white: #ffffff;

    --f-main: 'Montserrat', sans-serif;
    /* Intentionally bold/geometric like RRS */
}

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

body {
    font-family: var(--f-main);
    background-color: var(--c-bg);
    color: var(--c-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

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

/* UTILS */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.flex-y-center {
    display: flex;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.hidden-mobile {
    display: none;
}

@media(min-width: 900px) {
    .hidden-mobile {
        display: block;
    }

    .hidden-desktop {
        display: none;
    }
}

/* 1. TOP BAR (RRS "Klantbeoordeling" strip) */
.top-bar {
    background-color: var(--c-bg);
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-primary);
    padding: 0.5rem 0;
    text-align: right;
}

.top-bar .icon {
    color: #00aa00;
    margin-right: 4px;
}

/* 2. HEADER COMPLEXITY (RRS Clone) */
.site-header {
    background: var(--c-white);
    height: auto;
    min-height: 90px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.brand {
    font-weight: 900;
    font-size: 2rem;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    letter-spacing: -1px;
    margin-right: 2rem;
}

.brand span {
    color: var(--c-action);
    margin-left: 2px;
}

/* RRS Search Bar - Refined */
.header-search {
    display: none;
    flex: 1;
    max-width: 400px;
    /* Constrain width */
    margin-right: 2rem;
    position: relative;
    /* Context for button */
}

.header-search input {
    width: 100%;
    height: 44px;
    /* Fixed height for consistency */
    padding: 0 50px 0 1rem;
    /* Right padding for button space */
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fdfdfd;
    font-family: var(--f-main);
    font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    background: var(--c-action);
    border: none;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #e67e00;
    /* Darker orange */
}

/* RRS Review Widget */
.header-reviews {
    display: none;
    flex-direction: column;
    margin-right: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--c-primary);
}

.stars {
    color: var(--c-action);
    font-size: 1rem;
    letter-spacing: -2px;
}

/* NAVIGATION WITH DROPDOWNS */
.nav-desktop {
    display: none;
    margin-right: auto;
    gap: 2rem;
}

.nav-item {
    position: relative;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--c-primary);
    padding: 1rem 0;
}

.nav-item:hover {
    color: var(--c-action);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--c-action);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: none;
    display: flex;
    justify-content: space-between;
}

.dropdown-menu a:hover {
    background: #f9f9f9;
    color: var(--c-action);
    padding-left: 1.8rem;
}

/* Hover animation */

.header-cta {
    background: var(--c-primary);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--c-action);
    color: #fff;
}

@media(min-width: 1000px) {
    .nav-desktop {
        display: flex;
        gap: 0.8rem;
        /* Reduced gap to prevent overlap */
        font-weight: 800;
        font-size: 0.75rem;
        /* Slightly smaller font for safety */
        text-transform: uppercase;
        margin-right: 1rem;
        white-space: nowrap;
    }

    .header-search {
        display: block;
        margin-right: 1rem;
        max-width: 250px;
        /* Constrain search bar width */
    }

    .header-reviews {
        display: flex;
        margin-right: 1rem;
        display: none;
        /* Hide reviews on intermediate screens to save space */
    }
}

@media(min-width: 1200px) {
    .nav-desktop {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .header-search {
        max-width: 400px;
        margin-right: 2rem;
    }

    .header-reviews {
        display: flex;
        /* Show reviews again on large screens */
    }
}

/* 3. HERO COMPLEXITY (Sidebars & Split) */
/* 3. HERO COMPLEXITY (Sidebars & Split) */
.hero-section {
    background-color: var(--c-primary);
    /* NEW: High-Quality Technician Image with Dark Overlay for Readability */
    background-image: linear-gradient(to right, rgba(11, 30, 66, 0.9) 0%, rgba(11, 30, 66, 0.75) 60%, rgba(11, 30, 66, 0.1) 100%), url('hero_technician.png');
    background-size: cover;
    background-position: center top;
    color: #fff;
    padding: 6rem 0 10rem 0;
    /* Increase padding for "Cinematic" feel */
    position: relative;
    overflow: hidden;
    /* Add subtle shadow for depth */
    box-shadow: inset 0 -100px 100px -50px rgba(0, 0, 0, 0.5);
}

.hero-layout {
    display: grid;
    gap: 3rem;
    /* Increased gap from 2rem to 3rem for breathing room */
}

@media(min-width: 900px) {
    .hero-layout {
        grid-template-columns: 320px 1fr;
        /* Slightly wider sidebar column */
        align-items: center;
    }
}

/* ... (Pricing Circle Polish) ... */
.price-circle {
    width: 90px;
    height: 90px;
    background: var(--c-action);
    color: #fff;
    border-radius: 50%;
    margin: -45px auto 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--c-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    line-height: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 2026 Polish */
}

.pricing-card:hover .price-circle {
    transform: scale(1.1) rotate(5deg);
    /* Playful interaction */
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.4);
}

/* The Direct Contact Sidebar (Left) */
.hero-sidebar {
    background: var(--c-white);
    color: var(--c-dark);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
}

@media(min-width: 900px) {
    .hero-sidebar {
        display: block;
    }
}

.sidebar-title {
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--c-action);
    padding-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-link:last-child {
    border: none;
}

.icon-box {
    color: var(--c-action);
    font-size: 1.2rem;
    min-width: 30px;
}

.hero-main {
    position: relative;
    z-index: 2;
    padding-left: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--c-action);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
    max-width: 600px;
}

/* Bottom Hero Cards */
.hero-bottom-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

@media(min-width: 768px) {
    .hero-bottom-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-card h4 {
    color: var(--c-action);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-card p {
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* 4. PRICING / SERVICES GRID (RRS "Circles" Look) */
.pricing-section {
    margin-top: -3rem;
    /* Overlap effect */
    padding-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media(min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.pricing-card {
    background: var(--c-white);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    overflow: hidden;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--c-action);
    /* Color accent bottom */
    transition: transform 0.3s;
    /* Alignment Fix */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card .card-btn {
    margin-top: auto;
    /* Force button to bottom */
}

/* Removed stray brace here */

.pricing-card:hover {
    transform: translateY(-5px);
}

/* The Header of the Card */
.card-header {
    background: var(--c-primary);
    color: #fff;
    padding: 1.5rem 1rem 3rem 1rem;
    /* Extra bottom padding for circle overlap */
}

.card-header h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* The "RRS Circle" - Mapped to our palette */
.price-circle {
    width: 90px;
    height: 90px;
    background: var(--c-action);
    /* Orange Circle */
    color: #fff;
    border-radius: 50%;
    margin: -45px auto 1rem auto;
    /* Pull up 50% */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--c-white);
    /* Ring */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    line-height: 1;
}

.price-val {
    font-size: 1.8rem;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 2px;
}

.features-list {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #555;
    font-size: 0.95rem;
    font-weight: 600;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.card-btn {
    display: block;
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 0.75rem;
    border: 2px solid var(--c-primary);
    color: var(--c-primary);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.card-btn:hover {
    background: var(--c-primary);
    color: #fff;
}

/* 5. MOBILE BOTTOM BAR (Improvement) */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 60px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-call {
    background: var(--c-action);
    color: #fff;
}

@media(min-width: 900px) {
    .mobile-sticky-bar {
        display: none;
    }
}

/* 6. TRUST ICONS (Visual Row) */
.trust-bar-visual {
    background: #f9f9f9;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

.trust-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: #555;
    max-width: 150px;
}

.trust-icon-circle {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px solid var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--c-primary);
}

/* 7. SEO FOOTER (RRS Style) */
.site-footer {
    background-color: var(--c-dark);
    /* Deep Dark Navy */
    color: #a0a0a0;
    padding: 4rem 0 0 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    border-left: 3px solid var(--c-action);
    padding-left: 10px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* 9. PRICING TABLE IMPROVEMENTS */
.rates-table tr {
    transition: background 0.2s;
}

.rates-table tr:hover {
    background: #f9f9f9;
}

.rates-table td:last-child {
    color: var(--c-action) !important;
    font-size: 1.1rem;
    font-weight: 900 !important;
}

.rates-table th {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* 10. CONTACT PAGE GRID */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
    align-items: start;
}

@media(min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* 10. PREMIUM FORM STYLES (Added Phase 7) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--f-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    color: var(--c-dark);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--c-action);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Make the label pop */
label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--c-primary);
    font-weight: 700;
}

/* Submit Button Polish */
button[type="submit"] {
    background-color: var(--c-action);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}