/* GOOGLE FONTS */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

/* VARIABLES CSS */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 60%);
  --body-color: hsl(0, 0%, 0%);

  /* Font and typography */
  --body-font: "Montserrat", sans-serif;
  --h1-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /* Font weight */
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1152px) {
  :root {
    --h1-font-size: 2.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/* Global */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Regular CSS Classes */
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden;
}

/* ====== Header & Nav ====== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  border-bottom: 1px solid var(--text-color);
  z-index: var(--z-fixed);
}

.header .nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .nav .nav-logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
}

.header .nav .nav-toggle,
.nav-close {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    border-bottom: 1px solid var(--text-color);
    width: 100%;
    padding-block: 4.5rem 3.5rem;
    transition: top .4s;
  }

  .nav-toggle {
    display: block;
  }
}

.nav-list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  text-align: center;
}

.nav-link {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  transition: color .3s;
}

.nav-link:hover {
  color: var(--title-color);
}

.nav-social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-top: 3rem;
}

.nav-social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color .4s;
}

.nav-social-link:hover {
  color: var(--title-color);
}

.nav-close {
  position: absolute;
  top: 1.15rem;
  right: 1.5rem;
}

.nav-toggle {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
}

.nav-toggle.hidden {
  display: none;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* ====== HOME ====== */
.home-container,
.home-data,
.home-content,
.home-images,
.home-info-content {
  display: grid;
}

.home-container {
  padding-block: 9rem 3rem;
  row-gap: 3rem;
}

.home-data {
  text-align: center;
  row-gap: 3.5rem;
}

.home-content {
  row-gap: .75rem;
}

.home-stars {
  display: flex;
  column-gap: .25rem;
  justify-content: center;
}

.home-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.home-price {
  font-size: var(--h3-font-size);
}

.home-button {
  border: 1px solid var(--text-color);
  padding: 1rem 1.5rem;
  justify-self: center;
  color: var(--title-color);
  font-size: var(--small-font-size);
  letter-spacing: 3px;
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 1.5rem;
  transition: border-color .4s;
}

.home-button i {
  font-size: 1.25rem;
}

.home-button:hover {
  border-color: var(--title-color);
}

.home-images {
  position: relative;
}

.home-img {
  width: 180px;
  margin-inline: auto;
}

.home-info {
  display: flex;
  align-items: center;
  column-gap: .75rem;
  margin-top: 2rem;
}

.home-info-img {
  width: 120px;
}

.home-info-content {
  row-gap: 1.5rem;
}

.home-info-description {
  font-size: var(--small-font-size);
}

.home-button-link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  justify-self: flex-start;
  transition: color .4s;
}

.home-button-link:hover {
  color: var(--title-color);
}

/* Swiper class */
.swiper {
  margin-inline: initial;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -2rem;
}

.swiper-pagination-bullet {
  width: 1rem;
  height: .15rem;
  border-radius: 0;
  background-color: var(--text-color);
  transition: background-color .3s, width .3s;
}

.swiper-pagination-bullet-active {
  width: 1.5rem;
  background-color: var(--title-color);
}

/*====== SCROLL BAR ======*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(0, 0%, 12%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 20%);
}

/*====== BREAKPOINTS ======*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-inline: 1rem;
  }

  .home-info {
    flex-direction: column;
    row-gap: 2rem;
    text-align: center;
  }
  
  .home-button-link {
    justify-self: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home-container {
    grid-template-columns: 400px;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .header .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav-close,
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    column-gap: 4rem;
  }

  .nav-list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav-social {
    margin: 0;
  }

  .home-container {
    height: 100vh;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    column-gap: 4rem;
  }

  .home-data {
    text-align: initial;
  }

  .home-stars {
    justify-content: initial;
  }

  .home-button {
    justify-self: flex-start;
  }

  .home-info {
    margin: 0;
    flex-direction: column;
    row-gap: 1.25rem;
    align-items: initial;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .home-container {
    height: initial;
    grid-template-columns: repeat(3, 320px);
    justify-content: space-between;
    padding-block: 11rem 4rem;
  }

  .home-data {
    row-gap: 9.5rem;
  }

  .home-stars {
    column-gap: .75rem;
  }

  .home-img {
    width: 300px;
  }

  .home-info-img {
    width: 150px;
  }

  .home-info-description {
    font-size: var(--normal-font-size);
  }

  .home-info-content {
    row-gap: 7.5rem;
  }
}

/* For taller devices */
@media screen and (min-width: 1500px) and (min-height: 1032px) {
  .home-container {
    height: 100vh;
    align-items: center;
  }
}

