/*
Theme Name: Graceful Halo Blog (Refactored Child)
Theme URI: https://optimathemes.com/graceful-halo-blog-theme/
Author: Aslam (refactor by Reisbuddy)
Author URI: http://optimathemes.com/
Description: Child theme van "graceful" met moderne CSS: variabelen, logical properties (RTL), responsive typografie met clamp(), toegankelijke focus, reduced-motion, mobile-first en dark mode. Kaart overlapt 30px over de foto.
Template: graceful
Version: 1.1.3
Text Domain: graceful-halo-blog-refactored
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================
   0) Root tokens & base reset
   ========================================================== */
:root{
  /* palette */
  --bg: #f4f1ec;
  --bg-2: #ede8de;
  --ink: #111111;
  --ink-2: #333333;
  --muted: #666666;
  --brand: #b3a58a;
  --border-1: #d9d1c0;
  --border-2: #cbc1aa;
  --border-3: #b9ad94;
  --border-4: #a19376;
  --menu-divider: #cbc0a8;

  /* layout scale */
  --radius-xs: 8px;
  --radius-sm: 15px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 50px;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
}

*, *::before, *::after{ box-sizing: border-box; }
html:focus-within{ scroll-behavior: smooth; }
body{ margin: 0; color: var(--ink); background: var(--bg); }
img{ max-inline-size: 100%; block-size: auto; display: block; }

/* Accessible focus */
a:focus-visible, button:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible){ outline: none; }

/* Motion preference */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Typography helpers */
.post-title, .blog .post-title{ font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; overflow-wrap: anywhere; }
.latest-posts-ticker .post-title{ font-size: clamp(1rem, .9rem + .4vw, 1.125rem); line-height: 1.4; }
.single .post-date, .single .post-title-author{
  color: var(--ink) !important;
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: .8125rem;
  line-height: 1.4;
  font-weight: 400;
}

/* ==========================================================
   1) Header & Navigation
   ========================================================== */
.entry-header{ block-size: 150px; }

#main-navigation{ background: var(--bg-2); border-block: 1px solid var(--border-1); }
#main-navigation #searchform #s{ border: 1px solid #bdb29b; }
#main-navigation #searchform #searchsubmit, .close-graceful-search{ background: var(--bg); border: 1px solid var(--border-1); }

#top-navigation{ text-align: center; box-shadow: 0 1px 5px rgba(0,0,0,.1); border-block-end: 1px solid #e4e4e4; background: #000; color: #fff; }
#top-navigation > div{ padding-inline: 30px; }

#top-menu{ display: inline-block; }
#top-menu > li{ display: inline-block; list-style: none; position: relative; }
#top-menu li{ position: relative; }
#top-menu li a{
  display: block; position: relative; padding: 0 5px; margin-inline-start: 5px; color: #fff;
  text-transform: uppercase; font-weight: 600; letter-spacing: 1px; font-size: 11px; line-height: 40px;
}
#top-menu li a:first-child{ margin-inline-start: 0; }
#top-menu > li:first-child > a{ padding-inline-start: 0; }
#top-menu > li:last-child > a{ padding-inline-end: 0; }

#top-menu li.menu-item-has-children > a::after{ font-family: FontAwesome; content: "\f107"; margin-inline-start: 6px; font-size: 12px; }
#top-menu ul li.menu-item-has-children > a::after{ font-family: FontAwesome; content: "\f105"; font-size: 14px; float: inline-end; }

