/* ============================================
   Responsive Design - Mobile First
   ============================================ */

/* ============================================
   Mobile: 320px - 767px
   ============================================ */

@media (max-width: 767px) {
  /* Typography */
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }

  h5 {
    font-size: 16px;
  }

  /* Header */
  .header-container {
    padding: var(--md);
  }

  nav {
    display: none;
  }

  .nav-toggle-btn {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 60px var(--md);
    min-height: 350px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  /* Grid */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Section */
  .section {
    padding: var(--xl) var(--md);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--lg);
  }

  /* Buttons */
  .btn {
    width: 100%;
    padding: var(--md);
  }

  /* Forms */
  .form-group {
    margin-bottom: var(--md);
  }

  /* Floating WhatsApp */
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }

  /* Breadcrumb */
  .breadcrumb-list {
    font-size: 14px;
    gap: var(--sm);
  }

  .breadcrumb-list li:not(:last-child)::after {
    margin-left: var(--sm);
  }

  /* Service Cards */
  .service-card-cta {
    flex-direction: column;
  }

  .service-card-cta a,
  .service-card-cta button {
    width: 100%;
  }

  /* Logo */
  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ============================================
   Tablet: 768px - 1024px
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  /* Typography */
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  /* Grid */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero */
  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section */
  .section {
    padding: var(--xl) var(--lg);
  }
}

/* ============================================
   Desktop: 1025px+
   ============================================ */

@media (min-width: 1025px) {
  /* Navigation */
  nav {
    display: block;
  }

  /* Grid */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Buttons */
  .btn {
    width: auto;
  }

  /* Service Cards */
  .service-card-cta {
    flex-direction: row;
  }

  .service-card-cta a,
  .service-card-cta button {
    flex: 1;
  }
}

/* ============================================
   Large Desktop: 1440px+
   ============================================ */

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 32px;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  header,
  footer,
  .floating-whatsapp {
    display: none;
  }

  body {
    background-color: var(--white);
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   High Contrast Mode
   ============================================ */

@media (prefers-contrast: more) {
  :root {
    --primary-color: #000000;
    --accent-color: #ffff00;
    --text-dark: #000000;
    --bg-light: #f0f0f0;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   Dark Mode (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }

  header {
    background-color: #0f0f0f;
  }

  .service-card {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #3a3a3a;
  }

  .dropdown-menu {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
  }

  .dropdown-menu a:hover {
    background-color: #3a3a3a;
  }
}
