/* ==========================================================================
   Lockewise - Responsive Styles
   Created: June 20, 2025
   ========================================================================== */

/* Mobile (up to 576px) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
    padding: 0 0.5rem;
  }

  .hero p {
    font-size: 1.1rem;
    padding: 0 0.75rem;
  }

  .problem-card {
    padding: 1.75rem;
  }

  .problem-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.875rem;
  }

  .problem-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .problem-card .icon {
    width: 42px;
    height: 42px;
    margin-right: 14px;
  }

  .problem-card .icon svg {
    width: 20px;
    height: 20px;
  }

  .card-content {
    align-items: flex-start;
  }

  .feature-item {
    padding: 1.5rem 1.25rem;
    overflow: visible;
    margin-bottom: 1rem;
  }

  .number-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .feature-item p {
    white-space: normal;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .contact {
    padding: 5rem 0;
  }

  .contact h2 {
    font-size: 2rem;
  }

  .contact h2::after {
    width: 80px;
    bottom: -10px;
  }

  .contact p {
    font-size: 0.95rem;
    margin: 2rem auto;
    padding: 0 0.75rem;
  }

  .contact-options {
    gap: 2rem;
    padding: 0 1rem;
  }

  .demo-button {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    width: auto;
    max-width: 220px;
    height: auto;
    white-space: nowrap;
  }

  .email-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .email-form input[type="email"] {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    text-align: center;
    padding: 1rem 1rem;
    background-color: #1a1a1a;
    color: var(--text-color);
  }

  .email-form button {
    width: 100%;
    padding: 0.9rem 2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .email-signup p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .form-note {
    font-size: 0.8rem !important;
    margin-top: 0.5rem !important;
  }

  #scrollToTopBtn {
    width: 44px;
    height: 44px;
    right: 15px;
    bottom: 15px;
  }

  .footer {
    padding: 2.5rem 0 2rem;
  }

  .footer h3 {
    font-size: 1.75rem;
  }

  .footer-content {
    padding: 0 1.5rem;
  }

  .footer p {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .separator {
    margin: 1.5rem auto;
  }

  .navbar .container {
    padding: 0 1rem;
  }

  .logo a {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 20px;
    height: 20px;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Reduce spacing between sections on mobile */
  section {
    padding: 3.5rem 1rem;
    margin-bottom: -1rem; /* Negative margin to pull sections closer together */
  }

  .hero {
    padding: 4rem 1rem 4rem;
  }

  .features {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .contact {
    padding: 3.5rem 0;
  }

  .footer {
    padding-top: 2.5rem;
  }
}

/* Small mobile */
@media (max-width: 374px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .email-form input[type="email"] {
    padding: 0.9rem 0.75rem;
    font-size: 0.9rem;
  }

  .email-form button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .demo-button {
    padding: 1.1rem 2rem;
    font-size: 1rem;
  }

  .footer h3 {
    font-size: 1.5rem;
  }

  .copyright {
    font-size: 0.7rem;
  }
}

/* Very small mobile screens */
@media (max-width: 350px) {
  .demo-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    max-width: 200px;
  }

  .demo-button-container {
    display: flex;
    justify-content: center;
  }
}

/* Tablets and Small Desktops */
@media (min-width: 577px) and (max-width: 991px) {
  .hero h1 {
    font-size: 3rem;
  }

  .problems h1,
  .features h1 {
    font-size: 2.75rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1rem;
  }

  /* Adjust the layout for smaller tablets */
  @media (min-width: 577px) and (max-width: 767px) {
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .feature-grid::before {
    display: none;
  }

  .contact {
    padding: 6rem 0;
  }

  .contact h2 {
    font-size: 2.5rem;
  }

  .contact-options {
    padding: 0 2rem;
  }

  .email-form {
    flex-direction: row;
  }

  .email-form input[type="email"] {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    text-align: left;
    background-color: #1a1a1a;
    color: var(--text-color);
  }

  .email-form button {
    width: auto;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 0 2.25rem;
  }

  .demo-button {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    max-width: 320px;
  }

  .footer {
    padding: 3rem 0 2.5rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* Medium spacing for tablets */
  section {
    padding: 5rem 1rem;
    margin-bottom: 0;
  }

  .hero {
    padding: 5rem 1rem 6rem;
  }

  .features {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .contact {
    padding: 5rem 0;
  }

  .footer {
    padding-top: 3.5rem;
  }
}

/* Medium Desktop */
@media (min-width: 1080px) and (max-width: 1199px) {
  .feature-grid {
    gap: 1.25rem;
  }

  .feature-item {
    padding: 2.5rem 1rem 1.5rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .problem-card {
    padding: 1.75rem;
  }

  .problem-card h3 {
    font-size: 1.3rem;
  }

  .feature-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-content {
    max-width: 1400px;
  }

  .copyright-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Increase spacing for sections on desktop */
  section {
    padding: 7rem 1rem;
    margin-bottom: 0; /* Remove any negative margins from mobile */
  }

  .hero {
    padding: 7rem 1rem 8rem;
  }

  .features {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .contact {
    padding: 7rem 0;
  }

  .footer {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .feature-grid {
    gap: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-item {
    padding: 2.5rem 1rem 1.5rem;
  }

  .feature-item h3 {
    font-size: 1.15rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }
}

/* Print Media Query */
@media print {
  body {
    background: white;
    color: black;
  }

  .hero,
  .problems,
  .features,
  .contact {
    background: white;
    color: black;
    padding: 2rem 0;
  }

  .footer {
    background: white;
    border-top: 1px solid #ddd;
  }

  button,
  .demo-button,
  #scrollToTopBtn {
    display: none;
  }

  h1,
  h2,
  h3,
  p {
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
}
