/* ===========================
   Global Styles & Variables
   =========================== */

:root {
  --color-primary-dark: #2e3944;
  --color-primary-text: #5a6c78;
  --color-secondary-text: #d0d9df;
  --color-background-light: #ffffff;
  --color-text-dark: #2e3944;
  --color-text-medium: #5a6c78;
  --color-text-light: #d0d9df;
  --color-bg: #ffffff;
  --font-heading: 'Rubik Marker Hatch', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--color-background-light);
  color: var(--color-primary-text);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===========================
   Header Styles (Home Page)
   =========================== */

.site-header {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary-text);
  height: 42px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-icon {
  position: absolute;
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 15px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 40px;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 50px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 40px;
  transition: opacity 0.3s;
}

.main-nav a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .header-container {
    justify-content: center;
  }
}

/* ===========================
   Hero Section (Home Page)
   =========================== */

.hero-section {
  position: relative;
  height: 439px;
  display: flex;
  align-items: center;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-main-image-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 610px;
  height: 436px;
  border-radius: 0 0 600px 600px;
  overflow: hidden;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-text-left {
  width: 165px;
}

.hero-text-right {
  width: 115px;
  padding-top: 23px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-primary-text);
  margin-bottom: 39px;
}

.hero-subtitle {
  font-size: 12px;
  line-height: 21px;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 12px;
  line-height: 21px;
  color: var(--color-primary-text);
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    padding: 40px 0;
  }
  .hero-main-image-container {
    width: 90%;
    height: 300px;
  }
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .hero-text-left, .hero-text-right {
    width: 80%;
    max-width: 300px;
    padding-top: 0;
  }
}

/* ===========================
   Features Intro (Home Page)
   =========================== */

.features-intro {
  padding-top: 57px;
  padding-bottom: 60px;
  text-align: center;
}

.features-intro-title {
  font-size: 32px;
  line-height: 40px;
  color: var(--color-primary-text);
  margin-bottom: 47px;
}

.features-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.feature-nav-item {
  position: relative;
  color: rgba(90, 108, 120, 0.73);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 40px;
  padding-bottom: 5px;
  transition: color 0.3s;
}

.feature-nav-item:hover {
  color: var(--color-primary-text);
}

.feature-nav-item img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
}

/* ===========================
   Features Container (Home Page)
   =========================== */

.features-container {
  display: flex;
  flex-direction: column;
}

.feature-article {
  position: relative;
  padding: 50px 0;
}

.feature-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.feature-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.feature-content {
  display: grid;
  grid-template-columns: 311px 1fr;
  gap: 93px;
  align-items: center;
}

.feature-image img {
  border-radius: 68px;
  width: 311px;
  height: auto;
  aspect-ratio: 311 / 297;
  object-fit: cover;
}

.feature-text {
  color: var(--color-primary-dark);
}

.feature-title-group {
  position: relative;
  padding-left: 37px;
  margin-bottom: 29px;
}

.feature-title-group h3 {
  font-size: 30px;
  line-height: 40px;
  color: var(--color-primary-text);
}

.feature-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 21px;
  height: 22px;
}

.feature-text p {
  font-size: 12px;
  line-height: 19px;
  max-width: 365px;
  margin-bottom: 29px;
}

.learn-more {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 40px;
  color: var(--color-primary-text);
  transition: opacity 0.3s;
}

.learn-more:hover {
  opacity: 0.7;
}

.learn-more img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

@media (max-width: 768px) {
  .feature-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .feature-image {
    margin: 0 auto;
  }
  .feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .feature-title-group {
    padding-left: 0;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .feature-icon {
    position: static;
    transform: none;
  }
}

/* ===========================
   Footer Styles
   =========================== */

.site-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-secondary-text);
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 40px;
}

/* ===========================
   Detail Page Header Styles
   =========================== */

.detail-page .site-header {
  background-color: var(--color-text-dark);
  padding: 1px 0;
}

.detail-page .header-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
}

.detail-page .logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  transition: opacity 0.3s;
  position: relative;
}

.detail-page .logo:hover {
  opacity: 0.7;
}

.detail-page .logo-icon {
  width: 14px;
  height: 15px;
}

.detail-page .main-nav ul {
  display: flex;
  gap: 50px;
}

.detail-page .main-nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  transition: opacity 0.3s;
}

.detail-page .main-nav a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .detail-page .header-container {
    padding: 0 20px;
  }
  .detail-page .main-nav {
    display: none;
  }
}

/* ===========================
   Detail Page Hero Section
   =========================== */

.detail-page .hero-section {
  position: relative;
}

.hero-image-wrapper {
position: relative;
    width: 100%;
    max-width: 1148px;
    height: 977px;
    border-radius: 0 0 600px 600px;
    overflow: hidden;
    margin: 0 auto;
    top: 268px;
}

.hero-img-base, .hero-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-overlay {
  opacity: 1;

  top: 0;
}

.back-button {
  position: absolute;
  top: 217px;
  left: 48px;
  font-family: var(--font-heading);
  font-size: 40px;
  color: var(--color-text-medium);
  line-height: 1;
  transition: opacity 0.3s;
  cursor: pointer;
}

.back-button:hover {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .hero-image-wrapper {
    border-radius: 0;
    height: 65vw;
    max-height: 661px;
  }
}

@media (max-width: 768px) {
  .back-button {
    left: 20px;
    top: 180px;
    font-size: 32px;
  }
}

/* ===========================
   Detail Page Description
   =========================== */

.description-section {
  padding: 0 20px;
  margin-top: 272px;
  position: relative;
  z-index: 1;
  
}

.description-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.description-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.description-title {
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--color-text-medium);
  line-height: 1;
  margin: 0;
}

.title-star {
  width: 21px;
  height: 22px;
}

.description-text {
  margin-top: 29px;
  max-width: 346px;
  font-size: 12px;
  line-height: 19px;
  color: var(--color-text-dark);
}

@media (max-width: 768px) {
  .description-title {
    font-size: 48px;
  }
  .description-text {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* ===========================
   Detail Page Facts Section
   =========================== */

.facts-section {
  padding: 0 20px;
  margin-top: 163px;
}

.facts-container {
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 40px;
}

.info-card-image {
  width: 204px;
  height: 190px;
  border-radius: 50px;
  object-fit: cover;
  flex-shrink: 0;
}

.info-card-title {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.3;
  color: var(--color-text-medium);
  margin: 0 0 23px 0;
}

.info-card-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-text-medium);
  margin: 0;
}

@media (max-width: 768px) {
  .facts-section {
    margin-top: 80px;
  }
  .facts-container {
    gap: 60px;
  }
  .info-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .info-card-title {
    justify-content: center;
    margin-bottom: 15px;
  }
}

/* ===========================
   Detail Page Footer
   =========================== */

.detail-page .site-footer {
  background-color: var(--color-text-dark);
  color: var(--color-text-light);
  text-align: center;
  padding: 1px 20px;
  margin-top: 110px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-page .site-footer p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  line-height: 40px;
}

@media (max-width: 768px) {
  .detail-page .site-footer {
    margin-top: 80px;
  }
}

