/* Grid System and Layout Components */

/* Flexbox Grid */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-auto {
  flex: 0 0 auto;
  padding: 0 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; padding: 0 0.75rem; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; padding: 0 0.75rem; }
.col-9 { flex: 0 0 75%; max-width: 75%; padding: 0 0.75rem; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 0.75rem; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; padding: 0 0.75rem; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 0.75rem; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; padding: 0 0.75rem; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 0.75rem; }
.col-3 { flex: 0 0 25%; max-width: 25%; padding: 0 0.75rem; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; padding: 0 0.75rem; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; padding: 0 0.75rem; }

/* Header */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-medium), backdrop-filter var(--transition-medium);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-area.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-logo:hover {
  color: var(--accent);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header-phone-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: rgba(59, 111, 160, 0.1);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.header-phone-cta:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  box-shadow: var(--shadow-medium);
  z-index: 9998;
  padding: 2rem 1rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-medium);
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu li {
  margin-bottom: 1rem;
}

.mobile-nav-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: color var(--transition-fast);
}

.mobile-nav-menu a:hover {
  color: var(--accent);
}

/* Footer */
.footer-area {
  background: var(--primary);
  color: white;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-widget h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-widget p,
.footer-widget ul {
  color: #E5E9F0;
  line-height: 1.6;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul a {
  color: #E5E9F0;
  transition: color var(--transition-fast);
}

.footer-widget ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(229, 233, 240, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: #E5E9F0;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.card-spec {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  line-height: 1;
  touch-action: manipulation;
  min-height: 48px;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: white;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 111, 160, 0.1);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Cookie Banner */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--primary);
  color: white;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-notice-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-notice-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-notice-buttons .btn {
  min-width: 120px;
}

/* Breadcrumbs */
.breadcrumb-area {
  background: var(--bg-secondary);
  padding: 1.5rem 0;
  margin-top: var(--header-height);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.breadcrumb-nav a {
  color: var(--accent);
}

.breadcrumb-separator {
  color: var(--text-secondary);
  margin: 0 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-navigation {
    gap: 1.5rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
  .col-md-4 { flex: 0 0 100%; max-width: 100%; }
  .col-md-3 { flex: 0 0 100%; max-width: 100%; }
  
  .main-navigation .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-phone-cta {
    display: none;
  }
  
  .cookie-notice {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .cookie-notice-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .card-content {
    padding: 1rem;
  }
}