/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;500;700&family=Georgia:ital,wght@0,700;1,400&display=swap');

/* Brand Colour Variables */
:root {
  --charcoal: #333333;
  --sky: #007ACC;
  --grey: #F4F4F4;
  --white: #FFFFFF;
}

/* Global Typography */
body {
  font-family: 'Work Sans', sans-serif;
  font-size: 13pt;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--white);
}

h1, h2, .hero-title, .chapter-heading {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: bold;
}

.subtitle {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 22pt;
}

.subheading {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 18pt;
}

.section-header {
  font-family: 'Work Sans', sans-serif;
  font-weight: 500;
  font-size: 14pt;
}

.body-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 13pt;
}

blockquote {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 16pt;
  color: #555;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin-left: 0;
}

.caption {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  font-size: 11pt;
  color: #777;
}

body {
    padding-top: 64px;
  }
  
  @media (max-width: 768px) {
    body {
      padding-top: 5rem;
    }
  }

  
/* Navbar */
.navbar {
  font-weight: 500;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.nav-link {
  position: relative;
  font-weight: 500;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero-title {
  font-size: 40pt;
}
.hero-section {
  background-color: var(--grey);
  padding: 4rem 1rem;
  text-align: center;
}

/* Cards */
.card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Buttons */
.btn-primary {
  background-color: var(--sky);
  color: var(--white);
  border: none;
}
.btn-primary:hover {
  background-color: #005c99;
}

/* Footer */
footer {
  background-color: var(--grey);
  color: var(--charcoal);
}
footer a {
  color: var(--charcoal);
}
footer a:hover {
  color: var(--sky);
}

footer .social-icons a {
    color: #333333;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
  }
  
  footer .social-icons a:hover {
    color: #007ACC;
    transform: scale(1.1);
  }
  
  footer svg {
    display: block;
  }

  /* niche index page */
  .book-cover-scaled {
    max-width: 60%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.2s ease;
  }
  
  .shadow-cover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 6px;
  }
  
  .book-cover-scaled:hover {
    transform: translateY(-4px);
  }
  
  /* cards on index page */
  .book-card {
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .book-card img {
    width: 100%;
    transition: transform 0.3s ease;
  }
  
  .book-card:hover img {
    transform: scale(1.05);
  }
  
  .book-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.6); /* soft grey overlay */
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-family: 'Helvetica Neue', 'Avenir Book', sans-serif;
    font-size: 1.125rem; /* approx. 18px */
    font-weight: 400;
    line-height: 1.4;
  }
  
  
  .book-card:hover .book-overlay {
    opacity: 1;
  }
  
  /* Section Background Enhancer */
.bg-sky {
  background-color: #E6F3FC; /* Soft brand-aligned sky blue */
}

/* Section Wrapper Enhancements */
section {
  margin-bottom: 3rem;
}

/* Chapter Headings */
.chapter-heading {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: bold;
  font-size: 32pt;
  color: var(--charcoal);
  text-transform: none;
  margin-bottom: 1rem;
}

/* About Section Text */
.about-text {
  font-size: 13pt;
  color: var(--charcoal);
}

/* Form Button Styling (optional override if needed) */
form .btn-primary {
  background-color: var(--sky);
  border: none;
  font-weight: 500;
}
form .btn-primary:hover {
  background-color: #005c99;
}
