/* Custom CSS for Truck Technics Website */

/* Custom color variables matching brand palette */
:root {
  --color-primary-white: #FFFFFF;
  --color-bg-light-blue: #C2D4E4;
  --color-text-dark-blue: #0C2330;
  --color-bg-gray: #9EB0B2;
  --color-accent-coral: #D6655A;
  --color-text-dark-gray: #292929;
}

/* Font face declarations for custom fonts */

/* TWK Everett Font Family */
@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TWK Everett';
  src: url('../assets/Fonts/twk-everett-updated/TWKEverett-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Poppins Font Family */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../assets/Fonts/poppins/Poppins-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Base typography */
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--color-text-dark-blue);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'TWK Everett', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* Typography Hierarchy - Desktop First */
h1 {
  font-size: 3rem;
  /* 48px */
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 2.25rem;
  /* 36px */
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-size: 1.875rem;
  /* 30px */
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;
  /* 20px */
  font-weight: 500;
  line-height: 1.4;
}

h6 {
  font-size: 1.125rem;
  /* 18px */
  font-weight: 500;
  line-height: 1.4;
}

/* Body text variations */
p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1em;
}

.text-large {
  font-size: 1.125rem;
  /* 18px */
  line-height: 1.6;
}

.text-small {
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.5;
}

.text-xs {
  font-size: 0.75rem;
  /* 12px */
  line-height: 1.4;
}

/* Font family utility classes */
.font-heading {
  font-family: 'TWK Everett', sans-serif;
}

.font-body {
  font-family: 'Poppins', sans-serif;
}

/* Font weight utility classes */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-black {
  font-weight: 900;
}

/* Typography utility classes for TailwindCSS compatibility */
.text-heading-xl {
  font-family: 'TWK Everett', sans-serif;
  font-size: 3rem;
  /* 48px */
  font-weight: 700;
  line-height: 1.1;
}

.text-heading-lg {
  font-family: 'TWK Everett', sans-serif;
  font-size: 2.25rem;
  /* 36px */
  font-weight: 600;
  line-height: 1.2;
}

.text-heading-md {
  font-family: 'TWK Everett', sans-serif;
  font-size: 1.875rem;
  /* 30px */
  font-weight: 600;
  line-height: 1.3;
}

.text-heading-sm {
  font-family: 'TWK Everett', sans-serif;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
  line-height: 1.4;
}

.text-body-lg {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  /* 18px */
  font-weight: 400;
  line-height: 1.6;
}

.text-body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 400;
  line-height: 1.6;
}

.text-body-sm {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  /* 14px */
  font-weight: 400;
  line-height: 1.5;
}

