/*
Theme Name: Stour (themeconvert)

*/

/* External Stylesheets - @import statements MUST come before any CSS rules */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f3f0ea;
  color: #111;
  overflow-x: hidden;
  line-height: 1.6;
}

body.wp-admin {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.page { background: #FFFFFF; }
:where(a) {
  color: inherit;
  text-decoration: none;22
}

:where(a:hover) {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

:where(button, .btn) {
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

input,
textarea,
select {
  font-family: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

/* =========================
   NAVBAR
 ========================= */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo img {
  width: 45px;
}

.logo h2 {
  color: black;
  font-size: 34px;
  letter-spacing: 1px;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: #d92027;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #fff;
}

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

.hero {
  height: 100vh;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25)),
    url('/wp-content/uploads/2026/07/Stourburgring_Hero3_1717x916.jpg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 80px;
}

.hero-content {
  max-width: 650px;
}

.hero-sub {
  color: #d92027;
  font-size: 18px;
  letter-spacing: 4px;
  font-weight: 700;
  margin-bottom: 25px;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 150px;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 30px;
}

.hero p {
  color: #fff;
  font-size: 32px;
  line-height: 1.4;
  max-width: 500px;
  margin-bottom: 45px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 18px 36px;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: 700;
  transition: 0.3s;
}

.btn-primary {
  background: #d92027;
  color: #fff;
}

.btn-primary:hover {
  background: #fff;
  color: #111;
}

.btn-secondary {
  border: 1px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #111;
}

/* =========================
   SECTION TITLES
 ========================= */

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

.section-title h2 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 5px;
  font-size: 42px;
  font-weight: 400;
}

.red-line {
  width: 50px;
  height: 4px;
  background: #d92027;
  margin: 15px auto 0;
}

/* =========================
   PRODUCTS
 ========================= */

.products {
  padding: 100px 70px;
  background: #f3f0ea;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  display: block;
}

.product-info {
  padding-top: 20px;
}

.product-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.product-info p {
  font-weight: 700;
  margin-bottom: 16px;
}

.product-info a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* =========================
   STORY SECTION
 ========================= */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.story-left {
  background: #070707;
  color: #fff;
  padding: 90px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-left h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 35px;
}

.story-left h2 span {
  color: #d92027;
}

.story-left p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 35px;
  font-size: 18px;
}

.story-right {
  background: url('/wp-content/uploads/2026/07/Stourburgring_Hero3_1024x249_BW.jpg') center center/cover no-repeat;
  min-height: 550px;
}

/* =========================
   GALLERY
 ========================= */

.gallery {
  padding: 100px 70px;
  background: #f3f0ea;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* =========================
   TESTIMONIAL
 ========================= */

.testimonial {
  padding: 60px 70px 100px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
}

.testimonial-signature img {
  width: 300px;
  height: 60px;
  object-fit: cover;
}

.testimonial-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  margin-bottom: 25px;
}

.testimonial-content p {
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.signature {
  font-size: 38px;
  font-family: cursive;
}

/* =========================
   FEATURES
 ========================= */

.features {
  padding: 0 70px 100px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature-card {
  background: #fff;
  padding: 50px 30px;
  text-align: center;
}

.feature-card h3 {
  margin-top: 18px;
  font-size: 22px;
}

/* =========================
   NEWSLETTER
 ========================= */

.newsletter {
  background: #050505;
  color: #fff;
  padding: 90px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.newsletter h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  margin-bottom: 10px;
}

.newsletter p {
  color: #ccc;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  width: 320px;
  padding: 18px;
  border: none;
  outline: none;
}

.newsletter-form button {
  border: none;
  background: #d92027;
  color: #fff;
  padding: 18px 35px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   FOOTER
 ========================= */

footer {
  background: #000;
  color: #fff;
  padding: 80px 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column {
  min-height: 0;
}

.footer-column > :last-child {
  margin-bottom: 0;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ccc;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: 0.3s;
  width: 42px;
}

.footer-social-link:hover {
  background: #d92027;
  border-color: #d92027;
  color: #fff;
  transform: translateY(-3px);
}

.footer-social-link svg {
  display: block;
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 21px;
}

.footer-social-link[aria-label='Facebook'] svg,
.footer-social-link[aria-label='TikTok'] svg,
.footer-social-link[aria-label='X'] svg {
  fill: currentColor;
  stroke: none;
}

/* =========================
   TESTIMONIAL FULL-WIDTH OVERRIDE
 ========================= */

.front-page > .testimonial {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(420px, 760px);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(56px, 7vw, 100px) clamp(24px, 5vw, 80px);
}

.front-page > .testimonial .testimonial-img {
  display: block;
  width: min(100%, 420px);
  max-width: 420px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  justify-self: center;
}

.front-page > .testimonial .testimonial-content {
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.front-page > .testimonial .testimonial-content h2 {
  font-size: clamp(48px, 5vw, 78px);
  overflow-wrap: anywhere;
}

.front-page > .testimonial .testimonial-content p {
  max-width: 100%;
}

.front-page > .testimonial .testimonial-signature,
.front-page > .testimonial .testimonial-signature img {
  display: block;
  width: min(100%, 300px);
  max-width: 300px;
  height: auto;
  margin-top: 24px;
}

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

html,
body {
  background: #f3f0ea !important;
  min-height: 0 !important;
}

body > footer,
.site-footer {
  align-self: auto !important;
  display: block !important;
  flex: 0 0 auto !important;
  height: auto !important;
  margin-top: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 48px 70px !important;
}

/* =========================
   CONTAINER & LAYOUT
 ========================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main {
  margin-top: 0;
  padding-top: 0;
  min-height: 60vh;
}

.site-main > section:first-of-type,
.site-main > div:first-of-type > section:first-of-type {
  margin-top: 0;
}

.site-footer {
  margin-top: auto;
}

/* =========================
   WORDPRESS-SPECIFIC STYLES
 ========================= */

.wp-block-group {
  margin-bottom: 1rem;
}

.wp-block-image {
  margin-bottom: 1rem;
}

.wp-block-button {
  margin-bottom: 1rem;
}

/* CRITICAL: Reset WordPress default constraints that break layouts */
.entry-content,
.site-content,
.content-area {
  max-width: none !important;
  width: 100% !important;
}

section,
.section {
  max-width: none !important;
}

/* Reset WordPress default margins that break spacing */
.entry-content > *:first-child,
.site-content > *:first-child {
  margin-top: 0 !important;
}

/* =========================
   THEMECONVERT COMPONENTS
 ========================= */

/* Scroll-reveal utilities for carousels */
.scroll-fade-up:has([aria-roledescription='carousel']),
.scroll-fade-up:has([data-themeconvert-blog-filter-bar]),
.scroll-fade-left:has([aria-roledescription='carousel']),
.scroll-fade-right:has([aria-roledescription='carousel']),
.scroll-scale-in:has([aria-roledescription='carousel']) {
  opacity: 1 !important;
  transform: none !important;
}

/* Auto-scroll marquee animation */
.themeconvert-marquee-container {
  overflow: hidden !important;
}

.themeconvert-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: themeconvert-marquee 30s linear infinite;
}

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

.themeconvert-marquee-container:hover .themeconvert-marquee-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .themeconvert-marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* Float/Pulse animations */
@keyframes themeconvert-float-1 {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(8px); }
}

@keyframes themeconvert-float-2 {
  0%, 100% { transform: translateY(6px); }
  50% { transform: translateY(-10px); }
}

@keyframes themeconvert-float-3 {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(12px); }
}

@keyframes themeconvert-float-4 {
  0%, 100% { transform: translateY(10px); }
  50% { transform: translateY(-6px); }
}

@keyframes themeconvert-pulse {
  0%, 100% { scale: 1; }
  50% { scale: 1.05; }
}

@keyframes themeconvert-float-tilt {
  0%, 100% { transform: translateY(0%) rotate(0deg); }
  50% { transform: translateY(4%) rotate(-2deg); }
}

.themeconvert-float-1 { animation: themeconvert-float-1 5s ease-in-out infinite; }
.themeconvert-float-2 { animation: themeconvert-float-2 6s ease-in-out infinite 0.5s; }
.themeconvert-float-3 { animation: themeconvert-float-3 5.5s ease-in-out infinite 1s; }
.themeconvert-float-4 { animation: themeconvert-float-4 6.5s ease-in-out infinite 1.5s; }
.themeconvert-pulse { animation: themeconvert-pulse 4s ease-in-out infinite; }
.themeconvert-float-tilt { animation: themeconvert-float-tilt 6s ease-in-out infinite; }

.themeconvert-pulse.z-0 { z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  .themeconvert-float-1,
  .themeconvert-float-2,
  .themeconvert-float-3,
  .themeconvert-float-4,
  .themeconvert-pulse,
  .themeconvert-float-tilt {
    animation: none;
  }
}

/* Tabs Component */
.themeconvert-tabs {
  max-width: 64rem;
  margin: 0 auto;
}

.themeconvert-tab-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .themeconvert-tab-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .themeconvert-tab-nav {
    grid-template-columns: repeat(6, 1fr);
  }
}

.themeconvert-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
}

.themeconvert-tab-btn:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--foreground));
}

