/* ============================================
   DDPRINT - Responsive Styles
   Professional Multi-Device Design
   ============================================ */

/* Large Tablets & Small Desktops */
@media (max-width: 1199px) {
  :root {
    --space-3xl: 5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero__grid {
    gap: var(--space-xl);
  }

  .hero__stats {
    gap: var(--space-lg);
  }

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

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

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

  .testimonials-slider .testimonial-card:last-child {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-xl);
  }

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

  .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  .gallery__item:nth-child(2) {
    grid-column: span 1;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--space-lg) var(--space-lg);
    gap: var(--space-sm);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-lg);
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-cream-dark);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin-top: var(--space-md);
    width: auto;
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 var(--space-3xl);
  }

  .hero::before {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  }

  .hero::after {
    top: auto;
    bottom: 20%;
    right: 20%;
    width: 300px;
    height: 300px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__content {
    text-align: center;
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__stat {
    text-align: center;
  }

  .hero__media {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__float--1 {
    right: 0;
  }

  .trust-bar__inner {
    gap: var(--space-xl);
  }

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

  .process-grid::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: -1;
  }

  .split-with-image {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

/* Mobile Phones */
@media (max-width: 767px) {
  :root {
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .section--dark {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  /* Header Mobile */
  .header {
    padding: var(--space-xs) 0;
  }

  .header.scrolled {
    padding: var(--space-2xs) 0;
  }

  .logo {
    font-size: var(--text-lg);
  }

  .logo__icon {
    width: 36px;
    height: 36px;
  }

  .logo__icon img,
  .logo__icon svg {
    width: 100%;
    height: 100%;
  }

  /* Hero Mobile */
  .hero {
    padding: 100px 0 var(--space-2xl);
  }

  .hero__badge {
    font-size: 0.65rem;
    padding: var(--space-2xs) var(--space-sm);
  }

  .hero__title span {
    font-size: 0.5em;
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-lg);
  }

  .hero__stat-value {
    font-size: var(--text-3xl);
  }

  .hero__image-wrapper img {
    height: 350px;
  }

  .hero__image-badge {
    padding: var(--space-xs) var(--space-sm);
  }

  .hero__image-badge svg {
    width: 24px;
    height: 24px;
  }

  .hero__float {
    display: none;
  }

  /* Trust Bar Mobile */
  .trust-bar {
    padding: var(--space-md) 0;
  }

  .trust-bar__inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .trust-bar__item {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
  }

  .trust-bar__icon {
    width: 36px;
    height: 36px;
  }

  /* Services Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card__image {
    height: 180px;
  }

  .service-card__body {
    padding: var(--space-md);
  }

  /* Features Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .feature-card__icon {
    width: 60px;
    height: 60px;
  }

  /* Process Mobile */
  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process-step__number {
    width: 64px;
    height: 64px;
    font-size: var(--text-xl);
  }

  /* Testimonials Mobile */
  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .testimonials-slider .testimonial-card:last-child {
    display: block;
  }

  .testimonial-card {
    padding: var(--space-lg);
  }

  /* CTA Mobile */
  .cta-section__buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-section__buttons .btn {
    width: 100%;
  }

  .cta-section__contact {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Page Header Mobile */
  .page-header {
    padding: 120px 0 var(--space-xl);
  }

  .page-header__breadcrumb {
    font-size: var(--text-xs);
  }

  /* Contact Mobile */
  .contact-form {
    padding: var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer__brand {
    text-align: center;
  }

  .footer__certifications {
    justify-content: center;
  }

  .footer__links {
    text-align: center;
  }

  .footer__links ul {
    align-items: center;
  }

  .footer__contact {
    text-align: center;
  }

  .footer__contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .footer__legal {
    justify-content: center;
  }

  /* Gallery Mobile */
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4/3;
  }

  /* Map Mobile */
  .map-container iframe {
    height: 280px;
  }

  /* FAQ Mobile */
  .faq-toolbar {
    margin-bottom: var(--space-lg);
  }

  .faq-search {
    max-width: 100%;
  }

  .faq-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
  }

  .faq-category-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .faq-item__question {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }

  .faq-item__answer {
    padding: 0 var(--space-md);
  }

  .faq-item.active .faq-item__answer {
    padding: 0 var(--space-md) var(--space-md);
  }

  .faq-empty {
    padding: var(--space-xl) var(--space-md);
  }

  /* Directors Mobile */
  .directors-grid {
    grid-template-columns: 1fr;
  }

  /* Page Image Mobile */
  .page-image img {
    height: 250px;
  }

  .split-with-image__media img {
    height: 280px;
  }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  h1 {
    font-size: var(--text-3xl);
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-lg);
  }

  .hero__image-wrapper img {
    height: 280px;
  }

  .hero__stat-value {
    font-size: var(--text-2xl);
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    min-height: 44px;
  }

  .btn--lg {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    min-height: 48px;
  }

  .section-header__label {
    font-size: 0.65rem;
  }

  .section-header__description {
    font-size: var(--text-base);
  }

  .service-card__body {
    padding: var(--space-md);
  }

  .testimonial-card__quote {
    font-size: var(--text-sm);
  }

  .contact-info {
    padding: var(--space-lg);
  }

  .contact-form {
    padding: var(--space-md);
  }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 var(--space-xl);
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero__stats {
    flex-direction: row;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .service-card:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .testimonial-card:hover {
    transform: none;
  }

  .gallery__item::after {
    opacity: 1;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero__image-wrapper img,
  .service-card__image img,
  .gallery__item img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Print Styles */
@media print {
  .header,
  .hero__float,
  .trust-bar,
  .cta-section,
  .footer__social,
  .nav {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .section {
    padding: var(--space-lg) 0;
    page-break-inside: avoid;
  }

  .services-grid,
  .features-grid,
  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* Uncomment to enable dark mode support
  :root {
    --color-cream: #1a1a2e;
    --color-cream-dark: #0f0f1a;
    --color-white: #1a1a2e;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0aec0;
    --color-text-muted: #718096;
    --color-border: rgba(255, 255, 255, 0.1);
  }
  */
}
