/*
  Theme: 'Leadership Coaching Nottingham'
  Design System: Minimalist with Block Structure
  Color Scheme: Neutral
  Animation Style: Parallax
  Fonts: Oswald (Headings), Nunito (Body)
  Framework: Bootstrap 5
*/

/* CSS Variables */
:root {
  --font-primary: 'Oswald', sans-serif;
  --font-secondary: 'Nunito', sans-serif;

  --color-text-base: #333333; /* Dark gray for main text */
  --color-text-muted: #6c757d; /* Bootstrap's text-muted */
  --color-text-headings: #222222; /* Darker for headings */
  --color-text-light: #FFFFFF;
  --color-text-link: #007bff; /* Bootstrap primary for links */
  --color-text-link-hover: #0056b3; /* Darker shade for link hover */

  --color-bg-light: #FFFFFF;
  --color-bg-medium: #f8f9fa; /* Bootstrap's bg-light */
  --color-bg-dark: #212529; /* Dark background for contrast, e.g., footer */
  --color-bg-overlay: rgba(0, 0, 0, 0.5);
  --color-bg-overlay-light: rgba(255, 255, 255, 0.85); /* For light overlays on dark images */

  --color-primary: #007bff; /* Main interactive color - Bootstrap primary */
  --color-primary-darker: #0056b3;
  --color-secondary: #6c757d; /* Bootstrap secondary */
  --color-success: #28a745; /* Bootstrap success */
  --color-light: #f8f9fa; /* Bootstrap light */
  --color-accent: #ffc107; /* Example accent - Bootstrap warning yellow */

  --border-radius-base: 0.375rem; /* Bootstrap's default */
  --border-radius-lg: 0.5rem;
  --box-shadow-base: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-hover: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
  --box-shadow-inset: inset 0 1px 2px rgba(0,0,0,.075);


  --transition-base: all 0.3s ease-in-out;
  --header-height: 70px; /* Approximate height of the fixed header */
  --footer-height: auto; /* Dynamic footer height */

  /* Glassmorphism variables */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-bg-darker-card: rgba(50, 50, 50, 0.1); /* For cards on darker backgrounds if needed */
  --glass-blur: 8px;
  --glass-border-color: rgba(255, 255, 255, 0.25);
}

/* Global Styles */
body {
  font-family: var(--font-secondary);
  color: var(--color-text-base);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  font-size: 1rem; /* Base font size */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-primary);
  color: var(--color-text-headings);
  margin-bottom: 0.75rem;
  font-weight: 500; /* Oswald default weight can be heavy, adjust as needed */
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Subtle text shadow for headings */
}

h1, .h1, .display-1, .display-2, .display-3 { font-weight: 700; }
h2, .h2, .display-4 { font-weight: 500; }
h3, .h3 { font-weight: 500; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-base);
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-text-link-hover);
  text-decoration: underline;
}

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

/* Utility Classes */
.bg-medium {
  background-color: var(--color-bg-medium) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

/* Section Styling */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative; /* For parallax or pseudo-elements */
}

section:nth-of-type(even) {
  /* Optional: slightly different background for alternating sections if not using .bg-light explicitly */
  /* background-color: var(--color-bg-medium); */
}

.section-title {
  font-size: 2.5rem; /* Corresponds to h2 or display-5 */
  margin-bottom: 3rem;
  color: var(--color-text-headings);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.section-title-sub { /* For sub-headings within sections */
  font-size: 1.75rem; /* Corresponds to h3 */
  margin-bottom: 1.5rem;
  color: var(--color-text-headings);
  font-weight: 500;
}


/* Header / Navbar */
.header {
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-base);
  height: var(--header-height);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary) !important;
}

.navbar .nav-link {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--color-text-base) !important;
  padding: 0.5rem 1rem;
  transition: var(--transition-base);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-primary) !important;
}

.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Hero Section */
.hero-section {
  min-height: calc(100vh - var(--header-height)); /* Adjust if header is not fixed or has different height */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Simple Parallax Effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
  font-size: 3rem; /* Corresponds to display-3 or custom */
  font-weight: 700;
  color: var(--color-text-light) !important; /* IMPORTANT: White text for hero */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem; /* Corresponds to lead or custom */
  color: var(--color-text-light) !important; /* IMPORTANT: White text for hero */
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* General Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-secondary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-base);
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--box-shadow-sm);
}