.themeconvert-tab-btn.active {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.themeconvert-tab-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

.themeconvert-tab-icon svg {
  width: 100%;
  height: 100%;
}

.themeconvert-tab-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.themeconvert-tab-viewport {
  position: relative;
  display: flex;
  align-items: center;
}

.themeconvert-tab-content {
  flex: 1;
  position: relative;
}

.themeconvert-tab-panel {
  display: none;
  padding: 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--muted) / 0.3) 100%);
  border: 1px solid hsl(var(--border));
  text-align: center;
  animation: themeconvert-tab-fade-in 0.3s ease;
}

.themeconvert-tab-panel.active {
  display: block;
}

@keyframes themeconvert-tab-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.themeconvert-tab-icon-large {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 2rem;
  padding: 1rem;
  border-radius: 1rem;
  background: hsl(var(--primary) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.themeconvert-tab-icon-large svg {
  width: 100%;
  height: 100%;
  color: hsl(var(--primary));
}

.themeconvert-tab-title {
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .themeconvert-tab-title {
    font-size: 1.875rem;
  }
}

.themeconvert-tab-description {
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.themeconvert-tab-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.themeconvert-tab-arrow:hover {
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.themeconvert-tab-prev { left: -1rem; }

@media (min-width: 640px) {
  .themeconvert-tab-prev { left: -1.5rem; }
}

.themeconvert-tab-next { right: -1rem; }

@media (min-width: 640px) {
  .themeconvert-tab-next { right: -1.5rem; }
}

.themeconvert-tab-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.themeconvert-tab-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.themeconvert-tab-dot:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

.themeconvert-tab-dot.active {
  background: hsl(var(--primary));
  width: 2rem;
  border-radius: 0.375rem;
}

/* Multi-step form wizard */
.themeconvert-multistep-form {
  width: 100%;
}

.themeconvert-step-panel {
  display: none;
}

.themeconvert-step-panel.active {
  display: block;
  animation: themeconvert-step-fade-in 0.25s ease;
}

@keyframes themeconvert-step-fade-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.themeconvert-step-progress-fill {
  transition: width 0.4s ease-out;
}

/* Signature canvas */
canvas[data-wpc-sig-init] {
  width: 100%;
  min-height: 150px;
  border: 2px solid var(--border, #e5e7eb);
  border-radius: 1rem;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* Interactive calculator */
[data-wpc-calc] input[type='range'] {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

[data-wpc-calc] input[type='range']:focus {
  outline: none;
}

[data-wpc-calc] [data-wpc-calc-toggle].wpc-calc-toggle-active {
  opacity: 1;
}

[data-wpc-calc] [data-wpc-calc-toggle]:not(.wpc-calc-toggle-active) {
  opacity: 0.6;
}

/* Gradient overlays fallback */
.group [class*='absolute'][class*='inset-0'][class*='bg-gradient'].opacity-0 {
  opacity: 0 !important;
}

.group [class*='absolute'][class*='bottom-0'][class*='bg-gradient'].scale-x-0 {
  transform: scaleX(0) !important;
}

/* Dark theme overrides */
.dark .bg-white,
.dark [class*='bg-white'] {
  --foreground: 222.2 84% 4.9%;
  --muted-foreground: 215.4 16.3% 46.9%;
  color: hsl(222.2 84% 4.9%);
}

.dark .bg-white .text-foreground,
.dark [class*='bg-white'] .text-foreground,
.dark .bg-white [class*='text-foreground'],
.dark [class*='bg-white'] [class*='text-foreground'] {
  color: hsl(222.2 84% 4.9%);
}

/* =========================
   NAVIGATION MENU
 ========================= */

.menu-item,
li.menu-item,
li.menu-item-type-post_type,
li.menu-item-type-custom,
li.menu-item-object-page,
li.menu-item-has-children {
  position: relative;
  list-style: none !important;
  margin: 0;
}

header ul#themeconvert-primary-ul,
#themeconvert-primary-ul,
#themeconvert-primary-ul.menu,
ul#themeconvert-primary-ul.menu,
ul.menu:not(.submenu):not(.sub-menu) {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

header nav.main-nav ul#themeconvert-primary-ul,
header .main-nav ul#themeconvert-primary-ul,
nav.main-nav ul#themeconvert-primary-ul,
.main-nav #themeconvert-primary-ul,
.main-nav ul#themeconvert-primary-ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

header nav.main-nav ul#themeconvert-primary-ul a,
header .main-nav ul#themeconvert-primary-ul a,
nav.main-nav ul#themeconvert-primary-ul a,
.main-nav #themeconvert-primary-ul a,
.main-nav ul#themeconvert-primary-ul a {
  text-decoration: none;
  font-weight: 500;
}

header ul#themeconvert-primary-ul > li,
#themeconvert-primary-ul > li,
#themeconvert-primary-ul > li.menu-item,
#themeconvert-primary-ul > li.menu-item-type-post_type,
#themeconvert-primary-ul > li.menu-item-type-custom,
#themeconvert-primary-ul > li.menu-item-object-page,
#themeconvert-primary-ul > li.menu-item-object-custom,
#themeconvert-primary-ul > li.menu-item-has-children,
#themeconvert-primary-ul > li.current-menu-item,
#themeconvert-primary-ul > li.current_page_item,
#themeconvert-primary-ul > li.current-menu-ancestor,
#themeconvert-primary-ul.menu > li,
ul.menu:not(.submenu):not(.sub-menu) > li,
body #themeconvert-primary-ul > li {
  display: inline-block !important;
  position: relative !important;
  flex-shrink: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  vertical-align: middle !important;
  float: none !important;
  width: auto !important;
  clear: none !important;
}

.menu-item.menu-item-has-children > .submenu,
.menu-item.menu-item-has-children > .sub-menu,
.menu-item-has-children > ul,
li.menu-item-has-children > ul {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: white !important;
  min-width: 200px !important;
  max-width: 500px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  z-index: 9999 !important;
  padding: 0.5rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.375rem !important;
}

.menu-item.menu-item-has-children:hover > .submenu,
.menu-item.menu-item-has-children:hover > .sub-menu,
.menu-item.menu-item-has-children:hover > ul,
.menu-item.menu-item-has-children:focus-within > .submenu,
.menu-item.menu-item-has-children:focus-within > .sub-menu,
.menu-item.menu-item-has-children:focus-within > ul,
li.menu-item-has-children:hover > ul,
li.menu-item-has-children:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.submenu li,
.submenu .menu-item,
.submenu .menu-item-type-post_type,
.submenu .menu-item-type-custom,
.submenu .menu-item-object-page,
.submenu .menu-item-object-custom,
.submenu .current-menu-item,
.submenu .current_page_item,
ul.sub-menu li,
ul.sub-menu .menu-item,
body .submenu li {
  display: block !important;
  width: 100% !important;
  position: relative !important;
  flex-direction: column !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}

.submenu .menu-item a,
.submenu a,
ul.sub-menu a {
  display: block !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.submenu .menu-item.inline-flex,
.submenu .menu-item.flex,
.submenu .menu-item.grid,
.submenu li.inline-flex,
.submenu li.flex,
.submenu li.grid,
.submenu .inline-flex,
.submenu .flex,
.submenu .grid {
  display: block !important;
  flex-direction: column !important;
}

.submenu .menu-item a.inline-flex,
.submenu .menu-item a.flex,
.submenu .menu-item a.grid,
.submenu a.inline-flex,
.submenu a.flex,
.submenu a.grid {
  display: block !important;
}

.submenu,
ul.sub-menu {
  flex-direction: column !important;
  display: block !important;
}

.themeconvert-active-link {
  font-weight: 600;
}

a.themeconvert-active-link.text-primary,
.current-menu-item > a.text-primary,
.current_page_item > a.text-primary {
  color: hsl(var(--primary)) !important;
}

nav a.text-foreground:not(.themeconvert-active-link):not(.text-primary) {
  color: hsl(var(--foreground)) !important;
}

.themeconvert-flat-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  display: none;
  z-index: 9999;
}

.themeconvert-flat-submenu a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.themeconvert-flat-submenu--mega-cols-2 {
  min-width: min(640px, 92vw);
  column-count: 2;
  column-gap: 2.5rem;
  padding: 0.75rem 1.25rem !important;
}

.themeconvert-flat-submenu--mega-cols-2 > a {
  white-space: normal !important;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

li.menu-item-has-children:hover > .themeconvert-flat-submenu,
li.menu-item-has-children:focus-within > .themeconvert-flat-submenu {
  display: block !important;
}

[data-radix-navigation-menu-viewport],
[class*='viewport'][data-state='open'],
[class*='popover'][data-state='open'],
.radix-navigation-menu-viewport,
nav > div[class*='absolute'][class*='top-full'] {
  display: none !important;
  visibility: hidden !important;
}

[role='dialog'][class*='fixed'],
[data-radix-dialog-content][class*='fixed'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='bg-black'],
div[data-state='open'][class*='fixed'][class*='inset-0'][class*='backdrop'] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Header/Navigation positioning */
header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']),
.site-header:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']),
nav:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']):not(#themeconvert-mobile-nav),
[role='banner']:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']),
[role='navigation']:not([class*='sticky']):not([class*='fixed']):not([class*='absolute']):not(#themeconvert-mobile-nav) {
  position: relative !important;
  z-index: 1000 !important;
}

nav[class*='sticky'],
nav[class*='fixed'],
header nav[class*='sticky'],
header nav[class*='fixed'],
header[class*='sticky'],
header[class*='fixed'],
.site-header[class*='sticky'],
.site-header[class*='fixed'] {
  z-index: 1000 !important;
}

nav.sticky,
nav[class*='sticky']:not([style*='position']),
header nav.sticky,
header nav[class*='sticky']:not([style*='position']),
header.sticky,
header[class*='sticky']:not([style*='position']) {
  position: sticky !important;
}

nav.fixed,
nav[class*='fixed']:not([style*='position']),
header nav.fixed,
header nav[class*='fixed']:not([style*='position']),
header.fixed,
header[class*='fixed']:not([style*='position']) {
  position: fixed !important;
}

nav[class*='sticky'][class*='top-0'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='sticky'][class*='top-0'],
header nav[class*='fixed'][class*='top-0'],
header[class*='sticky'][class*='top-0'],
header[class*='fixed'][class*='top-0'] {
  top: 0 !important;
}

nav[class*='fixed'][class*='w-full'],
nav[class*='fixed'][class*='top-0'],
header nav[class*='fixed'][class*='w-full'],
header nav[class*='fixed'][class*='top-0'],
header[class*='fixed'][class*='w-full'],
header[class*='fixed'][class*='top-0'] {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

section[class*='hero'],
.hero,
main,
.site-main {
  position: relative;
  z-index: 1;
}

.site-header:not([class*='sticky']):not([class*='fixed']) {
  position: relative;
}

/* Popup disable */
[data-themeconvert-popup-disabled='true'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  position: absolute !important;
  left: -99999px !important;
  transform: scale(0) !important;
}

[data-themeconvert-popup-disabled='true'] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

[data-themeconvert-popup-disabled='true'].overlay,
[data-themeconvert-popup-disabled='true'][class*='overlay'],
[data-themeconvert-popup-disabled='true'][class*='backdrop'],
[data-themeconvert-popup-disabled='true'][class*='bg'] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* =========================
   GRID LAYOUT & SIDEBAR
 ========================= */

.grid-layout-container {
  width: 100%;
  max-width: 100%;
}

.grid-layout-container .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.grid-layout-container [class*='col-'] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .grid-layout-container .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .grid-layout-container .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .grid-layout-container .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .grid-layout-container .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .grid-layout-container .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .grid-layout-container .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}




@media (max-width: 767px) {
  .grid-layout-container [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.grid-layout-container aside,
.grid-layout-container [class*='sidebar'] {
  padding: 20px;
}

/* =========================
   WORDPRESS BLOG ARCHIVES
 ========================= */

.blog-archive {
  background: #f3f0ea;
  color: #111;
  min-height: 100vh;
}

.blog-archive a {
  color: inherit;
  text-decoration: none;
}

.blog-archive-hero {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45)),
    #111;
  color: #fff;
  padding: 170px 70px 90px;
}

.blog-archive-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.blog-archive .section-title {
  margin-bottom: 0;
}

.blog-archive .section-title h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.blog-archive-description {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.blog-archive-listing {
  padding: 90px 70px 110px;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.blog-post-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-card:hover {
  box-shadow: 0 22px 45px rgba(17, 17, 17, 0.12);
  transform: translateY(-6px);
}

.blog-post-card-image-link {
  display: block;
  overflow: hidden;
}

.blog-post-card-image {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s;
  width: 100%;
}

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

.blog-post-card-image-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(217, 32, 39, 0.86), rgba(17, 17, 17, 0.95)),
    #111;
  color: #fff;
  display: flex;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  justify-content: center;
  letter-spacing: 5px;
  min-height: 240px;
}

.blog-post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.blog-post-card-meta {
  align-items: center;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.blog-post-card-meta a,
.blog-post-card-taxonomy a {
  color: #666;
  transition: color 0.3s;
}

.blog-post-card-meta a:hover,
.blog-post-card-taxonomy a:hover,
.blog-post-card-title a:hover {
  color: #d92027;
}

.blog-post-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 18px;
}

.blog-post-card-excerpt {
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}

.blog-post-card-excerpt p {
  margin: 0;
}

.blog-post-card-taxonomy {
  color: #666;
  font-size: 13px;
  font-weight: 700;
  margin-top: 22px;
  text-transform: uppercase;
}

.blog-post-card-read-more {
  color: #d92027 !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: auto;
  padding-top: 26px;
  text-transform: uppercase;
}

.blog-post-card-read-more:hover {
  color: #111 !important;
}

.blog-pagination {
  margin-top: 70px;
  text-align: center;
}

.blog-pagination .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.blog-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  color: #111;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  min-width: 46px;
  padding: 12px 16px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: #d92027;
  border-color: #d92027;
  color: #fff;
}

.blog-no-posts {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  padding: 70px 30px;
  text-align: center;
}

.blog-no-posts h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.blog-no-posts p {
  color: #666;
}

/* =========================
   WORDPRESS SINGLE POSTS
 ========================= */

.single-post-page {
  background: #f3f0ea;
  color: #111;
}

.single-post-page a {
  color: inherit;
  text-decoration: none;
}

.single-post-hero {
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.48)),
    #111;
  color: #fff;
  padding: 170px 70px 95px;
  text-align: center;
}

.single-post-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.single-post-kicker {
  color: #d92027;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.single-post-kicker a {
  color: #d92027;
}

.single-post-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 400;
  letter-spacing: 4px;
  line-height: 0.95;
  text-transform: uppercase;
}

.single-post-meta {
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  letter-spacing: 0.7px;
  margin-top: 28px;
  text-transform: uppercase;
}

.single-post-meta a {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.3s;
}

.single-post-meta a:hover {
  color: #d92027;
}

.single-post-body {
  padding: 90px 70px 110px;
}

.single-post-featured-image {
  margin: 0 0 48px;
  overflow: hidden;
}

.single-post-image {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.single-post-content {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: #333;
  font-size: 18px;
  line-height: 1.85;
  padding: 48px;
}

.single-post-content > * + * {
  margin-top: 1.35em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: #111;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.05;
  margin-top: 1.6em;
}

.single-post-content h2 {
  font-size: 44px;
}

.single-post-content h3 {
  font-size: 34px;
}

.single-post-content h4 {
  font-size: 28px;
}

.single-post-content p,
.single-post-content ul,
.single-post-content ol {
  margin-bottom: 0;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.4em;
}

.single-post-content li {
  list-style: inherit;
  margin-top: 0.5em;
}

.single-post-content blockquote {
  border-left: 5px solid #d92027;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  padding-left: 28px;
}

.single-post-content a {
  color: #d92027;
  font-weight: 700;
}

.single-post-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.single-post-page-links a,
.single-post-page-links span {
  background: #f3f0ea;
  border: 1px solid rgba(17, 17, 17, 0.12);
  display: inline-flex;
  font-weight: 800;
  min-width: 42px;
  padding: 8px 13px;
}

.single-post-footer {
  margin-top: 34px;
}

.single-post-tags {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  color: #666;
  font-size: 13px;
  font-weight: 700;
  padding: 22px 28px;
  text-transform: uppercase;
}

.single-post-tags span {
  color: #111;
  margin-right: 8px;
}

.single-post-tags a {
  color: #d92027;
}

.single-post-navigation {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 46px;
}

.single-post-navigation a {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  display: block;
  min-height: 100%;
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.single-post-navigation a:hover {
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.1);
  transform: translateY(-4px);
}

.single-post-navigation span {
  color: #d92027;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.single-post-navigation strong {
  color: #111;
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
}

.single-post-nav-next {
  text-align: right;
}

.single-post-page .comments-area {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.1);
  margin-top: 46px;
  padding: 38px;
}

/* =========================
   RESPONSIVE / MEDIA QUERIES
 ========================= */

@media (max-width: 1024px) {
  .blog-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hero {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 90px;
  }

  .hero p {
    font-size: 24px;
  }

  .product-grid,
  .gallery-grid,
  .feature-grid,
  .footer-grid,
  .story {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .front-page > .testimonial {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    padding: clamp(48px, 10vw, 72px) clamp(20px, 6vw, 48px);
  }

  .front-page > .testimonial .testimonial-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .front-page > .testimonial .testimonial-signature,
  .front-page > .testimonial .testimonial-signature img {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 25px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    height: auto;
    padding: 180px 25px 120px;
  }

  .hero h1 {
    font-size: 68px;
  }

  .hero p {
    font-size: 22px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .products,
  .gallery,
  .features,
  footer,
  .newsletter {
    padding-left: 25px;
    padding-right: 25px;
  }

  .product-grid,
  .gallery-grid,
  .feature-grid,
  .footer-grid,
  .story {
    grid-template-columns: 1fr;
  }

  .story-right {
    min-height: 350px;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
  }

  .container {
    padding: 0 1rem;
  }

  .menu-item.menu-item-has-children > .submenu {
    position: static;
    box-shadow: none;
  }

  body > footer,
  .site-footer {
    padding: 40px 25px !important;
  }

  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 700px) {
  .blog-archive-hero,
  .blog-archive-listing {
    padding-left: 24px;
    padding-right: 24px;
  }

  .blog-archive-listing {
    padding: 90px 70px 110px;
  }

  .blog-archive-hero {
    padding-top: 140px;
    padding-bottom: 70px;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-card-title {
    font-size: 30px;
  }

  .blog-post-card-content {
    padding: 24px;
  }

  .blog-pagination .nav-links {
    display: flex;
  }

  .single-post-hero,
  .single-post-body {
    padding-left: 24px;
    padding-right: 24px;
  }

  .single-post-hero {
    padding-top: 140px;
    padding-bottom: 72px;
  }

  .single-post-content {
    font-size: 16px;
    padding: 30px 24px;
  }

  .single-post-content h2 {
    font-size: 36px;
  }

  .single-post-content h3 {
    font-size: 30px;
  }

  .single-post-navigation {
    grid-template-columns: 1fr;
  }

  .single-post-nav-next {
    text-align: left;
  }
}

@media (max-width: 600px) {

	.hero {
	  height: 60vh;
	  background:
		linear-gradient(to right, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.25)),
		url('/wp-content/uploads/2026/07/Stourburgring_Hero3_1080x1080.jpg') center center/cover no-repeat!important;
	  position: relative;
	  display: flex;
	  align-items: center;
	    margin: 0 auto;
      padding: 0px!important;
	}	
	
	.hero-content { margin: 0 auto; }
	
  .front-page > .testimonial {
    gap: 24px;
    padding: 36px 16px 48px;
  }

  .front-page > .testimonial .testimonial-img {
    width: min(70vw, 240px);
    max-width: 240px;
  }

  .front-page > .testimonial .testimonial-content h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .front-page > .testimonial .testimonial-content p {
    font-size: 15px;
    line-height: 1.6;
  }

  .front-page > .testimonial .testimonial-signature,
  .front-page > .testimonial .testimonial-signature img {
    width: min(80%, 220px);
    max-width: 220px;
  }

  /* Compact footer on mobile */
  body > footer,
  .site-footer {
    padding: 32px 16px !important;
  }

  .footer-grid {
    gap: 24px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column h4 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .footer-logo {
    font-size: 32px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-logo img {
    max-height: 40px !important;
  }

  .footer-column p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-social-link {
    width: 38px;
    height: 38px;
  }

  .footer-social-link svg {
    width: 18px;
    height: 18px;
  }

  .footer-info-menu {
    text-align: center;
  }

  .footer-info-menu li {
    margin-bottom: 10px;
  }

  .footer-info-menu a {
    font-size: 14px;
  }
}

@media (max-width: 400px) {
	
	
	
  .front-page > .testimonial {
    padding: 28px 12px 40px;
  }

  .front-page > .testimonial .testimonial-img {
    width: min(80vw, 200px);
    max-width: 200px;
  }

  .front-page > .testimonial .testimonial-content h2 {
    font-size: clamp(24px, 8vw, 36px);
  }

  .front-page > .testimonial .testimonial-signature,
  .front-page > .testimonial .testimonial-signature img {
    width: min(85%, 180px);
    max-width: 180px;
  }

  body > footer,
  .site-footer {
    padding: 28px 12px !important;
  }

  .footer-grid {
    gap: 20px;
  }

  .footer-column h4 {
    font-size: 22px;
  }

  .footer-social-link {
    width: 36px;
    height: 36px;
  }

  .footer-social-link svg {
    width: 16px;
    height: 16px;
  }
}

/* =========================
   MOBILE NAVIGATION & MODALS
 ========================= */

/* CSS Variables for theme-aware colors */
:root {
  --themeconvert-header-bar-height: 4rem;
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --primary: 222.2 47.4% 11.2%;
  --primary-foreground: 210 40% 98%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --input: 214.3 31.8% 91.4%;
  --border: 214.3 31.8% 91.4%;
  --ring: 222.2 84% 4.9%;
}

.dark,
[class*="bg-slate-950"],
[class*="bg-gray-950"],
[class*="bg-zinc-950"],
[class*="bg-neutral-950"] {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 217.2 32.6% 17.5%;
  --card-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --input: 217.2 32.6% 17.5%;
  --border: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
}

/* Scroll-reveal carousel fixes */
.scroll-fade-up:has([aria-roledescription="carousel"]),
.scroll-fade-up:has([data-themeconvert-carousel]),
.scroll-fade-up:has([data-wpc-carousel="true"]),
.scroll-fade-up:has([data-themeconvert-blog-filter-bar]) {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

[role="region"][aria-roledescription="carousel"],
[data-themeconvert-carousel="aria"],
[data-wpc-carousel="true"] {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile sticky CTA */
#themeconvert-mobile-sticky-cta {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  #themeconvert-mobile-sticky-cta {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 50 !important;
  }
}

/* Header nowrap */
header .container.flex.items-center.justify-between,
header .container.flex {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
}

header .container.flex.h-16,
header .container.flex.min-h-16 {
  min-height: var(--themeconvert-header-bar-height) !important;
}

/* Nav cluster */
[data-themeconvert-merge-nav-cluster] {
  display: none !important;
}

@media (min-width: 640px) {
  [data-themeconvert-merge-nav-cluster="sm"] {
    display: contents !important;
  }
}

@media (min-width: 768px) {
  [data-themeconvert-merge-nav-cluster="md"] {
    display: contents !important;
  }
}

@media (min-width: 1024px) {
  [data-themeconvert-merge-nav-cluster="lg"] {
    display: contents !important;
  }
}

@media (min-width: 1280px) {
  [data-themeconvert-merge-nav-cluster="xl"] {
    display: contents !important;
  }
}

/* Popup hiding */
[data-themeconvert-popup-disabled="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -99999px !important;
  top: -99999px !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  z-index: -99999 !important;
  transform: scale(0) !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-themeconvert-popup-disabled="true"] * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Mobile Navigation */
#themeconvert-mobile-nav {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 280px;
  max-width: 85vw;
  z-index: 99999 !important;
  background: hsl(var(--background, 0 0% 100%));
  color: hsl(var(--foreground, 0 0% 10%));
  overflow-y: auto;
  will-change: transform;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark #themeconvert-mobile-nav,
[data-theme="dark"] #themeconvert-mobile-nav,
html.dark #themeconvert-mobile-nav {
  background: hsl(var(--background, 222 47% 11%));
  color: hsl(var(--foreground, 210 40% 98%));
}

#themeconvert-mobile-nav .nav-inner,
#themeconvert-mobile-nav a,
#themeconvert-mobile-nav button {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

#themeconvert-mobile-nav.slide-right {
  right: 0;
  left: auto;
  border-left: 1px solid hsl(var(--border, 0 0% 80%) / 0.3);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
}

#themeconvert-mobile-nav.slide-left {
  left: 0;
  right: auto;
  border-right: 1px solid hsl(var(--border, 0 0% 80%) / 0.3);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
}

#themeconvert-mobile-nav.open,
#themeconvert-mobile-nav.slide-right.open,
#themeconvert-mobile-nav.slide-left.open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

#themeconvert-mobile-nav .nav-inner {
  padding: 1rem;
  padding-top: 3.5rem;
}

#themeconvert-mobile-nav .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: inherit;
  touch-action: manipulation;
}

#themeconvert-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#themeconvert-mobile-nav li {
  margin: 0;
  border-bottom: 1px solid hsl(var(--border, 0 0% 80%) / 0.15);
}

#themeconvert-mobile-nav li:last-child {
  border-bottom: none;
}

