/* =============================================
   Joris van Huijstee — Main Stylesheet
   Modest, clean, professional author palette
   ============================================= */

/* ── Color tokens ── */
:root {
  --white:      #ffffff;
  --off-white:  #f7f8fa;
  --light-grey: #eef0f4;
  --border:     #dde1e9;
  --text-muted: #8a95a3;
  --text-body:  #4a5568;
  --text-head:  #1e293b;
  --accent:     #4a6fa5;       /* muted slate-blue */
  --accent-d:   #3a5a8a;       /* darker on hover  */
  --accent-lt:  #eef2f8;       /* tinted bg        */
  --navy:       #1e293b;
  --shadow-sm:  0 2px 12px rgba(0,0,0,.06);
  --shadow-md:  0 6px 28px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.13);
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-head);
  line-height: 1.3;
}

a { text-decoration: none; color: var(--accent); }
a:hover { color: var(--accent-d); }

img { max-width: 100%; height: auto; }


/* =============================================
   NAVBAR
   ============================================= */
.main-navigation {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.brand-name {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-head) !important;
  letter-spacing: .5px;
  font-weight: 700;
}

.main-menu__list .nav-link {
  color: var(--text-body) !important;
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 14px !important;
  transition: color .2s;
}

.main-menu__list .nav-link:hover {
  color: var(--accent) !important;
}

.header-socials a {
  color: var(--text-muted) !important;
  transition: color .2s;
}
.header-socials a:hover { color: var(--accent) !important; }

/* Navbar CTA button */
.btn-nav {
  background: var(--accent);
  color: var(--white) !important;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  display: inline-block;
}
.btn-nav:hover {
  background: var(--accent-d);
  color: var(--white) !important;
}

/* Mobile toggle icon */
.header-offcanvas-toogle { background: none; border: none; }

/* ── Books nav dropdown ── */
.main-menu__list .has-dropdown { position: relative; }

.main-menu__list .has-dropdown > .nav-link .dropdown-arrow {
  font-size: .62rem;
  display: inline-block;
  transition: transform .22s ease;
  vertical-align: middle;
}
.main-menu__list .has-dropdown:hover > .nav-link .dropdown-arrow {
  transform: rotate(180deg);
}

/* Hide sub-menu by default, show on hover */
.main-menu__list .has-dropdown .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 270px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 36px rgba(0,0,0,.13);
}
.main-menu__list .has-dropdown:hover .sub-menu {
  display: block;
  animation: dropFadeIn .18s ease;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Divider between items */
.books-dropdown li + li {
  border-top: 1px solid var(--light-grey);
}

/* Each book row */
.book-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 13px;
  padding: 10px 14px !important;
  color: var(--text-body) !important;
  font-weight: normal !important;
  transition: background .18s !important;
  text-decoration: none;
}
.book-dropdown-item:hover {
  background: var(--accent-lt) !important;
}

/* Thumbnail */
.book-dropdown-item img {
  width: 38px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* Genre label */
.book-dropdown-genre {
  display: block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 2px;
}

/* Book title */
.book-dropdown-title {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-head);
  line-height: 1.3;
}


/* =============================================
   HERO
   ============================================= */
#banner {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.hero-title {
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-head);
  line-height: 1.25;
}

.hero-title span {
  color: var(--accent);
}

.hero-lead-strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-head);
}

.hero-lead {
  color: var(--text-body);
  font-size: .97rem;
  line-height: 1.8;
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-checks li {
  color: var(--text-body);
  font-size: .93rem;
  padding: 4px 0;
}
.hero-checks li i {
  color: var(--accent);
  margin-right: 8px;
  font-size: .85rem;
}

.hero-note {
  font-size: .8rem;
  color: var(--text-muted);
}

/* Hero buttons */
.btn-primary-solid {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  transition: all .2s;
}
.btn-primary-solid:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  color: var(--white);
}

.btn-outline-primary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  transition: all .2s;
}
.btn-outline-primary:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hero photo */
.hero-photo {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}


/* =============================================
   DEVICES STRIP
   ============================================= */
.devices-strip {
  background: var(--light-grey);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}

.devices-strip p {
  margin: 0;
  color: var(--text-muted);
  font-size: .84rem;
}

.devices-strip strong {
  color: var(--text-body);
  margin-right: 8px;
}

.device-pill {
  display: inline-block;
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--border);
  padding: 2px 12px;
  border-radius: 20px;
  margin: 2px 3px;
  font-size: .8rem;
}


/* =============================================
   SECTION HELPERS
   ============================================= */
.section-py    { padding: 80px 0; }
.bg-off-white  { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  display: block;
}

.section-title {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-head);
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title.align-left::after {
  left: 0;
  transform: none;
}

.section-lead {
  color: var(--text-muted);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}


/* =============================================
   FEATURE CARDS
   ============================================= */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  text-align: center;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.feature-icon i {
  font-size: 1.4rem;
  color: var(--accent);
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .6rem;
}
.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}


/* =============================================
   BOOK CARDS
   ============================================= */
