/*
Theme Name: Team Bison Theme
Theme URI: https://teambison.co.uk
Author: Team Bison
Author URI: https://teambison.co.uk
Description: A clean, minimalist theme for Team Bison built on the Bison Forge framework. Features scroll animations, modern typography with Inter, and a modular component system.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: teambison
Tags: full-site-editing, block-themes, custom-colors, custom-logo, custom-menu, featured-images, theme-options

License: Proprietary
License URI: https://teambison.co.uk/terms
*/

/* ==========================================================================
   Base Resets & Utilities
   ========================================================================== */

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

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
}

/* ==========================================================================
   Full-width blocks (break out of constrained layout)
   ========================================================================== */

.bison-module-hero,
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ==========================================================================
   Hero Buttons (dtminim style)
   ========================================================================== */

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  color: #ffffff;
  background: transparent;
}

.hero-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-btn-primary {
  background: var(--wp--preset--color--primary, #2068A2);
  border-color: var(--wp--preset--color--primary, #2068A2);
  color: #ffffff;
}

.hero-btn-primary:hover {
  background: var(--wp--preset--color--primary-dark, #174E7A);
  border-color: var(--wp--preset--color--primary-dark, #174E7A);
  color: #ffffff;
}

.hero-btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.hero-btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

/* Desktop nav */
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.primary-nav a {
  text-decoration: none;
  color: var(--wp--preset--color--dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--wp--preset--color--primary);
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
  transition: width 0.3s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

/* Submenu */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wp--preset--color--white);
  min-width: 220px;
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  flex-direction: column;
  gap: 0;
}

.primary-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  padding: 8px 20px;
  display: block;
  font-size: 14px;
}

.primary-nav .sub-menu a::after {
  display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--primary);
}

.btn-primary:hover {
  background-color: var(--wp--preset--color--primary-dark);
  border-color: var(--wp--preset--color--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 104, 162, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--dark);
  border-color: var(--wp--preset--color--accent);
}

.btn-accent:hover {
  background-color: var(--wp--preset--color--accent-dark);
  border-color: var(--wp--preset--color--accent-dark);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: transparent;
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--wp--preset--color--white);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  transition: transform 0.5s ease;
}

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

/* Hover overlay (for case studies, team) */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* ==========================================================================
   Section Spacing
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: var(--wp--preset--font-size--h2);
  color: var(--wp--preset--color--dark);
  margin-bottom: 16px;
}

.section-title p {
  font-size: var(--wp--preset--font-size--medium);
  color: var(--wp--preset--color--body-text);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--wp--preset--color--primary);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ==========================================================================
   Background Variants
   ========================================================================== */

.bg-light {
  background-color: var(--wp--preset--color--light);
}

.bg-surface {
  background-color: var(--wp--preset--color--surface);
}

.bg-dark {
  background-color: var(--wp--preset--color--dark);
  color: var(--wp--preset--color--white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--wp--preset--color--white);
}

.bg-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.bg-primary {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4 {
  color: var(--wp--preset--color--white);
}

.bg-primary p {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Mobile Menu
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--wp--preset--color--dark);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--wp--preset--color--white);
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .primary-nav.open {
    right: 0;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-nav a {
    padding: 12px 0;
    display: block;
    font-size: 16px;
    border-bottom: 1px solid var(--wp--preset--color--border);
  }

  .primary-nav a::after {
    display: none;
  }

  .primary-nav .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0 0 0 16px;
  }
}

/* ==========================================================================
   AOS Animation Overrides
   ========================================================================== */

[data-aos] {
  pointer-events: auto !important;
}

/* Smoother AOS defaults */
[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
}

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

.text-primary {
  color: var(--wp--preset--color--primary);
}

.text-accent {
  color: var(--wp--preset--color--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
