/* Responsive CSS for Corverna website */

/* Base responsive styles */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* Improved hamburger menu */
.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.hamburger-icon {
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  background: none;
  border: none;
  padding: 10px;
  transition: color 0.3s ease;
  /* Increase touch target size for mobile */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon:hover {
  color: #ccc;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 6px;
  min-width: 200px;
  display: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-menu a {
  display: block;
  padding: 15px 20px; /* Larger padding for better touch targets */
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
}

.show {
  display: block;
}

/* Responsive typography */
h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin-bottom: 15px;
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  margin-bottom: 10px;
  line-height: 1.4;
}

p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  margin-bottom: 20px;
}

/* Buttons with better touch targets */
.button, .cta-button {
  display: inline-block;
  font-size: 1.1rem;
  padding: 15px 25px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

/* Container for content */
.content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Responsive grid system */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Media Queries */
/* Small devices (phones) */
@media (max-width: 576px) {
  .grid {
    grid-template-columns: 1fr;
  }
  
  .content-container {
    padding: 15px;
  }
  
  .dropdown-menu {
    min-width: 180px;
  }
}

/* Medium devices (tablets) */
@media (min-width: 577px) and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Large devices (desktops) */
@media (min-width: 769px) and (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Extra large devices */
@media (min-width: 993px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
