/* ============================================================
   PROJECT:      Autocomp
   FILE:         styles.css
   DEVELOPERS:   Riain Lever, Devesh Reddy
   UPDATED:      25/03/26
   ============================================================ */

/* ===================== BASE CSS ============================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===================== TYPOGRAPHY ============================= */

body {
  font-family: 'Space Grotesk';
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===================== LAYOUT ============================= */

/* top gradient */

.hero_text {
  text-align: center;
  font-size: 22px;
  margin-bottom: 5vh;
  color: white;
  font-weight: bolder;
}

.hero_text .hero_second {
  text-align: center;
  font-size: 22px;
  margin-bottom: 5vh;
  color: white;
  font-weight: bolder;
}

.hero_text a {
  text-align: center;
  font-size: 22px;
  color: #a5b8d8;
}

.hero_text .hero_button {
  text-align: center;
  font-size: 16px;
  color: white;
}

.hero_button {
  display: inline-block;
  pointer-events: all;
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.8rem;
  font-size: 16px;
  border-radius: 6px;
  margin-top: 0.5vh;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.hero-gradient {
  position: relative;
  top: -100px;;
  left: 0;
  width: 100%;
  height: var(--hero-height, 800px);
  background: linear-gradient(135deg, hsl(216 65% 45%) 0%, hsl(220 70% 30%) 100%);

  z-index: 99;
  pointer-events: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero-gradient span {
  font-size: 16px;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 130px; 
  background: linear-gradient(to bottom, transparent, white);
}

/* 4 box row thing */

.box-row {
  margin-top: 5%;
  margin-bottom: 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 1rem;
}

.box {
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: left;
  width: 240px;
  height: 240px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.box:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.box_container {
  background-color: #d0ddf0;
  border-radius: 15px;
  margin-bottom: 5px;
  height: 50px;
  width: 5ch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box_container img {
  height: 30px;
  width: 30px;
}
/* Contribution */

.contribution_container {
  max-width: 70%;
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 10%;
}

.contribution_container h2 {
  color: #2868A8;
}

/* exception handeling container*/

.product_container_box {
  width: 70%;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
  margin-bottom: 5%
}

.product_box_container {
  background-color: #fdecec;
  border-radius: 15px;
  margin-bottom: 5px;
  height: 50px;
  width: 5ch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product_inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.product_box_container img {
  height: 30px;
  width: 30px;
}

/* main page content */

.box_above {
  text-align: center;
  margin: 0 auto;
  color:black;
}

.main_container {
  
  max-width: 70%;
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 5%;
}

.main_container li {
  margin: 10px;
}

.main_container img {
  max-width: 100%;
  margin-top: 3%;
}

.main_container h1 {
  text-align: center;
  color: #2868A8;
}

.product_container {
  max-width: 70%;
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 5%;
}

.product_container h2 {
  color: #2868A8;
}

.cta {
  display: block;
  margin: 0 auto;
  text-align: center;

  background-color: #2868A8;
  width: 300px;
  color: #fff;
  border: none;
  padding: 0.4rem 1.4rem;
  border-radius: 15px;
  font-size: 16px;
  transition: opacity 0.25s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  align-self: center;
}

.cta:hover {
  opacity: 0.85;
}

/* comparison box */

.comparison-table {
  width: 70%;
  margin: 0 auto;
}

.comparison-table th, .comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(122, 120, 120, 0.08);
}
/* ===================== NAVBAR/HEADER ============================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.75); 
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px); 
   /* border-bottom: 1px solid rgba(255, 255, 255, 0.3); */
  transition: top 0.4s;
}

.navbar__container {
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;

  transition: top 0.3s;
}

.navbar__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.navbar__links {
  display: flex;
  gap: 2.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar__links a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar__links a:hover {
  color: #000;
}

.navbar__cta {
  background-color: #2868A8;
  color: #fff;
  border: none;
  padding: 0.4rem 1.4rem;
  border-radius: 14px;
  font-size: 0.9rem;
  transition: opacity 0.25s ease;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.navbar__cta:hover {
  opacity: 0.9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===================== HERO SECTION ============================= */


/* ===================== FOOTER ============================= */

.footer {
  background-color: #ffffffad;
  color: #aaa;
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 50em;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  /* border-top: 1px solid #f1f1f1; */
  padding-top: 1.2rem;
  font-size: 0.8rem;
  text-align: center;
}



/* ===================== UTILITIES ============================= */

/* ===================== FORM ============================= */

input[type=text], select, textarea {
  font-family: 'Space Grotesk';
  font-size: 13px;
  width: 100%;
  padding: 11px;
  border: 1px solid #ccc;
  border-radius: 14px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 12px;
  resize: vertical;
}

textarea {
  resize: none;
  overflow-y: auto;
}

.form_button {
  font-family: 'Space Grotesk';
  background-color: #2868A8;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  width: 100%; 
}

.form_button img{
  margin-left: 10px;
  filter: brightness(0) invert(1); /* makes icon white */
}

.form_button:hover {
  opacity: 0.9;
}

.form_container {
  border-radius: 5px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 300px;
  margin-bottom: 300px;
}

/* ===================== MEDIA QUERIES ============================= */

@media (max-width: 768px) {
  .navbar__container {
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .navbar__logo img {
    height: 30px;
  }

  .navbar__links {
    position: static;
    transform: none;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .navbar__links a {
    font-size: 0.95rem;
  }

  .navbar__cta {
    text-align: center;
    padding: 0.6rem 1.4rem;
  }
}


/* -- Tablet (769px – 1024px) -- */
@media (min-width: 769px) and (max-width: 1024px) {

}

/* -- Desktop (1025px+) -- */
@media (min-width: 1025px) {

}