/* ====== SECTIONS ====== */
.section {
  padding: 7rem 0 2rem;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: var(--title-color);
}

.about .section-title::after, .reviews .section-title::after{
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background-color: black;
}

/* ====== ABOUT ====== */
.about-container {
  display: grid;
  gap: 3rem;
}

.about-data {
  text-align: center;
}

.about-description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-features {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  background-color: hsl(0, 0%, 10%);
  padding: 3px 1.5rem;
  border-radius: .5rem;
  text-align: center;
}

.about-feature i {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 1rem;
}

.about-feature h3 {
  color: var(--title-color);
  margin-bottom: .5rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 300px;
  border-radius: 1rem;
}

/* ====== WATCH ====== */
.watch-container {
  display: grid;
  gap: 3rem;
}

.watch-content {
  display: grid;
  gap: 2rem;
}

.watch-image {
  display: flex;
  justify-content: center;
}

.watch-image img {
  max-width: 300px;
}

.watch-details {
  text-align: center;
}

.watch-name {
  color: var(--title-color);
  font-size: var(--h1-font-size);
  margin-bottom: .5rem;
}

.watch-price {
  font-size: var(--h1-font-size);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
}

.watch-stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.watch-stars span {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.watch-description {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.watch-specs {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}

.spec i {
  color: var(--title-color);
}

/* ====== REVIEWS ====== */
.reviews-container {
  display: grid;
  gap: 3rem;
}

.reviews-content {
  position: relative;
}

.review {
  background-color: hsl(0, 0%, 10%);
  padding: 2rem;
  border-radius: 1rem;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-user h4 {
  color: var(--title-color);
  margin-bottom: .25rem;
}

.review-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-date {
  font-size: var(--small-font-size);
  color: var(--text-color);
}

/* ====== FAQ ====== */
.faq-container {
  display: grid;
  gap: 3rem;
}

.faq-content {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background-color: hsl(0, 0%, 10%);
  border-radius: .5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
}

.faq-question h3 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
}

.faq-question i {
  color: var(--title-color);
  font-size: 1.5rem;
  transition: transform .3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-out;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* ====== FOOTER ====== */
.footer {
  background-color: hsl(0, 0%, 10%);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  gap: 3rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand p {
  margin: 1rem 0;
}

.footer-links h3, 
.footer-contact h3 {
  color: var(--title-color);
  margin-bottom: 1rem;
  font-size: var(--h3-font-size);
}

.footer-links ul {
  display: grid;
  gap: .75rem;
}

.footer-links a {
  color: var(--text-color);
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--title-color);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.footer-contact i {
  color: var(--title-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--text-color);
}

/* ====== BREAKPOINTS ====== */
@media screen and (min-width: 576px) {
  .about-features {
      grid-template-columns: repeat(3, 1fr);
  }

  .review {
      padding: 3rem;
  }
}

@media screen and (min-width: 768px) {
  .about-container {
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
  }

  .about-data {
      text-align: left;
  }

  .about-features {
      justify-content: flex-start;
  }

  .about-feature {
      text-align: left;
  }

  .watch-content {
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
  }

  .watch-details {
      text-align: left;
  }

  .watch-stars {
      justify-content: flex-start;
  }

  .spec {
      justify-content: flex-start;
  }

  .footer-content {
      grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
      text-align: left;
  }
}

@media screen and (min-width: 1152px) {
  .section {
      padding: 10rem 0 3rem;
  }

  .about-image img {
      max-width: 400px;
  }

  .watch-image img {
      max-width: 400px;
  }
}

/* ====== ABOUT SECTION ====== */
.about {
  background-color: hsl(0, 0%, 100%);
  padding: 6rem 0;
}

.about-container {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 3rem;
}

.about-data {
  padding-right: 2rem;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--body-color);
  margin-bottom: 2rem;
  text-align: center;
}

.about-description {
  color: hsl(0, 0%, 30%);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-features {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.about-feature i {
  color: white;
  font-size: 1.2rem;
}

.about-button {
  display: inline-block;
  background-color: var(--body-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s;
}

.about-button:hover {
  background-color: hsl(0, 0%, 15%);
}

.about-image {
  position: relative;
}

.about-img {
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ====== WATCH SECTION ====== */
.watch {
  background-color: var(--body-color);
  padding: 6rem 0;
}

.watch-container {
  max-width: 900px;
}

.watch-content {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.watch-image {
  text-align: center;
}

.watch-img {
  max-width: 100%;
  height: auto;
}

.watch-name {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.watch-description {
  color: var(--text-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.watch-specs {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.watch-spec {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.watch-spec i {
  color: var(--title-color);
  font-size: 1.2rem;
}

.watch-price {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.2rem;
  font-weight: var(--font-bold);
}

.watch-installments {
  margin-bottom: 0.8rem;
}

.watch-button {
  display: inline-block;
  background-color: var(--title-color);
  color: var(--body-color);
  padding: 1rem 2rem;
  border-radius: 0.25rem;
  font-weight: var(--font-semi-bold);
  transition: background-color 0.3s;
}

.watch-button:hover {
  background-color: hsl(0, 0%, 80%);
}

/* ====== REVIEWS SECTION ====== */
.reviews {
  background-color: hsl(0, 0%, 100%);
  padding: 6rem 0;
}

.reviews-container {
  max-width: 800px;
}

.reviews-content {
  padding: 2rem 0;
}

.reviews-item {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.355);
}

.reviews-stars {
  color: gold;
  margin-bottom: 1rem;
}

.reviews-stars i:last-child {
  color: hsl(0, 0%, 85%);
}

.reviews-text {
  color: hsl(0, 0%, 30%);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.reviews-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviews-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.reviews-name {
  color: hsl(0, 0%, 20%);
  margin-bottom: 0.25rem;
}

.reviews-date {
  color: hsl(0, 0%, 60%);
  font-size: var(--small-font-size);
}

/* ====== FAQ SECTION ====== */
.faq {
  background-color: var(--body-color);
  padding: 6rem 0;
}

.faq-container {
  max-width: 800px;
}

.faq-content {
  margin-top: 3rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1rem;
}

.faq-question h3 {
  color: var(--title-color);
  font-size: var(--h3-font-size);
}

.faq-question i {
  color: var(--title-color);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  color: var(--text-color);
  padding: 1rem 0;
  line-height: 1.6;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

/* FAQ SECTION FIX */
.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust based on your content */
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* ====== FOOTER ====== */
.footer {
  background-color: hsl(0, 0%, 10%);
  color: hsl(0, 0%, 70%);
  padding: 4rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
}

.footer-content {
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: white;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.footer-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.footer-social-link:hover {
  color: var(--text-color);
}

.footer-list {
  display: grid;
  gap: 1rem;
}

.footer-link {
  color: hsl(0, 0%, 70%);
  transition: color 0.3s;
}

.footer-link:hover {
  color: white;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-list i {
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid hsl(0, 0%, 20%);
  padding-top: 2rem;
  text-align: center;
}

.footer-copy {
  font-size: var(--small-font-size);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .about-container,
  .watch-content,
  .footer-content {
     grid-template-columns: 1fr;
  }
  
  .about-data {
     padding-right: 0;
     margin-bottom: 2rem;
  }
  
  .section-title {
     text-align: center;
  }
  
  .watch-image {
     order: -1;
     margin-bottom: 2rem;
  }
}

@media screen and (max-width: 576px) {
  .about,
  .watch,
  .reviews,
  .faq {
     padding: 4rem 0;
  }
}