/*
Theme Name: Rap en Rein
Author: Gemini
Description: Responsive WordPress theme in RAL 6018 (Yellow Green) with a Red vacation alert and mobile call button.
Version: 1.6
*/

/* Target phone links specifically to maintain branding */
a[href^="tel"] {
    color: inherit !important;
    /* Forces the number to stay white or green like its parent */
    text-decoration: none !important;
    /* Removes the underline */
    font-family: inherit !important;
    font-weight: inherit !important;
}

@font-face {
    font-family: 'RevueCustom';
    src: url('fonts/Revue.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    /* Helps with loading speed */
}


/* 1. ROOT VARIABLES & RESET */
:root {
    --brand-green: #57A639;
    /* RAL 6018 Yellow Green */
    --white: #ffffff;
    --dark: #1a1a1a;
    --gray: #f4f4f4;
    --red: #d93025;
    /* Professional Alert Red */
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* 2. HEADER & BRANDING */
header {
    background: var(--brand-green);
    padding: 60px 0;
    text-align: center;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    font-family: 'RevueCustom';
    /* Fallback for Revue font */
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: inline-block;
}

/* Header Text Styling */
.header-top-text,
.header-bottom-text {
    display: block;
    color: var(--white);
    font-weight: bold;
    letter-spacing: 2px;
}

.header-top-text {
    font-size: 1.2rem;
    margin-bottom: -10px;
    /* Pulls it closer to the logo */
}

.header-bottom-text {
    font-size: 1.5rem;
    margin-top: -10px;
}

/* Adjust logo margin for better spacing with the new text */
.logo {
    margin: 10px 0;
    line-height: 1;
}

@media (max-width: 768px) {
    .header-top-text {
        font-size: 0.9rem;
    }

    .header-bottom-text {
        font-size: 1.1rem;
    }
}

/* 3. VACATION ALERT */
.vacation-alert {
    background: var(--red);
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

/* 4. HOME PAGE: FULL ARTICLES (DIENSTEN) */
.full-articles {
    padding: 60px 0;
    max-width: 800px;
}

.full-article-item {
    padding-bottom: 0px;
    text-align: center;
}

.full-article-item>div {
    text-align: center;
}

.full-article-item h2 {
    color: var(--brand-green);
    font-size: 2rem;
    text-transform: uppercase;
    margin-top: 0;
}

.full-article-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    margin-top: -20px;
}

.homepage-banner-image {
    width: 100%;
    margin-bottom: 35px;
}

.homepage-banner-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: block;
}

/* 5. HOME PAGE: TILE GRID (PROJECTEN) */
.tiled-section {
    background: var(--gray);
    padding: 80px 0;
}

.tiled-section h2 {
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tile {
    background: var(--white);
    padding: 0;
    border-bottom: 6px solid var(--brand-green);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tile-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.tile h3 {
    margin: 0;
    padding: 20px;
    text-transform: uppercase;
    color: var(--dark);
    text-align: center;
}

/* 6. SINGLE ARTICLE PAGE */
.single-content {
    max-width: 800px;
    margin: 60px auto;
}

.single-content h2 {
    font-size: 2rem;
    border-left: 6px solid var(--brand-green);
    padding-left: 20px;
    text-transform: uppercase;
    padding-bottom: 20px;
}

.tiled-section-single {
    background: var(--gray);
    padding: 60px 0;
}

.tiled-section-single h3 {
    text-transform: uppercase;
    margin-bottom: 40px;
    text-align: center;
    color: var(--dark);
}

/* Version: 1.6 */

.featured-image {
    float: left;
    width: 45%;
    margin-right: 30px;
    margin-bottom: 20px;
}

.featured-image img {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    width: 100%;
    height: auto;
    display: block;
}

/* Clearfix */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.back-home-wrapper {
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    clear: both;
    /* Ensure it stays below floated elements */
}

.back-home-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--brand-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.back-home-btn:hover {
    background-color: #46892e;
    /* Darker shade of green */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* 7. FOOTER */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.contact-wrapper {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.contact-box h3 {
    color: var(--brand-green);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contact-box p {
    margin: 5px 0;
    font-size: 1.1rem;
}

/* 8. MOBILE CALL NOW BUTTON */
.call-now-btn {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--brand-green);
    color: white;
    padding: 18px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    border: 2px solid white;
}

/* 9. RESPONSIVE QUERIES */
@media (max-width: 768px) {
    .call-now-btn {
        display: block;
        /* Show on mobile */
    }

    header {
        padding: 40px 0;
    }

    .full-article-item h2 {
        font-size: 1.8rem;
    }

    .featured-image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .single-content h2 {
        font-size: 1.5rem;
    }
}