#themeconvert-mobile-nav a {
  display: block;
  padding: 0.875rem 0.5rem;
  text-decoration: none;
  color: hsl(var(--foreground, 0 0% 10%));
  transition: background-color 0.2s;
}

#themeconvert-mobile-nav a:hover {
  background: hsl(var(--accent, 0 0% 95%) / 0.5);
}

.dark #themeconvert-mobile-nav a,
[data-theme="dark"] #themeconvert-mobile-nav a {
  color: hsl(var(--foreground, 210 40% 98%));
}

.dark #themeconvert-mobile-nav a:hover,
[data-theme="dark"] #themeconvert-mobile-nav a:hover {
  background: hsl(var(--accent, 217 33% 17%) / 0.5);
}

#themeconvert-mobile-nav .current-menu-item > a,
#themeconvert-mobile-nav .current_page_item > a {
  color: hsl(var(--primary, 217 91% 60%));
  background: hsl(var(--primary, 217 91% 60%) / 0.1);
}

body.mobile-nav-open {
  overflow: hidden;
}

/* Mobile nav backdrop */
#themeconvert-mobile-nav-backdrop {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99998 !important;
}

body.mobile-nav-open #themeconvert-mobile-nav-backdrop {
  display: block !important;
}

/* Search Modal */
#themeconvert-search-modal {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 100000;
  padding: 1rem;
  padding-top: 15vh;
}