/* Additional typography utility classes */
.text-hero {
  font-family: 'TWK Everett', sans-serif;
  font-size: 3.75rem;
  /* 60px */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display {
  font-family: 'TWK Everett', sans-serif;
  font-size: 4rem;
  /* 64px */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

.text-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  /* 20px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-dark-gray);
}

.text-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-button {
  font-family: 'TWK Everett', sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.text-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-accent-coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: var(--color-text-dark-blue);
  text-decoration: none;
}

/* Typography modifiers */
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-italic {
  font-style: italic;
}

.text-no-underline {
  text-decoration: none;
}

.text-underline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Line height utilities */
.leading-tight {
  line-height: 1.1;
}

.leading-snug {
  line-height: 1.2;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.6;
}

.leading-loose {
  line-height: 1.8;
}

/* Letter spacing utilities */
.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-normal {
  letter-spacing: 0;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

/* Typography accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode typography adjustments */
@media (prefers-contrast: high) {
  body {
    font-weight: 500;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 800;
  }

  .text-body,
  .text-body-lg,
  .text-body-sm {
    font-weight: 500;
  }
}

/* Font loading optimization */
@supports (font-display: swap) {
  @font-face {
    font-display: swap;
  }
}

/* Fallback fonts for better performance */
.font-heading {
  font-family: 'TWK Everett', 'Helvetica Neue', Arial, sans-serif;
}

.font-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Print typography optimizations */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
  }

  h1 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  h2 {
    font-size: 16pt;
    page-break-after: avoid;
  }

  h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  p {
    font-size: 12pt;
    orphans: 3;
    widows: 3;
  }

  .text-hero,
  .text-display {
    font-size: 24pt;
  }
}

/* Custom TailwindCSS utilities */
.text-primary-white {
  color: var(--color-primary-white);
}

.text-dark-blue {
  color: var(--color-text-dark-blue);
}

.text-dark-gray {
  color: var(--color-text-dark-gray);
}

.bg-light-blue {
  background-color: var(--color-bg-light-blue);
}

.bg-gray {
  background-color: var(--color-bg-gray);
}

.bg-accent-coral {
  background-color: var(--color-accent-coral);
}

.border-accent-coral {
  border-color: var(--color-accent-coral);
}

.hover\:text-accent-coral:hover {
  color: var(--color-accent-coral);
}

.bg-dark-blue {
  background-color: var(--color-text-dark-blue);
}

/* Navigation Styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-accent-coral);
}

.nav-link.active {
  color: var(--color-accent-coral);
}

/* Disable underlines for all top navigation links */
.nav-link.active::after {
  display: none !important;
}

/* Disable any pseudo-elements that might create underlines */
.nav-link::after {
  display: none !important;
}

/* Remove any glow effects from top navigation */
header nav a,
header .nav-link,
header a[href],
.text-white.font-medium {
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Ensure clean hover states for top navigation */
header nav a:hover,
header .nav-link:hover,
header a[href]:hover,
.text-white.font-medium:hover {
  text-shadow: none !important;
  box-shadow: none !important;
}

/* NUCLEAR OPTION: Force remove unwanted backgrounds and animations from top nav */
header nav a,
header .hidden.lg\:flex nav a,
header .absolute nav a,
header div[class*="flex"] nav a {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  animation: none !important;
  /* border-radius: 9999px; Keep pill shape capability - handled by border class */
}

/* Ensure only text color changes on hover, no background */
header nav a:hover,
header .absolute nav a:hover {
  color: var(--color-accent-coral) !important;
  background: transparent !important;
}

/* Maintain active state border but no background */
header nav a.border,
header .absolute nav a.border {
  border: 1px solid white !important;
}

/* Fix for specific contacts glare issue reported - Kill all pseudo elements on nav links */
header nav a::before,
header nav a::after,
header .absolute nav a::before,
header .absolute nav a::after {
  display: none !important;
  content: none !important;
  animation: none !important;
  transition: none !important;
}

/* Safety net for language dropdowns to prevent overflow */
.language-dropdown-menu,
#mobile-language-dropdown-menu,
#sidebar-language-dropdown-menu {
  max-height: 300px !important;
  overflow-y: auto !important;
  min-width: 10rem;
  /* w-40 equivalent */
}

header .hidden.lg\\:flex nav a::after,
header .hidden.lg\\:flex nav a::before,
header nav a::after,
header nav a::before {
  display: none !important;
  content: none !important;
}

/* Remove any border-bottom or text-decoration that might create lines */
header nav a,
header .text-white.font-medium {
  text-decoration: none !important;
  border-bottom: none !important;
  border-top: none !important;
}

/* Ensure the rounded border style is the only visual indicator */
header nav a.border.border-white.rounded-full {
  text-decoration: none !important;
  border-bottom: 1px solid white !important;
  border-top: 1px solid white !important;
  border-left: 1px solid white !important;
  border-right: 1px solid white !important;
}

/* Global override to prevent any unwanted underlines or effects on navigation */
header a,
header button,
nav a,
nav button {
  position: relative;
}

header a::after,
header button::after,
nav a::after,
nav button::after {
  display: none !important;
}

/* Specifically disable TailwindCSS focus and active states that might cause glowing */
header a:focus,
header a:active,
nav a:focus,
nav a:active {
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Fix contacts page specific hover effects */
a[href="contacts.html"]:hover,
a[href="contacts.html"]:focus,
a[href="contacts.html"]:active {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Remove any transition effects that might cause white shadow/glow */
a[href="contacts.html"] {
  transition: color 0.3s ease !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* Ensure clean transitions for all navigation links */
header nav a {
  transition: color 0.3s ease !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Override any TailwindCSS transition effects that might cause glowing */
.transition-colors {
  transition: color 0.3s ease !important;
}

/* Disable any backdrop filters or effects */
header nav a,
header nav a:hover,
header nav a:focus,
header nav a:active {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Specifically target the contacts link and remove any special effects */
header nav a[href*="contacts"]:hover,
header nav a[href*="contacts"]:focus {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Global override for any unwanted visual effects on all navigation */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove any potential webkit or browser-specific effects */
header nav a,
nav a {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  -webkit-transform: none !important;
  -moz-transform: none !important;
  transform: none !important;
}

/* Enhanced styling for the main hero CTA button */
#hero-cta {
  min-width: 200px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 25px rgba(214, 101, 90, 0.4);
}

#hero-cta:hover {
  box-shadow: 0 12px 35px rgba(214, 101, 90, 0.5);
  transform: translateY(-3px) scale(1.05);
}

/* Responsive adjustments for the CTA button */
@media (max-width: 768px) {
  #hero-cta {
    font-size: 1.125rem !important;
    padding: 1rem 2rem !important;
  }
}

/* Sidebar logo responsive sizing and positioning */
.sidebar-nav img {
  max-width: 100%;
  height: auto;
}

/* Enhanced hero text styling */
#hero-description {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  font-weight: 800;
}

/* Logo positioning adjustments */
.sidebar-nav .relative img {
  z-index: 20;
}

/* Ensure proper stacking context */
.hero-section-new {
  position: relative;
  overflow: visible;
}

/* Logo container overflow handling */
.sidebar-nav .relative {
  overflow: visible;
}

/* Ensure logo doesn't get cut off */
.sidebar-nav {
  overflow: visible;
}

/* Hero section container overflow handling for logo */
.hero-section-new {
  overflow: visible;
  position: relative;
}

/* Logo positioning that extends across divs */
.hero-section-new .absolute.bottom-8 {
  pointer-events: none;
  /* Prevent interference with other elements */
}

.hero-section-new .absolute.bottom-8 img {
  pointer-events: auto;
  /* Re-enable pointer events for the logo itself */
}

/* Better text alignment and spacing */
#hero-description {
  text-align: right;
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
}

/* Mobile adjustments for repositioned elements */
@media (max-width: 1024px) {
  .absolute.top-1\/4.right-8 {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    text-align: center !important;
    margin: 2rem auto !important;
    max-width: 90% !important;
  }

  .absolute.bottom-1\/4.right-8 {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    text-align: center !important;
    margin: 2rem auto !important;
  }

  .hero-section-new .absolute.bottom-8 {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    text-align: center !important;
    margin: 2rem auto !important;
  }

  .hero-section-new .absolute.bottom-8 img {
    width: 16rem !important;
    margin: 0 auto !important;
  }
}

/* Logo styling */
.logo {
  height: 2.5rem;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

/* Mobile menu animation */
.mobile-menu {
  transition: all 0.3s ease-in-out;
  transform: translateY(-10px);
  opacity: 0;
}

.mobile-menu.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile-specific fixes for dropdown rendering */
@media (max-width: 768px) {
  .mobile-menu {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  /* Ensure dropdown menus have proper z-index on mobile */
  #mobile-language-dropdown-menu,
  #language-dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
  }

  /* Force content rendering on mobile */
  .language-dropdown-item,
  .mobile-language-dropdown-item {
    min-height: 32px;
    display: flex !important;
    align-items: center;
  }

  /* Fix page header spacing on mobile - reduce top padding */
  section.py-24 {
    padding-top: 5rem !important;
    /* 80px instead of 96px */
    padding-bottom: 3rem !important;
    /* 48px instead of 96px */
  }

  /* Page titles need more breathing room from mobile header */
  main section:first-child {
    margin-top: 1rem;
    /* Add extra margin for mobile header */
  }
}

/* Small mobile devices need even less padding */
@media (max-width: 480px) {
  section.py-24 {
    padding-top: 4rem !important;
    /* 64px */
    padding-bottom: 2rem !important;
    /* 32px */
  }

  /* Reduce title font sizes on very small screens */
  section.py-24 h1 {
    font-size: 2rem !important;
    /* 32px instead of larger sizes */
    line-height: 1.1 !important;
  }

  section.py-24 p {
    font-size: 0.875rem !important;
    /* 14px */
    line-height: 1.4 !important;
  }
}

/* Mobile navigation links */
.mobile-nav-link {
  transition: all 0.2s ease;
  border-radius: 0.375rem;
}

.mobile-nav-link:hover {
  background-color: var(--color-bg-light-blue);
  transform: translateX(4px);
}

.mobile-nav-link:active {
  background-color: var(--color-accent-coral);
  color: var(--color-primary-white);
}

/* Mobile header improvements */
@media (max-width: 1024px) {

  /* Ensure mobile header doesn't overlap content */
  header.absolute {
    position: relative !important;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Adjust main content to account for header */
  main {
    margin-top: 0;
  }

  /* Better mobile header spacing */
  header nav.lg\\:hidden {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

/* Very small mobile adjustments */
@media (max-width: 480px) {

  /* Tighter header on small screens */
  header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Smaller logo on mobile */
  header img {
    height: 2.5rem !important;
  }
}

/* Language selector styling */
.language-btn {
  transition: all 0.3s ease;
}

.language-btn:hover {
  background-color: var(--color-bg-light-blue);
}

.language-btn.active {
  background-color: var(--color-accent-coral);
  color: var(--color-primary-white);
}

/* Mobile overlay menu language buttons - ensure visibility */
#mobile-overlay-menu .language-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#mobile-overlay-menu .language-btn:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05) !important;
}

#mobile-overlay-menu .language-btn.active {
  background-color: var(--color-accent-coral) !important;
  color: white !important;
  border-color: var(--color-accent-coral) !important;
  font-weight: 600 !important;
}

/* Language dropdown styling */
.language-dropdown-item,
.mobile-language-dropdown-item,
.sidebar-language-dropdown-item {
  transition: all 0.2s ease;
}

.language-dropdown-item:hover,
.mobile-language-dropdown-item:hover,
.sidebar-language-dropdown-item:hover {
  background-color: var(--color-bg-light-blue);
}

.language-dropdown-item.active,
.mobile-language-dropdown-item.active,
.sidebar-language-dropdown-item.active {
  background-color: var(--color-bg-light-blue);
  font-weight: 600;
}

/* Sidebar navigation styling */
.sidebar-nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-nav-link:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Active sidebar link styling - ensure visibility */
.sidebar-nav-link[href="index.html"] {
  border-left: 4px solid white !important;
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1rem !important;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Ensure all sidebar links have proper contrast */
.sidebar-nav {
  background-color: var(--color-accent-coral);
}

.sidebar-nav .sidebar-nav-link {
  color: white !important;
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

/* Dropdown arrow animation */
#language-dropdown-arrow,
#mobile-language-dropdown-arrow,
#sidebar-language-dropdown-arrow {
  transition: transform 0.2s ease;
}

/* Dropdown menu animation */
#language-dropdown-menu,
#mobile-language-dropdown-menu,
#sidebar-language-dropdown-menu {
  animation: fadeIn 0.2s ease-out;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Ensure dropdowns render properly on mobile */
#language-dropdown-menu.hidden,
#mobile-language-dropdown-menu.hidden,
#sidebar-language-dropdown-menu.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
}

/* Mobile-specific dropdown fixes */
@media (max-width: 1024px) {

  #mobile-language-dropdown-menu,
  #language-dropdown-menu {
    min-height: 120px;
    /* Ensure minimum height for content */
    will-change: transform, opacity;
    /* Optimize for animations */
    backface-visibility: hidden;
    /* Prevent rendering issues */
    -webkit-backface-visibility: hidden;
    z-index: 9999 !important;
    /* Ensure dropdown appears above everything */
  }

  /* Force hardware acceleration on mobile */
  .language-dropdown-item,
  .mobile-language-dropdown-item {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Fix mobile overlay menu positioning to prevent logo overlap */
  #mobile-overlay-menu {
    position: relative !important;
    z-index: 1000 !important;
    margin-top: 2rem !important;
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
  }

  /* Ensure mobile navigation doesn't overlap with logo */
  .mobile-hero-content {
    z-index: 500 !important;
  }

  /* Fix language button states in mobile overlay */
  #mobile-overlay-menu .language-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    color: white !important;
  }

  /* Active language button in mobile overlay */
  #mobile-overlay-menu .language-btn.active {
    background-color: var(--color-accent-coral) !important;
    color: white !important;
    opacity: 1 !important;
  }

  /* Inactive language buttons in mobile overlay */
  #mobile-overlay-menu .language-btn:not(.active) {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    opacity: 1 !important;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile hamburger menu styling */
.hamburger {
  transition: all 0.3s ease;
}

.hamburger:hover {
  color: var(--color-accent-coral);
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, var(--color-text-dark-blue) 0%, var(--color-bg-gray) 100%);
}

.hero-overlay {
  background: linear-gradient(45deg, rgba(12, 35, 48, 0.8) 0%, rgba(12, 35, 48, 0.4) 100%);
}

/* Typography enhancements for hero */
.hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.hero-description {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* CTA Button enhancements */
.cta-button {
  box-shadow: 0 4px 15px rgba(214, 101, 90, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  box-shadow: 0 6px 20px rgba(214, 101, 90, 0.4);
  transform: translateY(-2px);
}

/* Responsive image styling */
.hero-image {
  filter: brightness(1.1) contrast(1.05);
  transition: all 0.3s ease;
}

.hero-image:hover {
  filter: brightness(1.2) contrast(1.1);
  transform: scale(1.02);
}

/* About section cards */
.value-card {
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Scroll indicator animation */
@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  40%,
  43% {
    transform: translate3d(0, -10px, 0);
  }

  70% {
    transform: translate3d(0, -5px, 0);
  }

  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* TailwindCSS Custom Responsive Utilities - Mobile First */

/* Custom responsive breakpoints matching TailwindCSS defaults */
/* sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px */

/* Base mobile styles (320px+) */
.responsive-container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Typography Scaling - Mobile First Approach */

/* Mobile typography (320px+) */
h1 {
  font-size: 2rem;
  /* 32px on mobile */
  line-height: 1.1;
}

h2 {
  font-size: 1.5rem;
  /* 24px on mobile */
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  /* 20px on mobile */
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  /* 18px on mobile */
  line-height: 1.4;
}

p,
.text-body {
  font-size: 0.875rem;
  /* 14px on mobile */
  line-height: 1.5;
}

.text-body-lg {
  font-size: 1rem;
  /* 16px on mobile */
  line-height: 1.6;
}

.text-heading-xl {
  font-size: 2rem;
  /* 32px on mobile */
  line-height: 1.1;
}

.text-heading-lg {
  font-size: 1.5rem;
  /* 24px on mobile */
  line-height: 1.2;
}

.text-heading-md {
  font-size: 1.25rem;
  /* 20px on mobile */
  line-height: 1.3;
}

.text-heading-sm {
  font-size: 1.125rem;
  /* 18px on mobile */
  line-height: 1.4;
}

/* Responsive spacing utilities */
.space-responsive-xs {
  margin: 0.25rem;
}

.space-responsive-sm {
  margin: 0.5rem;
}

.space-responsive-md {
  margin: 1rem;
}

.space-responsive-lg {
  margin: 1.5rem;
}

.space-responsive-xl {
  margin: 2rem;
}

.space-responsive-2xl {
  margin: 2.5rem;
}

.padding-responsive-xs {
  padding: 0.25rem;
}

.padding-responsive-sm {
  padding: 0.5rem;
}

.padding-responsive-md {
  padding: 1rem;
}

.padding-responsive-lg {
  padding: 1.5rem;
}

.padding-responsive-xl {
  padding: 2rem;
}

.padding-responsive-2xl {
  padding: 2.5rem;
}

/* Mobile-first hero section responsive design */
.hero-section {
  min-height: 100vh;
  padding: 1rem 0;
}

.hero-title {
  font-size: 1.875rem;
  /* 30px */
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cta-button {
  font-size: 0.875rem;
  /* 14px */
  padding: 0.75rem 1.25rem;
}

/* Small mobile (480px+) */
@media (min-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
    /* 36px */
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    /* 16px */
    margin-bottom: 1.75rem;
  }

  .cta-button {
    font-size: 1rem;
    /* 16px */
    padding: 0.875rem 1.5rem;
  }

  .responsive-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

/* Small screens (640px+) - TailwindCSS sm: */
@media (min-width: 640px) {

  /* Typography scaling for small screens */
  h1 {
    font-size: 2.5rem;
    /* 40px */
  }

  h2 {
    font-size: 1.875rem;
    /* 30px */
  }

  h3 {
    font-size: 1.5rem;
    /* 24px */
  }

  p,
  .text-body {
    font-size: 1rem;
    /* 16px */
  }

  .text-body-lg {
    font-size: 1.125rem;
    /* 18px */
  }

  .text-heading-xl {
    font-size: 2.5rem;
    /* 40px */
  }

  .text-heading-lg {
    font-size: 1.875rem;
    /* 30px */
  }

  .text-heading-md {
    font-size: 1.5rem;
    /* 24px */
  }

  .hero-title {
    font-size: 2.5rem;
    /* 40px */
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
    /* 18px */
    margin-bottom: 2rem;
  }

  .cta-button {
    font-size: 1.125rem;
    /* 18px */
    padding: 1rem 1.75rem;
  }

  .responsive-container {
    max-width: 640px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Medium screens (768px+) - TailwindCSS md: */
@media (min-width: 768px) {

  /* Typography scaling for medium screens */
  h1 {
    font-size: 3rem;
    /* 48px - Design specification */
  }

  h2 {
    font-size: 2.25rem;
    /* 36px - Design specification */
  }

  h3 {
    font-size: 1.875rem;
    /* 30px */
  }

  h4 {
    font-size: 1.5rem;
    /* 24px */
  }

  p,
  .text-body {
    font-size: 1rem;
    /* 16px - Design specification */
  }

  .text-body-lg {
    font-size: 1.125rem;
    /* 18px */
  }

  .text-heading-xl {
    font-size: 3rem;
    /* 48px - Design specification */
  }

  .text-heading-lg {
    font-size: 2.25rem;
    /* 36px - Design specification */
  }

  .text-heading-md {
    font-size: 1.875rem;
    /* 30px */
  }

  .text-heading-sm {
    font-size: 1.5rem;
    /* 24px */
  }

  .hero-title {
    font-size: 3rem;
    /* 48px */
    margin-bottom: 2rem;
  }

  .hero-description {
    font-size: 1.25rem;
    /* 20px */
    margin-bottom: 2.5rem;
  }

  .cta-button {
    font-size: 1.25rem;
    /* 20px */
    padding: 1.125rem 2rem;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .responsive-container {
    max-width: 768px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Large screens (1024px+) - TailwindCSS lg: */
@media (min-width: 1024px) {

  /* Typography scaling for large screens - Full desktop sizes */
  h1 {
    font-size: 3rem;
    /* 48px - Maintain design specification */
  }

  h2 {
    font-size: 2.25rem;
    /* 36px - Maintain design specification */
  }

  h3 {
    font-size: 1.875rem;
    /* 30px */
  }

  h4 {
    font-size: 1.5rem;
    /* 24px */
  }

  p,
  .text-body {
    font-size: 1rem;
    /* 16px - Maintain design specification */
  }

  .text-body-lg {
    font-size: 1.125rem;
    /* 18px */
  }

  .text-heading-xl {
    font-size: 3rem;
    /* 48px - Design specification */
  }

  .text-heading-lg {
    font-size: 2.25rem;
    /* 36px - Design specification */
  }

  .text-heading-md {
    font-size: 1.875rem;
    /* 30px */
  }

  .text-heading-sm {
    font-size: 1.5rem;
    /* 24px */
  }

  .hero-title {
    font-size: 3.75rem;
    /* 60px - Larger for hero impact */
    margin-bottom: 2.5rem;
  }

  .hero-description {
    font-size: 1.375rem;
    /* 22px */
    margin-bottom: 3rem;
  }

  .cta-button {
    font-size: 1.375rem;
    /* 22px */
    padding: 1.25rem 2.5rem;
  }

  .responsive-container {
    max-width: 1024px;
  }
}

/* Extra large screens (1280px+) - TailwindCSS xl: */
@media (min-width: 1280px) {

  /* Typography scaling for extra large screens */
  .text-hero {
    font-size: 4rem;
    /* 64px */
  }

  .text-display {
    font-size: 4.5rem;
    /* 72px */
  }

  .hero-title {
    font-size: 4rem;
    /* 64px */
  }

  .hero-description {
    font-size: 1.5rem;
    /* 24px */
  }

  .cta-button {
    font-size: 1.5rem;
    /* 24px */
    padding: 1.375rem 3rem;
  }

  .responsive-container {
    max-width: 1280px;
  }
}

/* 2XL screens (1536px+) - TailwindCSS 2xl: */
@media (min-width: 1536px) {
  .responsive-container {
    max-width: 1536px;
  }

  /* Typography scaling for 2XL screens */
  .text-display {
    font-size: 5rem;
    /* 80px */
  }

  .text-hero {
    font-size: 4.5rem;
    /* 72px */
  }

  .hero-title {
    font-size: 4.5rem;
    /* 72px */
  }

  .text-heading-xl {
    font-size: 3.5rem;
    /* 56px */
  }

  .text-heading-lg {
    font-size: 2.75rem;
    /* 44px */
  }
}

/* Mobile-specific hero adjustments */
@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-section .container {
    width: 100%;
  }

  .hero-section .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 1.125rem;
    opacity: 0.95;
  }

  /* Hide secondary image on mobile */
  .hero-section .lg\:block {
    display: none !important;
  }

  /* Adjust background image for mobile */
  .hero-section .absolute.inset-0 img {
    object-position: center center;
  }

  /* Adjust overlay for better text readability on mobile */
  .hero-section .bg-opacity-60 {
    background-opacity: 0.75;
  }
}

/* Responsive background image optimization */
@media (max-width: 640px) {
  .hero-section .absolute.inset-0 img {
    object-position: 30% center;
    /* Focus on workshop area */
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero-section .absolute.inset-0 img {
    object-position: center center;
  }
}

@media (min-width: 1024px) {
  .hero-section .absolute.inset-0 img {
    object-position: center center;
  }
}

/* Mobile-specific typography adjustments */
@media (max-width: 480px) {

  /* Extra small mobile typography */
  h1 {
    font-size: 1.875rem !important;
    /* 30px */
    line-height: 1.1;
  }

  h2 {
    font-size: 1.375rem !important;
    /* 22px */
    line-height: 1.2;
  }

  h3 {
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 1.3;
  }

  p,
  .text-body {
    font-size: 0.875rem !important;
    /* 14px */
    line-height: 1.5;
  }

  .text-hero {
    font-size: 2rem !important;
    /* 32px */
    line-height: 1.1;
  }

  .text-heading-xl {
    font-size: 1.875rem !important;
    /* 30px */
    line-height: 1.1;
  }

  .text-heading-lg {
    font-size: 1.375rem !important;
    /* 22px */
    line-height: 1.2;
  }

  .text-heading-md {
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 1.3;
  }

  .text-subtitle {
    font-size: 1rem !important;
    /* 16px */
    line-height: 1.5;
  }

  .hero-title {
    font-size: 1.875rem !important;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 1rem !important;
    line-height: 1.5;
  }

  .cta-button {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.25rem !important;
  }

  .text-button {
    font-size: 0.875rem !important;
    /* 14px */
  }
}

/* About section responsive adjustments */
@media (max-width: 767px) {
  .value-card {
    margin-bottom: 1rem;
  }

  .about-section .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .about-section .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .about-section .grid>div:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* Performance optimizations for mobile */
@media (max-width: 767px) {
  .hero-image {
    transform: none;
    transition: none;
  }

  .hero-image:hover {
    transform: none;
  }

  .cta-button:hover {
    transform: none;
  }
}

/* Ser
vice Cards Styling */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent-coral);
}

.service-card img {
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .bg-accent-coral {
  transition: all 0.3s ease;
}

.service-card:hover .bg-accent-coral {
  background-color: var(--color-text-dark-blue);
  transform: scale(1.1);
}

/* Service card responsive adjustments */
@media (max-width: 767px) {
  .service-card {
    margin-bottom: 1.5rem;
  }

  .service-card:hover {
    transform: translateY(-4px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .service-card {
    margin-bottom: 2rem;
  }
}

/* Services grid responsive behavior */
.services-grid {
  display: grid;
  gap: 2rem;
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Service card content styling */
.service-card h3 {
  font-family: 'TWK Everett', sans-serif;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-accent-coral);
}

.service-card p {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* Icon styling in service cards */
.service-card svg {
  transition: all 0.3s ease;
}

.service-card:hover svg {
  transform: rotate(5deg) scale(1.1);
}

/* Services page header styling */
.services-header {
  background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, rgba(194, 212, 228, 0.8) 100%);
}

/* Call to action section in services */
.services-cta {
  background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, rgba(194, 212, 228, 0.9) 100%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.services-cta:hover {
  border-color: var(--color-accent-coral);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(214, 101, 90, 0.1);
}

/* Responsive Layout Utilities */

/* Responsive Grid System */
.responsive-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .responsive-grid {
    gap: 1.5rem;
  }

  .responsive-grid.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-grid.sm\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .responsive-grid {
    gap: 2rem;
  }

  .responsive-grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-grid.md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .responsive-grid.md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .responsive-grid {
    gap: 2.5rem;
  }

  .responsive-grid.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-grid.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .responsive-grid.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Responsive Flexbox Utilities */
.responsive-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .responsive-flex.sm\:flex-row {
    flex-direction: row;
  }

  .responsive-flex.sm\:items-center {
    align-items: center;
  }

  .responsive-flex.sm\:justify-between {
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .responsive-flex.md\:flex-row {
    flex-direction: row;
  }

  .responsive-flex.md\:items-center {
    align-items: center;
  }

  .responsive-flex.md\:justify-between {
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .responsive-flex.lg\:flex-row {
    flex-direction: row;
  }

  .responsive-flex.lg\:items-center {
    align-items: center;
  }

  .responsive-flex.lg\:justify-between {
    justify-content: space-between;
  }
}

/* Responsive Spacing Utilities */
.responsive-padding {
  padding: 1rem;
}

.responsive-margin {
  margin: 1rem;
}

@media (min-width: 640px) {
  .responsive-padding {
    padding: 1.5rem;
  }

  .responsive-margin {
    margin: 1.5rem;
  }

  .sm\:p-responsive {
    padding: 1.5rem;
  }

  .sm\:m-responsive {
    margin: 1.5rem;
  }

  .sm\:px-responsive {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:py-responsive {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .responsive-padding {
    padding: 2rem;
  }

  .responsive-margin {
    margin: 2rem;
  }

  .md\:p-responsive {
    padding: 2rem;
  }

  .md\:m-responsive {
    margin: 2rem;
  }

  .md\:px-responsive {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .md\:py-responsive {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .responsive-padding {
    padding: 2.5rem;
  }

  .responsive-margin {
    margin: 2.5rem;
  }

  .lg\:p-responsive {
    padding: 2.5rem;
  }

  .lg\:m-responsive {
    margin: 2.5rem;
  }

  .lg\:px-responsive {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .lg\:py-responsive {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .responsive-padding {
    padding: 3rem;
  }

  .responsive-margin {
    margin: 3rem;
  }

  .xl\:p-responsive {
    padding: 3rem;
  }

  .xl\:m-responsive {
    margin: 3rem;
  }

  .xl\:px-responsive {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .xl\:py-responsive {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* Responsive Width and Height Utilities */
.responsive-width {
  width: 100%;
}

.responsive-height {
  height: auto;
}

@media (min-width: 640px) {
  .sm\:w-responsive-1\/2 {
    width: 50%;
  }

  .sm\:w-responsive-1\/3 {
    width: 33.333333%;
  }

  .sm\:w-responsive-2\/3 {
    width: 66.666667%;
  }

  .sm\:w-responsive-1\/4 {
    width: 25%;
  }

  .sm\:w-responsive-3\/4 {
    width: 75%;
  }
}

@media (min-width: 768px) {
  .md\:w-responsive-1\/2 {
    width: 50%;
  }

  .md\:w-responsive-1\/3 {
    width: 33.333333%;
  }

  .md\:w-responsive-2\/3 {
    width: 66.666667%;
  }

  .md\:w-responsive-1\/4 {
    width: 25%;
  }

  .md\:w-responsive-3\/4 {
    width: 75%;
  }
}

@media (min-width: 1024px) {
  .lg\:w-responsive-1\/2 {
    width: 50%;
  }

  .lg\:w-responsive-1\/3 {
    width: 33.333333%;
  }

  .lg\:w-responsive-2\/3 {
    width: 66.666667%;
  }

  .lg\:w-responsive-1\/4 {
    width: 25%;
  }

  .lg\:w-responsive-3\/4 {
    width: 75%;
  }
}

/* Performance optimizations for mobile service cards */
@media (max-width: 767px) {
  .service-card img {
    transform: none;
    transition: none;
  }

  .service-card:hover img {
    transform: none;
  }

  .service-card:hover .bg-accent-coral {
    transform: none;
  }

  .service-card:hover svg {
    transform: none;
  }
}

/* Contac
t Form Styling */
.contact-form {
  background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, rgba(194, 212, 228, 0.9) 100%);
}

.contact-form input,
.contact-form textarea {
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent-coral);
  box-shadow: 0 0 0 3px rgba(214, 101, 90, 0.1);
  transform: translateY(-1px);
}

.contact-form input:invalid:not(:focus):not(:placeholder-shown),
.contact-form textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.contact-form input:valid:not(:focus):not(:placeholder-shown),
.contact-form textarea:valid:not(:focus):not(:placeholder-shown) {
  border-color: #10b981;
  background-color: #f0fdf4;
}

/* Contact form labels */
.contact-form label {
  font-family: 'TWK Everett', sans-serif;
  font-weight: 600;
}

/* Contact form submit button */
.contact-form button[type="submit"] {
  font-family: 'TWK Everett', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(214, 101, 90, 0.3);
  transition: all 0.3s ease;
}

.contact-form button[type="submit"]:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(214, 101, 90, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.contact-form button[type="submit"]:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

/* Contact information cards */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info-icon {
  background-color: var(--color-accent-coral);
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-icon {
  background-color: var(--color-text-dark-blue);
  transform: scale(1.1);
}

/* Success and error message styling */
.form-message {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Responsive contact form adjustments */
@media (max-width: 767px) {
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  .contact-form button[type="submit"]:hover:not(:disabled) {
    transform: none;
  }

  .contact-info-card:hover {
    transform: none;
  }

  .contact-info-card:hover .contact-info-icon {
    transform: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .contact-form {
    padding: 2rem;
  }
}

/* Contact page header styling */
.contact-header {
  background: linear-gradient(135deg, var(--color-bg-light-blue) 0%, rgba(194, 212, 228, 0.8) 100%);
}

/* Accessibility improvements */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus {
  outline: 2px solid var(--color-accent-coral);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

  .contact-form input,
  .contact-form textarea {
    border-width: 3px;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-width: 3px;
    box-shadow: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .contact-form input,
  .contact-form textarea,
  .contact-form button,
  .contact-info-card,
  .contact-info-icon {
    transition: none;
  }

  .contact-form button[type="submit"]:hover:not(:disabled) {
    transform: none;
  }

  .form-message {
    animation: none;
  }

  .animate-spin {
    animation: none;
  }
}

/* Image Optimization and Responsive Loading */

/* Base image styles for performance */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive image containers */
.responsive-image-container {
  position: relative;
  overflow: hidden;
}

/* Image loading states */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Picture element responsive behavior */
picture {
  display: block;
  width: 100%;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Optimized image sizes for different breakpoints */
@media (max-width: 480px) {

  /* Extra small mobile - reduce image quality for performance */
  .hero-section picture img,
  .service-card picture img {
    image-rendering: optimizeSpeed;
  }
}

@media (min-width: 481px) and (max-width: 767px) {

  /* Small mobile - balanced quality and performance */
  .hero-section picture img,
  .service-card picture img {
    image-rendering: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {

  /* Tablet - higher quality for larger screens */
  .hero-section picture img,
  .service-card picture img {
    image-rendering: optimizeQuality;
  }
}

@media (min-width: 1024px) {

  /* Desktop - full quality */
  .hero-section picture img,
  .service-card picture img {
    image-rendering: optimizeQuality;
  }
}

/* Aspect ratio maintenance for responsive images */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* Service card image optimization */
.service-card .relative {
  aspect-ratio: 4 / 3;
}

.service-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero section image optimization */
.hero-section picture img {
  object-fit: cover;
  object-position: center center;
}

/* Mobile-specific image optimizations */
@media (max-width: 767px) {
  .hero-section picture img {
    object-position: 30% center;
    /* Focus on workshop area for mobile */
  }

  /* Reduce image transforms on mobile for performance */
  .service-card picture img {
    transition: none;
  }

  .service-card:hover picture img {
    transform: none;
  }

  .hero-image {
    transform: none !important;
    transition: none !important;
  }

  .hero-image:hover {
    transform: none !important;
  }
}

/* Tablet-specific image optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section picture img {
    object-position: center center;
  }

  .service-card picture img {
    transition: transform 0.2s ease;
  }
}

/* Desktop image optimizations */
@media (min-width: 1024px) {
  .hero-section picture img {
    object-position: center center;
  }

  .service-card picture img {
    transition: transform 0.3s ease;
  }

  .service-card:hover picture img {
    transform: scale(1.05);
  }
}

/* Image accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  img,
  picture img {
    transition: none !important;
  }

  .service-card:hover picture img,
  .hero-image:hover {
    transform: none !important;
  }
}

/* High contrast mode image adjustments */
@media (prefers-contrast: high) {

  img,
  picture img {
    filter: contrast(1.2);
  }
}

/* Print styles for images */
@media print {

  img,
  picture img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .hero-section picture img {
    display: none;
    /* Hide large background images in print */
  }
}

/* New Design Layout Styles */

/* First Hero Section - Full viewport height */
.hero-section-new {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Main content area styling */
.hero-section-new .w-full {
  position: relative;
  height: 100vh;
  min-height: 100vh;
}

/* Index page specific styles - hide header */
body.index-page header {
  display: none !important;
}

/* Ensure full viewport on index page */
body.index-page .hero-section-new {
  height: 100vh;
  margin-top: 0;
}

/* Hero text blocks positioning */
.hero-section-new h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  max-width: 100%;
}

.hero-section-new #hero-additional-text {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Secondary text block styling - clean floating text */
.hero-section-new .absolute.top-32 p,
.hero-section-new .absolute.top-40 p {
  background: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

/* Clean responsive layout */
@media (max-width: 1023px) {

  /* Hide desktop text blocks on mobile/tablet */
  .hero-section-new .absolute.top-1\/3,
  .hero-section-new .absolute.top-32,
  .hero-section-new .absolute.top-40 {
    display: none !important;
  }
}

@media (min-width: 1024px) {

  /* Hide mobile content on desktop */
  .mobile-hero-content {
    display: none !important;
  }
}

/* Mobile - button only in center */
@media (max-width: 767px) {
  .mobile-hero-content {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 30 !important;
  }
}

/* Tablet - button only in center */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-hero-content {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 30 !important;
  }
}

/* Background image container */
.hero-section-new .absolute.inset-0 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* Ensure background image covers full area */
.hero-section-new picture,
.hero-section-new picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sidebar-nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-nav-link:hover {
  transform: translateX(8px);
}

.sidebar-nav-link::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.sidebar-nav-link:hover::before {
  width: 1.5rem;
}

/* Second Hero Section */
.second-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-text-dark-blue) 0%, #1a3a4a 100%);
}

.second-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(214, 101, 90, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Mobile Responsive Adjustments for New Design */
@media (max-width: 1023px) {
  .hero-section-new {
    height: auto;
    min-height: 100vh;
  }

  .hero-section-new .w-full {
    min-height: 100vh;
    height: 100vh;
  }

  .second-hero-section {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .second-hero-section .grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .second-hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

/* Desktop specific adjustments */
@media (min-width: 1024px) {

  /* Ensure full height layout */
  .hero-section-new {
    height: 100vh;
    max-height: 100vh;
  }

  .hero-section-new .w-full {
    height: 100vh;
    max-height: 100vh;
  }

  .second-hero-section {
    height: 100vh;
  }
}

@media (max-width: 767px) {
  .hero-section-new .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .second-hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .second-hero-section .text-lg {
    font-size: 1rem;
  }
}

/* Overlay Navigation Styles */
.hero-section-new .absolute.top-8 nav a {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 1.177rem;
  /* Increased from 1.1rem (text-lg) by ~7% instead of 10% */
}

.hero-section-new .absolute.top-8 nav a:hover {
  background-color: transparent;
}

/* Language buttons on index page - 4% larger than other pages */
.hero-section-new .language-btn-inline {
  font-size: 0.83rem !important;
  /* 0.798rem * 1.04 */
  padding: 0.474rem 0.711rem !important;
  /* 0.456rem 0.684rem * 1.04 */
}

/* Clear active state indicator for language buttons on index page */
.hero-section-new .language-btn-inline.active {
  background-color: rgba(214, 101, 90, 0.9) !important;
  /* Accent coral with high opacity */
  border-color: rgba(214, 101, 90, 1) !important;
  font-weight: 600 !important;
}

/* Mobile overlay menu styling */
#mobile-overlay-menu {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Language picker blur effects - keep blur for language buttons */
.hero-section-new .language-btn-inline {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#mobile-overlay-menu .language-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Ensure consistent language button styling across all pages */
.language-btn-inline {
  font-size: 0.83rem !important;
  /* Match index page language button size */
  padding: 0.474rem 0.711rem !important;
  /* Match index page language button padding */
  background-color: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
}

.language-btn-inline:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Active state for language buttons on non-index pages */
.language-btn-inline.active {
  background-color: rgba(214, 101, 90, 0.9) !important;
  /* Accent coral */
  border-color: rgba(214, 101, 90, 1) !important;
  font-weight: 600 !important;
}

/* Scale up navigation on non-index pages to match index page */
header:not(.hero-section-new) nav a {
  font-size: 1.177rem !important;
  /* Match index page navigation size */
}

/* Adjust vertical positioning on non-index pages to match index page */
header:not(.hero-section-new) nav {
  margin-top: 0.25rem;
  /* Move navigation down slightly to match index page positioning */
}

/* Scale up language buttons on non-index pages by 4% */
header:not(.hero-section-new) .language-btn-inline {
  font-size: 0.83rem !important;
  /* 0.798rem * 1.04 */
  padding: 0.474rem 0.711rem !important;
  /* 0.456rem 0.684rem * 1.04 */
}

/* Enhanced Button Styles */
.cta-button,
a[href*="contacts"] {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

/* Remove animation from contacts navigation links */
a[href*="contacts"]::before {
  display: none !important;
}

.cta-button:hover::before {
  left: 100%;
}

/* Remove hover animation from contacts navigation links */
a[href*="contacts"]:hover::before {
  display: none !important;
}

/* Logo Filter for Sidebar */
.sidebar-nav img {
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.sidebar-nav img:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Sidebar Language Buttons */
.language-btn-sidebar {
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.language-btn-sidebar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.language-btn-sidebar.active {
  background-color: white !important;
  color: var(--color-accent-coral) !important;
  font-weight: 600;
}

.language-btn-sidebar.active:hover {
  background-color: white !important;
}

/* Content Placeholder Styling */
.bg-accent-coral .opacity-50 {
  transition: opacity 0.3s ease;
}

.bg-accent-coral:hover .opacity-50 {
  opacity: 75;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Enhanced Typography */
.hero-section-new h1,
.second-hero-section h1 {
  font-family: 'TWK Everett', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-section-new p,
.second-hero-section p {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

/* Animation for scroll indicator */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) translateX(-50%);
  }

  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.second-hero-section .animate-bounce {
  animation: float 3s ease-in-out infinite;
}

/* Performance optimizations for new design */
@media (max-width: 767px) {
  .sidebar-nav-link:hover {
    transform: none;
  }

  .sidebar-nav-link::before {
    display: none;
  }

  .cta-button:hover,
  a[href*="contacts"]:hover {
    transform: none;
  }

  .cta-button::before,
  a[href*="contacts"]::before {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {

  .sidebar-nav-link,
  .cta-button,
  a[href*="contacts"],
  .animate-bounce {
    transition: none;
    animation: none;
  }

  .sidebar-nav-link:hover {
    transform: none;
  }

  .cta-button:hover,
  a[href*="contacts"]:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sidebar-nav {
    border-right: 3px solid white;
  }

  .second-hero-section {
    background: var(--color-text-dark-blue);
  }

  .second-hero-section::before {
    display: none;
  }
}

/* Mobile Contact Logo Styling */
.mobile-contact-logo {
  opacity: 1;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mobile-contact-logo:hover {
  opacity: 0.9;
}

.mobile-contact-logo img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.mobile-contact-logo img:hover {
  transform: scale(1.02);
}

/* Ensure logo is hidden on desktop */
@media (min-width: 1024px) {
  .mobile-contact-logo {
    display: none !important;
  }
}

/* Mobile responsive adjustments for contact logo - Make it bigger */
@media (max-width: 480px) {
  .mobile-contact-logo img {
    height: 5rem;
    /* 80px - bigger on small screens */
    width: auto;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .mobile-contact-logo img {
    height: 6rem;
    /* 96px - bigger for small tablets */
    width: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-contact-logo img {
    height: 7rem;
    /* 112px - biggest for tablets */
    width: auto;
  }
}

/* Disable hover effects on mobile for performance */
@media (max-width: 767px) {
  .mobile-contact-logo img:hover {
    transform: none;
  }
}

/* Accessibility improvements for mobile logo */
@media (prefers-reduced-motion: reduce) {

  .mobile-contact-logo,
  .mobile-contact-logo img {
    transition: none;
  }

  .mobile-contact-logo img:hover {
    transform: none;
  }
}

/* Mobile Hero Logo Styling (Homepage) */
.mobile-hero-logo {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.mobile-hero-logo:hover {
  opacity: 0.9;
}

.mobile-hero-logo img {
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.mobile-hero-logo img:hover {
  transform: scale(1.02);
}

/* Mobile responsive adjustments for hero logo */
@media (max-width: 480px) {
  .mobile-hero-logo img {
    width: 12rem;
    /* 192px - smaller on very small screens */
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .mobile-hero-logo img {
    width: 14rem;
    /* 224px - medium size for small tablets */
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-hero-logo img {
    width: 16rem;
    /* 256px - larger for tablets */
  }
}

/* Disable hover effects on mobile for performance */
@media (max-width: 767px) {
  .mobile-hero-logo img:hover {
    transform: none;
  }
}

/* Accessibility improvements for mobile hero logo */
@media (prefers-reduced-motion: reduce) {

  .mobile-hero-logo,
  .mobile-hero-logo img {
    transition: none;
  }

  .mobile-hero-logo img:hover {
    transform: none;
  }
}

/* Additional mobile overlay menu fixes */
@media (max-width: 1024px) {

  /* Ensure mobile overlay menu doesn't overlap with logo */
  #mobile-overlay-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    /* Higher z-index to be above everything */
    margin-top: 1rem !important;
    max-width: 100% !important;
  }

  /* Adjust mobile hero content positioning - lower z-index on index page */
  .mobile-hero-content {
    position: absolute !important;
    z-index: 500 !important;
    /* Lower than mobile menu */
  }

  /* Ensure mobile navigation container has proper stacking */
  .hero-section-new .absolute.top-8.left-8 {
    z-index: 1000 !important;
  }

  /* Fix language button grid in mobile overlay */
  #mobile-overlay-menu .grid.grid-cols-2 {
    gap: 0.75rem !important;
  }

  #mobile-overlay-menu .language-btn {
    min-height: 44px !important;
    /* Better touch target */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 500 !important;
  }

  /* Fix for non-index pages - different background for language buttons */
  body:not(.index-page) #mobile-menu .language-btn {
    background-color: var(--color-bg-gray) !important;
    color: var(--color-text-dark-blue) !important;
    border: 1px solid var(--color-text-dark-blue) !important;
  }

  body:not(.index-page) #mobile-menu .language-btn.active {
    background-color: var(--color-accent-coral) !important;
    color: white !important;
    border-color: var(--color-accent-coral) !important;
  }

  body:not(.index-page) #mobile-menu .language-btn:hover {
    background-color: var(--color-bg-light-blue) !important;
    color: var(--color-text-dark-blue) !important;
  }
}

/* Ensure all language buttons are visible and clickable */
.language-btn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Fix for very small mobile screens */
@media (max-width: 480px) {
  #mobile-overlay-menu {
    margin-top: 0.5rem !important;
    padding: 1rem !important;
  }

  #mobile-overlay-menu .language-btn {
    font-size: 0.875rem !important;
    padding: 0.75rem 0.5rem !important;
  }
}

/* Fix z-index hierarchy for index page mobile elements */
@media (max-width: 1024px) {

  /* Index page specific fixes */
  .hero-section-new {
    position: relative;
  }

  /* Mobile navigation should be on top of everything - keep original positioning */
  .hero-section-new #mobile-overlay-menu {
    z-index: 99999 !important;
    /* Remove fixed positioning to keep original layout */
  }

  /* Force logo and Contact Us button to be behind mobile menu */
  .mobile-hero-content {
    z-index: 1 !important;
  }

  /* Specifically target the Contact Us button */
  #hero-cta-mobile {
    z-index: 1 !important;
  }

  /* Mobile hero logo should also be behind menu */
  .mobile-hero-logo {
    z-index: 1 !important;
  }

  /* Header navigation should be below mobile overlay menu but above content */
  .hero-section-new .absolute.top-8 {
    z-index: 1000 !important;
  }

  /* Ensure mobile menu button works properly */
  #mobile-overlay-menu-button {
    z-index: 100000 !important;
    position: relative;
  }
}

/* Language button styling fixes for different page contexts */
.language-btn {
  transition: all 0.2s ease !important;
  border: 1px solid transparent !important;
  border-radius: 9999px !important;
}

/* Index page mobile overlay language buttons */
#mobile-overlay-menu .language-btn {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#mobile-overlay-menu .language-btn.active {
  border-color: var(--color-accent-coral) !important;
  box-shadow: 0 2px 8px rgba(214, 101, 90, 0.3) !important;
}

/* Other pages mobile menu language buttons */
#mobile-menu .language-btn {
  border-color: var(--color-bg-gray) !important;
}

#mobile-menu .language-btn.active {
  border-color: var(--color-accent-coral) !important;
  box-shadow: 0 2px 8px rgba(214, 101, 90, 0.3) !important;
}

#mobile-menu .language-btn:not(.active) {
  background-color: var(--color-bg-gray) !important;
  color: var(--color-text-dark-blue) !important;
  border-color: var(--color-text-dark-blue) !important;
}

#mobile-menu .language-btn:not(.active):hover {
  background-color: var(--color-bg-light-blue) !important;
  border-color: var(--color-accent-coral) !important;
}

/* Standardized Contact Us / CTA Button Styling */
.cta-button,
#hero-cta,
#hero-cta-mobile,
a[href="contacts.html"]:not(.nav-link):not(.mobile-nav-link):not(.sidebar-nav-link):not(header a):not(nav a) {
  display: inline-block !important;
  background-color: var(--color-accent-coral) !important;
  color: white !important;
  padding: 1.5rem 3rem !important;
  /* px-12 py-6 */
  border-radius: 9999px !important;
  /* rounded-full */
  font-weight: 700 !important;
  /* font-bold */
  font-size: 1.25rem !important;
  /* text-xl */
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  /* tracking-wide */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  /* shadow-lg */
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.cta-button:hover,
#hero-cta:hover,
#hero-cta-mobile:hover,
a[href="contacts.html"]:not(.nav-link):not(.mobile-nav-link):not(.sidebar-nav-link):not(header a):not(nav a):hover {
  background-color: rgba(214, 101, 90, 0.9) !important;
  /* hover:bg-opacity-90 */
  transform: scale(1.05) !important;
  /* hover:scale-105 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Mobile responsive adjustments for CTA buttons */
@media (max-width: 768px) {

  .cta-button,
  #hero-cta,
  #hero-cta-mobile,
  a[href="contacts.html"]:not(.nav-link):not(.mobile-nav-link):not(.sidebar-nav-link):not(header a):not(nav a) {
    padding: 1rem 2rem !important;
    /* Smaller on mobile */
    font-size: 1.125rem !important;
    /* text-lg on mobile */
  }
}

@media (max-width: 480px) {

  .cta-button,
  #hero-cta,
  #hero-cta-mobile,
  a[href="contacts.html"]:not(.nav-link):not(.mobile-nav-link):not(.sidebar-nav-link):not(header a):not(nav a) {
    padding: 0.875rem 1.5rem !important;
    /* Even smaller on very small screens */
    font-size: 1rem !important;
    /* text-base on very small screens */
  }
}

/* Hero Welcome Message Styling */
#hero-welcome {
  margin-bottom: 2rem !important;
  /* Increased spacing between welcome and subtitle */
  font-size: 3rem !important;
  /* Moderate increase for desktop */
  line-height: 1.1 !important;
  font-weight: 700 !important;
  /* Bold but not extra bold */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4) !important;
  /* Moderate text shadow */
}

#hero-subtitle {
  margin-top: 1rem !important;
  /* Additional top margin for better separation */
  font-size: 1rem !important;
  /* Smaller font size for better hierarchy */
  line-height: 1.4 !important;
  opacity: 0.9;
  /* Slightly reduced opacity for visual hierarchy */
}

/* Responsive adjustments for hero welcome and subtitle */
@media (min-width: 1024px) {
  #hero-welcome {
    margin-bottom: 2.5rem !important;
    /* Even more spacing on desktop */
    font-size: 4rem !important;
    /* Nicely sized for desktop */
  }

  #hero-subtitle {
    font-size: 1.125rem !important;
    /* Slightly larger on desktop but still smaller than welcome */
    margin-top: 1.5rem !important;
  }
}

@media (min-width: 1280px) {
  #hero-welcome {
    margin-bottom: 3rem !important;
    /* Maximum spacing on large screens */
    font-size: 4.5rem !important;
    /* Good balance on XL screens */
  }

  #hero-subtitle {
    font-size: 1.25rem !important;
    /* Larger on XL screens */
    margin-top: 2rem !important;
  }
}

@media (min-width: 1536px) {
  #hero-welcome {
    font-size: 5rem !important;
    /* Reasonable maximum on 2XL screens */
    margin-bottom: 3.5rem !important;
  }

  #hero-subtitle {
    font-size: 1.375rem !important;
    /* Proportionally larger subtitle */
    margin-top: 2.5rem !important;
  }
}

/* Mobile adjustments for hero welcome and subtitle */
@media (max-width: 1023px) {
  #hero-welcome {
    margin-bottom: 1.5rem !important;
    font-size: 2.25rem !important;
    /* Good size for mobile */
  }

  #hero-subtitle {
    font-size: 0.875rem !important;
    /* Smaller on mobile */
    margin-top: 0.75rem !important;
  }
}

@media (max-width: 767px) {
  #hero-welcome {
    font-size: 1.875rem !important;
    /* Appropriate size for small mobile */
  }
}

/* Enhanced Logo Styling for Better Readability */
.logo,
img[alt="Truck Technics Logo"] {
  transition: all 0.3s ease;
  max-height: none !important;
  /* Remove any height restrictions */
}

/* Desktop logo sizing */
header img[alt="Truck Technics Logo"] {
  height: 4rem !important;
  /* 64px - larger than default h-16 */
  width: auto !important;
  min-height: 3rem !important;
  /* Minimum size for readability */
}

/* Mobile overlay logo (inverted) */
header img[alt="Truck Technics Logo"].filter {
  height: 3.5rem !important;
  /* 56px - good size for mobile overlay */
  width: auto !important;
}

/* Mobile contact form logo */
.mobile-contact-logo img[alt="Truck Technics Logo"] {
  height: 5rem !important;
  /* 80px - prominent on contact form */
  width: auto !important;
}

/* Responsive adjustments for logo */
@media (min-width: 1024px) {
  header img[alt="Truck Technics Logo"] {
    height: 5rem !important;
    /* 80px on desktop */
  }

  header img[alt="Truck Technics Logo"].filter {
    height: 4rem !important;
    /* 64px for mobile overlay on desktop */
  }
}

@media (min-width: 1280px) {
  header img[alt="Truck Technics Logo"] {
    height: 5.5rem !important;
    /* 88px on large screens */
  }
}

/* Ensure logos don't get too small on very small screens */
@media (max-width: 480px) {
  header img[alt="Truck Technics Logo"] {
    height: 3rem !important;
    /* 48px minimum on small mobile */
    min-height: 2.5rem !important;
  }

  header img[alt="Truck Technics Logo"].filter {
    height: 2.5rem !important;
    /* 40px for mobile overlay on small screens */
  }

  .mobile-contact-logo img[alt="Truck Technics Logo"] {
    height: 4rem !important;
    /* 64px on small mobile contact form */
  }
}

/* Logo hover effects for better interactivity */
header a:hover img[alt="Truck Technics Logo"] {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Ensure proper spacing around larger logos */
header .flex.items-center {
  min-height: 6rem;
  /* Ensure header has enough space for larger logo */
}

@media (max-width: 1023px) {
  header .flex.items-center {
    min-height: 4rem;
    /* Smaller header on mobile */
  }
}

/* Fix mobile menu button consistency */
#mobile-menu a,
#mobile-overlay-menu a {
  transition: background-color 0.3s ease !important;
}

#mobile-menu a:hover,
#mobile-overlay-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Ensure mobile overlay menu contacts button matches others */
#mobile-overlay-menu a[href="contacts.html"]:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Ensure regular mobile menu contacts button matches others */


/* Force mobile overlay menu contacts button to match other navigation buttons */
#mobile-overlay-menu a[href="contacts.html"] {
  display: block !important;
  background-color: transparent !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  /* py-2 px-4 */
  border-radius: 0.375rem !important;
  /* rounded-md */
  font-weight: 500 !important;
  /* font-medium */
  font-size: 1rem !important;
  /* Normal text size */
  text-transform: none !important;
  /* Remove uppercase */
  letter-spacing: normal !important;
  /* Remove tracking */
  box-shadow: none !important;
  /* Remove shadow */
  transition: background-color 0.3s ease !important;
  text-decoration: none !important;
}

#mobile-overlay-menu a[href="contacts.html"]:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}



/* FIXED: Mobile Menu Text Visibility
   Ensures that mobile menu links on non-index pages (which have white backgrounds)
   always have dark text. */

body:not(.index-page) header .lg\:hidden a,
body:not(.index-page) header .lg\:hidden .nav-link,
body:not(.index-page) header .lg\:hidden .mobile-nav-link {
  color: var(--color-text-dark-blue) !important;
  text-shadow: none !important;
}

body:not(.index-page) header .lg\:hidden a:hover,
body:not(.index-page) header .lg\:hidden a.active,
body:not(.index-page) header .lg\:hidden .nav-link:hover,
body:not(.index-page) header .lg\:hidden .nav-link.active,
body:not(.index-page) header .lg\:hidden .mobile-nav-link:hover,
body:not(.index-page) header .lg\:hidden .mobile-nav-link.active {
  color: var(--color-accent-coral) !important;
  background-color: transparent !important;
  text-shadow: none !important;
  opacity: 1 !important;
}