/**
 * Shadowdogs - Responsive Stylesheet
 * Developed by Visionhost - https://visionhost.com/
 */

/* CSS Custom Properties */
:root {
  /* Base spacing (mobile-first) */
  --spacing-section: 60px;
  --spacing-component: 30px;
  --container-padding: 16px;

  /* Typography scale (mobile-first) */
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.25rem;
  --fs-h4: 1.125rem;
  --fs-h5: 1rem;
  --fs-h6: 0.875rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Touch targets */
  --touch-target-min: 44px;

  /* Z-index scale */
  --z-mobile-nav: 9999;
  --z-mobile-cta: 1000;
  --z-sticky-header: 1030;
}

/* Base Responsive Styles */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive Embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.embed-responsive iframe,
.embed-responsive video,
.embed-responsive embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Typography */
h1, .h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
}

h2, .h2 {
  font-size: var(--fs-h2);
  line-height: 1.25;
}

h3, .h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
}

h4, .h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
}

h5, .h5 {
  font-size: var(--fs-h5);
  line-height: 1.4;
}

h6, .h6 {
  font-size: var(--fs-h6);
  line-height: 1.4;
}

/* Display headings (mobile) */
.display-1 { font-size: 2.5rem; }
.display-2 { font-size: 2.25rem; }
.display-3 { font-size: 2rem; }
.display-4 { font-size: 1.75rem; }
.display-5 { font-size: 1.5rem; }
.display-6 { font-size: 1.25rem; }

/* Lead text */
.lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Navigation */
.navbar {
  padding: 12px var(--container-padding);
}

