/* ============================
   CSS Variables
   ============================ */

:root {
  --brand-bg: #46100d;
  --brand-color: #eddfcc;
  --color-light: #eddfcc;
  --color-text: #333;
  --color-accent: #d4af37;
  --section-padding: 80px;
}

body {
  font-family: 'fieldwork', Arial, sans-serif;
  background-color: var(--color-light);
  color: var(--color-text);
  line-height: 1.6;
}

/* About Hero Section */
.about-hero {
  position: relative;
  margin-top: 0;
  height: 100vh;
  min-height: 600px;
  background-image: url('../../images/page-about/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.about-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
  bottom: -74px;
}

.about-hero__title {
  font-size: 250px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0;
  text-align: center;
  color: var(--color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bootstrap 5 Breakpoints */

/* Extra extra large (xxl) - Below 1400px */
@media (max-width: 1399.98px) {
  .about-hero__title {
    font-size: 200px;
  }
}

/* Extra large (xl) - Below 1200px */
@media (max-width: 1199.98px) {
  .about-hero__title {
    font-size: 160px;
  }
}

/* Large (lg) - Below 992px */
@media (max-width: 991.98px) {
  .about-hero__title {
    font-size: 120px;
  }

  .about-hero .container {
    bottom: -50px;
  }
}

/* Medium (md) - Below 768px */
@media (max-width: 767.98px) {
  .about-hero {
    min-height: 500px;
    align-items: center;
    background-position: center center;
  }

  .about-hero__title {
    font-size: 80px;
  }

  .about-hero .container {
    bottom: 0;
  }
  .about-intro__text {
    font-size: 1.2rem;
  }
}

/* Small (sm) - Below 576px */
@media (max-width: 575.98px) {
  .about-hero {
    min-height: initial;
    height: 320px;
  }
  .about-hero .container {
    bottom: -140px;
  }
  .about-hero__title {
    font-size: 70px;
    letter-spacing: initial;
  }
}

.about-hero__subtitle {
  font-size: 1.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: #666;
}

/* Main Content */
.about-content {
  padding: 3rem 0;
}

.about-intro {
  margin-bottom: 4rem;
}

.about-intro__text {
  font-size: 1.4rem;
  line-height: normal;
  margin-bottom: 1.2rem;
  color: var(--brand-bg);
}

@media (max-width: 575.98px) {
  .about-intro {
    margin-bottom: 0;
  }
}

/* Gallery Grid */
.about-gallery {
  margin: 48px 0 64px;
  border-top: 2px solid var(--brand-bg);
  padding-top: 32px;
  border-bottom: 2px solid var(--brand-bg);
  padding-bottom: 8px;
}

.gallery-item {
  margin-bottom: 1rem;
  overflow: hidden;
  padding-left: 10px;
  padding-right: 10px;
}

.gallery-item img {
  width: 100%;
  height: 277px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Final Image Section */
.about-final {
  margin: 4rem 0;
  text-align: center;
}

.about-final__image {
  width: 100%;
  max-width: 800px;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem auto;
}

/* Responsive Design - Bootstrap 5 Medium (md) - Below 768px */
@media (max-width: 767.98px) {
  .team-member__name {
    font-size: 2rem;
  }

  .team-member__quote {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
  }
  .gallery-item {
    padding-left: initial;
    padding-right: initial;
  }
  .gallery-item img {
    height: 200px;
  }

  .about-final__image {
    height: 300px;
  }
}

/* Back to Home Button */
.btn-back-home {
  background-color: var(--color-brand);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  margin: 2rem 0;
  transition: all 0.3s ease;
  font-weight: 300;
}

.btn-back-home:hover {
  background-color: #5a1410;
  color: white;
  transform: translateY(-2px);
}

/* Bottom Hero Section */
.bottom-hero {
  position: relative;
  margin-top: 80px;
  height: 100vh;
  min-height: 600px;
  background-image: url('../../images/page-about/bottom-hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .bottom-hero {
    margin-top: 0;
  }
}

/* CTA Button */
.btn-cta {
  background-color: #eddfcc;
  color: #46100d;
  border: 1px solid rgba(0, 0, 0, .3);
  padding: 0 40px;
  display: inline-block;
  border-radius: 2rem;
  height: 40px;
  line-height: 40px;
  text-decoration: none;
  font-size: 20px;
}

@media (max-width: 575.98px) {
  .btn-cta {
    line-height: 36px;
    font-size: 17px;
  }
}