/* ===========================
   RESPONSIVE & MOBILE
   Mobile-First Approach
   =========================== */

/* ===========================
   STICKY MOBILE CTAs
   =========================== */

.sticky-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 24px;
    right: 16px;
    z-index: 999;
  }

  .sticky-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
  }

  .sticky-btn:active {
    transform: scale(0.92);
  }

  .sticky-call {
    background: var(--primary);
    color: var(--white);
  }

  .sticky-whatsapp {
    background: #25D366;
    color: var(--white);
  }

  .sticky-email {
    background: var(--accent);
    color: var(--white);
  }
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .contact-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7,13,24,0.98);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-right: 1px solid rgba(200,150,60,0.15);
    z-index: 999;
    display: flex !important;
    flex-direction: column;
    padding-top: 70px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .mobile-nav.show {
    transform: translateX(0);
  }

  .mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(200, 150, 60, 0.10);
    border: 1px solid rgba(200, 150, 60, 0.20);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.80);
  }

  .mobile-nav-close:hover {
    background: rgba(200, 150, 60, 0.22);
    border-color: rgba(200, 150, 60, 0.45);
    color: #F0C060;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
  }

  .mobile-nav-links li {
    border-bottom: 1px solid rgba(200, 150, 60, 0.10);
    padding-bottom: 0.5rem;
  }

  .mobile-nav-links li:last-child {
    border-bottom: none;
  }

  .mobile-nav-links a,
  .mobile-nav-links a:visited,
  .mobile-nav-links a:link {
    color: rgba(255, 255, 255, 0.80) !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    padding: 0.85rem 1rem;
    transition: all var(--transition);
    border-radius: 10px;
    letter-spacing: 0.02em;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:active {
    color: #F0C060 !important;
    background: rgba(200, 150, 60, 0.10);
    padding-left: 1.4rem;
  }

  .mobile-nav-contact {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(200, 150, 60, 0.12);
    margin-top: auto;
    background: rgba(200, 150, 60, 0.04);
  }

  .mobile-nav-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(200, 150, 60, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .mobile-nav-contact a:last-child {
    margin-bottom: 0;
  }

  .mobile-nav-contact a:hover {
    background: rgba(200, 150, 60, 0.12);
    border-color: rgba(200, 150, 60, 0.30);
    color: #F0C060 !important;
    transform: translateY(-2px);
  }
}

/* ===========================
   GRID RESPONSIVE
   =========================== */

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   TYPOGRAPHY RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  body {
    font-size: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ===========================
   BUTTONS RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .btn-group .btn {
    width: 100%;
  }
}

/* ===========================
   HEADER RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
  }

  .logo img {
    height: 40px;
  }

  .nav {
    gap: 0;
  }

  .phone-link {
    display: none;
  }
}

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

@media (max-width: 768px) {
  .parallax-container {
    height: 60vh;
  }

  .parallax-content {
    padding: 0 2rem;
  }

  .scroll-chevron {
    bottom: 1rem;
  }

  .stats-bar {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ===========================
   SECTION PADDING RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }

  .section-small {
    padding: 2rem 0;
  }
}

/* ===========================
   CONTAINER RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* ===========================
   SPLIT LAYOUT RESPONSIVE
   =========================== */

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }
}

/* ===========================
   FORM RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  textarea {
    min-height: 100px;
  }
}

/* ===========================
   CONTACT LAYOUT RESPONSIVE
   =========================== */

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===========================
   CARD RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  .card-image {
    height: 200px;
  }
}

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

@media (max-width: 768px) {
  .testimonial-carousel {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .testimonial-carousel > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 100%;
  }
}

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

@media (max-width: 768px) {
  footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    margin-bottom: 2rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.85rem;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* ===========================
   UTILITY RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

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

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

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

  .gap-2-mobile {
    gap: 1rem;
  }
}

/* ===========================
   PARALLAX DISABLED ON MOBILE
   =========================== */

@media (max-width: 768px) {
  .parallax-bg {
    animation: none;
  }
}

/* ===========================
   IMAGE RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }

  .hero-image {
    max-height: 300px;
    object-fit: cover;
  }
}

/* ===========================
   SPACING ADJUSTMENTS
   =========================== */

@media (max-width: 768px) {
  .mt-1 { margin-top: 0.75rem; }
  .mt-2 { margin-top: 1.5rem; }
  .mt-3 { margin-top: 2rem; }
  .mb-1 { margin-bottom: 0.75rem; }
  .mb-2 { margin-bottom: 1.5rem; }
  .mb-3 { margin-bottom: 2rem; }

  .gap-2 { gap: 1.5rem; }
  .gap-3 { gap: 2rem; }
}

/* ===========================
   SPECIFIC MOBILE FIXES
   =========================== */

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px;
  }
}

/* ===========================
   LANDSCAPE ORIENTATION
   =========================== */

@media (max-height: 500px) and (orientation: landscape) {
  .parallax-container {
    height: 100vh;
  }

  .section-padding {
    padding: 2rem 0;
  }
}