#top-menu .sub-menu{
  position: absolute; inset-inline-start: -999em; z-index: 1101; inline-size: 170px;
  text-align: start; border: 1px solid #e4e4e4; background: #111; opacity: 0;
}
#top-menu .sub-menu a{ border-block-end: 1px solid currentColor; }
#top-menu .sub-menu > li:last-of-type > a{ border: none; }
#top-menu .sub-menu > li > a{ display: block; inline-size: 100%; padding: 8px 15px; margin: 0; font-size: 11px; line-height: 22px; letter-spacing: .5px; }
#top-menu ul ul{ inset-block-start: -1px; inset-inline-start: 100%; }
#top-menu .menu-item:hover > ul, #top-menu .menu-item:focus-within > ul{ inset-inline-start: 0; opacity: 1; }
#top-menu .menu-item:hover ul ul, #top-menu .menu-item:focus-within ul ul{ inset-inline-start: 100%; }
@media (hover: hover){ #top-menu .sub-menu a:hover{ background: #333; } }

/* Search */
.wp-block-search__button{ background: var(--bg); border: 1px solid var(--border-1); }
.wp-block-search__label{ display: none; }
#main-navigation #searchform #s{ border: 1px solid #bdb29b; }

/* Site menu with logical borders */
#site-menu li a{ font-weight: 500; border-inline-end: 1px solid var(--menu-divider); }
#site-menu li:first-child a{ padding-inline-start: 16px; border-inline-start: 1px solid var(--menu-divider); }
#site-menu li:last-child a{ padding-inline-end: 16px; }

/* ==========================================================
   2) Layout & Components
   ========================================================== */
.main-content{ margin-block-start: var(--space-4); border-radius: var(--radius-lg); margin-block-end: var(--space-4); }

/* Slider */
#graceful-post-slider{ padding-block-end: 40px; margin-block-start: 40px; border-radius: var(--radius-lg); }
#graceful-post-slider .owl-stage-outer::after{ background: var(--bg); }
#graceful-post-slider .owl-nav{ background: var(--bg); border-end-start-radius: var(--radius-lg); border-end-end-radius: var(--radius-lg); }
#graceful-post-slider .slide-item{ border-radius: var(--radius-lg); }

/* Widgets */
aside .graceful-widget h2, .graceful-widget .widget-title{ background: var(--bg); border-block-end: 2px solid var(--border-2); font-weight: 600; border-radius: var(--radius-sm); }
aside .graceful-widget h2::after, .graceful-widget .widget-title::after{ border-block-start: 8px solid var(--border-2); }
.widget_categories > ul > li, aside .wp-block-latest-posts.wp-block-latest-posts__list li{ border-block-end: 1px solid var(--bg); }

/* Post list/grid */
.content-column > li{
  margin-block-end: 30px; display: inline-block; vertical-align: top; margin-inline-end: 35px;
  inline-size: calc((100% - 40px) / 2);
}
.content-column > li:nth-of-type(2n+2){ margin-inline-end: 0; }
[data-layout*="col1-leftrightsidebar"] .content-column > li{ inline-size: 100%; }
@media (max-width: 480px){ .content-column > li{ inline-size: 100%; } }

.content-column li{ border-block-end: none; }

/* Content cards */
.content-post .post-card{ margin-block-end: 30px; position: relative; }
.content-post .post-card-inner{ position: relative; border-radius: var(--radius-lg); overflow: hidden; }

/* FOTO (kaartbeeld) */
.content-post .site-images{
  block-size: min(52vh, 300px);
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f2f2f2;
  background-position: center;
  background-size: cover;
  margin-bottom: 0;
}
.content-post .site-images img{
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  border-start-start-radius: var(--radius-lg);
  border-start-end-radius: var(--radius-lg);
}

/* TEKSTBLOK (30px overlap over de foto) */
.content-post .post-content{
  background: #fff;
  text-align: start;
  padding: 25px;
  border-radius: var(--radius-md);
  margin: -30px 20px 30px 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
  border-inline-start: 1px solid #eee;
}

.content-post .post-categories{ background: none; border: none; margin: 0; padding: 0; }
.content-post .post-categories a{
  background: var(--brand); color: #fff !important; padding: 0 15px 1px; border-radius: 20px;
  margin-inline-end: 8px; font-size: 11px; text-decoration: none; display: inline-block; margin-block-end: 15px;
}

.content-post .post-page-content{ font-size: 15px; line-height: 1.6; color: var(--muted); padding-block-start: 0; }
.content-post .post-page-content p{ margin: 0; }

.blog .post-header{ text-align: start; }
.post-header-inner, .graceful-wrap-container, .single .content-wrap{
  border-start-start-radius: var(--radius-lg);
  border-start-end-radius: var(--radius-lg);
}

/* Slider title width responsive */
.graceful-slider-title{ inline-size: 460px; overflow-wrap: anywhere; }
@media (max-width: 480px){ .graceful-slider-title{ inline-size: 300px; } }

/* Latest Posts Ticker */
.latest-posts-ticker{ background: #fff; padding: 20px 24px; margin-block-start: 40px; border-radius: var(--radius-xl); position: relative; }
.latest-posts-ticker .item{ display: flex; align-items: center; padding: 10px; border-radius: var(--radius-xl); }
.latest-posts-ticker .item a{ background: var(--bg); inline-size: 100%; border-radius: var(--radius-xl); }
.latest-posts-ticker .post-item{ display: flex; align-items: center; text-decoration: none; color: inherit; }
.latest-posts-ticker .post-thumbnail{
  flex-shrink: 0; inline-size: 100px; block-size: 100px; overflow: hidden; margin-inline-end: 15px;
  border-radius: 50%; outline: 5px solid #fff;
}
.latest-posts-ticker .post-thumbnail img{ inline-size: 100%; block-size: auto; }
.latest-posts-ticker .post-thumbnail .no-thumbnail{ inline-size: 100%; block-size: 100%; background: #ddd; }
.latest-posts-ticker .post-details{ display: flex; align-items: center; }
.latest-posts-ticker .owl-nav{
  position: absolute; inset-block-start: 30%; inset-inline: 0; display: flex; justify-content: space-between;
  transform: translateY(-50%); pointer-events: none;
}
.latest-posts-ticker .owl-nav button{
  background: none !important; border: none; font-size: 60px !important; pointer-events: all; color: #777 !important;
  cursor: pointer; padding: 10px;
}
.latest-posts-ticker .owl-nav button:hover{ color: #000 !important; }
.latest-posts-ticker .owl-nav .owl-prev{ inset-inline-start: 0; position: absolute; }
.latest-posts-ticker .owl-nav .owl-next{ inset-inline-end: 0; position: absolute; }

@media (min-width: 768px){
  .blog .post-page-content p{ padding: 0; }
  #main-navigation .wrapped-content{ padding-inline-start: 0; }
  .main-navigation-search{ inset-inline-end: 0; }
  #main-navigation .navigation-socials{ inset-inline-end: 35px; }
  .latest-posts-ticker .owl-nav .owl-prev{ inset-inline-start: -40px !important; }
  .latest-posts-ticker .owl-nav .owl-next{ inset-inline-end: -40px !important; }
}

/* Featured Boxes */
#featured-boxes{ padding: 34px !important; border-block-end: 1px solid #eee; background: #fff; margin-block-start: 40px; border-radius: var(--radius-xl); }
#featured-boxes .wrapped-content{ font-size: 0; text-align: center; }
#featured-boxes .featured-box{ position: relative; float: left; inline-size: calc((100% - 50px) / 3); margin-inline-end: 34px; }
#featured-boxes .featured-box:last-child{ margin-inline-end: 0; }
#featured-boxes a{ position: absolute; inset: 0; }
#featured-boxes .graceful-wrap-outer{ padding: 12px; }
#featured-boxes h4{
  display: inline-block; padding: 11px 20px; font-family: 'Lato', system-ui, sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; background: rgba(0,0,0,.5); color: #fff !important; border-radius: 20px; min-inline-size: 140px;
}
#featured-boxes .featured-box img{ border-radius: var(--radius-lg); }
@media (max-width: 768px){
  .featured-box{ display: block; }
  .main-navigation-search{ inset-inline-end: 20px; }
}
@media (max-width: 480px){
  #featured-boxes .featured-box{ inline-size: 100%; margin-block-end: 34px; }
  #featured-boxes{ padding-block-end: 0 !important; }
}

/* Footer */
#site-footer{ background: #dfd8cb; }
#site-footer .graceful-widget .widget-title{ background: var(--bg-2) !important; border-block-end: 1px solid var(--border-3) !important; }
#site-footer .graceful-widget .widget-title::after{ border-block-start: 8px solid var(--border-3); }
.footer-widgets{ border-block-end: 1px solid var(--border-4); }

/* Misc small improvements */
.post-title{ overflow-wrap: anywhere; }
.site-images{ min-block-size: 245px; background: var(--bg); }

/* Category title */
.graceful-halo-category-title{ margin-block-end: 20px; border-block-end: 7px solid var(--brand); display: inline-block; padding-block-end: 1px; }

/* ==========================================================
   LAND widget aanpassing
   ========================================================== */
.widget_categories .widget-title,
.widget_categories h2 {
  background: var(--brand);
  color: #fff !important;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 6px rgba(0,0,0,.15);
}

.widget_categories select {
  background-color: #fff;
  border: 1px solid var(--border-2);
  color: var(--ink);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  width: 100%;
  font-size: 0.95rem;
}

/* ==============================
   Dark Mode
   ============================== */
@media (prefers-color-scheme: dark){
  :root{
    --bg: #111315;
    --bg-2: #171a1d;
    --ink: #eaeaea;
    --ink-2: #c9c9c9;
    --muted: #b5b5b5;
    --border-1: #2b2f33;
    --border-2: #3a3f45;
    --border-3: #444b52;
    --border-
