:root {
  --clr-teal-700: hsl(180, 100%, 15%);
  --clr-teal-500: hsl(180, 100%, 25%);
  --clr-teal-300: hsl(180, 100%, 35%);
  --clr-gold-300: hsl(40, 70%, 85%);
  --clr-gold-500: hsl(40, 70%, 75%);
  --clr-gold-700: hsl(40, 70%, 55%);
  --clr-gold-900: hsl(40, 70%, 35%);
  --clr-neutral-900: hsl(0, 0%, 0%);
  --clr-neutral-700: hsl(0, 0%, 25%);
  --clr-neutral-500: hsl(0, 0%, 50%);
  --clr-neutral-300: hsl(0, 0%, 75%);
  --clr-neutral-100: hsl(0, 0%, 100%);

  --fs-xl: 5rem;
  --fs-700: clamp(1rem, 2vw, 4rem);
  --fs-600: clamp(0.8rem, 1.5vw, 3rem);
  --fs-500: clamp(0.8rem, 1vw, 2rem);
  --fs-400: clamp(0.5rem, 0.85vw, 1.8rem);
  --fs-300: clamp(0.5rem, 0.75vw, 1.5rem);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  margin: 0 auto;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
}

/* ============================================
   HEADER & FOOTER
   ============================================ */

header {
  background: linear-gradient(
      20deg,
      #00ffff00 -10%,
      rgba(0, 128, 128, 0) 10%,
      #04003b 90%
    ),
    linear-gradient(
      170deg,
      hsl(180, 100%, 25%) -10%,
      rgb(143, 255, 255) 70%,
      #040040 120%
    );
  color: white;
}

footer {
  background: linear-gradient(
      20deg,
      #00ffff00 -10%,
      rgba(0, 128, 128, 0) 10%,
      #04003b 90%
    ),
    linear-gradient(
      170deg,
      rgba(0, 128, 128, 1) -10%,
      rgb(143, 255, 255) 70%,
      #040040 120%
    );
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  grid-template-areas: 'logo logo logo nav nav nav';
}

#brand {
  font-size: 4.5rem;
  margin: 0;
  margin-top: -1rem;
}

#company {
  margin: 0;
  margin-top: -1rem;
  margin-left: 0.8rem;
  font-size: 1.5rem;
}

.brand-row {
  grid-area: logo;
  display: flex;
  justify-content: left;
  align-items: center;
}

.logo {
  width: 120px;
  margin: 1rem;
  border-radius: 25%;
}

.nav-list {
  grid-area: nav;
  bottom: 0%;
}

header ul {
  margin: 0;
  text-align: right;
}

header li {
  display: inline;
  margin-right: 0.75rem;
}

header li a {
  color: white;
  text-decoration: none;
}

header li a:hover {
  color: var(--clr-gold-500);
  text-decoration: none;
}

footer ul {
  margin: 0;
  text-align: right;
}

footer li {
  display: inline;
  margin-right: 0.75rem;
}

footer li a {
  color: white;
  text-decoration: none;
}

footer li a:hover {
  color: var(--clr-gold-500);
  text-decoration: none;
}

.footer-right {
  text-align: right;
  grid-area: nav;
  padding: 1rem;
}

.footer-left {
  grid-area: logo;
  padding: 1rem;
}

footer a {
  color: var(--clr-gold-500);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: none;
}

#terms {
  margin-right: 2rem;
}

footer p {
  margin: 0.5rem 0 0.5rem 0;
}

#social-media-icons {
  float: right;
  margin-top: 5rem;
}

#social-media-icons-footer {
  float: right;
  margin-top: 1rem;
}

.fa,
.fab {
  text-decoration: none;
}

.fa:hover,
.fab:hover {
  color: var(--clr-gold-500);
}

.fa-youtube,
.fa-instagram,
.fa-tiktok {
  color: white;
}

.fa-tiktok {
  margin-right: 1rem;
}

/* ============================================
   MAIN CONTENT SECTIONS
   ============================================ */

