/*
 * ================================================================
 *  BOOK UNITS TEACHER — SITE STYLESHEET
 *  site.css  |  /styles/site.css
 *
 *  Depends on:
 *    Bootstrap 5   (CDN — loaded before this file in every <head>)
 *    Font Awesome 6 (CDN — loaded before this file in every <head>)
 *    Montserrat     (Google Fonts — loaded before this file)
 *
 *  Do NOT add page-specific styles here.
 *  Put those in a <style> block on the individual page.
 *
 *  Table of contents
 *  -----------------
 *  1.  CSS Custom Properties (Design Tokens)
 *  2.  Reset / Base
 *  3.  Navigation
 *  4.  Hero / Masthead
 *  5.  Section Dividers
 *  6.  Superpowers Section
 *  7.  Pain Points Section
 *  8.  Resources / Featured Products Sections
 *  9.  Testimonials Section
 * 10.  Meet the Author Section
 * 11.  Newsletter Section
 * 12.  Category Links Section
 * 13.  Places / Content Cards Section
 * 14.  Gallery (Lightbox)
 * 15.  Buttons
 * 16.  Footer
 * 17.  Scroll to Top
 * 18.  Utility Overrides
 * ================================================================
 */


/* ================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ================================================================ */
:root {
  --color-teal:       #1dbb9d;
  --color-navy:       #323a49;
  --color-purple:     #7e4b75;
  --color-yellow:     #f9d342;
  --color-white:      #ffffff;
  --color-bg-light:   #f4f4f9;
  --color-bg-grey:    #f8f9fa;
  --color-text:       #333333;

  --font-main:        'Montserrat', sans-serif;
  --font-size-base:   18px;
  --line-height-base: 1.6;

  --border-radius-card:   15px;
  --border-radius-pill:   50px;
  --border-radius-circle: 50%;

  --nav-height: 80px;
}


/* ================================================================
   2. RESET / BASE
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
}

a {
  color: var(--color-teal);
}
a:hover,
a:focus {
  color: #128f76;
}

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

section {
  padding: 4rem 0;
}


/* ================================================================
   3. NAVIGATION
   ================================================================ */
#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-family: var(--font-main);
  font-weight: 700;
  background-color: var(--color-navy) !important;
  z-index: 1030;
}

#mainNav .navbar-brand img {
  max-height: var(--nav-height);
  width: auto;
}

#mainNav .navbar-nav .nav-link {
  color: var(--color-white);
  letter-spacing: 0.0625rem;
  padding: 0.75rem 0.5rem;
  transition: color 0.2s;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus {
  color: var(--color-teal);
}

#mainNav .navbar-nav .nav-link.shop-link {
  color: var(--color-teal);
  font-weight: 700;
}

/* Mobile toggle button */
#mainNav .navbar-toggler {
  font-size: 80%;
  padding: 0.8rem;
  background-color: var(--color-purple);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
}

#mainNav .navbar-toggler:focus {
  box-shadow: none;
}

/* Search bar inside nav */
#mainNav .nav-search .form-control {
  background-color: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}
#mainNav .nav-search .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}
#mainNav .nav-search .btn {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding 0.3s;
  }
  #mainNav.navbar-shrink {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}


/* ================================================================
   4. HERO / MASTHEAD
   ================================================================ */
.masthead {
  background-color: var(--color-teal);
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 3rem;
}

.masthead-title {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--color-navy);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.masthead-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.masthead-tagline {
  font-size: clamp(1rem, 2.5vw, 2rem);
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  text-transform: uppercase;
}

.masthead-body {
  font-size: 1.3rem;
  color: var(--color-white);
  font-weight: 300;
}

/* Decorative circle + photo in hero */
.hero-image-col {
  position: relative;
}

.hero-decorative-circle {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 420px;
  height: 420px;
  background-color: var(--color-navy);
border: none;
  border-radius: var(--border-radius-circle);
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: var(--border-radius-circle);
  border: 15px solid var(--color-purple);
}

@media (max-width: 1024px) {
  .hero-photo            { width: 320px; height: 320px; }
  .hero-decorative-circle { width: 340px; height: 340px; }
}

@media (max-width: 768px) {
  .hero-decorative-circle { display: none; }
  .hero-photo { width: 220px; height: 220px; border-width: 8px; }
}

.hero-buttons .btn {
  margin: 0.4rem;
}


/* ================================================================
   5. SECTION DIVIDERS
   ================================================================ */

/* Thin white or coloured band between sections */
.section-divider {
  height: 30px;
  background-color: var(--color-white);
  width: 100%;
}

.section-divider-sm {
  height: 10px;
  background-color: var(--color-white);
  width: 100%;
}

