/* ================================
   PLÄANT — RESPONSIVE STYLES
   ================================ */

/* ---- TABLET (1024px and below) ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 2rem;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-headline {
    font-size: 2.8rem;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---- MOBILE (768px and below) ---- */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  /* Header adjustments */
  .nav-container {
    padding: 0 1rem;
  }

  .logo-text {
    font-size: 1.4rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  /* Hero section */
  .hero {
    padding: 5rem 1.5rem 2rem;
    min-height: auto;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-body {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-ghost, .btn-outline {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Sections */
  .featured-section,
  .why-section,
  .about-story,
  .team-section {
    margin: 4rem auto;
    padding: 0 1.5rem;
  }

  .featured-section {
    margin: 3rem auto;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .why-section {
    padding: 2rem 1.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .why-card {
    padding: 1.5rem 1rem;
  }

  .why-icon {
    font-size: 2.5rem;
  }

  .why-card h3 {
    font-size: 1.1rem;
  }

  .why-card p {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }

  .footer-bottom {
    padding: 1.5rem;
  }

  /* Contact form */
  .contact-main {
    padding: 0 1.5rem;
  }

  .contact-grid {
    margin-top: 5rem;
    padding: 2rem 0;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-item {
    margin-bottom: 1.5rem;
  }

  /* About page */
  .about-hero {
    padding: 4rem 1.5rem 2rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .story-text h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
  }

  .story-text p {
    font-size: 0.95rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* 404 page */
  .error-main {
    padding: 2rem 1.5rem;
  }

  .error-plant {
    font-size: 4rem;
  }

  .error-code {
    font-size: 5rem;
  }

  .error-content h1 {
    font-size: 1.5rem;
  }

  .error-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .error-actions .btn-primary,
  .error-actions .btn-outline,
  .error-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .error-suggestions ul {
    flex-direction: column;
    gap: 1rem;
  }

  /* Toast */
  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: 100%;
  }
}

/* ---- SMALL MOBILE (480px and below) ---- */
@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }

  /* Hero */
  .hero {
    padding: 4rem 1rem 1.5rem;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero-body {
    font-size: 0.95rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .product-name {
    font-size: 1rem;
  }

  /* Sections */
  .featured-section,
  .why-section,
  .contact-main,
  .about-story,
  .team-section {
    padding: 0 1rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .why-section {
    padding: 1.5rem 1rem;
  }

  .why-grid {
    gap: 1rem;
  }

  .why-card {
    padding: 1.25rem 0.75rem;
  }

  .why-icon {
    font-size: 2rem;
  }

  .why-card h3 {
    font-size: 1rem;
  }

  .why-card p {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-grid {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .footer-col h4 {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .footer-col ul,
  address {
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .footer-socials {
    gap: 1rem;
  }

  .footer-bottom {
    padding: 1rem;
    font-size: 0.75rem;
  }

  /* Contact */
  .contact-grid {
    margin-top: 4rem;
  }

  .contact-info h1 {
    font-size: 1.75rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* About */
  .about-hero {
    padding: 3rem 1rem 1.5rem;
  }

  .about-hero h1 {
    font-size: 1.6rem;
  }

  .story-text h2 {
    font-size: 1.3rem;
  }

  .story-text p {
    font-size: 0.9rem;
  }

  .story-text li {
    font-size: 0.9rem;
  }

  .team-card h3 {
    font-size: 1.1rem;
  }

  /* 404 */
  .error-main {
    padding: 1.5rem 1rem;
  }

  .error-plant {
    font-size: 3rem;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-content h1 {
    font-size: 1.3rem;
  }

  .error-content p {
    font-size: 0.9rem;
  }

  .error-suggestions p {
    font-size: 0.85rem;
  }

  .error-suggestions a {
    font-size: 0.85rem;
  }

  /* Toast */
  .toast {
    bottom: 1rem;
    right: 0.5rem;
    left: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
  }

  /* Buttons */
  .btn-primary,
  .btn-ghost,
  .btn-outline {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  /* Cart count */
  .cart-count {
    font-size: 8px;
    width: 14px;
    height: 14px;
  }
}

/* ---- EXTRA SMALL (Below 360px) ---- */
@media (max-width: 360px) {
  .hero-headline {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }
}

/* ---- PRINT STYLES ---- */
@media print {
  .site-header,
  .site-footer,
  .nav-actions,
  .error-actions {
    display: none;
  }

  body {
    background: white;
  }

  .hero,
  .featured-section,
  .why-section,
  .contact-form {
    page-break-inside: avoid;
  }
}
