/* ================= Mobile Navigation ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--tertiary-color);
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  header nav.active {
    max-height: 300px;
  }

  header nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  header nav ul li a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
  }
}

/* ================= Hero Section Responsive ================= */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem var(--spacing-unit);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 80%;
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-image {
    width: 90%;
    min-height: 250px;
  }
}

/* ================= About Section Responsive ================= */
@media (max-width: 768px) {
  .about {
    padding: 2rem var(--spacing-unit);
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .about .intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-card {
    padding: 1.5rem;
  }

  .about-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .about {
    padding: 1.5rem var(--spacing-unit);
  }

  .about h2 {
    font-size: 1.6rem;
  }

  .about .intro br {
    display: none;
  }

  .about-card {
    padding: 1rem;
  }

  .about-card h3 {
    font-size: 1.1rem;
  }

  .about-card p {
    font-size: 0.9rem;
  }
}

/* ================= Contact Section Responsive ================= */
@media (max-width: 768px) {
  .contact {
    
    padding: 2rem var(--spacing-unit);
  }

  .contact-content h1 {
    font-size: 1.8rem;
  }

  .contact-content p {
    font-size: 1rem;
  }

  .form-container {
    padding: 1.5rem;
    width: 100%;
  }

  form {
    gap: 1rem;
  }

  input,
  textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  button {
    padding: 0.9rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 1.5rem var(--spacing-unit);
  }

  .contact-content h1 {
    font-size: 1.6rem;
  }

  .form-container {
    padding: 1rem;
  }

  input,
  textarea {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  textarea {
    min-height: 100px;
  }
}

/* ================= Header Responsive ================= */
@media (max-width: 480px) {
  header {
    padding: 0.8rem;
  }

  header > .logo > h1 {
    font-size: 1.3rem;
  }

  header > .logo > img {
    width: 40px;
  }

  .menu-toggle {
    font-size: 1.8rem;
  }
}

/* ================= General Responsive Adjustments ================= */
@media (max-width: 768px) {
  :root {
    --font-base-size: 16px;
    --spacing-unit: 0.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    --font-base-size: 14px;
    --spacing-unit: 0.6rem;
  }
}

/* ================= Large Screen Adjustments ================= */
@media (min-width: 1200px) {
  .about-container,
  .form-container {
    max-width: 1200px;
  }

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

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.4rem;
  }
}

/* ================= Tablet Adjustments ================= */
@media (min-width: 769px) and (max-width: 1024px) {
  .home {
    gap: 1rem;
  }

  .hero-image {
    width: 45%;
  }

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

/* ================= Print Styles ================= */
@media print {
  header {
    position: static;
    box-shadow: none;
  }

  .menu-toggle {
    display: none;
  }

  .hero-image {
    background: #f0f0f0;
  }

  .about-card {
    break-inside: avoid;
  }
}