/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --yellow: #eea238;
  --title-color: #dbccb8;
  --body-color: #ceab8e;
  --link-color: #eea238;
  --line-color: #eea238;
  --light-bg-color: #2f1e12;
  --bg-color: #170e09;
}

/* ========================================
   RESET & BASE STYLES
======================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

html,
body {
  overscroll-behavior: none;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: var(--body-color);
  background-color: var(--bg-color);
}

body,
h1,
h2,
h3,
h4,
p {
  margin: 0;
  margin-bottom: 0;
  font-family: 'lora', sans-serif;
  line-height: 1.5;
}

/* ========================================
   TYPOGRAPHY
======================================== */
p,
ul,
li {
  font-size: 18px;
}

ul,
ol {
  padding-left: 20px;
}

li:not(:last-child) {
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--title-color);
}

h3 {
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
}

.heading {
  font-size: 55px;
  font-weight: 500;
  line-height: 1.2;
  font-family: 'playfair display', serif;
  color: var(--title-color);
  display: block;
  box-sizing: border-box;
  text-wrap: balance;
}

.title {
  font-size: 35px;
  font-weight: 500;
  font-family: 'playfair display', serif;
  color: var(--title-color);
  text-wrap: balance;
}

.subtitle {
  font-size: 24px;
  font-weight: 500;
  font-family: 'playfair display', serif;
  color: var(--yellow);
}

.body-text {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  list-style: none;
  color: var(--body-color);
}

.body-text li {
  position: relative;
  padding-left: 25px;
}

.body-text li::before {
  content: '✣';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-size: 18px;
}

.yellow {
  color: var(--yellow);
  font-style: italic;
}

.yellow-italic {
  color: var(--yellow);
  font-style: italic;
}

.divider {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  color: var(--body-color);
  opacity: 50%;
}

.footer-quotes {
  font-style: italic;
  opacity: 60%;
  text-wrap: balance;
}

/* ========================================
   LINKS & NAVIGATION
======================================== */
a {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: var(--link-color);
  border-bottom: 1px solid var(--line-color);
  opacity: 100%;
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  opacity: 70%;
}

.yellow-link {
  font-style: italic;
  color: var(--yellow);
  border-bottom: 1px solid var(--yellow);
}

.yellow-link:hover {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.arrow {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.click {
  text-decoration: none;
  border-bottom: none;
}

.click:hover {
  text-decoration: none;
  border-bottom: none;
  opacity: 100%;
}

nav {
  display: flex;
  justify-content: left;
  padding-bottom: 40px;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav li {
  display: inline;
}

/* ========================================
   LAYOUT CONTAINERS
======================================== */
.wrapper {
  position: relative;
  width: 630px;
  margin: 40px auto 40px auto;
  text-align: left;
  overflow: visible;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-gap: 20px;
  animation: fade-in 0.3s ease-out;
  scroll-margin-top: 20px;
}

.stack-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
  -webkit-gap: 60px;
}

.content-container p,
.content-container li {
  gap: 0px;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.content-container img {
  border-radius: 12px;
}

.title-container .title {
  margin-bottom: 0px;
  font-size: 24px;
}

/* ========================================
   GRID LAYOUTS
======================================== */
.text-grid {
  display: flex;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 14px;
  width: 100%;
}

.text-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 14px;
  background-color: var(--light-bg-color);
  border: 1px solid var(--yellow);
  border-radius: 8px;
  font-size: 18px;
  font-style: italic;
  color: var(--yellow);
  text-align: center;
  transition: all 0.3s ease;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  -webkit-gap: 15px;
}

.image-grid,
.rounded-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.image-grid img,
.rounded-grid img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.rounded-grid img {
  border-radius: 12px;
}

/* ========================================
   MEDIA ELEMENTS
======================================== */
video {
  width: 100%;
  height: auto;
}

img {
  width: 100%;
  height: auto;
  animation: fade-in 0.3s ease-out;
  position: relative;
  z-index: 4;
}

.rounded {
  border-radius: 12px;
}

.small-image {
  width: 120px;
  height: 120px;
  border-radius: 18px;
}

.image-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ========================================
   BACKGROUND
======================================== */
#stars {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 80%;
  z-index: -1;
}

/* ========================================
   CARDS & COMPONENTS
======================================== */
.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  padding: 40px;
  gap: 20px;
  border: 2px solid var(--light-bg-color);
  border-radius: 18px;
  background-color: var(--light-bg-color);
  box-sizing: border-box;
  cursor: pointer;
}

.card:hover {
  background-color: #3a2414;
  border: 2px solid var(--yellow);
}

.card-title {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  color: var(--title-color);
}

.card-text {
  margin: 0;
  width: 300px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--body-color);
  text-wrap: balance;
}

.card-image {
  width: 100px;
  height: 100px;
  border-radius: 100%;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  width: 100%;
  position: relative;
  padding: 30px;
  gap: 20px;
  border: 2px transparent;
  border-radius: 18px;
  background-color: var(--light-bg-color);
  box-sizing: border-box;
}

.testimonial.small {
  padding: 15px;
}

.stack-testimonial {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.stack-testimonial-big {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  border: 2px transparent;
  filter: saturate(70%);
}

.icons {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  border: 2px transparent;
}

.testimonial-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--title-color);
}

.testimonial-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body-color);
  text-wrap: balance;
}

/* ========================================
   SOCIAL PROOF
======================================== */
.social-proof {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  overflow: hidden;
}

.profile-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
  position: relative;
  flex-shrink: 0;
  margin-left: -20px;
  transition: all 0.3s ease;
}

.profile-circle:first-child {
  margin-left: 0;
}

.profile-circle.hidden {
  display: none;
}

/* ========================================
   BUTTONS & INTERACTIVE ELEMENTS
======================================== */
.label {
  padding: 8px 15px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--yellow);
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--yellow);
  border-radius: 10px;
  background-color: rgba(238, 162, 56, 0.2);
  box-shadow:
    0 4px 12px rgba(238, 162, 56, 0.3),
    0 2px 6px rgba(238, 162, 56, 0.2);
}

/* ========================================
   ANIMATIONS & EFFECTS
======================================== */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.parallax-3d {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1199px) {
  a,
  card,
  button,
  input {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -tap-highlight-color: transparent;
    background-color: transparent;
  }
}

@media (max-width: 810px) {
  .heading {
    font-size: 48px;
  }

  .social-proof {
    margin-top: 30px;
  }

  .profile-circle {
    width: 65px;
    height: 65px;
    margin-left: -16px;
  }

  ul,
  ol {
    text-wrap: balance;
  }

  .wrapper {
    width: auto;
    padding: 40px 20px;
    margin: 0;
  }

  .stack {
    width: auto;
    overflow: visible;
  }

  .stack-container {
    width: auto;
    overflow: visible;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid,
  .rounded-grid {
    gap: 10px;
  }

  .card {
    width: 100%;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    justify-content: start;
  }

  .stack-testimonial .stack-card {
    width: 100%;
  }

  .testimonial {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .card-text {
    width: 100%;
  }

  .text-grid {
    gap: 10px;
  }

  a,
  card,
  button,
  input {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -tap-highlight-color: transparent;
    background-color: transparent;
  }
}

@media (max-width: 590px) {
  .stack-testimonial {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 48px;
  }

  .social-proof {
    margin-top: 20px;
  }

  .profile-circle {
    width: 60px;
    height: 60px;
    margin-left: -12px;
  }
}
