/* ============================
   VARIÁVEIS E RESET
============================ */
:root {
  --accent-color: #8c6b4a;
  --custom-text-color: rgb(196, 156, 125);
  --hover-color: #a67247;
  --primary-color: #c19a6b;
  --primary-color-alpha: rgba(193, 154, 107, 0.85);
  --primary-color-alpha-25: rgba(193, 154, 107, 0.25);
  --primary-dark: #a67b5b;
  --primary-light: #d6bc9a;
  --secondary-color: #2c3e50;
  --secondary-light: #3e5871;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --black: #333333;
  --danger: #dc3545;
  --filter-drop-shadow: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --white-alpha-20: rgba(255, 255, 255, 0.2);
  --body-font: "Arial", sans-serif;
  --heading-font: "Arial", sans-serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 6px 12px rgba(0, 0, 0, 0.2);
  --shadow-custom: 0 4px 6px rgba(19, 7, 7, 0.15);
  --text-shadow-sm: 1px 1px 3px rgba(0, 0, 0, 0.2);
  --rounded-sm: 5px;
  --rounded-md: 10px;
  --rounded-lg: 15px;
  --rounded-full: 50%;
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --z-nav: 1000;
  --z-dropdown: 1010;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-tooltip: 1070;
  --z-popover: 1090;
  --navbar-height: 70px;
  --container-width-xs: 100%;
  --container-width-sm: 540px;
  --container-width-md: 720px;
  --container-width-lg: 960px;
  --container-width-xl: 1140px;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 1rem;
  --spacing-4: 1.5rem;
  --spacing-5: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================
   BASE ELEMENTS
============================ */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  color: var(--black);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: var(--navbar-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
.btn {
  cursor: pointer;
}

/* ============================
   UTILIDADES
============================ */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Remove outline e box-shadow do link da capa */
.book-cover-container a {
  outline: none !important;
  box-shadow: none !important;
  transition: none !important;
}

@media (min-width: 576px) {
  .container {
    max-width: var(--container-width-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-width-md);
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--container-width-lg);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: var(--container-width-xl);
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

/* Colunas */
.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm,
.col-md,
.col-lg,
.col-xl {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
}

.col-1 {
  flex: 0 0 8.333333%;
  max-width: 8.333333%;
}
.col-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}
.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}
.col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
.col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}
.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}
.col-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}
.col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}
.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}
.col-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}
.col-11 {
  flex: 0 0 91.666667%;
  max-width: 91.666667%;
}
.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .col-sm-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-sm-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-sm-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-sm-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-sm-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-sm-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-sm-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-sm-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-sm-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 992px) {
  .col-lg-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-lg-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-lg-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .col-xl-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-xl-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-xl-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-xl-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-xl-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-xl-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-xl-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-xl-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-xl-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-xl-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-xl-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Alinhamento */
.justify-content-start {
  justify-content: flex-start;
}
.justify-content-end {
  justify-content: flex-end;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-around {
  justify-content: space-around;
}

.align-items-start {
  align-items: flex-start;
}
.align-items-end {
  align-items: flex-end;
}
.align-items-center {
  align-items: center;
}
.align-items-baseline {
  align-items: baseline;
}
.align-items-stretch {
  align-items: stretch;
}

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

/* Margens e Paddings */
.m-0 {
  margin: 0 !important;
}
.mt-0,
.my-0 {
  margin-top: 0 !important;
}
.mr-0,
.mx-0 {
  margin-right: 0 !important;
}
.mb-0,
.my-0 {
  margin-bottom: 0 !important;
}
.ml-0,
.mx-0 {
  margin-left: 0 !important;
}

.m-1 {
  margin: var(--spacing-1) !important;
}
.mt-1,
.my-1 {
  margin-top: var(--spacing-1) !important;
}
.mr-1,
.mx-1 {
  margin-right: var(--spacing-1) !important;
}
.mb-1,
.my-1 {
  margin-bottom: var(--spacing-1) !important;
}
.ml-1,
.mx-1 {
  margin-left: var(--spacing-1) !important;
}

.m-2 {
  margin: var(--spacing-2) !important;
}
.mt-2,
.my-2 {
  margin-top: var(--spacing-2) !important;
}
.mr-2,
.mx-2 {
  margin-right: var(--spacing-2) !important;
}
.mb-2,
.my-2 {
  margin-bottom: var(--spacing-2) !important;
}
.ml-2,
.mx-2 {
  margin-left: var(--spacing-2) !important;
}

.m-3 {
  margin: var(--spacing-3) !important;
}
.mt-3,
.my-3 {
  margin-top: var(--spacing-3) !important;
}
.mr-3,
.mx-3 {
  margin-right: var(--spacing-3) !important;
}
.mb-3,
.my-3 {
  margin-bottom: var(--spacing-3) !important;
}
.ml-3,
.mx-3 {
  margin-left: var(--spacing-3) !important;
}

.m-4 {
  margin: var(--spacing-4) !important;
}
.mt-4,
.my-4 {
  margin-top: var(--spacing-4) !important;
}
.mr-4,
.mx-4 {
  margin-right: var(--spacing-4) !important;
}
.mb-4,
.my-4 {
  margin-bottom: var(--spacing-4) !important;
}
.ml-4,
.mx-4 {
  margin-left: var(--spacing-4) !important;
}

.m-5 {
  margin: var(--spacing-5) !important;
}
.mt-5,
.my-5 {
  margin-top: var(--spacing-5) !important;
}
.mr-5,
.mx-5 {
  margin-right: var(--spacing-5) !important;
}
.mb-5,
.my-5 {
  margin-bottom: var(--spacing-5) !important;
}
.ml-5,
.mx-5 {
  margin-left: var(--spacing-5) !important;
}

.p-0 {
  padding: 0 !important;
}
.pt-0,
.py-0 {
  padding-top: 0 !important;
}
.pr-0,
.px-0 {
  padding-right: 0 !important;
}
.pb-0,
.py-0 {
  padding-bottom: 0 !important;
}
.pl-0,
.px-0 {
  padding-left: 0 !important;
}

.p-1 {
  padding: var(--spacing-1) !important;
}
.pt-1,
.py-1 {
  padding-top: var(--spacing-1) !important;
}
.pr-1,
.px-1 {
  padding-right: var(--spacing-1) !important;
}
.pb-1,
.py-1 {
  padding-bottom: var(--spacing-1) !important;
}
.pl-1,
.px-1 {
  padding-left: var(--spacing-1) !important;
}

.p-2 {
  padding: var(--spacing-2) !important;
}
.pt-2,
.py-2 {
  padding-top: var(--spacing-2) !important;
}
.pr-2,
.px-2 {
  padding-right: var(--spacing-2) !important;
}
.pb-2,
.py-2 {
  padding-bottom: var(--spacing-2) !important;
}
.pl-2,
.px-2 {
  padding-left: var(--spacing-2) !important;
}

.p-3 {
  padding: var(--spacing-3) !important;
}
.pt-3,
.py-3 {
  padding-top: var(--spacing-3) !important;
}
.pr-3,
.px-3 {
  padding-right: var(--spacing-3) !important;
}
.pb-3,
.py-3 {
  padding-bottom: var(--spacing-3) !important;
}
.pl-3,
.px-3 {
  padding-left: var(--spacing-3) !important;
}

.p-4 {
  padding: var(--spacing-4) !important;
}
.pt-4,
.py-4 {
  padding-top: var(--spacing-4) !important;
}
.pr-4,
.px-4 {
  padding-right: var(--spacing-4) !important;
}
.pb-4,
.py-4 {
  padding-bottom: var(--spacing-4) !important;
}
.pl-4,
.px-4 {
  padding-left: var(--spacing-4) !important;
}

.p-5 {
  padding: var(--spacing-5) !important;
}
.pt-5,
.py-5 {
  padding-top: var(--spacing-5) !important;
}
.pr-5,
.px-5 {
  padding-right: var(--spacing-5) !important;
}
.pb-5,
.py-5 {
  padding-bottom: var(--spacing-5) !important;
}
.pl-5,
.px-5 {
  padding-left: var(--spacing-5) !important;
}

/* Cores e Backgrounds */
.bg-primary {
  background-color: var(--primary-color) !important;
}
.bg-secondary {
  background-color: var(--secondary-color) !important;
}
.bg-light {
  background-color: var(--light-gray) !important;
}
.bg-dark {
  background-color: var(--black) !important;
}
.bg-white {
  background-color: var(--white) !important;
}
.bg-transparent {
  background-color: transparent !important;
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-secondary {
  color: var(--secondary-color) !important;
}
.text-light {
  color: var(--light-gray) !important;
}
.text-dark {
  color: var(--black) !important;
}
.text-white {
  color: var(--white) !important;
}
.text-muted {
  color: var(--dark-gray) !important;
}

/* ============================
   BOTÕES
============================ */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--rounded-sm);
  transition: var(--transition-normal);
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(193, 154, 107, 0.25);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.5;
  border-radius: var(--rounded-sm);
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--rounded-sm);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--secondary-light);
  border-color: var(--secondary-light);
  color: var(--white);
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Botões específicos para a seção do livro - harmonia visual com bom contraste */
#book .btn-primary {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-custom);
}