#themeconvert-search-modal.open {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#themeconvert-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#themeconvert-search-container {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background: hsl(var(--background, 0 0% 100%));
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: themeconvert-search-slide-down 0.2s ease-out;
}

@keyframes themeconvert-search-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dark #themeconvert-search-container {
  background: hsl(var(--background, 222 47% 11%));
}

#themeconvert-search-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border, 0 0% 80%) / 0.3);
}

#themeconvert-search-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
  color: hsl(var(--muted-foreground, 0 0% 45%));
}

#themeconvert-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: hsl(var(--foreground, 0 0% 10%));
}

#themeconvert-search-input::placeholder {
  color: hsl(var(--muted-foreground, 0 0% 45%));
}

.dark #themeconvert-search-input {
  color: hsl(var(--foreground, 210 40% 98%));
}

#themeconvert-search-close {
  flex-shrink: 0;
  padding: 0.5rem;
  margin-left: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground, 0 0% 45%));
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

#themeconvert-search-close:hover {
  background: hsl(var(--accent, 0 0% 95%) / 0.5);
}

#themeconvert-search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: 0.5rem;
}

#themeconvert-search-results:empty::after {
  content: "Type to search...";
  display: block;
  padding: 1rem;
  text-align: center;
  color: hsl(var(--muted-foreground, 0 0% 45%));
  font-size: 0.875rem;
}