/*
 * Icon divider — replaces the old hr.star-* approach.
 *
 * Usage:
 *   Teal background:
 *     <div class="section-icon-divider section-icon-divider--light">
 *       <i class="fas fa-book-open"></i>
 *     </div>
 *
 *   Light / white background:
 *     <div class="section-icon-divider section-icon-divider--dark">
 *       <i class="fas fa-book-open"></i>
 *     </div>
 */
.section-icon-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 20rem;
  margin: 1.5rem auto 2.5rem;
  gap: 0.75rem;
}

.section-icon-divider::before,
.section-icon-divider::after {
  content: '';
  flex: 1;
  height: 0.25rem;
  border-radius: 2px;
}

/* Lines on teal backgrounds */
.section-icon-divider--light::before,
.section-icon-divider--light::after {
  background-color: var(--color-white);
}

.section-icon-divider--light i {
  color: var(--color-white);
  font-size: 1.8rem;
}

/* Lines on light / white backgrounds */
.section-icon-divider--dark::before,
.section-icon-divider--dark::after {
  background-color: var(--color-navy);
}

.section-icon-divider--dark i {
  color: var(--color-navy);
  font-size: 1.8rem;
}

/*
 * Legacy hr.star-* — kept so older pages that haven't been
 * migrated yet don't break. Remove once all pages are updated.
 */
hr.star-light,
hr.star-dark {
  max-width: 15rem;
  padding: 0;
  text-align: center;
  border: none;
  border-top: solid 0.25rem;
  margin: 2.5rem auto;
}
hr.star-light { border-color: var(--color-white); }
hr.star-dark  { border-color: var(--color-navy);  }


/* ================================================================
   6. SUPERPOWERS SECTION
   ================================================================ */
.superpowers-section {
  background-color: var(--color-bg-light);
}

.superpower-box {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-card);
  width: 100%;
}

.superpower-box .star-icon {
  margin-bottom: 1rem;
}

.superpower-box .star-icon i {
  color: var(--color-yellow);
}

.superpower-box h3 {
  font-size: 1.5rem;
}

.superpower-box p {
  font-size: 1rem;
}


/* ================================================================
   7. PAIN POINTS SECTION
   ================================================================ */
