/*
Theme Name:   Future Finance Kadence Child
Theme URI:    https://future-finance.tech
Description:  Kadence child theme for Future Finance — UK Financial Services Accelerator. Migrated from Wix.
Author:       Recognition Creative
Author URI:   https://recognitioncreative.com
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags:         kadence, child-theme, financial-services
Text Domain:  future-finance-kadence
*/

/* ============================================================
   FUTURE FINANCE — BRAND TOKENS
   Extracted from future-finance.tech (Wix source)
   ============================================================ */

:root {
  /* Brand Colours */
  --ff-dark-navy:      #0a1628;   /* deep background / header */
  --ff-navy:           #112240;   /* section background */
  --ff-teal:           #1a4a5c;   /* mid tone, card backgrounds */
  --ff-lime:           #c8e63c;   /* lime green accent (arrows, CTAs) */
  --ff-lime-dark:      #aac82a;   /* lime hover */
  --ff-white:          #ffffff;
  --ff-off-white:      #f5f7f2;   /* light section background */
  --ff-text-dark:      #1a1a2e;
  --ff-text-mid:       #3d4a5c;
  --ff-text-light:     #6b7a8d;
  --ff-border:         #d8e0e8;

  /* Typography */
  --ff-font-heading:   'Barlow', 'Helvetica Neue', sans-serif;
  --ff-font-body:      'Source Sans 3', 'Georgia', serif;

  /* Spacing */
  --ff-section-pad:    80px;
  --ff-section-pad-sm: 48px;
  --ff-container:      1200px;
  --ff-radius:         6px;
  --ff-radius-lg:      12px;
}

/* ============================================================
   GLOBAL RESETS & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ff-font-body);
  color: var(--ff-text-dark);
  background-color: var(--ff-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ff-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ff-lime-dark);
}

/* ============================================================
   TYPOGRAPHY OVERRIDES (Kadence defaults → FF brand)
   ============================================================ */

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
  font-family: var(--ff-font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ff-dark-navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: var(--ff-text-mid);
}

/* ============================================================
   KADENCE HEADER OVERRIDES
   ============================================================ */

/* Top header bar */
#masthead,
.site-header,
.kadence-header-wrap {
  background-color: var(--ff-dark-navy) !important;
  border-bottom: 2px solid var(--ff-lime) !important;
}

/* Logo sizing */
.site-branding img,
.custom-logo {
  max-height: 60px;
  width: auto;
}

/* Primary nav links */
.kadence-navigation .menu-item > a,
#site-navigation .nav-menu > li > a {
  font-family: var(--ff-font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ff-white) !important;
  padding: 8px 16px;
  transition: color 0.2s ease;
}

.kadence-navigation .menu-item > a:hover,
#site-navigation .nav-menu > li > a:hover,
.kadence-navigation .current-menu-item > a {
  color: var(--ff-lime) !important;
}

/* Dropdown menus */
.kadence-navigation .sub-menu,
#site-navigation .sub-menu {
  background-color: var(--ff-navy) !important;
  border-top: 2px solid var(--ff-lime);
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.kadence-navigation .sub-menu li a,
#site-navigation .sub-menu li a {
  font-family: var(--ff-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85) !important;
  padding: 10px 20px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.kadence-navigation .sub-menu li a:hover {
  color: var(--ff-lime) !important;
  background-color: rgba(255,255,255,0.05);
}

/* Mobile menu toggle */
.menu-toggle,
.kadence-mobile-toggle {
  color: var(--ff-white) !important;
}

/* ============================================================
   KADENCE FOOTER OVERRIDES
   ============================================================ */

#colophon,
.site-footer,
.kadence-footer-wrap {
  background-color: var(--ff-dark-navy) !important;
  color: var(--ff-white);
  padding: 48px 0 24px;
}

.kadence-footer-wrap a,
.site-footer a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s ease;
}

.kadence-footer-wrap a:hover,
.site-footer a:hover {
  color: var(--ff-lime);
}

.site-footer p,
.kadence-footer-wrap p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* Footer nav widget */
.footer-nav-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-widget ul li {
  margin-bottom: 8px;
}