.themeconvert-search-result {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: hsl(var(--foreground, 0 0% 10%));
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.themeconvert-search-result:hover {
  background: hsl(var(--accent, 0 0% 95%) / 0.5);
}

.themeconvert-search-result-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.themeconvert-search-result-url {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground, 0 0% 45%));
}

.dark .themeconvert-search-result {
  color: hsl(var(--foreground, 210 40% 98%));
}

#themeconvert-search-hint {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground, 0 0% 45%));
  border-top: 1px solid hsl(var(--border, 0 0% 80%) / 0.3);
}

#themeconvert-search-hint kbd {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  margin: 0 0.125rem;
  font-size: 0.7rem;
  font-family: inherit;
  background: hsl(var(--muted, 0 0% 95%));
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border, 0 0% 80%) / 0.5);
}

/* Gradient text fix */
[style*="background"][style*="text-fill-color"] {
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Dropdown menus */
.group:hover > div[class*="scale-y-0"]:not(.themeconvert-dropdown-panel),
.group:focus-within > div[class*="scale-y-0"]:not(.themeconvert-dropdown-panel),
.relative.group:hover > div[class*="invisible"]:not(.themeconvert-dropdown-panel),
.relative.group:focus-within > div[class*="invisible"]:not(.themeconvert-dropdown-panel),
.relative.group:hover > div[class*="opacity-0"]:not(.themeconvert-dropdown-panel),
.relative.group:focus-within > div[class*="opacity-0"]:not(.themeconvert-dropdown-panel) {
  opacity: 1 !important;
  transform: scaleY(1) !important;
  visibility: visible !important;
}

.group > button,
.relative.group > button {
  cursor: pointer;
}

.group > div:hover:not(.themeconvert-dropdown-panel),
.relative.group > div:hover:not(.themeconvert-dropdown-panel) {
  opacity: 1 !important;
  transform: scaleY(1) !important;
  visibility: visible !important;
}

.themeconvert-dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.25rem;
  min-width: 12rem;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  background: hsl(var(--card, 0 0% 100%));
  border: 1px solid hsl(var(--border, 0 0% 80%) / 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
}

.group:hover > .themeconvert-dropdown-panel,
.group:focus-within > .themeconvert-dropdown-panel,
.themeconvert-dropdown-panel:hover {
  opacity: 1 !important;
  visibility: visible !important;
}

.themeconvert-dropdown-panel.themeconvert-mega-menu {
  left: 50% !important;
  transform: translateX(-50%);
}

.group:hover > .themeconvert-dropdown-panel.themeconvert-mega-menu,
.group:focus-within > .themeconvert-dropdown-panel.themeconvert-mega-menu,
.themeconvert-dropdown-panel.themeconvert-mega-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) !important;
}

