/*
Theme Name: Roy
Theme URI: https://royenziel.nl
Author: Roy
Author URI: https://royenziel.nl
Description: Een custom WordPress theme voor Roy
Version: 1.0.0
License: GPL v2 or later
Text Domain: roy
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* =Reset
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =Typography
-------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #005177;
    text-decoration: underline;
}

/* =Layout
-------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background-color: #40E0D0;
    padding: 20px 0;
    border-bottom: 1px solid #004494;
}

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

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 2rem;
}

.site-title a {
    color: #fff !important;
    text-decoration: none;
}

.site-description {
    margin: 5px 0 0;
    font-size: 0.875rem;
    color: #e6f2ff;
}

/* =Navigation
-------------------------------------------------------------- */
.main-navigation {
    background-color: transparent;
    padding: 0;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    padding: 10px 15px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background-color: rgba(255,255,255,0.2);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.main-navigation a:hover,
.main-navigation a:focus {
    background-color: #004494;
    text-decoration: none;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    background-color: #003d7a;
}

/* Sub-menu */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #004494;
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-navigation ul ul li {
    display: block;
}

.main-navigation ul ul a {
    padding: 10px 20px;
}

.main-navigation ul ul a:hover {
    background-color: #003d7a;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    display: block;
}

/* Multi-level dropdowns */
.main-navigation ul ul ul {
    left: 100%;
    top: 0;
}

.main-navigation .menu-item-has-children > a::after,
.main-navigation .page_item_has_children > a::after {
    content: " ▾";
    font-size: 0.8em;
    opacity: 0.7;
}

.main-navigation ul ul .menu-item-has-children > a::after,
.main-navigation ul ul .page_item_has_children > a::after {
    content: " ▸";
    float: right;
}

/* =Content
-------------------------------------------------------------- */
.site-content {
    min-height: 400px;
}

.site-content::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

.container + .site-content,
.site-content .container {
    padding: 40px 20px;
}

.container.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.content-area {
    float: left;
    width: 70%;
    padding-right: 40px;
}

.content-area.full-width-content {
    float: none;
    width: 100%;
    padding-right: 0;
    max-width: 800px;
    margin: 0 auto;
}

.site-main {
    margin: 0;
}

/* =Sidebar
-------------------------------------------------------------- */
.widget-area {
    float: right;
    width: 30%;
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.widget-title {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: #333;
}

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

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid #e7e7e7;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* =Posts
-------------------------------------------------------------- */
.post,
.page {
    margin-bottom: 40px;
}

.featured-image {
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 10px;
}

.entry-content {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-footer {
    font-size: 0.875rem;
    color: #666;
}

/* =Comments
-------------------------------------------------------------- */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e7e7e7;
}

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

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.comment-author {
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 10px;
}

.comment-content {
    margin-bottom: 10px;
}

.reply {
    font-size: 0.875rem;
}

/* =Forms
-------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #005177;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background-color: #222;
    color: #1ed8d8;
    padding: 60px 0 20px;
    margin-top: 40px;
    clear: both;
    position: relative;
    z-index: 1;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0056b3;
    text-decoration: none;
}

.footer-sublinks {
    list-style: none;
    margin: 10px 0 10px 20px;
    padding: 0;
}

.footer-sublinks li {
    margin-bottom: 5px;
}

.footer-sublinks a {
    font-size: 0.875rem;
    color: #999;
}

.footer-sublinks a:hover {
    color: #0056b3;
}

.footer-navigation {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-navigation a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
}

.footer-navigation a:hover {
    color: #0056b3;
}

.site-footer .widget {
    background-color: transparent;
    padding: 0;
}

.site-footer .widget-title {
    color: #fff;
}

.site-footer .widget ul li {
    border-bottom-color: #444;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.875rem;
    color: #999;
}

/* =Homepage Sections
-------------------------------------------------------------- */
.full-width {
    width: 100%;
    max-width: 100%;
}

.full-width .site-main {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0056b3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fullwidth {
    width: 100vw;
    margin: 0;
    margin-left: calc(-50vw + 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #555;
}

/* Feature Blocks */
.feature-blocks-section {
    padding: 80px 0;
}

.feature-blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-block {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-block-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.feature-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-block:hover .feature-block-image img {
    transform: scale(1.05);
}

.feature-block-content {
    padding: 25px;
}

.feature-block-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-block-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-block-title a:hover {
    color: #0056b3;
}

.feature-block-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-block-link {
    display: inline-block;
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-block-link:hover {
    color: #004494;
    text-decoration: none;
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #0056b3;
}

.post-card-meta {
    color: #999;
    font-size: 0.875rem;
    margin-bottom: 15px;
}

.post-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-link {
    color: #0056b3;
    font-weight: 600;
    text-decoration: none;
}

.post-card-link:hover {
    color: #004494;
}

/* =Utilities
-------------------------------------------------------------- */
.clearfix::after,
.clearfix::before {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* =Responsive
-------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .content-area,
    .widget-area {
        float: none;
        width: 100%;
        padding: 0;
    }
    
    .content-area {
        margin-bottom: 40px;
    }
    
    /* Mobile header layout */
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .site-branding {
        text-align: center;
    }
    
    /* Mobile navigation */
    .menu-toggle {
        display: block;
        align-self: center;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0,0,0,0.2);
        border-radius: 4px;
        padding: 10px 0;
        margin-top: 10px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation a {
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 20px !important;
    }
    
    .main-navigation li:last-child a {
        border-bottom: none;
    }
    
    .main-navigation ul ul {
        position: static;
        display: none;
        background-color: rgba(0,0,0,0.3);
        box-shadow: none;
        margin-left: 20px;
        border-radius: 4px;
        width: auto;
    }
    
    .main-navigation ul ul ul {
        left: 0;
        top: 0;
        margin-left: 40px;
    }
    
    .main-navigation .menu-item-has-children > a::after,
    .main-navigation .page_item_has_children > a::after,
    .main-navigation ul ul .menu-item-has-children > a::after,
    .main-navigation ul ul .page_item_has_children > a::after {
        content: " +";
        float: right;
        font-weight: bold;
    }
    
    /* Hero responsive */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    /* Sections padding */
    .intro-section,
    .feature-blocks-section,
    .recent-posts-section {
        padding: 40px 0;
    }
    
    /* Typography responsive */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .intro-title,
    .section-title {
        font-size: 1.75rem;
    }
}