/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --mustard: #D4A93C;
  --navy: #1F3D5B;
  --cream: #F8F3E9;
  --brown: #8A5A3C;
}

body {
  color: var(--navy);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif !important;
}

button,
input,
textarea,
select {
  font-family: "Inter", "Source Sans 3", sans-serif;
}

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #F8F3E9;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 243, 233, 0.2);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .site-nav {
    background: #F8F3E9;
    box-shadow: none;
    backdrop-filter: none;
  }

  .site-logo {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 14px;
  }

  #hero {
    padding-top: 100px;
    padding-bottom: 120px;
    padding-left: 20px;
    padding-right: 20px;
    min-height: auto;
    align-items: flex-start;
  }

  .hero-section {
    background-position: 45% 100%;
    background-size: 112% auto;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .hero-content {
    gap: 16px;
  }

  #hero h1 {
    font-size: 40px;
    line-height: 1.25;
  }

  #hero p {
    font-size: 18px;
    color: #1F3D5B;
  }

  #hero form label {
    color: #1F3D5B;
  }

  #hero form input,
  #hero form textarea,
  #hero form select {
    border-radius: 14px;
    border-color: rgba(31, 61, 91, 0.15) !important;
    padding: 16px;
  }

  #hero form input {
    line-height: 1.4;
  }

  #hero form input::placeholder {
    color: rgba(31, 61, 91, 0.45);
  }

  #hero form input[type="submit"],
  #hero form button,
  #hero form .btn {
    border-radius: 14px;
    padding: 18px 20px;
  }

  .hero-book-cover {
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
  }
}

section:not(#hero):nth-of-type(even) {
  background-color: var(--cream) !important;
}

section:not(#hero):nth-of-type(odd) {
  background-color: #ffffff !important;
}

.text-gray-800,
.text-gray-700 {
  color: var(--navy);
}

.text-gray-600,
.text-gray-500,
.text-gray-400 {
  color: var(--brown);
}