#book .btn-primary:hover,
#book .btn-primary:focus {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

#book .btn-outline-primary {
  background-color: var(--white-alpha-20);
  border: 2px solid var(--primary-dark);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-custom);
}

#book .btn-outline-primary:hover,
#book .btn-outline-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Ajustes adicionais para centralização dos botões */
#book .book-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
}

/* Ajuste para visualização em dispositivos móveis */
@media (max-width: 767.98px) {
  #book .btn {
    padding: 12px 20px;
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

/* Ajuste para tablets (como iPad Mini) */
@media (min-width: 768px) and (max-width: 1024px) {
  #book .book-buttons {
    margin: 1.5rem auto;
    max-width: 80%;
  }

  #book .btn {
    min-width: 180px;
    text-align: center;
  }
}

/* Ajuste para dispositivos com tela em modo portrait */
@media (orientation: portrait) and (min-width: 768px) {
  #book .book-info {
    text-align: center;
  }

  #book .book-description {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ajuste específico para iPad Mini */
@media screen and (width: 768px) and (height: 1024px) {
  #book .book-buttons {
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
  }

  #book .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ============================
   NAVBAR
============================ */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: var(--z-nav);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  height: var(--navbar-height);
  transition: var(--transition-normal);
}

.navbar-brand {
  display: inline-block;
  font-size: 1.5rem;
  line-height: inherit;
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary-color);
  padding: 0;
  margin-right: 1rem;
  text-decoration: none;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--black);
  text-decoration: none;
  transition: var(--transition-normal);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: var(--rounded-sm);
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(193, 154, 107, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.collapse:not(.show) {
  display: none;
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

/* Ajustes para telas bem pequena */
@media screen and (width: 412px) and (height: 914px) {
  .navbar-brand {
    margin-left: 15px !important; /* Evita que a logo fique grudada na borda */
  }
}

/* Ajustes para telas maiores */
@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
    height: var(--navbar-height);
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* Ajustes para telas menores */
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-collapse {
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    z-index: var(--z-dropdown);
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.75rem 0;
  }
}

.navbar-logo {
  max-height: 50px; /* Ajuste o tamanho da logo conforme necessário */
  width: auto;
  display: block;
}

/* Ajuste a margem lateral esquerda apenas para telas de 412x914 */
@media screen and (width: 412px) and (height: 914px) {
  .navbar-brand {
    margin-left: 15px !important;
  }
}

/* Ajuste de tamanho da logo em telas menores */
@media (max-width: 375px) {
  .navbar-logo {
    max-height: 40px; /* Reduz o tamanho da logo em telas menores */
  }
}

/* ============================
   HERO SECTION (BOOK)
============================ */
#book {
  position: relative;
  background: url("../assets/bg.jpg") no-repeat fixed center;
  background-size: cover;
  min-height: 650px;
  padding-top: 120px;
  display: flex;
  align-items: center;
  z-index: 1;
}