.pain-points-section {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.pain-points-section h2 {
  color: var(--color-yellow);
}

.pain-point-box {
  background-color: var(--color-white);
  border-left: 8px solid var(--color-teal);
  border-radius: 10px;
  padding: 1.5rem;
}

.pain-point-box .pain-icon {
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.pain-point-box .pain-icon i {
  color: var(--color-teal);
}

.pain-point-box h4 {
  color: var(--color-navy);
}

.pain-point-box p {
  color: var(--color-navy);
  margin-bottom: 0;
}

.pain-point-offset-1 { position: relative; left: 20px; }
.pain-point-offset-2 { position: relative; left: 40px; }

@media (max-width: 576px) {
  .pain-point-offset-1,
  .pain-point-offset-2 { left: 0; }
}


/* ================================================================
   8. RESOURCES / FEATURED PRODUCTS SECTIONS
   ================================================================ */

/* Override Bootstrap 5 bg-primary / bg-secondary to site colours */
.bg-primary   { background-color: var(--color-teal) !important; }
.bg-secondary { background-color: var(--color-navy) !important; }

.resources-section,
.featured-products-section {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.resources-section h2,
.featured-products-section h2 {
  color: var(--color-white);
  text-transform: uppercase;
}

.resources-section .resource-card p {
  font-size: 1.2rem;
}

.featured-products-section .card {
  border: none;
  border-radius: var(--border-radius-card);
  overflow: hidden;
}

.featured-products-section .card-body {
  color: var(--color-text);
}

.featured-products-section .card-body h4 {
  text-transform: uppercase;
}


/* ================================================================
   9. TESTIMONIALS SECTION
   ================================================================ */
.testimonials-section {
  background-color: var(--color-bg-grey);
}

.testimonials-section h2 {
  color: var(--color-navy);
  text-transform: uppercase;
}

.testimonial-outer {
  background-color: var(--color-teal);
  border-radius: 10px;
  padding: 0.75rem;
  height: 100%;
}

.testimonial-inner {
  background-color: var(--color-white);
  border-radius: 10px;
  border: 4px solid var(--color-purple);
  padding: 1.5rem;
  height: 100%;
}

.testimonial-stars span {
  color: var(--color-purple);
  font-size: 1.2rem;
}

.testimonial-inner blockquote {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.testimonial-author {
  font-weight: 700;
  text-align: right;
  color: var(--color-navy);
  margin-bottom: 0;
}


/* ================================================================
   10. MEET THE AUTHOR SECTION
   ================================================================ */
.meet-author-section {
  background-color: var(--color-bg-light);
}

.meet-author-section h2 {
  color: var(--color-navy);
  text-transform: uppercase;
}

.author-image-wrap {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.author-circle-bg {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 370px;
  height: 370px;
  background-color: var(--color-purple);
  border-radius: var(--border-radius-circle);
  z-index: 0;
}

.author-photo {
  position: relative;
  z-index: 1;
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--border-radius-circle);
  border: 10px solid var(--color-yellow);
}

@media (max-width: 992px) {
  .author-image-wrap { width: 280px; height: 280px; }
  .author-circle-bg  { width: 290px; height: 290px; }
  .author-photo      { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .author-image-wrap { width: 200px; height: 200px; }
  .author-circle-bg  { width: 210px; height: 210px; }
  .author-photo      { width: 200px; height: 200px; }
}

.author-bio .lead {
  font-size: 1.05rem;
}

.author-list li {
  margin-bottom: 0.5rem;
}

.author-list i {
  color: var(--color-teal);
  margin-right: 0.5rem;
}


/* ================================================================
   11. NEWSLETTER SECTION
   ================================================================ */
.newsletter-section {
  background-color: var(--color-teal);
  color: var(--color-white);
}

.newsletter-section h2 {
  color: var(--color-white);
  text-transform: uppercase;
}

.newsletter-photo {
  border-radius: var(--border-radius-card);
  width: 100%;
  max-width: 300px;
  object-fit: cover;
}


/* ================================================================
   12. CATEGORY LINKS SECTION
   ================================================================ */
.category-links-section {
  background-color: var(--color-purple);
  padding: 2rem 0;
}

.category-links-section h2 {
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.category-links-section a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.category-links-section a:hover {
  opacity: 0.75;
  color: var(--color-yellow);
}

.category-links-section i {
  margin-right: 0.4rem;
}


/* ================================================================
   13. PLACES / CONTENT CARDS SECTION
   ================================================================ */
.places-section {
  background-color: var(--color-bg-light);
}

.places-section h2 {
  color: var(--color-navy);
  text-transform: uppercase;
}

.place-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}

.place-card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.place-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.place-card:hover .place-card-img-wrap img {
  transform: scale(1.04);
}

.place-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.place-card-body h4 {
  color: var(--color-navy);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.place-card-body p {
  flex: 1;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.place-card-body .btn {
  align-self: center;
}


/* ================================================================
   14. GALLERY (Lightbox / Magnific Popup)
   ================================================================ */
.gallery-section {
  background-color: var(--color-bg-light);
}

.gallery-section h2 {
  color: var(--color-navy);
  text-transform: uppercase;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-card);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* ================================================================
   15. BUTTONS
   ================================================================ */
.btn {
  font-family: var(--font-main);
  font-weight: 700;
  border-width: 2px;
  border-radius: var(--border-radius-pill);
  padding: 0.6rem 1.4rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #128f76;
  border-color: #128f76;
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #1a252f;
  border-color: #1a252f;
  color: var(--color-white);
}

.btn-purple {
  background-color: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-white);
}
.btn-purple:hover,
.btn-purple:focus {
  background-color: #5e3757;
  border-color: #5e3757;
  color: var(--color-white);
}

.btn-outline-light:hover {
  color: var(--color-navy);
}


/* ================================================================
   16. FOOTER
   ================================================================ */
.site-footer,
.but-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 4rem 0 2rem;
}

.footer-heading {
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--color-white);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: var(--color-teal);
}

.footer-search .form-control {
  background-color: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
}

.footer-search .form-control::placeholder {
  color: rgba(255,255,255,0.55);
}

.footer-search .btn {
  border-color: rgba(255,255,255,0.4);
  color: var(--color-white);
  background-color: transparent;
  padding: 0.375rem 0.75rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--border-radius-circle);
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--color-white);
  font-size: 1.1rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social-icon:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.footer-logo {
  max-height: 80px;
  width: auto;
}

.copyright-bar {
  background-color: #1a252f;
  color: var(--color-white);
  font-family: var(--font-main);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.95rem;
}

.footer.but-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-main);
  padding: 4rem 0 2rem;
  text-align: left;
}
/* ================================================================
   17. SCROLL TO TOP
   ================================================================ */
.scroll-to-top {
  z-index: 1042;
  right: 1rem;
  bottom: 1rem;
}

.scroll-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(33,37,41,0.5);
  border-radius: var(--border-radius-circle);
  color: var(--color-white);
  text-decoration: none;
  transition: background-color 0.2s;
}

.scroll-to-top a:hover {
  background-color: rgba(33,37,41,0.85);
  color: var(--color-white);
}


/* ================================================================
   18. UTILITY OVERRIDES
   ================================================================ */
.text-primary   { color: var(--color-teal)  !important; }
.text-secondary { color: var(--color-navy)  !important; }
.text-purple    { color: var(--color-purple) !important; }
.text-yellow    { color: var(--color-yellow) !important; }
