/* VADIN Website — Responsive Styles */

/* ============================================
   Tablets (768px and up)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    min-height: 400px;
  }

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

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

  .hero-content .tagline {
    font-size: 1.25rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  nav.main-nav.active {
    display: block !important;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  nav.main-nav li {
    border-bottom: 1px solid var(--color-border);
    margin: 0;
    width: 100%;
  }

  nav.main-nav li:last-child {
    border-bottom: none;
  }

  nav.main-nav a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

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

  footer .container {
    grid-template-columns: 1fr;
  }

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

  main {
    padding: var(--spacing-xl) 0;
  }
}

/* ============================================
   Mobile (480px and up)
   ============================================ */
@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
  }

  h2 {
    font-size: 1.25rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
  }

  h3 {
    font-size: 1rem;
    margin-top: var(--spacing-sm);
  }

  .hero {
    min-height: 350px;
  }

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

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

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

  .tagline {
    font-size: 1rem;
  }

  .hero-image img {
    max-height: 250px;
  }

  .content-image img {
    max-height: 250px;
  }

  .image-grid-item img {
    max-height: 200px;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .partners-section {
    padding: var(--spacing-xl) 0;
  }

  .partner-logo {
    min-width: 120px;
    height: 80px;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .partner-logo img {
    max-height: 60px;
  }

  .partners-track {
    gap: var(--spacing-lg);
    animation-duration: 25s;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  p {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
  }

  header {
    padding: 10px 0;
    min-height: auto;
  }

  header .container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .logo img {
    height: 45px;
  }

  nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  nav a {
    font-size: 0.85rem;
  }

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

  main {
    padding: var(--spacing-lg) 0;
  }

  .page-header {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
  }

  .card {
    padding: var(--spacing-md);
  }

  ul, ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }

  li {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
  }

  footer {
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
  }

  .footer-section h4 {
    font-size: 0.95rem;
  }

  .footer-section a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
  }
}

/* ============================================
   Large Screens (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
  }

  .section-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
  }

  nav, footer {
    display: none;
  }

  main {
    padding: 0;
    min-height: auto;
  }
}