#book::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color-alpha);
  z-index: -1;
}

.book-section {
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.book-info {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.book-info h1 {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: var(--text-shadow-sm);
}

.subtitle {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
}

.book-description {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 2rem;
  max-width: 600px;
}

.book-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.book-cover-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.book-cover {
  max-width: 280px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--rounded-sm);
  transition: var(--transition-slow);
  filter: var(--filter-drop-shadow);
}

/* Estilos responsivos para a seção de sumário */
#summary .card-header button {
  white-space: normal;
  text-align: left;
  padding: 10px 15px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  color: var(--primary-color);
  display: block;
  width: 100%;
  transition: var(--transition-normal);
}

#summary .card-header button:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Ajustes específicos para dispositivos muito pequenos */
@media (max-width: 576px) {
  #summary .card-header button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  #summary .card-header h5 {
    margin-bottom: 0;
  }
  
  #summary .card-body {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  #summary .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
}

/* Ajustes para iPhone SE e telas extremamente pequenas */
@media (max-width: 375px) {
  #summary .card-header button {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  
  #summary .section-title {
    font-size: 1.5rem;
  }
  
  #summary .card {
    margin-bottom: 0.5rem;
  }
}

/* Melhorias na acessibilidade e interação */
#summary .card-header {
  padding: 0;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--primary-color-alpha-25);
}

