/*
Theme Name: Writer's Masterclass
Theme URI: https://example.com/writers-masterclass
Author: Shivdas (via ChatGPT)
Author URI: https://example.com
Description: A modern, animated landing page theme for the Writer's Masterclass.  This theme was handcrafted to follow the provided design brief: a warm, inviting hero section with a cinematic illustration, an animated journey timeline, clearly defined sections for benefits, curriculum and mentorship, and a countdown-driven call‑to‑action.  Built using semantic HTML5, responsive flexbox layouts, and lightweight scroll animations without any bulky frameworks.  Perfect for authors, storytellers and creative publishers.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: writers-masterclass
*/

/*
 * Import Google fonts.  Poppins provides a clean sans-serif base while Playfair Display
 * brings a touch of elegance to headings.  Using @import instead of <link> ensures
 * proper loading order within WordPress.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/*
 * Colour palette inspired by the design brief.  These CSS variables allow easy
 * adjustments and ensure consistent use of colours throughout the theme.  Warm
 * golds and beiges evoke intimacy, while deep blues and soft gradients add
 * modernity and contrast.
 */
:root {
  --color-gold: #E3B04B;
  --color-beige: #F7F0E3;
  --color-blue-dark: #002F5F;
  --color-blue-light: #005EA6;
  --color-orange: #F18701;
  --color-grey: #f5f5f5;
  --font-sans: 'Poppins', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Reset some default browser styles for a more consistent base. */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: #333;
  background-color: var(--color-beige);
  overflow-x: hidden;
}

/* Global container for centring content and controlling max width */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Utility classes for text alignment and spacing */
.text-center {
  text-align: center;
}
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }

/*
 * HERO SECTION
 * A full‑height area with a cinematic illustration.  A dark gradient overlay helps
 * foreground text pop against the background.  The call‑to‑action button uses
 * a diagonal gradient to draw the eye and includes a subtle hover animation.
 */
section.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-image: url('assets/images/hero.png');
  background-size: cover;
  background-position: center;
}
section.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,47,95,0.6) 0%, rgba(0,94,166,0.4) 50%, rgba(227,176,75,0.5) 100%);
  z-index: 0;
}
section.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
section.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  section.hero h1 { font-size: 4rem; }
}
section.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #fefefe;
}
.btn-primary {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  background-image: linear-gradient(45deg, var(--color-blue-light), var(--color-gold));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/*
 * JOURNEY MAP SECTION
 * Uses a horizontally scrolling flexbox with snap points.  Each step is
 * encapsulated in a card that animates as it comes into view using the
 * data‑aos attributes from the AOS library.  Overflow is hidden on
 * small screens to encourage swipe gestures.
 */
section.journey {
  /* Journey section uses a subtle photograph of a book stall as a backdrop
     combined with a colour overlay.  This evokes the atmosphere of a fair
     without distracting from the timeline cards. */
  background: var(--color-grey);
  background-image: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('assets/images/bookstall.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  overflow-x: hidden;
}
section.journey h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
}
.journey-timeline {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.journey-step {
  flex: 0 0 250px;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  text-align: center;
}
.journey-step .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.journey-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-blue-dark);
}
.journey-step p {
  font-size: 0.95rem;
  color: #555;
}

/*
 * WHY US SECTION
 * Utilises a two‑column layout on larger screens and stacks on mobile.  Each
 * benefit is displayed as a card for easy scanning.  The section alternates
 * background colour to distinguish it from adjacent sections.
 */
section.why-us {
  background-color: #fff;
  padding: 4rem 0;
}
section.why-us h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
  text-align: center;
}
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.why-item {
  background: var(--color-grey);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.why-item .icon {
  font-size: 2rem;
  color: var(--color-orange);
}
.why-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-blue-dark);
}
.why-item p {
  font-size: 0.95rem;
  color: #555;
}
@media (min-width: 768px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* WHO IS THIS FOR SECTION */
section.who {
  background: linear-gradient(180deg, var(--color-blue-light) 0%, var(--color-blue-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
section.who h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.who-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.who-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  width: fit-content;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .who-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .who-item { margin: 0.5rem; }
}

/* CURRICULUM SECTION */
section.curriculum {
  background-color: var(--color-grey);
  padding: 4rem 0;
}
section.curriculum h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
  text-align: center;
}
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.curriculum-item {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.curriculum-item .icon {
  font-size: 2rem;
  color: var(--color-orange);
}
.curriculum-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--color-blue-dark);
}
.curriculum-item p {
  font-size: 0.95rem;
  color: #555;
}
@media (min-width: 768px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .curriculum-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* MENTOR SECTION */
section.mentor {
  background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-orange) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
section.mentor h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
section.mentor .mentor-info {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}
section.mentor .quote {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-style: italic;
  border-left: 4px solid rgba(255,255,255,0.6);
  padding-left: 1rem;
}

/* BONUSES SECTION */
section.bonuses {
  background-color: #fff;
  padding: 4rem 0;
  text-align: center;
}
section.bonuses h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--color-blue-dark);
}
.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.bonus-item {
  background: var(--color-grey);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.bonus-item .icon {
  font-size: 2rem;
  color: var(--color-blue-light);
}
.bonus-item h3 {
  font-size: 1.25rem;
  color: var(--color-blue-dark);
}
.bonus-item p {
  font-size: 0.9rem;
  color: #555;
}
@media (min-width: 768px) {
  .bonuses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .bonuses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* TESTIMONIALS SECTION */
section.testimonials {
  background: linear-gradient(180deg, var(--color-blue-dark) 0%, var(--color-blue-light) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
section.testimonials h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.testimonial-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.testimonial {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
}
.testimonial::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 4rem;
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  color: rgba(255,255,255,0.4);
}
.testimonial strong {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}
@media (min-width: 768px) {
  .testimonial-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .testimonial {
    width: 45%;
  }
}

/* COUNTDOWN SECTION */
section.countdown {
  background-color: var(--color-orange);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
section.countdown h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.countdown-segment {
  background: rgba(0,0,0,0.2);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  min-width: 80px;
}
.countdown-number {
  font-size: 2rem;
  font-weight: 700;
}
.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown .btn-primary {
  margin-top: 2rem;
}

/* FOOTER */
footer.site-footer {
  background: var(--color-blue-dark);
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}
footer .footer-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
footer .footer-top a {
  color: #fff;
  text-decoration: none;
}
footer .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
footer .footer-links a:hover {
  text-decoration: underline;
}
footer .copyright {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Accessibility: Focus styles */
a:focus, button:focus {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}