/* * {
  border: 1px solid red;
} */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0f0f0f;
  color: #fff;
  scroll-behavior: smooth;
  font-family: "Source Sans 3", sans-serif;
}

em,
strong {
  color: #d8b56a;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-nav {
  width: 90%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 55px;
  padding: 18px 40px;
  background: rgba(20, 20, 20, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  margin-top: 45px;
}

.hero-nav a {
  position: relative;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 300;
  text-decoration: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: #d8b56a;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.hero-nav a:hover::after {
  transform: scaleX(1);
}

.hero-nav {
  margin-top: 25px;
  width: 650px !important;
  background: rgba(20, 20, 20, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.45rem 1.5rem;
}

.hero-nav .nav-link {
  color: #ffffff;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-nav .nav-link:hover {
  color: #e6d3a3;
}

.hero-nav .nav-link.active {
  color: #ffffff;
}

.hero-nav .nav-link {
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.hero-nav .nav-link:hover {
  transform: translateY(-2px);
}

.hero-nav a.purchase {
  color: #d8b56a;
  font-weight: 500;
}

/* IMAGE WRAPPER (animation goes here) */
.hero-img-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: slowZoom 25s ease-in-out infinite;
  z-index: 0;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0f0f;
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.3)
  );
  z-index: 1;
}

/* CONTENT (THIS FIXES YOUR ISSUE) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.title {
  font-family: "Cormorant Garamond", serif;
  font-size: 4rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
}

.tagline {
  font-size: 1.6rem;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 40px;
}

.btn-primary-custom {
  background: #8c6446;
  border: none;
  padding: 12px 26px;
  margin-right: 10px;
}

.btn-outline-custom {
  border: 1px solid #fff;
  color: #fff;
  padding: 12px 26px;
}

.btn-outline-custom:hover {
  background: #fff;
  color: #000;
}

/* smooth scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 2px;
}

.link-color {
  color: #fff;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Mapping Classes */
.aboutBook-intro {
  margin: 0 auto;
  background: #0f0f0f;
  color: #f5f5f5;
}

.aboutBookText {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 10px auto;
  opacity: 0.9;
}

.heading-font {
  font-weight: 600;
  font-size: 5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* BOOK SECTION RULES */
.book-section {
  min-height: 90vh;
  gap: 70px;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.book-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.book-text {
  text-align: left;
  max-width: 560px;
}

.book-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: left;
  transform: translateY(-25px);
}

.book-paragraphs {
  text-align: left;
  margin-top: 12px;
  line-height: 1.7;
}

/* PHOTOGRAPHY SECTION RULES */
.photography-section {
  min-height: 100vh;
}

.featured-section {
  min-height: 100vh;
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 6rem 2rem;
  text-align: center;
}

.featured-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.featured-header p {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 4rem;
}

.featured-photo-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.featured-photo-wrap img,
.featured-caption {
  transition: opacity 0.45s ease;
}

.featured-photo-wrap img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: 1px double #a1a0a0;
}

.featured-caption {
  margin-top: 1.5rem;
}

.featured-caption h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.featured-caption p {
  opacity: 0.7;
  font-size: 1rem;
}

.featured-thumbs {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.thumb {
  border: 1px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.thumb img {
  width: 120px;
  height: 75px;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb.active {
  opacity: 1;
  border-color: #d8b56a;
}

/* AUTHOR SECTION */
.author-section {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 7rem 2rem;
}

.author-inner {
  max-width: 1250px;
  margin: 0 auto;
}

.author-top {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 4.5rem;
  align-items: center;
}

.author-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.author-content {
  text-align: left;
}

.author-content .book-title {
  text-align: left;
  margin-bottom: 2rem;
}

.author-paragraphs {
  line-height: 1.6;
  margin-bottom: 1.6rem;
  font-size: 1.05rem;
}

.author-bottom {
  margin-top: 4rem;
}

.author-closing {
  font-family: "Cormorant Garamond", serif;
  color: #d8b56a;
  font-size: 1.7rem;
  text-align: center;
  margin-top: 2.5rem;
}

/* CONTACT SECTION */
.contact-section {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 7rem 2rem;
  text-align: center;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-intro {
  line-height: 1.7;
  opacity: 0.8;
  margin: 1.5rem auto 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.55rem 1rem;
  font-size: 1rem;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #d8b56a;
}

.contact-form button {
  align-self: center;
  margin-top: 2rem;
  padding: 0.85rem 2.75rem;
  background: transparent;
  color: #d8b56a;
  border: 1px solid #d8b56a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #d8b56a;
  color: #0f0f0f;
}

#contact-status {
  display: none;
  margin: 1rem 0;
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

#contact-status.success {
  display: block;
  background: rgba(48, 126, 64, 0.15);
  border: 1px solid #4caf50;
  color: #d8f5dd;
}

#contact-status.error {
  display: block;
  background: rgba(180, 40, 40, 0.15);
  border: 1px solid #d9534f;
  color: #ffd9d7;
}

/* PURCHASE SECTION */
.purchase-section {
  background: #0f0f0f;
  color: #f5f5f5;
  padding: 7rem 2rem;
  text-align: center;
}

.purchase-inner {
  max-width: 760px;
  margin: 0 auto;
}

.purchase-book {
  margin: 3rem auto 2rem;
}

.purchase-book img {
  max-width: 360px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.purchase-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.purchase-description {
  line-height: 1.7;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

.purchase-details {
  line-height: 1.8;
  opacity: 0.75;
  margin-bottom: 2rem;
}

.purchase-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #d8b56a;
  margin-bottom: 2rem;
}

.purchase-btn {
  display: inline-block;
  padding: 0.85rem 2.75rem;
  background: transparent;
  color: #d8b56a;
  border: 1px solid #d8b56a;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.purchase-btn:hover {
  background: #d8b56a;
  color: #0f0f0f;
}

.purchase-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;

  margin: 2rem 0;
}

.purchase-price {
  font-family: "Cormorant Garamond", serif;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  color: #d8b56a;
}

.qty-label {
  color: #d8b56a;
  font-size: 1.2rem;

  margin-left: 0.3rem;
  margin-bottom: 0;
  margin: 4px 0;
}

#qty {
  margin-top: 0;
  margin-left: 7px;

  width: 60px;
  height: 36px;

  background: #1b1b1b;
  color: #fff;

  border: 1px solid #666;
  border-radius: 4px;

  font-size: 1.1rem;
}

.purchase-qty {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.35rem;

  margin-top: 15px;
}

.purchase-qty select {
  width: 70px;
  padding: 0.45rem 0.6rem;

  background: #1b1b1b;
  color: #fff;

  border: 1px solid #666;
  border-radius: 4px;

  font-size: 1rem;
}

/* PAYMENT RESULT */
.payment-result {
  min-height: 100vh;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: #0f0f0f;
  color: #f5f5f5;
  text-align: center;
}

.payment-result h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
}