#summary .btn-link:focus {
  text-decoration: none;
  box-shadow: none;
  outline: none;
  color: var(--primary-dark);
}

#summary .btn-link {
  color: var(--custom-text-color);
  font-weight: bold;
  text-decoration: none;
}

#summary .btn-link:hover {
  color: var(--hover-color);
  text-decoration: underline;
  text-decoration: none;
}

/* Remover a borda azul quando clicado */
#summary .btn-link:focus {
  outline: none;
  box-shadow: none;
}

/* Responsividade do hero */
@media (min-width: 768px) {
  .book-info h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .book-description {
    font-size: 1.125rem;
  }

  .book-cover {
    max-width: 320px;
  }
}

@media (min-width: 992px) {
  #book {
    min-height: 700px;
    padding: 5rem 0;
  }

  .book-info h1 {
    font-size: 3.5rem;
  }

  .book-cover-container {
    margin-top: 0;
  }

  .book-cover {
    max-width: 350px;
  }
}

@media (min-width: 1200px) {
  .book-info h1 {
    font-size: 4rem;
  }

  .book-cover {
    max-width: 400px;
  }
}

/* Ajustes específicos para mobile */
@media (max-width: 767.98px) {
  #book {
    min-height: 500px;
    padding-top: 60px;
  }

  .book-section {
    min-height: 500px;
  }

  .book-info {
    text-align: center;
  }

  .book-description {
    margin-left: auto;
    margin-right: auto;
  }

  .book-buttons {
    justify-content: center;
  }

  .book-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .book-cover {
    max-width: 240px;
  }
}

/* ============================
   SOBRE O LIVRO
============================ */
#about {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.section-title {
  font-size: 2.25rem;
  color: var(--secondary-color);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  height: 100%;
  transition: var(--transition-normal);
  text-align: center;
  border: 1px solid var(--medium-gray);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card.featured {
  background-color: var(--primary-color);
  color: var(--white);
}

.feature-card.featured h3 {
  color: var(--white);
}

.icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-color: var(--light-gray);
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card.featured .icon-container {
  background-color: var(--white);
}

.icon-container i {
  font-size: 2rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.feature-card p {
  font-size: 1rem;
  margin-bottom: 0;
  color: inherit;
  opacity: 0.9;
}

/* ============================
   AUTORA
============================ */
#author {
  padding: 4rem 0;
  background-color: var(--white);
}

.author-image-container {
  width: 180px;
  height: 180px;
  border-radius: var(--rounded-full);
  overflow: hidden;
  margin: 0 auto 2rem;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
}

.author-placeholder {
  font-size: 7rem;
  color: var(--primary-color);
}

