﻿body {
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

#mobile-menu {
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

@media (max-width: 1023px) {
  header .container {
    gap: 12px;
  }

  header img {
    height: 56px !important;
  }

  #mobile-menu {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  header .container,
  #mobile-menu .container,
  section .container,
  footer .container,
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  header img {
    height: 48px !important;
  }

  [id="hero-slider"],
  [class*="hero-section"],
  [class*="hero-slide"],
  [class*="h-[600px]"],
  [class*="h-[500px]"],
  [class*="h-[450px]"] {
    height: auto !important;
    min-height: 420px;
  }

  [class*="text-5xl"] {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  [class*="text-4xl"] {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  [class*="text-3xl"] {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  [class*="grid-cols-3"],
  [class*="grid-cols-4"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [class*="flex-row"] {
    flex-direction: column !important;
  }

  [class*="space-x-8"] > :not([hidden]) ~ :not([hidden]),
  [class*="space-x-6"] > :not([hidden]) ~ :not([hidden]),
  [class*="space-x-4"] > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  [class*="w-[500px]"],
  [class*="w-[450px]"],
  [class*="w-[400px]"],
  [class*="w-[350px]"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  [class*="min-w-[300px]"],
  [class*="min-w-[320px]"],
  [class*="min-w-[350px]"] {
    min-width: 0 !important;
  }

  .dropdown-menu {
    min-width: 100%;
  }
}

@media (max-width: 479px) {
  header .container,
  #mobile-menu .container,
  section .container,
  footer .container,
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header img {
    height: 42px !important;
  }

  [id="hero-slider"],
  [class*="hero-section"],
  [class*="hero-slide"],
  [class*="h-[600px]"],
  [class*="h-[500px]"],
  [class*="h-[450px]"] {
    min-height: 360px;
  }

  [class*="text-5xl"] {
    font-size: 1.75rem !important;
  }

  [class*="text-4xl"] {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 767px) {
  main {
    overflow-x: hidden;
  }

  section.py-20,
  section.py-16,
  section.py-12,
  footer.py-16 {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  [class*="grid-cols-2"],
  [class*="md:grid-cols-2"],
  [class*="lg:grid-cols-2"],
  [class*="xl:grid-cols-2"],
  [class*="md:grid-cols-3"],
  [class*="lg:grid-cols-3"],
  [class*="xl:grid-cols-4"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [class*="gap-12"] {
    gap: 1.75rem !important;
  }

  [class*="gap-10"] {
    gap: 1.5rem !important;
  }

  [class*="gap-8"] {
    gap: 1.25rem !important;
  }

  [class*="mb-16"] {
    margin-bottom: 2.5rem !important;
  }

  [class*="p-10"] {
    padding: 1.5rem !important;
  }

  [class*="p-8"] {
    padding: 1.25rem !important;
  }

  [class*="px-8"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  [class*="py-4"] {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
  }

  [class*="text-xl"] {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  [class*="text-2xl"] {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  form .flex.items-center,
  .space-y-6 .flex.items-center,
  .space-y-5 .flex.items-center {
    align-items: flex-start !important;
  }

  #contact-form .flex.items-center.gap-4 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  #captcha-question {
    width: 100%;
    text-align: center;
  }

  .pricing-card,
  .gallery-item,
  .package-card,
  .service-card,
  .testimonial-card {
    width: 100%;
    max-width: 100%;
  }

  .fixed.bottom-6.right-6 {
    bottom: 1rem !important;
    right: 1rem !important;
  }

  .fixed.bottom-6.right-6 a {
    width: 3rem !important;
    height: 3rem !important;
  }

  .fixed.bottom-6.right-6 i {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 479px) {
  section.py-20,
  section.py-16,
  section.py-12,
  footer.py-16 {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }

  [class*="text-3xl"] {
    font-size: 1.35rem !important;
  }

  [class*="text-2xl"] {
    font-size: 1.15rem !important;
  }

  [class*="text-xl"] {
    font-size: 0.95rem !important;
  }

  [class*="p-8"],
  [class*="p-10"] {
    padding: 1rem !important;
  }
}

@media (max-width: 991px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden !important;
  }

  * {
    box-sizing: border-box;
  }

  .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  header .container,
  section .container,
  footer .container,
  #mobile-menu .container,
  .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  header img {
    height: 52px !important;
    width: auto !important;
  }

  [id="hero-slider"],
  [class*="hero-section"],
  [class*="hero-slide"],
  [class*="h-[600px]"],
  [class*="h-[500px]"],
  [class*="h-[450px]"],
  [class*="h-[400px]"] {
    height: auto !important;
    min-height: 380px !important;
  }

  [class*="text-6xl"] {
    font-size: 2.25rem !important;
    line-height: 1.15 !important;
  }

  [class*="text-5xl"] {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  [class*="text-4xl"] {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }

  [class*="text-3xl"] {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  [class*="text-2xl"] {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  [class*="text-xl"] {
    font-size: 1rem !important;
    line-height: 1.65 !important;
  }

  [class*="grid-cols-2"],
  [class*="grid-cols-3"],
  [class*="grid-cols-4"],
  [class*="md:grid-cols-2"],
  [class*="md:grid-cols-3"],
  [class*="md:grid-cols-4"],
  [class*="lg:grid-cols-2"],
  [class*="lg:grid-cols-3"],
  [class*="lg:grid-cols-4"],
  [class*="xl:grid-cols-2"],
  [class*="xl:grid-cols-3"],
  [class*="xl:grid-cols-4"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  [class*="sm:flex-row"],
  [class*="md:flex-row"],
  [class*="lg:flex-row"],
  [class*="justify-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  [class*="space-x-4"] > :not([hidden]) ~ :not([hidden]),
  [class*="space-x-6"] > :not([hidden]) ~ :not([hidden]),
  [class*="space-x-8"] > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  [class*="whitespace-nowrap"] {
    white-space: normal !important;
  }

  [class*="gap-12"] {
    gap: 1.5rem !important;
  }

  [class*="gap-10"],
  [class*="gap-8"] {
    gap: 1.25rem !important;
  }

  [class*="p-10"] {
    padding: 1.5rem !important;
  }

  [class*="p-8"] {
    padding: 1.25rem !important;
  }

  [class*="px-8"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  [class*="w-[500px]"],
  [class*="w-[450px]"],
  [class*="w-[400px]"],
  [class*="w-[350px]"],
  [class*="max-w-xl"],
  [class*="max-w-2xl"],
  [class*="max-w-3xl"],
  [class*="max-w-4xl"],
  [class*="max-w-5xl"],
  [class*="max-w-6xl"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  #contact-form .grid,
  form .grid {
    grid-template-columns: 1fr !important;
  }

  #contact-form .flex.items-center.gap-4 {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #captcha-question {
    width: 100%;
    text-align: center;
  }

  .fixed.bottom-6.right-6 {
    right: 14px !important;
    bottom: 14px !important;
  }

  .fixed.bottom-6.right-6 a {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Header redesign */
header.fixed.top-0.left-0.w-full {
  background: linear-gradient(135deg, rgba(14, 23, 34, 0.96), rgba(27, 43, 60, 0.94)) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

header.fixed.top-0.left-0.w-full::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #3949ab, #8e24aa);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-brand-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand-main {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-brand-tag {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

header a.font-medium,
header button.font-medium,
header .text-primary,
#mobile-menu a,
#mobile-menu button {
  color: #f8fafc !important;
}

header a.font-medium:hover,
header button.font-medium:hover,
header .text-primary:hover {
  color: #fdd835 !important;
}

header .dropdown-menu {
  background: #102030 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28) !important;
}

header .dropdown-menu a {
  color: #f8fafc !important;
}

header .dropdown-menu a:hover {
  background: #1e88e5 !important;
  color: #ffffff !important;
}

header .bg-blue.text-white.px-6.py-2.rounded-button {
  background: linear-gradient(90deg, #1e88e5, #3949ab) !important;
  box-shadow: 0 10px 24px rgba(30, 136, 229, 0.28);
}

#mobile-menu {
  background: #0f1c2a !important;
}

#mobile-menu .border-gray-100 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#mobile-menu .bg-green,
#mobile-menu .bg-blue,
header .bg-blue.text-white.rounded-full,
header .bg-green.text-white.rounded-full {
  color: #fff !important;
}

#mobile-menu-button {
  color: #ffffff !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

#testimonials-carousel,
#testimonials-carousel .overflow-hidden {
  overflow: hidden;
}

#newsletter-form .flex {
  max-width: 100%;
}

@media (max-width: 991px) {
  .site-brand {
    gap: 10px;
  }

  .site-brand-main {
    font-size: 0.95rem;
  }

  .site-brand-tag {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 767px) {
  .site-brand-main {
    font-size: 0.88rem;
  }

  .site-brand-tag {
    display: none;
  }
}

@media (max-width: 479px) {
  .site-brand {
    gap: 8px;
  }

  .site-brand-main {
    font-size: 0.76rem;
    line-height: 1.2;
  }
}

/* Homepage polish */
.hero-copy {
  padding: 32px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff7d6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy p {
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-actions a {
  min-width: 180px;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.hero-trust-bar {
  position: relative;
  margin-top: -42px;
  z-index: 25;
}

.hero-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 28, 42, 0.12);
  border: 1px solid rgba(30, 136, 229, 0.08);
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.hero-trust-item strong {
  color: #1a2a38;
  font-size: 1.05rem;
}

.hero-trust-item span {
  color: #5b6470;
  font-size: 0.92rem;
  line-height: 1.6;
}

.service-card,
.package-card {
  border: 1px solid rgba(26, 42, 56, 0.06);
  box-shadow: 0 16px 35px rgba(16, 32, 48, 0.08);
}

.service-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 22px;
  position: relative;
  box-shadow: 0 14px 26px rgba(15, 28, 42, 0.12);
}

.service-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.service-icon i {
  position: relative;
  z-index: 1;
}

.service-icon-blue {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(57, 73, 171, 0.12));
  color: #1e88e5;
}

.service-icon-orange {
  background: linear-gradient(135deg, rgba(251, 140, 0, 0.22), rgba(229, 57, 53, 0.12));
  color: #fb8c00;
}

.service-icon-yellow {
  background: linear-gradient(135deg, rgba(253, 216, 53, 0.24), rgba(251, 140, 0, 0.14));
  color: #d9a400;
}

.service-icon-green {
  background: linear-gradient(135deg, rgba(67, 160, 71, 0.22), rgba(30, 136, 229, 0.1));
  color: #43a047;
}

.service-icon-indigo {
  background: linear-gradient(135deg, rgba(57, 73, 171, 0.22), rgba(30, 136, 229, 0.12));
  color: #3949ab;
}

.service-icon-purple {
  background: linear-gradient(135deg, rgba(142, 36, 170, 0.24), rgba(57, 73, 171, 0.12));
  color: #8e24aa;
}

.service-card h3,
.package-card h3 {
  line-height: 1.3;
}

@media (max-width: 991px) {
  .hero-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero-copy {
    padding: 24px 0 42px;
  }

  .hero-badge {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    padding: 7px 12px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hero-actions a {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .hero-trust-bar {
    margin-top: 0;
    padding-top: 22px;
  }

  .hero-trust-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
  }

  .hero-trust-item {
    text-align: center;
  }
}

/* Responsive fixes added after audit */
@media (max-width: 767px) {
  #hero-slider {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 128px !important;
  }

  #hero-slider .hero-slide {
    position: relative !important;
    min-height: 520px;
    display: none;
    background-position: center !important;
  }

  #hero-slider .hero-slide:first-child {
    display: block;
    opacity: 1 !important;
    z-index: 1 !important;
  }

  #hero-slider .hero-slide .container {
    min-height: 520px;
    align-items: flex-start !important;
    padding-top: 28px;
    padding-bottom: 88px;
  }

  .hero-copy {
    padding: 0 !important;
  }

  .hero-copy h1 {
    font-size: 1.9rem !important;
    line-height: 1.18 !important;
    margin-bottom: 14px !important;
  }

  .hero-copy p {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
  }

  .hero-badge {
    font-size: 0.68rem !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 14px !important;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .hero-actions a {
    min-width: 0 !important;
    width: 100%;
    padding-left: 12px !important;
    padding-right: 12px !important;
    text-align: center;
  }

  #hero-slider > .absolute.bottom-6 {
    bottom: 78px !important;
    pointer-events: none;
  }

  .hero-trust-bar {
    margin-top: -58px !important;
  }

  .inline-flex:has(.gallery-filter) {
    display: flex !important;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    border-radius: 16px !important;
  }

  .gallery-filter {
    flex: 1 1 calc(50% - 8px);
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #testimonials-carousel {
    overflow: hidden;
  }

  #prev-testimonial,
  #next-testimonial {
    width: 40px !important;
    height: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 479px) {
  .hero-copy h1 {
    font-size: 1.72rem !important;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions a {
    font-size: 0.9rem;
  }
}
