/* =========================
   COMPONENTS
   J. M. Taggart Website
   Buttons • Nav • Cards • UI Blocks
   ========================= */


/* =========================
   ✨ NAVIGATION
   ========================= */

nav {
  margin-top: 20px;
}

nav a {
  color: #f5ecd9;
  font-size: 24px;
  margin: 0 20px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #cbb27a;
}

/* =========================
   SOCIAL BAR
========================= */

.social-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.social-bar a {
  font-family: inherit;
  font-size: 22px;
  text-decoration: none;
  color: #f5ecd9;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
}

/* subtle glow hover */
.social-bar a:hover {
  opacity: 1;
  text-shadow: 0 0 8px rgba(180, 140, 255, 0.6);
  transform: translateY(-1px);
}

.social-bar a::after {
  content: " ✦";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-bar a:hover::after {
  opacity: 1;
}

/* =========================
   ✨ BUTTONS (PRIMARY SITE STYLE)
   ========================= */

.button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #8c6b2d, #cbb27a);
  color: #0f2e24;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(203,178,122,0.2);
}


/* =========================
   ✨ HEADERS (TEXT STYLING ONLY)
   ========================= */

h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 4em;
  letter-spacing: 1px;
}

.tagline {
  font-style: italic;
  font-size: 1.6em;
  color: #cbb27a;
  margin-bottom: 30px;
}

h2 {
  color: #cbb27a;
  font-size: 2em;
  margin-bottom: 25px;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(to right, transparent, #cbb27a, transparent);
}


/* =========================
   ✨ HEADER LAYOUT BLOCK
   ========================= */

header {
  text-align: center;
  padding: 120px 20px 100px;
  position: relative;
  background:
    linear-gradient(rgba(15,46,36,0.75), rgba(15,46,36,1)),
    url('your-background.jpg');
  background-size: cover;
  background-position: center;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(203,178,122,0.08), transparent 70%);
  pointer-events: none;
}


/* =========================
   ✨ LOGO
   ========================= */

img.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 15px auto;
  width: 170px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 8px rgba(203,178,122,0.4));
}


/* =========================
   ✨ CAROUSEL (HOME PAGE WIP)
   ========================= */

.carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  margin-top: 20px;
}

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transform: translateX(40px) rotateY(15deg);
  transition: all 0.7s ease;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slide.active {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.slide img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(203,178,122,0.25);
  margin-bottom: 10px;
}

.slide p {
  font-style: italic;
  color: #f5ecd9;
  opacity: 0.9;
}


/* =========================
   ✨ BOOK GRID (BOOKS PAGE)
   ========================= */

.books {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.book {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(203,178,122,0.18);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s ease;
}

.book:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 22px rgba(203,178,122,0.22);
}

.book img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}

.book-content {
  padding: 18px;
}

.book h2 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #cbb27a;
}

.book p {
  font-size: 0.98em;
  opacity: 0.95;
}


/* =========================
   ✨ BOOK BUTTONS (PRIMARY + SECONDARY)
   ========================= */

.buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 10px;
  border-radius: 25px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9em;
  transition: 0.3s ease;
}

/* Primary button */
.primary {
  background: linear-gradient(135deg, #8c6b2d, #cbb27a);
  color: #0f2e24;
}

/* Secondary button */
.secondary {
  border: 1px solid #cbb27a;
  color: #f5ecd9;
}

/* Hover states */
.primary:hover {
  transform: scale(1.03);
}

.secondary:hover {
  background: rgba(203,178,122,0.1);
}


/* =========================
   ✨ DISABLED BUTTON STATE
   ========================= */

.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================
   BLOG LAYOUT
========================= */

.blog-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-post {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(203, 178, 122, 0.18);
  border-radius: 14px;
  padding: 22px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(203, 178, 122, 0.25);
}

.blog-post h2 {
  font-size: 32px;
  color: #cbb27a;
  margin-top: 0;
  text-align: center;
}

.meta {
  font-size: 0.85em;
  color: rgba(245, 236, 217, 0.7);
  margin-bottom: 12px;
}

.blog-post p {
  line-height: 1.6;
  font-size: 18px;
  opacity: 0.95;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: #cbb27a;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.read-more:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px rgba(203, 178, 122, 0.4);
}

/* =========================
   BLOG BLOCKQUOTES (DRAMATIC STYLE)
========================= */

blockquote {
  margin: 40px 0;
  padding: 20px 30px;

  font-size: 30px;
  line-height: 1.7;
  font-style: bold;
  text-align: centre;

  color: #f5ecd9;

  background: rgba(203,178,122,0.08);
  border-left: 3px solid #cbb27a;

  border-radius: 8px;
  position: relative;
}

/* ✨ Decorative quotation mark */
blockquote::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 12px;

  font-size: 3rem;
  color: rgba(203,178,122,0.4);
}

/* ✨ Optional subtle glow on hover */
blockquote:hover {
  box-shadow: 0 0 20px rgba(203,178,122,0.2);
  transition: 0.3s ease;
}

/* =========================
   BLOG IMAGES
========================= */

.blog-post img {
  display: block;
  item-align: center;
  margin: 0 auto;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(203,178,122,0.2);
}

/* =========================
   CENTERED PAGE (THANK YOU / SIMPLE PAGES)
========================= */

.centered-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.centered-page h1 {
  margin-bottom: 20px;
}

.centered-page p {
  max-width: 600px;
  line-height: 1.6;
}


    /* ✨ CONTACT CARD */
    .contact-container {
      max-width: 800px;
      margin: 80px auto;
      padding: 0 20px;
    }

    .card {
      background: rgba(0,0,0,0.25);
      border: 1px solid rgba(203,178,122,0.18);
      border-radius: 14px;
      padding: 30px;
      backdrop-filter: blur(6px);
    }

    .card h2 {
      color: #cbb27a;
      margin-top: 0;
    }

    form {
      margin-top: 25px;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    input, textarea {
      font-family: 'EB Garamond', serif;
      padding: 12px;
      border-radius: 8px;
      border: 1px solid rgba(203,178,122,0.25);
      background: rgba(0,0,0,0.35);
      color: #f5ecd9;
      outline: none;
    }

    input:focus, textarea:focus {
      border-color: #cbb27a;
    }

    textarea {
      min-height: 140px;
      resize: vertical;
    }

    button {
      padding: 12px;
      border-radius: 25px;
      border: none;
      cursor: pointer;
      font-weight: bold;
      background: linear-gradient(135deg, #8c6b2d, #cbb27a);
      color: #0f2e24;
      transition: 0.3s ease;
    }

    button:hover {
      transform: scale(1.03);
    }

/* =========================
   ✨ FOOTER
   ========================= */

footer {
  text-align: center;
  padding: 30px;
  background: #081c15;
  color: #cbb27a;
}