.grid-section1 {
  grid-template-areas: 'text text text video video video';
  margin: 2rem;
}

.grid-section2 {
  grid-template-areas: 'feature1 feature1 feature2 feature2 feature3 feature3';
  margin: 7rem 10rem;
  gap: 5rem;
}

.grid-section3 {
  grid-template-areas: 'screen screen screen screen featureList featureList ';
  margin: 7rem 10rem;
  gap: 5rem;
}

.intro-text {
  grid-area: text;
  padding-left: 1rem;
}

strong {
  font-size: 2.2rem;
}

em {
  font-size: 1.3rem;
}

.intro-video {
  grid-area: video;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-video iframe {
  border-radius: 0.5rem;
}

.advertisement-image {
  height: 400px;
  border-radius: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.gold {
  background: linear-gradient(135deg, #bf953f, #fcf6ba);
  color: white;
  text-align: center;
  padding: 0.5rem 5rem;
  font-size: clamp(1.2rem, 1.3vw, 1.7rem);
  font-weight: bold;
  border-radius: 32px;
  border: none;
}

.login-row {
  float: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

#login {
  background: linear-gradient(135deg, #bf953f, #fcf6ba);
  color: white;
  text-align: center;
  padding: 0.5rem 5rem;
  font-size: clamp(1.2rem, 1.3vw, 1.7rem);
  font-weight: bold;
  border-radius: 32px;
  border: none;
  cursor: pointer;
}

.shop-button {
  background: linear-gradient(135deg, #015855, #61bcbf);
  color: white;
  text-align: center;
  padding: 0.5rem 5rem;
  font-size: clamp(1.2rem, 1.3vw, 1.7rem);
  font-weight: bold;
  border-radius: 32px;
  border: none;
  cursor: pointer;
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.design-card {
  grid-area: feature1;
}

.explore-card {
  grid-area: feature2;
}

.assess-card {
  grid-area: feature3;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
}

h4 {
  font-size: 2rem;
  margin: 1rem;
}

.container {
  padding: 2px 16px;
  text-align: center;
  background: linear-gradient(to right, teal, #74d6d6);
  color: white;
  height: 100%;
}

.features-text {
  grid-area: featureList;
}

.features-text li {
  font-size: 1.2vw;
}

.features-img {
  grid-area: screen;
  width: 100%;
  align-self: center;
  justify-self: center;
}

.screen-shot {
  width: 100%;
  border-radius: 0.5rem;
}

/* ============================================
   PROMO CONTENT
   ============================================ */

.promo-content {
  border-radius: 0;
  margin-bottom: 0;
}

.small {
  font-size: 0.8vw;
  text-align: right;
}

/* ============================================
   CONTACT FORM
   ============================================ */

#contactForm .form {
  width: 50%;
  background: white;
  border-radius: 8px;
  box-shadow: -3px 7px 20px 5px #b6b6b6;
  margin: 5% auto;
  padding: 20px 30px;
  max-width: calc(100vw - 40px);
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

#contactForm h2 {
  margin: 10px 0;
  padding-bottom: 10px;
  width: 50%;
  color: #78788c;
  border-bottom: 3px solid #78788c;
}

#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  background: none;
  outline: none;
  resize: none;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s;
  border-bottom: 2px solid #bebed2;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border-bottom: 2px solid #78788c;
}

#contactForm p:before {
  content: attr(type);
  display: block;
  margin: 28px 0 0;
  font-size: 14px;
  color: #5a5a5a;
}

#contactForm button {
  float: right;
  padding: 8px 12px;
  margin: 8px 0 16px 0;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid #78788c;
  border-radius: 4px;
  background: #5a5a6e;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

#contactForm button:hover {
  background: #78788c;
  color: #fff;
}

#contactForm button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Company info display (envelope icon section) */
#contactForm .company-info {
  position: absolute;
  top: -15px;
  right: -20px;
  background: #50505a;
  color: #fff;
  width: 35%;
  padding: 16px 4px 16px 0;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 10px 10px 40px -14px #000;
}

#contactForm span {
  margin: 0 5px 0 15px;
}

/* Form Status Message */
#formStatus {
  clear: both;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.5rem;
}