.btn:focus, button:focus, input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 0, 123, 255), 0.25); /* Use RGB version of primary if available */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light) !important; /* Ensure text is light */
}

.btn-primary:hover {
  background-color: var(--color-primary-darker);
  border-color: var(--color-primary-darker);
  color: var(--color-text-light) !important;
}

.btn-light {
  background-color: var(--color-bg-light);
  border-color: var(--color-bg-light);
  color: var(--color-text-base) !important;
}
.btn-light:hover {
  background-color: #e2e6ea; /* Slightly darker for hover */
  border-color: #dae0e5;
  color: var(--color-text-base) !important;
}

.btn-outline-primary {
  color: var(--color-primary) !important;
  border-color: var(--color-primary);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light) !important;
  border-color: var(--color-primary);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

/* Card Styling (Generic for Projects, Insights, Accolades, etc.) */
.card {
  border: none; /* Remove Bootstrap default border */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-base);
  transition: var(--transition-base);
  background-color: var(--color-bg-light); /* Default background */
  overflow: hidden; /* Ensure content fits rounded corners */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center card-image and card-body */
  text-align: center; /* Center text within card-body */
  height: 100%; /* For equal height cards in a row */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* Apply glassmorphism effect - use with caution on performance and readability */
.card.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.card.glassmorphism .card-title,
.card.glassmorphism .card-text {
  color: var(--color-text-base); /* Ensure readability on glass */
}
/* If on a dark background, use lighter text for glassmorphism */
.dark-background .card.glassmorphism .card-title,
.dark-background .card.glassmorphism .card-text {
  color: var(--color-text-light);
}


.card-image { /* Container for the image */
  width: 100%;
  height: 200px; /* Fixed height for consistent card image sizes */
  overflow: hidden;
  /* border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg); */
  /* Removed as card itself has overflow:hidden */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Scale image to cover, cropping if necessary */
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05); /* Slight zoom on hover */
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes footer content (like buttons) down */
  flex-grow: 1; /* Allows card body to take available space */
}

.card-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--color-text-headings);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex-grow: 1; /* Allows text to take space before buttons */
}

.card .btn { /* Button specifically inside a card */
  margin-top: auto; /* Pushes button to the bottom if card-body is flex */
}


/* Specific Card Types (can inherit from .card) */
/* Process Section Cards */
.process-card .icon-bg {
  width: 70px;
  height: 70px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto; /* Center the icon */
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--box-shadow-sm);
}
.process-card .card-body {
  padding: 2rem;
}


/* Testimonial Cards */
.testimonial-card {
  background-color: var(--color-bg-medium);
}
.testimonial-card .blockquote {
  font-size: 1rem;
  font-style: italic;
}
.testimonial-card .blockquote-footer {
  font-style: normal;
  color: var(--color-text-base);
  font-weight: 600;
}
.testimonial-card .blockquote-footer cite {
  font-weight: normal;
  color: var(--color-text-muted);
}

/* Team Cards */
.team-card .card-image img.rounded-circle {
  width: 150px; /* Fixed size for team member photos */
  height: 150px;
  object-fit: cover;
  border: 3px solid var(--color-bg-light);
  box-shadow: var(--box-shadow-base);
  margin-top: -1rem; /* Overlap slightly if card has padding */
}
.team-card .card-title {
  margin-top: 0.5rem;
}

/* Resource Cards */
.resource-card .card-title a {
  color: var(--color-text-headings);
  text-decoration: none;
}
.resource-card .card-title a:hover {
  color: var(--color-primary);
}

/* Event Cards */
.event-card .card-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
}

/* "Read More" link style for Insights/Articles */
.insight-card .btn-outline-primary,
.card-link-readmore { /* A more generic class if needed */
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* Innovation Section (Example with background image) */
.innovation-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* Parallax can be added if image makes sense for it */
  /* background-attachment: fixed; */
}
.innovation-section p {
  color: var(--color-text-base); /* Ensure readability on its specific background */
}


