/* ============================================================
   YORKSHIRE FUTURES - DESIGN IMPROVEMENTS
   improvements.css - layered on top of main.css
   ============================================================ */

/* ---- GLOBAL RESETS & SMOOTHING ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; margin: 0; }

/* ---- STICKY HEADER ---- */
#site-header {
  position: relative;
  transition: box-shadow 0.3s ease;
  /* Hero background fills the whole header */
  background: #2A1540 url('../../media/brand/page-header-bg.jpg') center center / cover no-repeat;
}
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42,21,64,0.88) 0%, rgba(110,58,173,0.72) 100%);
  z-index: 0;
  pointer-events: none;
}
#site-header > * { position: relative; z-index: 1; }
#site-header.scrolled {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: #EE365B;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #fff;
  position: relative;
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.announcement-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.announcement-bar i { opacity: 0.9; }
.announcement-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  padding: 0 4px;
}
.announcement-close:hover { opacity: 1; }

/* ---- HERO IMPROVEMENTS ---- */
.hero {
  padding: 36px 0 44px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero h1, .hero .hero-h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  font-style: normal !important;
}
.hero-accent {
  color: #f0b429;
  display: block;
}
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust span {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust i { color: #4ade80; font-size: 16px; }

/* ---- BUTTON IMPROVEMENTS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: #EE365B;
  color: #fff;
  border-color: #EE365B;
}
.btn-primary:hover {
  background: #d42849;
  border-color: #d42849;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238,54,91,0.35);
}
.btn-ghost {
  background: #1a0d2e;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-outline-brand {
  background: #1a0d2e;
  color: #2A1540;
  border: 2px solid #2A1540;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.btn-outline-brand:hover {
  background: #2A1540;
  color: #fff;
}
.btn-white {
  background: #6e3aad;
  color: #fff;
  border-color: #fff;
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.btn-ghost-white {
  background: #1a0d2e;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* ---- SECTION LABELS ---- */
.section-label {
  text-align: center;
  margin: 50px 0 28px;
}
.section-label span {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #EE365B;
  text-transform: uppercase;
  position: relative;
  padding: 0 20px;
}
.section-label span::before,
.section-label span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 2px;
  background: #EE365B;
  opacity: 0.4;
}
.section-label span::before { right: 100%; margin-right: -18px; }
.section-label span::after  { left: 100%;  margin-left: -18px; }

/* Override old focus-title inside the header area */
header .focus-title {
  display: none;
}

/* ---- CARD IMPROVEMENTS ---- */
.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #EE365B;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,20,64,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-overlay i {
  color: #fff;
  font-size: 28px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(12,12,20,0.14) !important;
}
.card-hover:hover .card-overlay {
  opacity: 1;
}
.card-hover:hover .card-overlay i {
  transform: translateY(0);
}
.card-hover img.card-media {
  transition: transform 0.4s ease;
}
.card-hover:hover img.card-media {
  transform: scale(1.05);
}
.card-body h3 { font-size: 15px; font-weight: 600; }
.card-desc { font-style: normal !important; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: #2A1540;
  padding: 32px 0;
  color: #fff;
}
.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #f0b429;
  line-height: 1.1;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}
@media (max-width: 600px) {
  .stats-bar-inner { gap: 0; }
  .stat-item { padding: 16px 20px; width: 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-divider { display: none; }
}

/* ---- MISSION BLOCK V2 ---- */
.mission-block-v2 {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}
.mission-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #2A1540, #6e3aad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mission-icon i {
  font-size: 30px;
  color: #fff;
}
.mission-text h2 {
  font-size: 26px;
  font-weight: 800;
  color: #2A1540;
  margin: 0 0 8px;
}
.mission-quote {
  font-size: 20px;
  font-style: italic;
  color: #EE365B;
  font-weight: 600;
  margin: 0 0 14px;
}
.mission-text p {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
  margin: 0 0 20px;
}
.mission-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 260px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
  .mission-block-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mission-icon { display: none; }
  .mission-image img { height: 220px; }
}

/* ---- ACCREDITATIONS ---- */
.accred-logo-wrap {
  width: 120px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.accred-logo-wrap img {
  max-height: 50px;
  max-width: 100px;
  object-fit: contain;
}
.accred-icon-wrap i {
  font-size: 36px;
  color: #6e3aad;
}
.accred-item:hover .accred-logo-wrap {
  background: #f0e5ff;
}

/* ---- CATEGORIES GRID ---- */
.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 60px;
}

/* ---- WHY US SECTION ---- */
.why-us-section {
  background: linear-gradient(135deg, #f9f9ff 0%, #f5f0ff 100%);
  padding: 80px 0;
  margin: 60px 0 0;
}
.why-us-section h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #2A1540;
  margin-bottom: 48px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.why-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #EE365B, #d42849);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.why-icon i {
  font-size: 24px;
  color: #fff;
}
.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2A1540;
  margin: 0 0 10px;
}
.why-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ---- TESTIMONIALS HEADING ---- */
.testimonials-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #2A1540;
  margin-bottom: 30px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, #2A1540 0%, #6e3aad 100%);
  padding: 70px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band-text h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.cta-band-text p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin: 0;
}
.cta-band-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-buttons { justify-content: center; }
}

/* ---- FOOTER V2 ---- */
footer {
  background: #1a0d2e;
  color: #ccc;
  padding: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 14px 0 20px;
}
.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.footer-socials a:hover {
  background: #EE365B;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col .footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col address {
  font-style: normal;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
}
.footer-more-link {
  color: #f0b429 !important;
  font-weight: 600;
  margin-top: 6px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: #EE365B;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(238,54,91,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #d42849;
  transform: translateY(-3px);
}

/* ---- NAV DROPDOWN DESKTOP ---- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-arrow {
  font-size: 11px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #2A1540;
  border-radius: 10px;
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 99;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 6px);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,0.85) !important;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
}

/* ---- ACTIVE NAV LINK ---- */
nav a.nav-active {
  position: relative;
}
nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
}

/* ---- MOBILE NAV IMPROVEMENTS ---- */
@media (max-width: 768px) {
  .topbar {
    position: relative;
  }
  .hamburger {
    display: flex !important;
    order: 3;
  }
  .cta-btn {
    order: 4;
  }
  nav[aria-label="Primary navigation"] {
    order: 5;
    width: 100%;
  }
  nav a.nav-active::after { display: none; }
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,0.06);
    box-shadow: none;
    border-radius: 6px;
    margin-top: 4px;
    padding: 4px;
  }
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
  }
}

/* ---- HERO BUTTONS SPACING ---- */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---- ACCESSIBILITY FOCUS ---- */
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(240,180,41,0.9);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- LOGO SIZE INCREASE ---- */
.logo-img {
  width: 180px !important;
  height: auto !important;
}

/* ---- TOPBAR TIGHTER PADDING ---- */
.topbar {
  padding: 14px 0 !important;
}

/* ---- HIDE LARGE DECORATIVE SHAPES that push height ---- */
header .shape-large,
header .shape-left,
header .shape-left2 {
  display: none;
}

/* ---- SECTION LABEL INSIDE HEADER - TIGHTER ---- */
header .section-label {
  margin: 20px 0 16px;
}

/* ---- FOCUS GRID IN HEADER - LESS BOTTOM PADDING ---- */
header .focus-grid {
  margin-bottom: 28px;
}

/* ---- HERO SUBTITLE WIDTH ---- */
.hero-subtitle {
  max-width: 620px;
}
