/* ==========================================================================
   WILLIAM KERR (TRACTORS) LTD - CUSTOM STYLESHEET
   Ayrshire's Agricultural Machinery Specialists • Established 1973
   ========================================================================== */

:root {
  --color-navy: #101C2C;
  --color-industrial-blue: #164E80;
  --color-accent-blue: #2686C7;
  --color-forest: #1b4332;
  --color-emerald: #2d6a4f;
  --color-light-green: #52b788;
  --color-mint: #d8f3dc;
  --color-amber: #e0a96d;
  --color-offwhite: #F5F7F9;
  --color-dark-text: #1e293b;
  --color-muted: #64748b;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-dark-text);
  background-color: #FFFFFF;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

/* Header & Top Bar Transitions */
.top-bar {
  background-color: var(--color-navy);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.site-header {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.is-sticky {
  box-shadow: 0 10px 30px -10px rgba(16, 28, 44, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

/* Active navigation state */
.nav-link {
  position: relative;
  font-weight: 600;
  color: #334155;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-emerald);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-emerald);
  border-radius: 9999px;
}

/* Pill Badges (Inspired by Reference Design) */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: #eaf5ee;
  color: var(--color-forest);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-pill .pill-dots {
  display: inline-flex;
  gap: 3px;
}

.badge-pill .pill-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-emerald);
}

.badge-pill .pill-dots span:last-child {
  background-color: var(--color-light-green);
}

/* Rotating Stamp Badge */
.stamp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--color-forest);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(27, 67, 50, 0.3);
  text-align: center;
  border: 3px dashed var(--color-light-green);
  animation: rotateSlow 24s linear infinite;
}

.stamp-badge:hover {
  animation-play-state: paused;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Continuous Brand Ticker Marquee */
.brand-ticker-wrap {
  overflow: hidden;
  user-select: none;
  background: #0f172a;
  padding: 1.25rem 0;
}

.brand-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 35s linear infinite;
}

.brand-ticker-wrap:hover .brand-ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  white-space: nowrap;
}

.ticker-star {
  color: var(--color-light-green);
  font-size: 1.25rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Gutenberg block wrappers */
.gb-block-wrapper {
  position: relative;
  width: 100%;
}

/* Font Heading Utility */
.font-heading {
  font-family: var(--font-heading);
}

/* Brand Text Logo (Pure HTML/CSS, replaces SVG) */
.brand-text-logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  line-height: 1.1;
  user-select: none;
  cursor: pointer;
}

.brand-text-logo .brand-main-title {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text-logo .brand-sub-title {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-text-logo .brand-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* Header Light Theme */
.brand-text-logo.theme-light .brand-main-title {
  color: var(--color-navy);
  transition: color 0.2s ease;
}

.brand-text-logo.theme-light:hover .brand-main-title {
  color: var(--color-forest);
}

.brand-text-logo.theme-light .brand-sub-title {
  color: var(--color-emerald);
}

.brand-text-logo.theme-light .brand-tagline {
  color: #64748b;
}

/* Footer Dark Theme */
.brand-text-logo.theme-dark .brand-main-title {
  color: #ffffff;
  transition: color 0.2s ease;
}

.brand-text-logo.theme-dark:hover .brand-main-title {
  color: var(--color-light-green);
}

.brand-text-logo.theme-dark .brand-sub-title {
  color: var(--color-light-green);
}

.brand-text-logo.theme-dark .brand-tagline {
  color: #94a3b8;
}

/* ==========================================================================
   Hero Slider: 750px Height & Full Background Image Configuration
   ========================================================================== */
.hero-swiper-container {
  position: relative;
  width: 100%;
  height: 550px;
}

@media (min-width: 640px) {
  .hero-swiper-container {
    height: 650px;
  }
}

@media (min-width: 1024px) {
  .hero-swiper-container {
    height: 750px;
  }
}

.hero-swiper {
  width: 100%;
  height: 100% !important;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.01);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1.08);
}

.hero-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.65) 55%, rgba(15, 23, 42, 0.35) 100%);
}

.hero-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
}

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

.hero-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 6px;
  background: #52b788;
}

/* Utility Animations */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

