/* ========================================
   Responsive Styles
   ======================================== */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Header */
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--spacing-md);
  }
  
  .header__nav--open {
    display: flex;
  }
  
  .header__mobile-toggle {
    display: flex;
  }
  
  .header__mobile-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .header__mobile-toggle--active span:nth-child(2) {
    opacity: 0;
  }
  
  .header__mobile-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Hero */
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero__content {
    max-width: 100%;
  }
  
  .hero__title {
    font-size: 2.5rem;
  }
  
  .hero__cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero__image {
    display: none;
  }
  
  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  /* Grid */
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (< 768px) */
@media screen and (max-width: 767px) {
  :root {
    --container-padding: 1rem;
    --spacing-3xl: 3rem;
  }
  
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Header */
  .header__container {
    height: 60px;
  }
  
  .header__logo-text {
    font-size: 1rem;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1rem;
  }
  
  .hero__cta {
    flex-direction: column;
  }
  
  .hero__cta .btn {
    width: 100%;
  }
  
  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer__brand {
    max-width: 100%;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
  
  /* Stats */
  .stats__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .stat-item__number {
    font-size: 2.5rem;
  }
  
  /* Contact */
  .contact-map {
    height: 250px;
  }
  
  /* Lead Form */
  .lead-form-container {
    padding: var(--spacing-lg);
  }
  
  /* Page Header */
  .page-header {
    padding: 100px 0 40px;
  }
  
  .page-header__title {
    font-size: 1.75rem;
  }
  
  /* Cookie Banner */
  .cookie-banner__content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner__actions {
    justify-content: center;
  }
  
  .cookie-banner__actions .btn {
    flex: 1;
    min-width: 120px;
  }
  
  /* Cookie Modal */
  .cookie-modal__content {
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
  }
  
  .cookie-modal__actions {
    flex-direction: column;
  }
  
  .cookie-modal__actions .btn {
    width: 100%;
  }
  
  /* Grid */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  /* Buttons */
  .btn--large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1rem;
  }
  
  /* Section */
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .section__header {
    margin-bottom: var(--spacing-xl);
  }
}

/* Small Mobile (< 480px) */
@media screen and (max-width: 479px) {
  html {
    font-size: 14px;
  }
  
  .hero__title {
    font-size: 1.75rem;
  }
  
  .stat-item__number {
    font-size: 2rem;
  }
  
  .cookie-banner__actions {
    flex-direction: column;
  }
  
  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Reduced Motion */
@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;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-modal,
  .btn,
  .hero__cta {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .section {
    padding: 20pt 0;
  }
}

/* Landscape Orientation on Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }
  
  .hero__title {
    font-size: 1.5rem;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  /* Can be enabled if dark mode is desired */
  /*
  :root {
    --light-gray: #1e293b;
    --dark-gray: #e2e8f0;
    --white: #0f172a;
  }
  */
}
