:root {
  --tan: #C69C6C;
  --dark-blue: #042745;
  --red: #9B1E2C;
  --dark-red: #801320;
  --light-blue: #4894C5;
  --gray: #69696B;
  --light-gray: #E8EBED;
  font-family: "Red Hat Text", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0B0E12;
  color: var(--light-gray);
  -webkit-text-size-adjust: 100%;
}

/* Navigation */
.navigation-main {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 90px;
  background-color: #0B0E12;
  border-bottom: 1px solid var(--gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
}

.navigation-logo-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.navigation-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.primary-cta {
  background-color: var(--dark-red);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #D9B388;
  border: none;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.primary-cta:hover {
  background-color: var(--red);
  color: var(--tan);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  text-align: center;
  width: 100%;
  margin: auto;
  padding: 0 1.5rem;
}

.main-content h1 {
  margin: 2rem 0 0 0;
  font-weight: 300;
  color: var(--tan);
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: .01em;
  line-height: 1.1;
}

.main-content h2 {
  margin: 3rem 0 0;
  font-weight: 500;
  color: var(--tan);
  font-size: clamp(26px, 5vw, 46px);
  letter-spacing: .01em;
  line-height: 1.15;
}

.main-content h3 {
  margin: 0.5rem 0 0;
  font-weight: 500;
  font-style: italic;
  color: var(--light-gray);
  font-size: clamp(19px, 4vw, 37px);
  letter-spacing: .01em;
  line-height: 1.2;
}

.main-content p {
  margin: auto;
  padding-top: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--light-gray);
  max-width: 30rem;
  width: 100%;
  font-size: clamp(14px, 2.3vw, 19px);
  letter-spacing: .01em;
  line-height: 1.45;
}

/* Models Section */
#models-container {
  margin: 2.5rem 0;
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

#kmzero-container {
  grid-area: 1 / 1;
}

#kmfour-container {
  grid-area: 1 / 2;
}

#kmten-container {
  grid-area: 1 / 3;
}

.model-container {
  display: grid;
  grid-template-columns: 50% 50%;
  background-color: white;
  border-radius: 8px;
  margin: 0 auto;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15), 0 0 15px rgba(255, 255, 255, 0.08);
  width: 100%;
  height:325px;
  align-items: center;
}

.main-content .model-headline {
  padding-bottom: 0.75rem;
  margin: 0 auto;
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--dark-blue);
  line-height: 1.2;
}

.model-image {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 90px;
  display: block;
  margin: 0.25rem auto;
  object-fit: contain;
}

.model-description {
  font-size: clamp(13px, 1.2vw, 15px);
  grid-area: 2 / 2 / span 2 / span 1;
  color: var(--dark-blue);
  list-style-type: none;
  text-align: left;
  padding: 0 0 0 0.5rem;
  margin: 0;
  line-height: 1.6;
}

.model-information {
  font-weight: 700;
  color: var(--red);
}

.main-content .model-container h3 {
  color: var(--red);
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 1rem 0 0.25rem;
  font-style: normal;
}

/* Contact Container */
.contact-container {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin: 5rem auto;
  background-color: var(--dark-blue);
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  scroll-margin-top: 100px;
  padding: 2.5rem 1.5rem 3rem;
}

.contact-container h1 {
  color: var(--tan);
  margin: auto;
  padding: 0.5rem 0 1rem;
  width: fit-content;
  font-size: clamp(27px, 5.6vw, 46px);
}

.contact-form {
  margin: auto;
  width: 100%;
}

.contact-form-row {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1rem;
  display: flex;
  gap: 1rem;
}

.contact-form-row .form-input {
  flex: 1;
  min-width: 0;
}

.form-input {
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  padding: 0.95rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  width: 100%;
  color: #111;
  background-color: #fff;
  outline: none;
}

.form-section {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

.contact-form-label {
  text-align: left;
  color: var(--light-gray);
  font-size: 15px;
  display: block;
  margin-bottom: 0.5rem;
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.5rem;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--light-gray);
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--tan);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-item label {
  cursor: pointer;
  text-align: left;
}

.form-textarea {
  width: 100%;
  border-radius: 8px;
  padding: 1rem;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid transparent;
  resize: vertical;
  display: block;
  color: #111;
  background-color: #fff;
  outline: none;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tan);
  outline-offset: 2px;
}

.notify-status {
  min-height: 1.2em;
  margin: 0.5rem auto 1.25rem;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--light-gray);
  transition: color .3s ease;
  text-align: center;
  max-width: 500px;
}

.notify-status.ok {
  color: var(--tan);
}

.notify-status.err {
  color: #d98a93;
}

/* Footer */
.social-media {
  width: fit-content;
  margin: 24px auto 0;
  font-size: 14px;
  fill: var(--tan);
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.social-media a svg {
  transition: fill 0.2s ease, transform 0.2s ease;
}

.social-media a:hover svg {
  fill: white;
  transform: translateY(-2px);
}

.contact {
  font-size: 14px;
  color: var(--light-gray);
  width: fit-content;
  margin: 24px auto 0;
  text-align: center;
}

.contact a {
  color: var(--tan);
  text-decoration: none;
  padding-bottom: 2px;
}

.contact a:hover {
  color: white;
  border-color: white;
}

.copyright {
  text-align: center;
  margin: 1.25rem auto 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light-gray);
}

/* Tablet & Medium Screens: Stack models with KMfour on top */
@media (max-width: 1024px) {
  #models-container {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 2rem auto;
    gap: 24px;
  }

  #kmfour-container {
    grid-area: 1 / 1;
  }

  #kmzero-container {
    grid-area: 2 / 1;
  }

  #kmten-container {
    grid-area: 3 / 1;
  }

  .model-image {
    max-height: 110px;
  }

  .model-description {
    font-size: 15px;
  }

  .contact-container {
    margin: 3.5rem auto;
    width: 95%;
  }
}

/* Mobile Screens */
@media (max-width: 640px) {
  .navigation-main {
    height: 70px;
    padding: 0 1rem;
  }

  .navigation-logo {
    height: 44px;
  }

  .primary-cta {
    padding: 0.65rem 1rem;
    font-size: 13px;
    white-space: nowrap;
  }

  .main-content {
    padding: 0 1rem;
  }

  .main-content h1 {
    font-size: clamp(25px, 7.5vw, 36px);
  }

  .main-content h2 {
    font-size: clamp(22px, 6.5vw, 30px);
    margin: 2rem 0 0;
  }

  .main-content h3 {
    font-size: clamp(16px, 4.8vw, 22px);
  }

  #models-container {
    gap: 18px;
    margin: 1.5rem auto;
  }

  .model-container {
    padding: 0.75rem;
  }

  .model-image {
    max-height: 80px;
  }

  .model-description {
    font-size: 13px;
    line-height: 1.55;
    padding-left: 0.35rem;
  }

  .contact-container {
    margin: 2.5rem auto;
    width: calc(100% - 1.5rem);
    padding: 1.5rem 1rem 2rem;
  }

  .contact-form-row {
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .form-input {
    padding: 0.85rem 1rem;
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  }

  .form-textarea {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  }
}

/* Extra small mobile screens (e.g. 360px and below) */
@media (max-width: 380px) {
  .navigation-main {
    padding: 0 0.75rem;
  }

  .navigation-logo {
    height: 38px;
  }

  .primary-cta {
    padding: 0.55rem 0.8rem;
    font-size: 12px;
  }

  .model-description {
    font-size: 12px;
    line-height: 1.45;
  }
}