.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.book-cover {
  height: 240px;
  overflow: hidden;
  position: relative;
  background: var(--light-grey);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.book-card:hover .book-cover img {
  transform: scale(1.04);
}

.genre-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--white);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
}

.book-body {
  padding: 1.25rem;
}
.book-body h5 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .45rem;
}
.book-body p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.dl-btns { display: flex; gap: 7px; }

.btn-dl-pdf {
  background: #f0f0f0;
  color: #c0392b;
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-dl-pdf:hover { background: #fde8e8; color: #c0392b; }

.btn-dl-epub {
  background: var(--accent-lt);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-dl-epub:hover { background: var(--accent); color: var(--white); }


/* =============================================
   ABOUT AUTHOR
   ============================================= */
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}
.about-photo img { width: 100%; display: block; }

.about-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.about-name {
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-head);
  margin: .4rem 0 1.2rem;
}
.about-name span {
  font-size: .95rem;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Segoe UI', sans-serif;
}

.about-text {
  font-size: .97rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: .9rem;
}

.themes-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.theme-tag {
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  margin: 3px;
  font-weight: 500;
  transition: all .2s;
}
.theme-tag:hover {
  background: var(--accent-lt);
  border-color: var(--accent);
  color: var(--accent);
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--light-grey);
  color: var(--text-body);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-right: 6px;
  font-size: .9rem;
  transition: all .2s;
}
.social-row a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}


/* =============================================
   CONTACT
   ============================================= */
.contact-section {
  background: var(--off-white);
  border-top: 1px solid var(--border);
}

.contact-section h2 { color: var(--text-head); }
.contact-section .section-lead { color: var(--text-muted); }

.contact-section .form-control {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-body);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: .93rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,111,165,.12);
  outline: none;
}
.contact-section .form-control::placeholder { color: #bbc3cd; }

.btn-submit {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  font-size: .93rem;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-submit:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
}


/* =============================================
   FOOTER
   ============================================= */
.footer-main {
  background: var(--navy);
  padding: 56px 0 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-main h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .9rem;
}
.footer-main h5 {
  color: #c8d0da;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  font-family: 'Segoe UI', sans-serif;
}
.footer-main p {
  color: #7a8898;
  font-size: .88rem;
  line-height: 1.75;
}
.footer-main ul li { margin-bottom: 7px; }
.footer-main ul li a {
  color: #7a8898;
  font-size: .88rem;
  transition: color .2s;
}
.footer-main ul li a:hover { color: var(--white); }
.footer-main ul li i { color: #5a6878; margin-right: 6px; }

.footer-divider {
  border-color: rgba(255,255,255,.07);
  margin: 36px 0 28px;
}

.footer-bottom-bar {
  background: #161f2b;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 14px 0;
}
.footer-bottom-bar p {
  margin: 0;
  color: #4a5a6a;
  font-size: .82rem;
  font-family: 'Segoe UI', sans-serif;
}


/* ── Book card: view details button ── */
.btn-view-details {
  display: inline-block;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.btn-view-details:hover {
  background: var(--accent);
  color: var(--white);
}


/* =============================================
   BOOK DETAIL PAGE
   ============================================= */

/* Back breadcrumb bar */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-top: 70px;
}
.back-link {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: color .2s;
}
.back-link i { margin-right: 5px; }
.back-link:hover { color: var(--accent); }

/* Hero */
.book-detail-hero {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.book-detail-cover {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
}
.genre-badge-lg {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent);
  border: 1px solid #c2d0e8;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}
.book-detail-title {
  font-family: Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: .8rem;
}
.book-tagline {
  font-size: 1.02rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.book-meta span {
  font-size: .87rem;
  color: var(--text-muted);
}
.book-meta span i {
  color: var(--accent);
  margin-right: 5px;
}

/* Description */
.book-description p {
  font-size: .97rem;
  color: var(--text-body);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* Trailer video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: var(--light-grey);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Video placeholder (shown when no real embed is set) */
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--light-grey);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
}
.video-placeholder i { font-size: 2.8rem; color: var(--accent); opacity: .6; }
.video-placeholder p { margin: 0; font-size: .92rem; font-weight: 600; }
.video-placeholder small { font-size: .78rem; }

/* Download section */
.download-section {
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.btn-dl-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: .97rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all .2s;
}
.btn-dl-lg-pdf {
  background: #fdf1f0;
  color: #c0392b;
  border-color: #f0c4c0;
}
.btn-dl-lg-pdf:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}
.btn-dl-lg-epub {
  background: var(--accent-lt);
  color: var(--accent);
  border-color: #c2d0e8;
}
.btn-dl-lg-epub:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.lang-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 1.2rem;
}


/* =============================================
   SCROLL TO TOP
   ============================================= */
#progress {
  background: var(--accent);
  border-color: var(--accent);
}
#progress span { color: var(--white); }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
  .hero-title { font-size: 2rem; }
  .section-py { padding: 60px 0; }
  #banner { padding-top: 100px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 1.7rem; }
  .section-title { font-size: 1.55rem; }
  .about-name { font-size: 1.5rem; }
}
