/* MG SAMKO - Component Styles */

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--mg-white);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

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

.mobile-menu__container {
  padding: 2rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu__link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--mg-black);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mg-bg-grey);
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--mg-red);
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

/* Section Backgrounds */
.section-grey {
  background-color: var(--mg-bg-grey);
}

.section-primary {
  background-color: var(--mg-red);
  color: var(--mg-white);
}

/* About Section */
.about__content {
  padding: 2rem;
}

.about__image {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Check List */
.check-list {
  list-style: none;
  margin: 1.5rem 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mg-red);
  font-weight: bold;
  font-size: 1.25rem;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--mg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.feature-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mg-bg-grey);
  border-radius: 50%;
  padding: 15px;
}

.feature-card__icon img {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--mg-black);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--mg-grey);
  line-height: 1.5;
}

/* CTA Box */
.cta-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--mg-white);
}

.cta-box p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Model Details Section */
.model-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.model-hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.model-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  z-index: -1;
}

.model-hero__content {
  color: var(--mg-white);
  max-width: 600px;
  padding: 0 2rem;
}

.model-hero__title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.model-hero__subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Model Info Grid */
.model-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background-color: var(--mg-black);
  color: var(--mg-white);
  border-radius: var(--border-radius);
}

.model-info__item {
  text-align: center;
}

.model-info__label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.model-info__value {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--mg-bg-grey);
}

.specs-table th {
  font-weight: 700;
  color: var(--mg-black);
  background-color: var(--mg-bg-grey);
}

.specs-table tr:hover {
  background-color: var(--mg-bg-grey);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-primary);
  border: 2px solid var(--mg-light-grey);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--mg-red);
  box-shadow: 0 0 0 3px rgba(225, 0, 18, 0.1);
}

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

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

/* Form Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--mg-grey);
  cursor: pointer;
  line-height: 1.5;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  padding-top: 75%;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mg-white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.lightbox__close:hover {
  transform: rotate(90deg);
}

/* Test Drive Form */
.test-drive-form {
  background-color: var(--mg-bg-grey);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.test-drive-form h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* Opening Hours */
.opening-hours {
  background-color: var(--mg-bg-grey);
  padding: 2rem;
  border-radius: var(--border-radius);
}

.opening-hours h3 {
  margin-bottom: 1.5rem;
}

.opening-hours__list {
  list-style: none;
}

.opening-hours__item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.opening-hours__item:last-child {
  border-bottom: none;
}

.opening-hours__day {
  font-weight: 500;
}

.opening-hours__time {
  color: var(--mg-grey);
}

.opening-hours__closed {
  color: var(--mg-red);
}

/* Map Container */
.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

/* Alert Messages */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert--success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert--error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert--info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--mg-light-grey);
  border-top-color: var(--mg-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.max-w-2xl {
  max-width: 42rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Version Cards */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.version-card {
  background-color: var(--mg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 2px solid transparent;
}

.version-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--mg-red);
}

.version-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--mg-red);
}

.version-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mg-black);
  margin-bottom: 1.5rem;
}

.version-features {
  list-style: none;
  margin-bottom: 2rem;
}

.version-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.version-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mg-green);
  font-weight: bold;
}

/* Feature Highlight */
.feature-highlight {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-highlight__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mg-bg-grey);
  border-radius: 50%;
  padding: 15px;
}

.feature-highlight__icon img {
  width: 32px;
  height: 32px;
}

.feature-highlight h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--mg-red);
}

.feature-highlight p {
  color: var(--mg-grey);
  line-height: 1.6;
}

/* Contact Cards */
.contact-card {
  background-color: var(--mg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.contact-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mg-bg-grey);
  border-radius: 50%;
  padding: 15px;
}

.contact-card__icon img {
  width: 32px;
  height: 32px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--mg-black);
}

.contact-card p {
  color: var(--mg-grey);
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.contact-card a {
  color: var(--mg-black);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--mg-red);
}

/* Financing Cards */
.financing-card {
  background-color: var(--mg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.financing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--mg-red);
}

.financing-card__subtitle {
  color: var(--mg-grey);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.financing-card__features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.financing-card__features li {
  padding: 0.5rem 0;
  color: var(--mg-grey);
  position: relative;
  padding-left: 1.5rem;
}

.financing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mg-green);
  font-weight: bold;
}

.financing-card .btn {
  margin-top: auto;
}

/* Warranty Container */
.warranty-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.warranty-item {
  background-color: var(--mg-white);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.warranty-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.warranty-item__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--mg-bg-grey);
  border-radius: 50%;
  font-size: 2rem;
}

.warranty-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--mg-red);
}

.warranty-item p {
  color: var(--mg-grey);
  line-height: 1.6;
}

/* Contact Form Container */
.contact-form-container {
  padding: 1rem;
}

.contact-form-container h2 {
  margin-bottom: 0.5rem;
}

.contact-form-container > p {
  color: var(--mg-grey);
  margin-bottom: 2rem;
}