.themeconvert-dropdown-panel.themeconvert-dropdown-panel--flat-mega {
  min-width: min(520px, 92vw);
  max-width: 92vw;
}

.themeconvert-dropdown-flat-mega-inner {
  column-count: 2;
  column-gap: 2.5rem;
}

.themeconvert-dropdown-flat-mega-inner > a {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.themeconvert-dropdown-panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground, 0 0% 10%));
  text-decoration: none;
  transition: background-color 0.2s;
}

.themeconvert-dropdown-panel a:hover {
  background: hsl(var(--accent, 0 0% 95%) / 0.5);
}

.dark .themeconvert-dropdown-panel {
  background: hsl(var(--card, 222 47% 11%));
}

.dark .themeconvert-dropdown-panel a {
  color: hsl(var(--foreground, 210 40% 98%));
}

.dark .themeconvert-dropdown-panel a:hover {
  background: hsl(var(--accent, 217 33% 17%) / 0.5);
}

/* Tailwind group-hover utilities */
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:visible {
  visibility: visible;
}

.group:hover .group-hover\:scale-y-100 {
  transform: scaleY(1);
}

/* WPC Mobile Menu Panel States */
[data-wpc-menu-panel].is-open {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

[data-wpc-menu-overlay] {
  display: none;
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
}

[data-wpc-menu-overlay].is-open {
  display: block;
}

body.wpc-menu-open {
  overflow: hidden;
}

.wpc-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wpc-mobile-menu li {
  margin: 0;
}

.wpc-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

/* Mobile menu toggle button */
.themeconvert-mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
}

.themeconvert-mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .themeconvert-mobile-menu-toggle {
    display: inline-flex !important;
  }
}