.navbar-brand {
  max-width: 150px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

/* Mobile Hamburger Menu */
.navbar-toggler {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  padding: 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:focus {
  outline: 2px solid var(--color-primary, #ff6b35);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  top: 8px;
}

/* Hamburger animation when open */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Full-screen Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-mobile-nav);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 60px 20px;
  list-style: none;
  margin: 0;
}

.mobile-nav-menu .nav-item {
  margin: 8px 0;
}

.mobile-nav-menu .nav-link {
  display: block;
  padding: 16px 24px;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  text-align: center;
  min-height: var(--touch-target-min);
  transition: color 0.3s ease;
}

.mobile-nav-menu .nav-link:hover,
.mobile-nav-menu .nav-link:focus {
  color: var(--color-primary, #ff6b35);
}

/* Touch-friendly nav items */
.nav-link {
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.hero-image {
  max-width: 100%;
  height: auto;
  margin-top: 30px;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Hero blob decorations - hidden on mobile */
.hero-blob,
.blob-decoration {
  display: none;
}

/* Hero buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.hero-buttons .btn {
  width: 100%;
  max-width: 280px;
  min-height: var(--touch-target-min);
}

/* Cards & Grids */
.services-grid,
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card,
.card {
  width: 100%;
}

/* Testimonial Cards - 1 column on mobile */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  padding: 24px;
}

/* Pricing Tables - Stack on mobile */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pricing-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Alternative: Horizontal scroll for pricing on mobile */
.pricing-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 16px;
}

.pricing-scroll-wrapper .pricing-grid {
  display: flex;
  gap: 20px;
  min-width: max-content;
}

.pricing-scroll-wrapper .pricing-card {
  flex: 0 0 280px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Portfolio/Gallery grid */
.portfolio-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Spacing */
section,
.section {
  padding: var(--spacing-section) 0;
}

/* Container padding */
.container,
.container-fluid {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Component spacing */
.component-spacing {
  margin-bottom: var(--spacing-component);
}

/* Reduced margins on mobile */
.mb-section { margin-bottom: 40px; }
.mt-section { margin-top: 40px; }
.py-section { padding-top: 40px; padding-bottom: 40px; }

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Lazy loading support */
img[loading="lazy"] {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

img.lazyload,
img.lazyloading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazyloaded {
  opacity: 1;
}

/* Image aspect ratio containers */
.aspect-ratio-16-9 {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.aspect-ratio-4-3 {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.aspect-ratio-1-1 {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.aspect-ratio-3-2 {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Forms */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: 12px 16px;
  font-size: 16px; /* Prevents iOS zoom */
  border-radius: 8px;
}

/* Stacked form layout on mobile */
.form-row,
.form-group {
  margin-bottom: 16px;
}

.form-row > [class*="col-"] {
  margin-bottom: 16px;
}

/* Form labels */
.form-label,
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Touch-friendly submit buttons */
.btn-submit,
button[type="submit"],
input[type="submit"] {
  width: 100%;
  min-height: var(--touch-target-min);
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* Checkbox and radio - larger touch targets */
.form-check {
  min-height: var(--touch-target-min);
  padding-left: 32px;
  display: flex;
  align-items: center;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 0;
}

/* Footer */
.footer {
  padding: 40px 0 20px;
}

/* Stack footer columns on mobile */
.footer-grid,
.footer .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}

.footer-column {
  margin-bottom: 24px;
}

.footer-logo {
  max-width: 120px;
  margin: 0 auto 16px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav a {
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}

/* Social links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-social a {
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile CTA Bar */
.mobile-cta-bar {
  display: none;
}

/* Decorative Elements */
.decoration,
.blob,
.floating-shape,
.bg-decoration {
  display: none;
}

/* Parallax effects disabled on mobile */
.parallax {
  background-attachment: scroll !important;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  min-width: 600px;
}

/* Card layout table on mobile */
.table-card-mobile {
  display: block;
}

.table-card-mobile thead {
  display: none;
}

.table-card-mobile tbody {
  display: grid;
  gap: 16px;
}

.table-card-mobile tr {
  display: block;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-card-mobile td {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.table-card-mobile td:last-child {
  border-bottom: none;
}

.table-card-mobile td::before {
  content: attr(data-label);
  font-weight: 600;
  margin-right: 16px;
}

/* Accessibility */
:focus {
  outline: 2px solid var(--color-primary, #ff6b35);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary, #ff6b35);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 24px;
  background: var(--color-dark, #1a1a1a);
  color: #fff;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

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

  .parallax {
    background-attachment: scroll !important;
  }
}

/* High contrast support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #ff5500;
    --color-text: #000;
    --color-bg: #fff;
  }

  .btn,
  button {
    border: 2px solid currentColor;
  }

  .card {
    border: 2px solid #000;
  }

  a {
    text-decoration: underline;
  }
}

/* Screen reader utilities */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus,
.visually-hidden-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}

/* Utility Classes */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none !important;
}

/* Text alignment utilities */
.text-center-mobile {
  text-align: center;
}

/* Stack utilities */
.stack-mobile {
  display: flex;
  flex-direction: column;
}

.stack-mobile > * {
  width: 100%;
}

/* Flex utilities */
.flex-column-mobile {
  flex-direction: column;
}

.flex-wrap-mobile {
  flex-wrap: wrap;
}

/* Order utilities */
.order-first-mobile {
  order: -1;
}

.order-last-mobile {
  order: 999;
}

/* Width utilities */
.w-100-mobile {
  width: 100% !important;
}

/* Padding utilities */
.px-mobile {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* No scroll utility */
.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* SM Breakpoint (576px+) */
@media (min-width: 576px) {
  :root {
    --container-padding: 20px;
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
  }

  /* Navigation */
  .navbar-brand {
    max-width: 180px;
  }

  .navbar-brand img {
    height: 45px;
  }

  /* Hero */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-buttons .btn {
    width: auto;
    min-width: 160px;
  }

  /* Cards */
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Forms */
  .form-inline {
    display: flex;
    gap: 12px;
  }

  .form-inline .form-control {
    flex: 1;
  }

  .form-inline .btn-submit {
    width: auto;
    min-width: 120px;
  }
}

/* MD Breakpoint (768px+) */
@media (min-width: 768px) {
  :root {
    --spacing-section: 80px;
    --spacing-component: 40px;
    --container-padding: 24px;
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
  }

  /* Display headings */
  .display-1 { font-size: 3rem; }
  .display-2 { font-size: 2.75rem; }
  .display-3 { font-size: 2.5rem; }
  .display-4 { font-size: 2.25rem; }
  .display-5 { font-size: 2rem; }
  .display-6 { font-size: 1.5rem; }

  /* Navigation - Show desktop nav */
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: flex !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .navbar-brand img {
    height: 50px;
  }

  /* Hero */
  .hero-section {
    padding: 100px 0 80px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  /* Show blob decorations on tablet+ */
  .hero-blob,
  .blob-decoration {
    display: block;
    opacity: 0.5;
  }

  /* Service Cards - 2 columns */
  .services-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Testimonials - 2 columns */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing - 2 columns */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Portfolio - 2-3 columns */
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Footer - 2 columns */
  .footer-grid,
  .footer .row {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-logo,
  .footer-nav a {
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
  }

  .footer-social {
    justify-content: flex-start;
  }

  /* Show decorative elements */
  .decoration,
  .blob,
  .floating-shape {
    display: block;
    opacity: 0.3;
  }

  /* Tables - back to normal */
  .table-card-mobile {
    display: table;
  }

  .table-card-mobile thead {
    display: table-header-group;
  }

  .table-card-mobile tbody {
    display: table-row-group;
  }

  .table-card-mobile tr {
    display: table-row;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .table-card-mobile td {
    display: table-cell;
    border-bottom: 1px solid #dee2e6;
  }

  .table-card-mobile td::before {
    display: none;
  }

  /* Utility overrides */
  .hide-mobile {
    display: block !important;
  }

  .show-mobile {
    display: none !important;
  }

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

  .stack-mobile {
    flex-direction: row;
  }

  .stack-mobile > * {
    width: auto;
  }

  .flex-column-mobile {
    flex-direction: row;
  }

  .order-first-mobile,
  .order-last-mobile {
    order: 0;
  }

  .w-100-mobile {
    width: auto !important;
  }
}

/* LG Breakpoint (992px+) */
@media (min-width: 992px) {
  :root {
    --spacing-section: 100px;
    --spacing-component: 50px;
    --fs-h1: 3rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.5rem;
  }

  /* Display headings */
  .display-1 { font-size: 4rem; }
  .display-2 { font-size: 3.5rem; }
  .display-3 { font-size: 3rem; }
  .display-4 { font-size: 2.5rem; }
  .display-5 { font-size: 2.25rem; }
  .display-6 { font-size: 1.75rem; }

  /* Navigation */
  .navbar {
    padding: 16px 24px;
  }

  .navbar-brand img {
    height: 55px;
  }

  /* Hero */
  .hero-section {
    padding: 120px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.375rem;
  }

  .hero-blob,
  .blob-decoration {
    opacity: 0.7;
  }

  /* Service Cards - 3-4 columns */
  .services-grid,
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .services-grid.cols-4,
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Testimonials - 3 columns */
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  /* Pricing - 3 columns */
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  /* Team - 3-4 columns */
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .team-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Portfolio - 3-4 columns */
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* Footer - 4 columns */
  .footer-grid,
  .footer .row {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  /* Decorative elements */
  .decoration,
  .blob,
  .floating-shape,
  .bg-decoration {
    display: block;
    opacity: 0.5;
  }
}

/* XL Breakpoint (1200px+) */
@media (min-width: 1200px) {
  :root {
    --spacing-section: 120px;
    --spacing-component: 60px;
    --fs-h1: 3.5rem;
    --fs-h2: 2.75rem;
    --fs-h3: 2rem;
    --fs-h4: 1.5rem;
  }

  /* Display headings */
  .display-1 { font-size: 5rem; }
  .display-2 { font-size: 4.5rem; }
  .display-3 { font-size: 4rem; }
  .display-4 { font-size: 3.5rem; }
  .display-5 { font-size: 3rem; }
  .display-6 { font-size: 2.5rem; }

  /* Navigation */
  .navbar {
    padding: 20px 40px;
  }

  .navbar-brand img {
    height: 60px;
  }

  /* Hero */
  .hero-section {
    min-height: 90vh;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-blob,
  .blob-decoration {
    opacity: 1;
  }

  /* Cards */
  .services-grid,
  .card-grid {
    gap: 32px;
  }
}

/* XXL Breakpoint (1400px+) */
@media (min-width: 1400px) {
  :root {
    --fs-h1: 4rem;
    --fs-h2: 3rem;
    --fs-h3: 2.25rem;
    --fs-h4: 1.75rem;
  }

  /* Display headings */
  .display-1 { font-size: 6rem; }
  .display-2 { font-size: 5.5rem; }
  .display-3 { font-size: 5rem; }
  .display-4 { font-size: 4.5rem; }
  .display-5 { font-size: 4rem; }
  .display-6 { font-size: 3rem; }

  /* Hero */
  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  /* Container max-width for ultra-wide screens */
  .container-xxl {
    max-width: 1600px;
  }
}

/* Mobile CTA bar overlap fix - applies to all devices where mobile CTA bar is shown (below lg breakpoint) */
@media (max-width: 991.98px) {
  /* Make CTA section have enough padding for mobile CTA bar */
  .cta-section {
    position: relative;
    z-index: 1;
    padding-bottom: 100px !important; /* Extra padding for mobile CTA bar overlap */
  }

  /* Ensure CTA buttons are clickable above mobile CTA bar */
  .cta-section .btn {
    position: relative;
    z-index: 2;
  }
}

/* Mobile Only (max-width: 767px) */
@media (max-width: 767.98px) {
  /* Fix white gap between sections on mobile - extend section backgrounds */
  .philosophy-section {
    padding-bottom: 50px;
    margin-bottom: -1px;
  }

  /* Add spacing between service content and CTA section on mobile */
  .service-content + .cta-section {
    margin-top: 30px;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark, #1a1a1a);
    padding: 12px 16px;
    z-index: var(--z-mobile-cta);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    gap: 12px;
  }

  .mobile-cta-bar .btn {
    flex: 1;
    min-height: var(--touch-target-min);
    padding: 12px 16px;
    font-size: 0.875rem;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-cta-bar .btn-icon {
    width: var(--touch-target-min);
    height: var(--touch-target-min);
    flex: 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Add body padding for fixed CTA bar and prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    padding-bottom: 70px;
  }

  /* Mobile navigation overlay */
  .mobile-nav-overlay {
    display: block;
  }

  /* Utility classes for mobile only */
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .show-mobile-flex {
    display: flex !important;
  }

  .show-mobile-inline {
    display: inline !important;
  }

  .show-mobile-inline-block {
    display: inline-block !important;
  }

  /* Fix mobile layout - remove card effect from main content */
  .main-header,
  main#main-content,
  .site-footer {
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure sections extend full width without rounded corners */
  section {
    border-radius: 0 !important;
  }

  /* Remove any container max-width that might create gaps */
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile Pricing Tables */
  .training-pricing .table-responsive,
  .groepswandeling-pricing .table-responsive,
  .strippenkaart-section .table-responsive,
  .individuele-uitlaatservice-section .table-responsive {
    overflow-x: visible;
  }

  .training-pricing .table-responsive table,
  .groepswandeling-pricing .table-responsive table,
  .strippenkaart-section .table-responsive table,
  .individuele-uitlaatservice-section .table-responsive table {
    min-width: 0;
  }

  /* Transform pricing tables into stacked cards */
  .pricing-table-bordered {
    display: block;
    border: none;
    background: transparent;
  }

  .pricing-table-bordered thead {
    display: none;
  }

  .pricing-table-bordered tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .pricing-table-bordered tbody tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Remove highlight from recommended option on mobile */
  .pricing-table-bordered tbody tr.table-gold {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .pricing-table-bordered tbody tr td {
    display: block;
    padding: 4px 0 !important;
    border: none !important;
    text-align: left !important;
  }

  /* Service name styling */
  .pricing-table-bordered tbody tr td:first-child {
    font-size: 1rem;
    margin-bottom: 8px;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #eee !important;
  }

  .pricing-table-bordered tbody tr td:first-child strong {
    font-size: 1.05rem;
  }

  /* Duration styling - add label */
  .pricing-table-bordered tbody tr td:nth-child(2) {
    font-size: 0.9rem;
    color: #666;
  }

  .pricing-table-bordered tbody tr td:nth-child(2)::before {
    content: "Duur: ";
    font-weight: 500;
    color: #333;
  }

  /* Price styling - make prominent */
  .pricing-table-bordered tbody tr td:last-child {
    margin-top: 8px;
    padding-top: 8px !important;
    border-top: 1px solid #eee !important;
  }

  .pricing-table-bordered tbody tr td:last-child .fw-bold,
  .pricing-table-bordered tbody tr td:last-child .h5 {
    font-size: 1.25rem !important;
  }

  /* Abonnementen table - keep as regular table on mobile (like desktop) */
  .groepswandeling-pricing .pricing-table-bordered {
    display: table;
    width: 100%;
    border: 1px solid #dee2e6;
    background: #fff;
  }

  .groepswandeling-pricing .pricing-table-bordered thead {
    display: table-header-group;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody {
    display: table-row-group;
    gap: 0;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr {
    display: table-row;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr.table-gold {
    background: rgba(212, 168, 75, 0.1);
    border: none;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr td {
    display: table-cell;
    padding: 12px !important;
    border: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    text-align: inherit !important;
    vertical-align: middle;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr td:first-child {
    text-align: left !important;
    margin-bottom: 0;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #dee2e6 !important;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr td:nth-child(2),
  .groepswandeling-pricing .pricing-table-bordered tbody tr td:nth-child(3) {
    text-align: right !important;
  }

  .groepswandeling-pricing .pricing-table-bordered tbody tr td:nth-child(2)::before,
  .groepswandeling-pricing .pricing-table-bordered tbody tr td:nth-child(3)::before {
    content: none;
  }

  /* Make both price columns same font size */
  .groepswandeling-pricing .pricing-table-bordered tbody tr td .fw-bold,
  .groepswandeling-pricing .pricing-table-bordered tbody tr td .text-gold {
    font-size: 0.95rem !important;
  }

  /* Training pricing table - remove highlight from POPULAIR row */
  .training-pricing .pricing-table-bordered tbody tr.table-gold,
  .training-pricing .table > tbody > tr.table-gold,
  .training-pricing tbody tr.table-gold {
    background: #fff !important;
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
  }

  /* Strippenkaart table - 2 columns side by side */
  .strippenkaart-section .pricing-table-bordered tbody tr td:first-child::before {
    content: none;
  }

  .strippenkaart-section .pricing-table-bordered tbody tr td:nth-child(2)::before {
    content: none;
  }

  .strippenkaart-section .pricing-table-bordered tbody tr {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .strippenkaart-section .pricing-table-bordered tbody tr td:first-child {
    flex: 1;
    margin-bottom: 0;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }

  .strippenkaart-section .pricing-table-bordered tbody tr td:last-child {
    margin-top: 0;
    padding-top: 0 !important;
    border-top: none !important;
    text-align: right !important;
  }

  /* Individuele Uitlaatservice - show duration label */
  .individuele-uitlaatservice-section .pricing-table-bordered tbody tr td:nth-child(2)::before {
    content: "Duur: ";
  }

  /* Hide empty duration cells (like "Elke extra hond" row) */
  .pricing-table-bordered tbody tr td:nth-child(2):empty {
    display: none !important;
  }

  /* Remove top border from price when duration is hidden */
  .pricing-table-bordered tbody tr td:nth-child(2):empty + td:last-child {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
}

/* Landscape Mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 60px 0;
  }

  .mobile-nav-menu {
    padding: 40px 20px;
  }

  .mobile-nav-menu .nav-link {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 80px 0;
  }
}

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .mobile-cta-bar,
  .footer-social,
  .btn,
  .decoration,
  .blob,
  .skip-link {
    display: none !important;
  }

  /* Optimize for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000 !important;
    background: #fff !important;
  }

  a {
    text-decoration: underline;
    color: #000 !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  img {
    max-width: 100% !important;
  }

  /* Page breaks */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  img, table, figure {
    page-break-inside: avoid;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
  }

  /* Dark mode specific overrides can be added here */
  .card,
  .testimonial-card,
  .pricing-card {
    background: #1e1e1e;
    border-color: #333;
  }

  .table-card-mobile tr {
    background: #1e1e1e;
  }

  .form-control,
  .form-select,
  input,
  textarea,
  select {
    background: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
  }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work well on touch */
  .btn:hover,
  .card:hover,
  a:hover {
    transform: none;
  }

  /* Ensure adequate spacing for touch */
  .nav-link,
  .footer-nav a,
  .btn {
    min-height: var(--touch-target-min);
  }

  /* Disable hover-dependent features */
  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.show .dropdown-menu {
    display: block;
  }
}

/* Safe Area Insets */
@supports (padding: max(0px)) {
  .mobile-cta-bar {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
  }

  .container,
  .container-fluid {
    padding-left: max(var(--container-padding), env(safe-area-inset-left));
    padding-right: max(var(--container-padding), env(safe-area-inset-right));
  }
}