.footer-nav-widget ul li a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer UKRI logo area */
.footer-ukri-logo img {
  max-height: 60px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* ============================================================
   BUTTONS — FF BRAND STYLE
   ============================================================ */

/* Primary — lime green */
.wp-block-button__link,
.kb-btn,
.ff-btn-primary,
a.ff-btn-primary,
button.ff-btn-primary {
  display: inline-block;
  background-color: var(--ff-lime) !important;
  color: var(--ff-dark-navy) !important;
  font-family: var(--ff-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--ff-radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(200, 230, 60, 0.25);
}

.wp-block-button__link:hover,
.kb-btn:hover,
.ff-btn-primary:hover,
a.ff-btn-primary:hover {
  background-color: var(--ff-lime-dark) !important;
  color: var(--ff-dark-navy) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 230, 60, 0.35);
}

/* Secondary — outlined */
.ff-btn-secondary,
a.ff-btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--ff-white) !important;
  font-family: var(--ff-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: var(--ff-radius);
  border: 2px solid var(--ff-lime);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ff-btn-secondary:hover,
a.ff-btn-secondary:hover {
  background-color: var(--ff-lime);
  color: var(--ff-dark-navy) !important;
}

/* Kadence button blocks on dark backgrounds */
.has-background .wp-block-button__link {
  background-color: var(--ff-lime) !important;
  color: var(--ff-dark-navy) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.ff-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: var(--ff-dark-navy);
  overflow: hidden;
}

.ff-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.92) 50%,
    rgba(26, 74, 92, 0.6) 100%
  );
  z-index: 1;
}

.ff-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.ff-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--ff-container);
  margin: 0 auto;
  padding: var(--ff-section-pad) 24px;
  color: var(--ff-white);
}

.ff-hero h1 {
  color: var(--ff-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.ff-hero h1 em {
  color: var(--ff-lime);
  font-style: normal;
}

.ff-hero p.ff-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin-bottom: 2rem;
}

.ff-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */

.ff-section {
  padding: var(--ff-section-pad) 24px;
}

.ff-section-narrow {
  padding: var(--ff-section-pad-sm) 24px;
}

.ff-section-dark {
  background-color: var(--ff-dark-navy);
  color: var(--ff-white);
}

.ff-section-dark h1,
.ff-section-dark h2,
.ff-section-dark h3,
.ff-section-dark h4 {
  color: var(--ff-white);
}

.ff-section-dark p {
  color: rgba(255,255,255,0.8);
}

.ff-section-navy {
  background-color: var(--ff-navy);
  color: var(--ff-white);
}

.ff-section-light {
  background-color: var(--ff-off-white);
}

.ff-section-teal {
  background-color: var(--ff-teal);
  color: var(--ff-white);
}

.ff-container {
  max-width: var(--ff-container);
  margin-left: auto;
  margin-right: auto;
}

.ff-text-centre {
  text-align: center;
}

.ff-text-lime {
  color: var(--ff-lime);
}

/* Section heading with lime accent line */
.ff-section-heading {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 2rem;
}

.ff-section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background-color: var(--ff-lime);
}

.ff-section-heading.centred::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   SERVICE CARDS (3-UP GRID)
   ============================================================ */

.ff-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.ff-card {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.ff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.15);
}

.ff-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.ff-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ff-card-body h3 {
  color: var(--ff-dark-navy);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.ff-card-body p {
  flex: 1;
  margin-bottom: 20px;
}

.ff-card-body a.ff-link-arrow {
  font-family: var(--ff-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ff-teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.ff-card-body a.ff-link-arrow::after {
  content: '→';
  font-size: 1rem;
}

.ff-card-body a.ff-link-arrow:hover {
  color: var(--ff-lime-dark);
  gap: 10px;
}

/* Dark card variant */
.ff-card.dark {
  background-color: var(--ff-navy);
}

.ff-card.dark .ff-card-body h3 {
  color: var(--ff-white);
}

.ff-card.dark .ff-card-body p {
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   ICON GRID (mission, wider programmes)
   ============================================================ */

.ff-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.ff-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.ff-icon-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.ff-icon-item a {
  font-family: var(--ff-font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ff-dark-navy);
}

/* Icon grid on dark background */
.ff-section-dark .ff-icon-item a,
.ff-section-navy .ff-icon-item a {
  color: var(--ff-lime);
}

/* ============================================================
   ARROW BULLET LIST (lime green arrows)
   ============================================================ */

.ff-arrow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.ff-arrow-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ff-text-mid);
  font-size: 1rem;
}

.ff-arrow-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ff-lime);
  font-weight: 700;
  font-size: 1rem;
}

