/* ==========================================
   RESPONSIVE DESIGN - Mobile, Tablet, Desktop
   ========================================== */

/* Mobile: 0px - 640px */
@media (max-width: 640px) {
  * {
    box-sizing: border-box !important;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 1rem !important;
    width: 100% !important;
  }
  
  html {
    scroll-padding-top: 70px !important;
  }
  
  header .container {
    height: auto !important;
  }
  
  .logo img {
    height: 70px !important;
  }
  
  nav {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px) !important;
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px) !important;
  }
  
  .nav--mobile {
    display: none !important;
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }
  
  .nav--mobile.open {
    display: flex !important;
    position: absolute !important;
    top: 100% !important;
    max-height: 500px !important;
    padding: var(--spacing-lg) !important;
    background-color: var(--color-secondary) !important;
    border-top: 1px solid rgba(30, 64, 175, 0.15) !important;
  }
  
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.3rem !important;
  }
  
  .hero__wrapper {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .hero {
    min-height: auto !important;
    padding: 1.5rem 0 !important;
  }
  
  .hero::before {
    display: none !important;
  }
  
  .hero__content {
    max-width: 100% !important;
  }
  
  .hero__content h1 {
    font-size: 1.8rem !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  
  .hero__image {
    height: 280px !important;
  }
  
  .section__heading {
    margin-bottom: 1.5rem !important;
  }
  
  .grid--3 {
    grid-template-columns: 1fr !important;
  }
  
  .grid--2 {
    grid-template-columns: 1fr !important;
  }
  
  .two-column,
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .card {
    padding: 1rem !important;
  }
  
  .hero__cta {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .btn {
    width: 100% !important;
  }
  
  .form-group input,
  .form-group textarea {
    font-size: 16px !important;
  }
  
  section {
    padding: 1.5rem 0 !important;
  }
}

/* Tablet: 641px - 1024px */
@media (max-width: 1024px) and (min-width: 641px) {
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero__wrapper {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
  }
  
  .hero__image {
    height: 350px;
  }
  
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-column,
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
  }
  
  nav {
    gap: var(--spacing-lg);
  }
  
  nav a {
    font-size: 0.8rem;
  }
}

/* Desktop: 1025px+ */
@media (min-width: 1025px) {
  .hamburger,
  .nav--mobile {
    display: none;
  }
  
  nav {
    display: flex;
  }
  
  .animate-on-scroll {
    opacity: 0;
  }
  
  .animate-on-scroll.in-view {
    animation: fadeInUp 0.8s ease-out forwards;
  }
}

/* Small Devices: 0px - 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem !important;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  .hero__image {
    height: 220px !important;
  }
  
  .btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
  }
  
  section {
    padding: 1rem 0 !important;
  }
}

/* Large Screens: 1400px+ */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero__wrapper {
    grid-template-columns: 1fr 1.5fr;
  }
}
