/*
Theme Name: Radioman
Author: Peter and Alan
Description: Simple easy to follow Theme
Requires at least: 6.8
Requires PHP: 8.1
Version: 1.0
Text Domain: highforce.uk
*/

/* === SITE WRAPPER FIX === */
body, html {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
}

.site {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-flex,
.top-line {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
}

/* === HEADER TYPOGRAPHY === */
h1, .entry-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 12px;
  color: #333;
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  margin-top: 1.2rem;
  color: #444;
}

/* === MAIN CONTENT === */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-size: 1rem;
    color: #ffffff;
}

/* === BLOCK 1: TOP LINE === */
.top-line {
    background-color: #aaaaaa;
    color: #fff;
    font-size: 1.2em;
}
.top-line p {
    line-height: 2.0;
    margin: 0;
    text-align: center;
}

/* === BLOCK 2: LOGO + FACEBOOK === */
.logo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-flex .site-logo {
    max-height: 60px;
    display: block;
}
.facebook-right {
    display: flex;
    align-items: center;
}
.facebook-right img {
    height: 60px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.facebook-right a:hover img {
    transform: scale(1.1);
    filter: brightness(0.85);
}


/* === BLOCK 3: NAVIGATION MENU === */
.main-nav {
    background-color: #696969;
    width: 100%;
    margin-bottom: 20px;
}
.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-items {
    display: flex;
    justify-content: flex-start;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 12px 0;
}
.nav-items li a {
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 8px 16px;
    transition: background-color 0.25s ease, color 0.25s ease;

    /* === Added for sharper text rendering === */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.nav-items .current-menu-item a,
.nav-items .current_page_item a {
    background-color: #ff0000;
    border-radius: 6px;
    padding: 10px 16px;
    line-height: 1.4;
    color: #fff;
}
nav.main-nav ul.nav-items li a:hover {
    background-color: #ff0000;
    color: #fff;
    border-radius: 6px;
}

/* === BLOCK 4: Picture Slider === */

/* === Routine: Header Image Full Width Fix (Inner Pages) === */
.page-header-image .content-wrap {
  padding: 0;          /* remove the 20px left/right padding */
  max-width: 1200px;   /* lock to 1200px */
  margin: 0 auto;
}

.page-header-image img {
  width: 100%;         /* scale to fit wrapper */
  height: auto;        /* keep aspect ratio */
  display: block;
  object-fit: cover;   /* crop neatly if needed */
}

/* === Routine: Front Page Header Image Width Fix === */
.home .page-header-image .content-wrap {
  padding: 0;          /* remove the 5–10px left/right padding */
  max-width: 1200px;   /* lock to 1200px */
  margin: 0 auto;
}

.home .page-header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* === Routine: Strip Full Width Override === */
.home .content-wrap,
.page .content-wrap {
  padding: 0;          /* ensure no hidden side padding trims width */
}

.image-strip {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box; /* include border/padding in width calc */
}

/* Flex layout for big + small images */
.image-layout {
  display: flex;
  width: 100%;
  gap: 2px;             /* horizontal gap */
}

/* Main large image */
.main-image {
  flex: 3;              /* take 3 parts of the space */
  height: 350px;
  overflow: hidden;
  position: relative;
}

.main-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.main-image img.active {
  opacity: 1;
}

/* Stacked small images column */
.stacked-images {
  flex: 1;              /* take 1 part of the space */
  display: flex;
  flex-direction: column;
  gap: 2px;             /* vertical gap between top and bottom */
}

.stacked-images img {
  width: 100%;          /* fill column width */
  height: 174px;        /* lock height */
  object-fit: cover;    /* crop without distortion */
  display: block;
}

/* Hide strip on very small screens */
@media (max-width: 300px) {
  .image-strip {
    display: none;
  }
}


/* === Routine: Page Content and Featured Image Width === */
.main-body {
  max-width: 1200px;
  margin: 0 auto;       /* centers the whole page body */
  padding: 0;           /* optional side padding */
}

.entry-content {
  max-width: 1200px;    /* match the image width */
  margin: 0 auto;
  /* remove border once you’re done testing */
}

.page .wp-post-image {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.intro-block h2 { font-size: 2rem; margin-bottom: 10px; }
.intro-block p { font-size: 1.1rem; line-height: 1.5; }

/* === BLOCK 6: FOOTER === */
.site-footer {
    background-color: #696969;
    color: white;
/* Shorthand (top, right, bottom, left) */
   padding: 0px 20px 20px 20px;
    border-top: 1px solid #444;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 10px;
}
.footer-block { text-align: left; }
.footer-block h4 {
    color: #ff0000;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li { margin-bottom: 1px; }
.footer-links-list a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.footer-links-list a:hover { color: red; }

/* Responsive footer stacking */
@media (max-width: 768px) {
    .footer-columns { grid-template-columns: 1fr; }
    .footer-block { flex: 1 1 100%; min-width: auto; }
    .footer-block h4 { margin-bottom: 8px; }
    .footer-links-list { padding-left: 0; }
}

/* === INFO WRAPPER === */
body.page-id-123 .info-wrapper { /* Page-specific styles */ }
.info-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
.info-wrapper h1 { font-size: 2rem; margin-bottom: 1rem; }
.info-content { font-size: 1rem; line-height: 1.6; }

/* === HAMBURGER MENU === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 300px) {
  .image-strip {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav .content-wrap {
    display: flex;
    justify-content: center;   /* centers the hamburger */
    align-items: center;
    position: relative;        /* allow absolute positioning of menu */
  }

  .menu-toggle {
    display: block;
    margin: 0 auto;
  }

  /* Menu hidden by default */
  .main-nav .nav-items {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #696969;
    padding: 10px;
    width: 100%;
    position: absolute;        /* detach from the flex row */
    top: 100%;                 /* place directly below the nav bar */
    left: 0;
    z-index: 999;              /* keep it above other content */
  }

  /* Show menu when toggled */
  .main-nav .nav-items.active {
    display: flex;
  }

  .main-nav .nav-items li a {
    padding: 12px 16px;
    display: block;
  }

@media (max-width: 768px) {
  .image-strip .main-image,
  .image-strip .stacked-images {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .kb-image6_8bed2c-26 img {
    display: block;
    margin: 0 auto;   /* centers the image */
    width: 300px;     /* fixes width */
    height: auto;     /* keeps aspect ratio */
  }
}


}