/* Contact CTA Section */
.contact-cta-section {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax */
}
.contact-cta-section .section-title,
.contact-cta-section .lead {
  color: var(--color-text-light);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Form Styling */
.form-control {
  font-family: var(--font-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-base);
  border: 1px solid #ced4da; /* Bootstrap default */
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-shadow: var(--box-shadow-inset);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb, 0, 123, 255), 0.25), var(--box-shadow-inset);
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-base);
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}
.form-check-label a {
    text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-muted); /* Muted text for footer */
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer .nav-link {
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
}

.footer .nav-link:hover {
  color: var(--color-text-light);
  text-decoration: none;
}

.footer .social-links a.social-link {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
  font-size: 0.9rem;
  text-decoration: none; /* Remove underline by default for social links */
}

.footer .social-links a.social-link:hover {
  color: var(--color-text-light);
  text-decoration: underline; /* Add underline on hover */
}

.footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Specific Page Styles */
/* About, Privacy, Terms - content padding for fixed header */
main[data-barba-namespace="about"] .py-5:first-child,
main[data-barba-namespace="privacy"] .py-5:first-child,
main[data-barba-namespace="terms"] .py-5:first-child,
main[data-barba-namespace="contact"] .py-5:first-child {
    padding-top: calc(var(--header-height) + 2rem) !important; /* Add space for fixed header */
}

/* For page headers on subpages */
.page-header-section {
    min-height: 300px; /* Or adjust as needed */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    padding-top: var(--header-height); /* Ensure content is below actual header */
}
.page-header-section .page-title,
.page-header-section .lead {
    color: var(--color-text-light) !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Success Page */
main[data-barba-namespace="success"] section.py-5 {
  min-height: calc(100vh - var(--header-height) - var(--footer-height) - 1px); /* -1px for potential border/box-sizing issues */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
}
.success-icon {
    font-size: 5rem !important; /* Larger checkmark */
    color: var(--color-success) !important;
}


/* Contact Details section on Contact page */
.contact-details-section h3 {
    font-family: var(--font-primary);
    color: var(--color-text-headings);
    margin-bottom: 0.5rem;
}
.contact-details-section p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.contact-details-section p a {
    color: var(--color-text-muted);
}
.contact-details-section p a:hover {
    color: var(--color-primary);
}

/* Values list on About page */
.value-title {
    font-weight: 700;
    color: var(--color-text-headings);
}


/* Barba.js Transitions (Basic Example) */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* AOS Animations - Initial state before animation */
[data-aos] {
  /* transition-property: transform, opacity; */ /* AOS handles this */
}


/* Responsive Adjustments (Bootstrap handles most, add specifics if needed) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .navbar-nav {
    background-color: var(--color-bg-light); /* Background for collapsed menu */
    padding: 1rem;
    border-top: 1px solid #eee;
    margin-top: 0.5rem; /* space from toggler */
  }
  .navbar .nav-link {
    padding: 0.75rem 0; /* Adjust padding for mobile menu items */
  }

  /* Adjust padding for fixed header on subpages */
    main[data-barba-namespace="about"] .py-5:first-child,
    main[data-barba-namespace="privacy"] .py-5:first-child,
    main[data-barba-namespace="terms"] .py-5:first-child,
    main[data-barba-namespace="contact"] .py-5:first-child {
        padding-top: calc(var(--header-height) + 1rem) !important;
    }

    .page-header-section {
        min-height: 250px;
    }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  .card-image {
    height: 180px; /* Adjust card image height for smaller screens */
  }
}

/* Cookie Consent Popup (minimal inline CSS is in HTML, this is for minor overrides if needed) */
#cookieConsentPopup {
    font-family: var(--font-secondary); /* Ensure correct font */
}
#cookieConsentPopup p a {
    color: var(--color-primary) !important; /* Make link stand out */
}
#cookieConsentPopup #acceptCookie {
    font-family: var(--font-secondary);
    background-color: var(--color-primary) !important;
    border: none;
    font-weight: 600;
}
#cookieConsentPopup #acceptCookie:hover {
    background-color: var(--color-primary-darker) !important;
}