/*
Theme Name: Wellbeing Support
Theme URI: https://wellbeingsupport.co.uk
Author: Wellbeing Support
Description: Custom WordPress theme for Wellbeing Support health and social care training and recruitment.
Version: 1.0.0
Text Domain: wellbeing-support
*/

:root {
  /* Colors — Unified Deep Slate Blue Scheme */
  --color-primary: #1C2A39;            /* Deep Slate Blue (Main) */
  --color-primary-light: #24364A;      /* Lighter Slate Blue */
  --color-secondary: #121C26;          /* Even Darker Slate for contrast */
  --color-secondary-light: #1C2A39;    /* Deep Slate */
  --color-accent: #f0b429;             /* Golden Yellow (from logo figures) */
  --color-accent-hover: #d99e1e;       /* Darker gold for hovers */
  --color-background: #f8f9fb;         /* Off-white */
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #6b7280;
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

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

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===== BUTTONS — Pill-shaped, inspired by Miad ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 180, 41, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 92, 110, 0.3);
}

.btn-dark {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.btn-dark:hover {
  background-color: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 62, 0.3);
}

/* ===== HEADER ===== */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.top-bar a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--color-white);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  gap: 2rem;
}

/* Logo */
.site-logo {
  flex: 0 0 220px;
  max-width: 220px;
}

.site-logo a {
  display: block;
}

.site-logo img,
.custom-logo {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  display: block;
}

/* Navigation */
.main-navigation {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 1.5rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--color-primary);
  background-color: rgba(0, 92, 110, 0.06);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-secondary);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .site-logo {
    flex: 0 0 180px;
    max-width: 180px;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    z-index: 999;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation a {
    padding: 0.75rem var(--spacing-lg);
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .header-main {
    position: relative;
  }
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  overflow: hidden;
}

.hero-slider .swiper-slide {
  overflow: hidden;
}

.hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--color-accent);
  width: 30px;
  border-radius: 6px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* ===== SECTION STYLES ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
}

/* Cards */
.service-card,
.pillar-card,
.role-card {
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ===== CTA BANNER (Miad-style "Find out more" bar) ===== */
.cta-banner {
  background: var(--color-primary-light);
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-banner h3 {
  color: var(--color-white);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.cta-banner .btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  font-weight: 600;
  padding: 10px 28px;
  font-size: 0.95rem;
}

.cta-banner .btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-secondary);
}

/* ===== FOOTER — Dark navy, Miad-style ===== */
.site-footer {
  background-color: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-xl) 0 0;
  margin-top: 0;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-widget h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.footer-widget h3 {
  color: var(--color-white);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.footer-widget ul li {
  margin-bottom: 0.6rem;
}

.footer-widget ul li a,
.footer-widget a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-widget ul li a:hover,
.footer-widget a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* ===== STICKY ENQUIRY BUTTON ===== */
.sticky-enquiry-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(45, 212, 168, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}

.sticky-enquiry-btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(240, 180, 41, 0.45);
}

/* ===== FORMS ===== */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form input[type="url"],
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.15);
}

.custom-form button[type="submit"] {
  border: none;
  cursor: pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Course images and course detail headers */
.course-card-image {
  display: block;
  height: 190px;
  overflow: hidden;
  background: #dce6ee;
}

.course-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.course-card-image:hover img {
  transform: scale(1.035);
}

.course-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-xl) 0;
}

.course-header::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(29, 43, 57, 0.94) 0%, rgba(29, 43, 57, 0.82) 55%, rgba(29, 43, 57, 0.68) 100%);
}

.course-header-media {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.course-header-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.course-header-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.course-title-area {
  flex: 2;
  min-width: 300px;
}

.course-title-area h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.course-header-actions {
  flex: 1;
  min-width: 250px;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

@media (max-width: 640px) {
  .course-header {
    padding: 3rem 0;
  }

  .course-title-area,
  .course-header-actions {
    min-width: 0;
    width: 100%;
  }

  .course-card-image {
    height: 180px;
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .top-bar {
    display: none;
  }

  .about-content > .container > div:first-child {
    flex-direction: column;
    align-items: center;
  }

  .about-content > .container > div:first-child > div[style*="width: 1px"] {
    width: 80px !important;
    height: 1px !important;
    margin: 0 auto;
  }

  .cta-banner .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.pagination span.current {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
  font-weight: 700;
}
