/* Responsive Styles for Metal Works of Ohio */

/* Base responsive settings */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Default font size for better readability on mobile */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--light-color);
  cursor: pointer;
  z-index: 1000;
}

/* Media Queries */

/* Large Devices (Desktops) */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
    padding: 0 20px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .services-grid, 
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero {
    height: auto;
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-flex-container {
    flex-direction: column;
  }
  
  .hero-content, 
  .hero-image {
    width: 100%;
    margin-bottom: 30px;
  }
  
  .services-grid, 
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-img, 
  .about-content {
    width: 100%;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .footer-col {
    margin-bottom: 20px;
  }
  
  /* Adjust calculator for tablets */
  .calculator-form {
    max-width: 450px;
  }
  
  /* Adjust chatbot for tablets */
  .chatbot-interface {
    width: 350px;
    height: 480px;
  }
}

/* Small Devices (Mobile Landscape) */
@media screen and (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }
  
  nav {
    position: relative;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background-color: var(--dark-color);
    flex-direction: column;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 10px 0;
  }
  
  .nav-menu a {
    display: block;
    padding: 10px;
    text-align: center;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 2.2rem;
  }
  
  /* Services Section */
  .services-grid, 
  .products-grid,
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .spinning-holder {
    width: 250px;
    height: 250px;
  }
  
  /* About Section */
  .team-flex-container {
    flex-direction: column;
  }
  
  .team-image-container, 
  .team-text-container {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Calculator Section */
  .calculator-form {
    max-width: 100%;
  }
  
  .calculator-button {
    padding: 12px 0;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  /* Chatbot */
  .chatbot-interface {
    width: 300px;
    height: 450px;
    bottom: 80px;
    right: 10px;
  }
  
  .chatbot-button {
    width: 60px;
    height: 60px;
    right: 10px;
    bottom: 10px;
  }
  
  .bot-message, 
  .user-message {
    max-width: 90%;
    padding: 10px 15px;
    font-size: 14px;
  }
  
  /* Contact Form */
  .contact-form-container {
    grid-template-columns: 1fr;
  }
  
  .contact-info, 
  .contact-form {
    width: 100%;
  }
  
  /* Values Section */
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  /* Testimonials */
  .testimonial-card {
    padding: 15px;
  }
}

/* Extra Small Devices (Mobile Portrait) */
@media screen and (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn-large {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .spinning-holder {
    width: 200px;
    height: 200px;
  }
  
  .spinning-icon {
    font-size: 2rem;
  }
  
  /* Calculator */
  .calculator-display {
    padding: 15px;
  }
  
  .calculator-display .result-display {
    font-size: 1.5rem;
  }
  
  .calculator-button {
    font-size: 1rem;
    padding: 10px 0;
  }
  
  /* Chatbot */
  .chatbot-interface {
    width: 280px;
    height: 400px;
  }
  
  .chatbot-header h3 {
    font-size: 1rem;
  }
  
  .chatbot-input input {
    padding: 8px 15px;
  }
  
  .send-message {
    width: 35px;
    height: 35px;
  }
  
  /* Footer */
  .footer-col h3 {
    font-size: 1.2rem;
  }
  
  .footer-col p, 
  .footer-col li {
    font-size: 0.9rem;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Landscape orientation specific adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    padding: 40px 0;
  }
  
  .chatbot-interface {
    height: 350px;
  }
  
  .chatbot-messages {
    max-height: 200px;
  }
}

/* High-resolution displays */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  body {
    font-size: 18px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Print styles */
@media print {
  .mobile-menu-toggle,
  .chatbot-container,
  .cta,
  .footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
  }
}
