/* ================================
   DONCONT GROUP - RESPONSIVE STYLES
   ================================ */

/* Desktop First Approach - Optimize for smaller screens */

/* Large Desktop Screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-content {
    gap: var(--space-4xl);
  }
  
  .hero-visual {
    width: 400px;
    height: 400px;
  }
  
  .hero-hexagon {
    width: 350px;
    height: 350px;
  }
  
  .triangle-svg {
    width: 120px;
    height: 120px;
  }
}

/* Large Tablets and Small Laptops (1024px to 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .nav-list {
    gap: var(--space-xl);
  }
  
  .dropdown-menu {
    min-width: 500px;
  }
  
  .hero-content {
    gap: var(--space-2xl);
  }
  
  .hero-visual {
    width: 280px;
    height: 280px;
  }
  
  .hero-hexagon {
    width: 240px;
    height: 240px;
  }
  
  .triangle-svg {
    width: 80px;
    height: 80px;
  }
  
  .hero-stats {
    gap: var(--space-xl);
  }
  
  .service-card {
    padding: var(--space-xl);
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
  }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 4rem 0;
    --header-height: 70px;
  }
  
  body {
    padding-top: 70px;
  }
  
  .container {
    max-width: 720px;
  }
  
  /* Show mobile menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
  }
  
  .header-contact {
    display: none;
  }
  
  .header-content {
    height: 70px;
    gap: var(--space-lg);
  }
  
  .logo-img {
    width: 40px;
  }
  
  .logo-name {
    font-size: 1.25rem;
  }
  
  .logo-tagline {
    font-size: 0.7rem;
  }
  
  /* Hero adjustments */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }
  
  .hero-visual {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
  
  .hero-hexagon {
    width: 200px;
    height: 200px;
  }
  
  .triangle-svg {
    width: 60px;
    height: 60px;
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--space-xl);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Dropdown adjustments */
  .dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
  }
  
  .nav-dropdown:hover .dropdown-menu {
    transform: translateY(0);
  }
  
  .dropdown-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-item:nth-child(odd) {
    border-right: none;
  }
  
  /* Grid adjustments */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-xl);
  }
  
  /* Typography adjustments */
  .section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
  
  .section-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  /* Component adjustments */
  .service-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .testimonial {
    padding: var(--space-xl);
  }
  
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: var(--space-xl);
    right: var(--space-xl);
  }
  
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile Landscape (568px to 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .hero-stat {
    min-width: 60px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .section-header {
    margin-bottom: var(--space-2xl);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
  
  .hero-actions .btn {
    min-width: 200px;
  }
  
  .newsletter-form {
    flex-direction: column;
    max-width: 100%;
  }
  
  .newsletter-form input {
    margin-bottom: var(--space-sm);
  }
  
  .btn-newsletter {
    min-width: 100%;
    justify-content: center;
  }
}

/* Mobile Portrait (480px to 567px) */
@media (max-width: 567px) {
  :root {
    --container-padding: 0.75rem;
    --section-padding: 3rem 0;
  }
  
  .container {
    max-width: 100%;
  }
  
  .header-content {
    gap: var(--space-md);
  }
  
  .logo-text {
    display: none;
  }
  
  .hero-visual {
    width: 200px;
    height: 200px;
  }
  
  .hero-hexagon {
    width: 160px;
    height: 160px;
  }
  
  .triangle-svg {
    width: 50px;
    height: 50px;
    top: 20px;
    right: 20px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  
  .hero-stat {
    flex: 1 1 calc(50% - var(--space-sm));
    min-width: auto;
  }
  
  .section-title::after {
    width: 60px;
    margin: var(--space-md) auto 0;
  }
  
  .section-header:not(.center) .section-title::after {
    margin: var(--space-md) 0 0 0;
  }
  
  .service-card,
  .card {
    padding: var(--space-lg);
  }
  
  .card-header,
  .card-body,
  .card-footer {
    padding: var(--space-lg);
  }
  
  .testimonial {
    padding: var(--space-lg);
  }
  
  .team-info {
    padding: var(--space-lg);
  }
  
  .mobile-nav-content {
    width: min(300px, 85vw);
    padding: var(--header-height) var(--space-lg) var(--space-lg);
  }
  
  .dropdown-item {
    padding: var(--space-md) var(--space-lg);
  }
  
  .dropdown-icon {
    width: 24px;
    height: 24px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: var(--space-lg);
    right: var(--space-lg);
  }
  
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* Small Mobile (320px to 479px) */
@media (max-width: 479px) {
  :root {
    --container-padding: 0.5rem;
    --section-padding: 2.5rem 0;
  }
  
  .hero-title-main {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .hero-title-sub {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }
  
  .hero-visual {
    width: 180px;
    height: 180px;
  }
  
  .hero-hexagon {
    width: 140px;
    height: 140px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .service-card {
    padding: var(--space-md);
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-md);
  }
  
  .service-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .service-title {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }
  
  .hero-actions .btn {
    min-width: 180px;
  }
  
  .mobile-nav-content {
    width: min(280px, 90vw);
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-sm) var(--space-md);
  }
  
  .card,
  .service-card,
  .testimonial {
    border-radius: var(--radius-lg);
  }
  
  .team-photo {
    height: 250px;
  }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
  .hero-stats {
    display: none;
  }
  
  .logo-img {
    width: 32px;
  }
  
  .mobile-menu-toggle {
    padding: var(--space-xs);
  }
  
  .hamburger-line {
    width: 24px;
    height: 2px;
  }
  
  .hero-visual {
    width: 150px;
    height: 150px;
  }
  
  .hero-hexagon {
    width: 120px;
    height: 120px;
  }
  
  .triangle-svg {
    width: 40px;
    height: 40px;
  }
}

/* Landscape Orientation Adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: var(--space-xl) 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr auto;
    gap: var(--space-xl);
  }
  
  .hero-visual {
    width: 200px;
    height: 200px;
  }
  
  .hero-hexagon {
    width: 160px;
    height: 160px;
  }
  
  .hero-stats {
    display: flex;
    gap: var(--space-lg);
  }
  
  .scroll-indicator {
    display: none;
  }
}

/* Footer Responsive Styles */
.site-footer {
  background: var(--dark-text);
  color: var(--white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-logo-img {
  width: 48px;
  height: auto;
}

.footer-logo-text h3 {
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-logo-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.footer-title {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: var(--space-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social .social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer-social .social-link:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-social .social-link svg {
  width: 22px;
  height: 22px;
}

.footer-contact .contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info a:hover {
  color: var(--white);
}

.newsletter-signup {
  margin-top: var(--space-xl);
}

.newsletter-signup h5 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-xl);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.footer-links-bottom {
  display: flex;
  gap: var(--space-lg);
}

.footer-links-bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-bottom a:hover {
  color: var(--white);
}

/* Footer Responsive Adjustments */
@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: var(--space-2xl) 0 var(--space-lg);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .footer-links-bottom {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
  }
}

@media (max-width: 479px) {
  .footer-contact .contact-item {
    flex-direction: column;
    text-align: left;
    gap: var(--space-sm);
  }
  
  .footer-section {
    text-align: left;
  }
  
  .footer-logo,
  .footer-social {
    justify-content: flex-start;
  }
  
  .footer-bottom-content {
    text-align: left;
  }
  
  .footer-links-bottom {
    justify-content: flex-start;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .footer-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print Styles */
@media print {
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  .site-header,
  .mobile-nav-overlay,
  .back-to-top,
  .loading-spinner,
  .scroll-indicator,
  .newsletter-signup {
    display: none !important;
  }
  
  body {
    padding-top: 0 !important;
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .hero-section {
    min-height: auto !important;
    padding: 1rem 0 !important;
    page-break-after: always;
  }
  
  .section {
    padding: 1rem 0 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }
  
  p, li {
    color: black !important;
    orphans: 3;
    widows: 3;
  }
  
  .btn {
    border: 1px solid black !important;
    background: white !important;
    color: black !important;
  }
  
  .card,
  .service-card,
  .testimonial {
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  
  .site-footer {
    background: white !important;
    color: black !important;
    border-top: 2px solid black !important;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 5px !important;
  z-index: 10001 !important;
  position: relative !important;
}

.hamburger-line {
  width: 28px !important;
  height: 3px !important;
  background-color: #2C2C2C !important;
  margin: 4px 0 !important;
  transition: 0.3s !important;
  display: block !important;
}

/* Hamburger animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px) !important;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0 !important;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -8px) !important;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: white !important;
  z-index: 10000 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.3s ease-in-out !important;
  overflow-y: auto !important;
}

.mobile-nav-overlay.active {
  transform: translateX(0) !important;
}

/* Mobile Navigation Content */
.mobile-nav-content {
  padding: 80px 20px 40px 20px !important;
}

.mobile-nav .nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.mobile-nav .nav-item {
  border-bottom: 1px solid #E5E7EB !important;
}

.mobile-nav .nav-link {
  display: block !important;
  padding: 15px 0 !important;
  color: #2C2C2C !important;
  text-decoration: none !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

/* Mobile Dropdown Styles */
.mobile-nav .nav-dropdown .nav-link {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mobile-nav .dropdown-arrow {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.3s !important;
}

.mobile-nav .dropdown-menu {
  display: none !important;
  background: #F9FAFB !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  position: static !important;
  box-shadow: none !important;
  transform: none !important;
}

.mobile-nav .nav-dropdown.open .dropdown-menu {
  display: block !important;
}

.mobile-nav .nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg) !important;
}

/* Mobile Dropdown Items */
.mobile-nav .dropdown-item {
  display: flex !important;
  padding: 10px 15px !important;
  text-decoration: none !important;
  color: #2C2C2C !important;
  border-bottom: none !important;
}

.mobile-nav .dropdown-icon {
  width: 20px !important;
  height: 20px !important;
  margin-right: 10px !important;
  color: #DC2626 !important;
  flex-shrink: 0 !important;
}

.mobile-nav .dropdown-content h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
  color: #2C2C2C !important;
}

.mobile-nav .dropdown-content p {
  font-size: 14px !important;
  color: #6B7280 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Mobile Contact Section */
.mobile-contact {
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 2px solid #E5E7EB !important;
}

.mobile-contact p {
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  color: #2C2C2C !important;
}

.mobile-contact a {
  display: block !important;
  color: #DC2626 !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
  font-size: 16px !important;
}

/* Hide desktop elements */
.main-nav,
.header-contact {
  display: none !important;
}