.ff-section-dark .ff-arrow-list li,
.ff-section-navy .ff-arrow-list li {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   TWO-COLUMN CONTENT + IMAGE LAYOUTS
   ============================================================ */

.ff-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.ff-split.reverse {
  direction: rtl;
}

.ff-split.reverse > * {
  direction: ltr;
}

.ff-split-image {
  border-radius: var(--ff-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.ff-split-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================================
   MISSION STATEMENT BLOCKS
   ============================================================ */

.ff-mission-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.ff-mission-arrow {
  flex-shrink: 0;
  width: 32px;
  height: auto;
  margin-top: 4px;
}

.ff-mission-text {
  font-size: 1.05rem;
  color: var(--ff-text-mid);
  line-height: 1.6;
}

.ff-section-dark .ff-mission-text {
  color: rgba(255,255,255,0.85);
}

/* ============================================================
   OPEN ACCESS / MEMBERSHIP SPLIT
   ============================================================ */

.ff-access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.ff-access-card {
  background-color: var(--ff-white);
  border-radius: var(--ff-radius-lg);
  padding: 36px;
  border-top: 4px solid var(--ff-lime);
  box-shadow: 0 2px 16px rgba(10,22,40,0.08);
}

.ff-access-card h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--ff-dark-navy);
}

.ff-access-card .ff-badge {
  display: inline-block;
  background-color: var(--ff-lime);
  color: var(--ff-dark-navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 40px;
  margin-bottom: 16px;
}

/* ============================================================
   RELATED LINKS / CTA BANNER
   ============================================================ */

.ff-cta-banner {
  background: linear-gradient(135deg, var(--ff-dark-navy) 0%, var(--ff-teal) 100%);
  border-radius: var(--ff-radius-lg);
  padding: 48px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ff-cta-banner h3 {
  color: var(--ff-white);
  margin: 0 0 8px;
}

.ff-cta-banner p {
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */

.ff-page-banner {
  background-color: var(--ff-dark-navy);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.ff-page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ff-lime) 0%, transparent 100%);
}

.ff-page-banner h1 {
  color: var(--ff-white);
  margin-bottom: 12px;
}

.ff-page-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.ff-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  font-family: var(--ff-font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ff-breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.ff-breadcrumb a:hover {
  color: var(--ff-lime);
}

/* ============================================================
   FORMS (gravity forms / CF7 compatibility)
   ============================================================ */

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius);
  padding: 12px 16px;
  font-family: var(--ff-font-body);
  font-size: 1rem;
  color: var(--ff-text-dark);
  width: 100%;
  transition: border-color 0.2s ease;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--ff-lime-dark);
  box-shadow: 0 0 0 3px rgba(200, 230, 60, 0.2);
}

.gform_button,
.wpcf7-submit {
  background-color: var(--ff-lime) !important;
  color: var(--ff-dark-navy) !important;
  font-family: var(--ff-font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: var(--ff-radius);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gform_button:hover,
.wpcf7-submit:hover {
  background-color: var(--ff-lime-dark) !important;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 960px) {
  :root {
    --ff-section-pad: 60px;
  }

  .ff-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ff-split.reverse {
    direction: ltr;
  }

  .ff-access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --ff-section-pad: 48px;
  }

  .ff-cards-grid {
    grid-template-columns: 1fr;
  }

  .ff-hero {
    min-height: 420px;
  }

  .ff-hero h1 {
    font-size: 1.9rem;
  }

  .ff-cta-banner {
    padding: 32px 24px;
  }

  .ff-icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ff-icon-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ff-hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }
}