.author-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio {
  padding: 1rem;
}

.author-name {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.author-title {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.author-description {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-normal);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

@media (max-width: 767.98px) {
  .author-name,
  .author-title,
  .author-description {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ============================
   CONTATO
============================ */
#contact {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--rounded-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
  background-color: var(--white);
  background-clip: padding-box;
  border: 2px solid var(--medium-gray);
  border-radius: var(--rounded-sm);
  transition: var(--transition-normal);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--primary-color-alpha-25);
}

textarea.form-control {
  height: auto;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* ============================
   RODAPÉ
============================ */
.footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 2rem 0;
}

.copyright {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  margin: 0 0.5rem;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--white);
  text-decoration: none;
}

.separator {
  color: var(--dark-gray);
  margin: 0 0.5rem;
}

@media (max-width: 767.98px) {
  .footer [class*="col-"] {
    text-align: center !important;
    margin-bottom: 1rem;
  }
}

/* ============================
   ANIMAÇÕES
============================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.book-cover {
  animation: float 6s ease-in-out infinite;
  transform-origin: center center;
}

/* Desativa animação para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .book-cover {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================
   MEDIA QUERIES ADICIONAIS
============================ */
/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  /* .navbar-brand {
    font-size: 1.25rem;
  }
   */
  .book-info h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  #book {
    min-height: auto;
    padding: 3rem 0;
  }

  .icon-container {
    width: 60px;
    height: 60px;
  }

  .icon-container i {
    font-size: 1.5rem;
  }

  .author-image-container {
    width: 150px;
    height: 150px;
  }

  .author-placeholder {
    font-size: 5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .book-cover {
    max-width: 250px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .book-cover {
    max-width: 300px;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .book-info h1 {
    font-size: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .book-info h1 {
    font-size: 3.5rem;
  }
}

/* ============================
   CORREÇÕES ESPECÍFICAS PARA IPHONE
============================ */
@media screen and (max-width: 414px) and (max-height: 896px) {
  .navbar {
    padding: 0 0.5rem;
  }

  .book-cover {
    max-width: 220px;
  }

  .book-info h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }
}

/* Correção para iPhone SE e dispositivos muito pequenos */
/* @media screen and (max-width: 375px) {
  .navbar-brand {
    font-size: 1.1rem;
  } */

.book-cover {
  max-width: 200px;
}

.feature-card h3 {
  font-size: 1.25rem;
}

.social-icons {
  gap: 0.5rem;
}

.social-icon {
  width: 35px;
  height: 35px;
}

/* ============================
   AJUSTES PARA VISUALIZAÇÃO DE ALTURA ESPECÍFICA
============================ */
@media (max-height: 700px) {
  #book {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .book-cover {
    max-height: 350px;
    width: auto;
  }
}

/* ============================
   MELHORIAS DE ACESSIBILIDADE
============================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 3px solid rgba(193, 154, 107, 0.5);
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
a:focus {
  outline-color: rgba(193, 154, 107, 0.5);
}

/* ============================
   Z-INDEX ESPECÍFICOS PARA CORREÇÕES
============================ */
.book-cover-container {
  position: relative;
  z-index: 10;
}

.navbar {
  z-index: 1000;
}

.navbar-collapse {
  z-index: 999;
}

/* ============================
   CORREÇÕES PARA MENU HAMBURGUER
============================ */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(193, 154, 107, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  width: 24px;
  height: 24px;
}

/* ============================
   SCROLLBAR PERSONALIZADA
============================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

#book .book-cover:focus,
#book a:focus .book-cover {
  outline: none !important;
  box-shadow: none !important;
}

/* Estilos para o alerta de amostra grátis */
.sample-alert {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding: 15px;
}

/* Estilo para o botão do formulário de contato */
#contact-form .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  transition: all 0.3s ease;
}

#contact-form .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Estilo para a mensagem de sucesso após envio */
.form-success-message {
  display: none;
  background-color: var(--primary-light);
  color: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

/* Estilo para o checkbox */
#contact-form .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}