#formStatus.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#formStatus.error {
  background-color: #f8d7da;
  margin-top: 1rem;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#formStatus:empty {
  display: none;
}

/* Screen-reader-only class for labels */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Honeypot wrapper moved off-screen (visible in DOM for bots) */
.hp-wrapper {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

@media screen and (max-width: 1300px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    grid-template-areas:
      'logo logo logo'
      'nav nav nav';
  }

  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    grid-template-areas: 'logo nav';
  }

  footer p {
    margin: 0;
    text-align: center;
  }

  footer a {
    display: block;
    margin: 0;
    width: 100%;
    padding: 0;
    text-align: center;
  }

  #social-media-icons-footer a {
    display: inline;
    align-self: center;
  }

  #social-media-icons-footer {
    float: none;
    text-align: center;
    margin: 0;
  }

  ul {
    margin: 0;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0;
  }

  .brand-row {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  header ul {
    text-align: center;
  }

  #brand {
    font-size: 3rem;
    margin: 0;
  }

  #company {
    display: none;
  }

  .logo {
    width: 80px;
    border-radius: 25%;
  }

  .grid-section1 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      'text text text'
      'video video video';
  }

  .grid-section2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: 'feature1 feature2 feature3';
    gap: 2rem;
    font-size: 1rem;
    margin: 2rem;
    padding: 5rem;
    gap: 3rem;
  }

  .grid-section3 {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:
      'featureList'
      'screen';
    gap: 1rem;
    margin: 0 5rem 5rem 5rem;
  }

  .grid-section3 ul {
    text-align: left;
    margin-left: 2rem;
    column-count: 3;
  }

  .features-text li {
    font-size: 1.4vw;
    margin-right: 2rem;
  }

  .features-text h2 {
    text-align: center;
  }

  .grid-section3 :nth-child(12) {
    column-count: 1;
  }

  .features-text {
    text-align: left;
    justify-self: center;
    margin-bottom: 3rem;
  }

  .intro-text {
    padding: 0 7rem 0 7rem;
    text-align: center;
  }

  #social-media-icons {
    margin: 0 0 1rem 0;
    float: none;
    text-align: center;
  }

  .login-row {
    text-align: center;
    margin-bottom: 3rem;
  }

  #contactForm .company-info {
    width: 50%;
    text-align: center;
  }
}

@media screen and (max-width: 990px) {
  .grid-section2 {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:
      'feature1'
      'feature2'
      'feature3';
    margin: 2rem;
    padding: 5rem;
    gap: 3rem;
  }

  .card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    font-size: 1rem;
  }

  .grid-section3 ul {
    text-align: left;
    margin-left: 2rem;
    column-count: 1;
  }

  .features-text li {
    margin-right: 0;
    font-size: 2.9vw;
  }

  .intro-text {
    font-size: 1rem;
  }

  #contactForm h2 {
    width: 100%;
  }

  #contactForm .company-info {
    display: none;
  }

  #contactForm .form {
    width: 90%;
    margin: 10% auto;
  }
}

@media screen and (max-width: 580px) {
  .nav-list {
    font-size: 1.5rem;
  }

  .grid {
    font-size: 3vw;
  }

  .intro-text {
    padding: 0;
  }

  .intro-video iframe {
    width: 300px;
    height: 160px;
  }

  .grid-section2 {
    grid-template-columns: repeat(1, 1fr);
    grid-template-areas:
      'feature1'
      'feature2'
      'feature3';
    margin: 4rem;
    padding: 0rem;
    gap: 1rem;
  }

  .grid-section3 {
    margin: 1rem;
    padding: 0rem;
    gap: 1rem;
  }

  .grid-section3 li,
  .grid-section3 ul {
    font-size: 5vw;
  }

  .card {
    font-size: 3vw;
  }

  h4 {
    font-size: 5vw;
  }

  #contactForm h2 {
    font-size: 4vw;
  }
}
