/* === Variables === */
:root {
  --max-width: 1245px;
}
/*********************** FONTS ***********************/
@font-face {
  font-family: "DMSerifDisplay-Regular";
  src: url("/app/assets/pages/home-warranty-comparison-v2/fonts/DMSerifDisplay-Regular.ttf");
}
@font-face {
  font-family: 'Poppins';
  src: url('/app/assets/pages/home-warranty-comparison-v2/fonts/Poppins-Bold.ttf');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: PoppinsEB;
  src: url("/app/assets/pages/home-warranty-comparison-v2/fonts/Poppins-ExtraBold.ttf");
}
@font-face {
  font-family: PoppinsSB;
  src: url("/app/assets/pages/home-warranty-comparison-v2/fonts/Poppins-SemiBold.ttf");
}
@font-face {
  font-family: PoppinsR;
  src: url("/app/assets/pages/home-warranty-comparison-v2/fonts/Poppins-Regular.ttf");
}
/* === Base Styles === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  color: #1A1A1A;
  background: #FFFFFF;
  line-height: 1.6;
}
h2 {
  font-size: 1.8em;
  margin-bottom: 10px;
}
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 20px 0px 20px;
}
.heading {
  text-align: center;
  margin-bottom: 2rem;
}
.no-link {
  cursor: auto;
}
/* === Hero Section === */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to bottom, #E3F9F6, #FFFFFF);
}
.hero h1 {
  font-size: 2.8em;
  font-weight: 700;
  background: linear-gradient(90deg, #132323, #005F5F, #3F6060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #444;
}
/* === Categories Section === */
.categories-container {
  text-align: center;
  padding-block: 2rem 3rem;
}
.categories-header p {
  color: #555;
}
/* === Card Grid === */
.categories .card {
  position: relative;
  overflow: hidden;
  width: 340px;
  height: 230px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.categories .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.categories .card:hover .card-image {
  transform: scale(1.1);
}
.categories .card p {
  margin: .5rem 0 0 0;
}
.categories .card .overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  padding: 20px;
  text-align: start;
  width: 100%;
}
.categories .overlay h3 i {
  background: #EAF8F6;
  color: #009A9A;
  padding: 6px;
  border-radius: 8px;
  margin-right: 8px;
  font-size: 14px;
}
/* === Logo Section === */
.heading-container {
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, .05);
}
.logo-section._cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 1.5rem;
  box-sizing: border-box;
}
.logo-section._cont a {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #517D7B;
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.logo-section._cont .logo-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-section .nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-items li a,
.logo-section._cont li a {
  text-decoration: none;
  font-size: 14px;
  color: #000;
  font-weight: 300;
  font-family: 'PoppinsR', sans-serif;
}
/* Rotating text container */
.rotating-text-container {
  display: inline-block;
  position: relative;
  min-height: 1em;
  color: #517D7B;
  font-weight: 500;
  font-size: 1rem;
  margin-left: 10px;
}
#rotating-text {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  font-family: 'PoppinsR', sans-serif;
}
/* Desktop navigation */
.nav-links {
  display: flex;
  gap: 20px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: black;
  border-radius: 2px;
}
/* Mobile menu styles */
.menu-items {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background: #fff;
  flex-direction: column;
  padding: 60px 20px;
  gap: 20px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: right 0.35s ease, opacity 0.35s ease;
  list-style: none;
  display: flex;
  z-index: 9999;
}
.menu-items.active {
  right: 0;
  opacity: 1;
}
.close-menu {
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 20px;
  font-weight: 600;
  color: #517D7B;
  cursor: pointer;
  z-index: 10;
}
/* === Footer === */
.footer {
  background-color: #111827;
  min-height: 400px;
  font-family: Poppins, Sans-serif;
  padding-bottom: 2rem;
  box-sizing: border-box;
}
.footer_wrapper._cont {
  max-width: 1280px;
  margin: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}
.footer_wrapper_row1 {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  padding: 3.2rem 0 2rem 0;
  box-sizing: border-box;
  border-bottom: 1px solid #7a7a7a7a;
}
.footer_wrapper_row1 div {
  line-height: 28px;
  color: #7A7A7A;
  font-family: 'PoppinsR';
  font-size: 15px;
  max-width: 659px;
}
.footer_wrapper_row2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  box-sizing: border-box;
  padding-top: 2rem;
}
.footer_nav_item {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: .5rem;
  width: 33%;
}
.footer_nav_item_title {
  color: #2DD4BF;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer_nav_item a {
  color: #D1D5DB;
  transition: color .3s;
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  line-height: 22px;
  font-family: 'PoppinsR';
  width: 100%;
}
.footer_nav_item a:hover {
  color: #fff;
}
.discl {
  box-sizing: border-box;
  margin-top: 5rem;
  color: #7A7A7A;
  font-family: 'PoppinsR';
  font-size: 12px;
  text-align: center;
}
.footer_copyright {
  box-sizing: border-box;
  margin-top: 1.5rem;
  font-family: 'PoppinsR';
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: #9CA3AF;
}
/* === Responsive Styles === */
@media only screen and (max-width: 768px) {
  /* GENERAL */
  .desktopOnly {
    display: none;
  }
  /* HEADER */
  .logo-section .nav-links {
    display: none;
  }
  .logo-section .menu-toggle {
    display: flex;
  }
  .logo-section._cont img {
    height: 25px;
  }
  .logo-section._cont {
    padding: 1rem;
    flex-direction: row;
    justify-content: space-between;
  }
  .logo-section._cont a span {
    display: none;
  }
  .logo-section._cont #rotating-text {
    font-size: 14px;
  }
  /* CATEGORIES */
  .categories .card{
    width: 90vw;
  }
  /* FOOTER */
  .footer_wrapper_row2 {
    flex-direction: column;
  }
  .footer_nav_item {
    width: 100%;
  }
  .footer_wrapper_row1 {
    flex-direction: column;
    padding: 2rem 1rem 1rem 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
  }
  .discl,
  .footer_wrapper_row2 {
    padding: 0 1rem 1rem;
  }
  .discl {
    margin-top: 2rem;
  }
}