.payment-result p {
  max-width: 600px;
  line-height: 1.7;
}

/* PAGE FOOTER */
.site-footer {
  background: #0b0b0b;
  color: rgba(245, 245, 245, 0.65);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #d8b56a;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* KEYFRAMES */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .author-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .author-content .book-title {
    text-align: center;
  }

  .author-bottom {
    margin-top: 0;
  }

  .author-paragraphs {
    margin-top: 0;
    margin-bottom: 1.75rem;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  /* HERO */
  .hero {
    min-height: 100svh;
    height: auto;
    padding: 4rem 1rem 3rem;
    justify-content: flex-start;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 4.5rem 1.25rem 0;
  }

  .hero-content .title {
    margin: 0 0 1rem;
    padding-top: 0.75rem;
    line-height: 1;
  }

  .hero-content .subtitle {
    margin: 0 0 0.3rem;
    line-height: 1.4;
  }

  .hero-content .tagline {
    margin: 0 0 2rem;
    line-height: 1.4;
    max-width: 340px;
  }

  .hero-nav {
    width: calc(100% - 2rem) !important;
    max-width: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 1.5rem auto 0;
    padding: 0.4rem 0.5rem;
  }

  .hero-nav a {
    width: 33.333%;
    padding: 0.7rem 0.25rem;
    font-size: 0.95rem;
    text-align: center;
    white-space: nowrap;
  }

  /* BOOK */
  .aboutBook-intro {
    margin: 0 auto;
  }

  .book-section {
    min-height: auto;
    flex-direction: column;
    gap: 2.5rem;
    padding: 5rem 1.25rem !important;
  }

  #bookImg img {
    width: min(100%, 280px);
    height: auto;
  }

  .book-text {
    width: 100%;
    max-width: 560px;
  }

  .book-title {
    font-size: 2.1rem;
    transform: none;
    text-align: center;
  }

  /* FEATURED PHOTOGRAPHY */
  .featured-section {
    min-height: auto;
    padding: 5rem 1rem;
  }

  .featured-header h2 {
    font-size: 2.25rem;
  }

  .featured-header p {
    margin-bottom: 2rem;
  }

  .featured-photo-wrap {
    padding: 0;
  }

  .featured-photo-wrap img {
    max-height: none;
    width: 100%;
    height: auto;
  }

  .featured-thumbs {
    gap: 0.5rem;
  }

  .thumb img {
    width: 90px;
    height: 60px;
  }

  /* AUTHOR */
  .author-section,
  .contact-section,
  .purchase-section {
    padding: 5rem 1.25rem;
  }

  .author-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .author-content {
    text-align: left;
  }

  /* CONTACT */
  .contact-form input,
  .contact-form textarea {
    box-sizing: border-box;
  }

  .g-recaptcha {
    overflow: hidden;
    max-width: 100%;
  }

  /* PURCHASE */
  .purchase-book img {
    max-width: 280px;
  }

  .purchase-options {
    display: block;
    margin: 2rem 0;
  }

  .purchase-options > .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    gap: 1.25rem;
  }

  .purchase-price {
    flex: none;
    width: auto;
    margin: 0 !important;
    padding: 0;
  }

  .purchase-qty {
    flex: none;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }

  .qty-label {
    margin: 0;
  }

  .purchase-qty select {
    margin: 0;
  }
}
