/* 
========================================================================
   GROVE ATLANTIC CLONE - GLOBAL STYLESHEET
   Design System, Components, Layouts, and Theme Definitions
========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------------------------------------------------------------------
   1. DESIGN SYSTEM & VARIABLE DEFINITIONS
   --------------------------------------------------------------------- */
:root {
  /* Elegant & Literary Color Palette */
  --primary-color: #111111;       /* Rich near-black for high contrast */
  --bg-color: #ffffff;            /* Pure white background */
  --bg-cream: #faf7f2;            /* Luxurious cream/beige background for content sections */
  --accent-color: #8c2d19;        /* Sophisticated crimson/terracotta red for links & accents */
  --accent-light: #f5eae6;        /* Light crimson tint for overlays/hovers */
  --border-color: #e5dfd5;        /* Subtle warm border line */
  
  /* Text Color Hierarchies */
  --text-primary: #111111;
  --text-secondary: #4a4a4a;
  --text-muted: #888888;
  --text-white: #ffffff;
  
  /* Typography Variables */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout Spacing Metrics */
  --container-width: 1240px;
  --header-height: 80px;
  --section-padding: 80px;
  --grid-gap: 32px;
  
  /* Timing & Easing */
  --transition-speed: 0.4s;
  --transition-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(140, 45, 25, 0.08);
}

/* ---------------------------------------------------------------------
   2. CORE BASICS & RESETS
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
  font-size: 1rem;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease),
              border-color var(--transition-speed) var(--transition-ease);
}

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

ul, ol {
  list-style: none;
}

/* Utility Containers */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: var(--section-padding) 0;
}

.bg-cream-sec {
  background-color: var(--bg-cream);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

/* Typography Utilities */
.text-center { text-align: center; }
.italic { font-style: italic; }
.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }

/* Accent Color Link Decorator */
.accent-link {
  color: var(--accent-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 2px;
}

.accent-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.accent-link:hover::after {
  width: 100%;
}

/* Custom Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-ease);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ---------------------------------------------------------------------
   3. HEADER / NAVIGATION COMPONENT
   --------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.5s ease, border-bottom 0.5s ease, box-shadow 0.5s ease;
  border-bottom: 1px solid transparent;
}

/* Default state: homepage header starts transparent over image */
header.transparent {
  background-color: transparent;
}

/* Active solid state (on scroll or other pages) */
header.scrolled,
body:not(.home-page) header {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

/* Logo layout styled elegantly in Serif */
.logo {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--primary-color);
}

.logo span {
  font-weight: 300;
  color: var(--accent-color);
}

/* Header Text Theme Overrides when transparent (only on Home before scroll) */
header.transparent .logo {
  color: var(--primary-color); /* Default black is fine, or we make it white if hero is dark */
}

/* Center Menu Navigation */
.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-color);
  transition: width 0.3s var(--transition-ease);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

/* Right Nav Group (Search + Newsletter CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--accent-color);
}

.search-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.header-newsletter-btn {
  font-size: 0.75rem;
  padding: 8px 18px;
}

/* Hamburger mobile button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Mobile sliding menu container */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  padding: 100px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.mobile-nav a:hover {
  color: var(--accent-color);
}

/* Body Blur Overlay when mobile nav / search open */
.body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.body-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------------------
   4. SEARCH OVERLAY WIDGET
   --------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--transition-ease);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.search-overlay-close:hover {
  color: var(--accent-color);
}

.search-form-container {
  width: 100%;
  max-width: 700px;
  padding: 0 24px;
  text-align: center;
}

.search-form-container h2 {
  margin-bottom: 24px;
  font-weight: 300;
}

.search-form-container form {
  position: relative;
  display: flex;
  border-bottom: 2px solid var(--primary-color);
}

.search-input {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
}

.search-submit-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  color: var(--text-primary);
}

.search-submit-btn:hover {
  color: var(--accent-color);
}

.search-submit-btn svg {
  width: 28px;
  height: 28px;
}

/* ---------------------------------------------------------------------
   5. SHARED COMPONENT CARDS & LAYOUTS
   --------------------------------------------------------------------- */

/* Header section title block for editorial feel */
.section-header {
  margin-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.section-header-left h2 {
  font-size: 2.2rem;
  font-weight: 600;
  position: relative;
}

.section-header-left p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Book Card */
.book-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform var(--transition-speed) var(--transition-ease);
  position: relative;
}

.book-image-wrapper {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-cream);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition-speed) var(--transition-ease),
              transform var(--transition-speed) var(--transition-ease);
}

.book-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Typographic fallback cover style if image doesn't exist */
.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-cream) 0%, #ebe6dc 100%);
  color: var(--text-primary);
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
}

.book-cover-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 1px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.08);
}

.book-placeholder-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  font-weight: 600;
}

.book-placeholder-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: auto 0;
  line-height: 1.3;
}

.book-placeholder-author {
  font-size: 0.85rem;
  font-weight: 500;
}

.book-card-info {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-card-genre {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-color);
  font-weight: 600;
}

.book-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 2px;
}

.book-card-author {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Card Hover Animations */
.book-card:hover .book-image-wrapper {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.book-card:hover .book-image-wrapper img {
  transform: scale(1.05);
}

.book-card:hover .book-card-title {
  color: var(--accent-color);
}

/* Author Card */
.author-card {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed) var(--transition-ease);
}

.author-image-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
}

.author-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.author-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--text-muted);
  background-color: var(--bg-cream);
  font-weight: 300;
}

.author-card-info {
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.author-card-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-card:hover .author-image-wrapper img {
  transform: scale(1.05);
}

.author-card:hover .author-card-name {
  color: var(--accent-color);
}

/* Event List Card */
.event-card {
  display: grid;
  grid-template-columns: 100px 1fr 180px;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.event-card:hover {
  background-color: rgba(250, 247, 242, 0.6);
}

.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
  padding: 12px 8px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--bg-color);
  min-height: 90px;
}

.event-date-month {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-date-day {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.event-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-meta {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-action {
  text-align: right;
}

/* ---------------------------------------------------------------------
   6. LATEST NEWS & MAGAZINE LAYOUTS
   --------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.featured-article-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-article-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
}

.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.featured-article-card:hover .featured-article-image img {
  transform: scale(1.03);
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.article-category {
  color: var(--accent-color);
  font-weight: 600;
}

.featured-article-content h3 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 10px 0 14px 0;
}

.featured-article-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.news-list-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.news-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-list-item-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
}

.news-list-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-list-item-content h4 {
  font-size: 1.2rem;
  margin: 4px 0 8px 0;
  line-height: 1.3;
}

.news-list-item:hover h4 {
  color: var(--accent-color);
}

/* ---------------------------------------------------------------------
   7. NEWSLETTER SECTION
   --------------------------------------------------------------------- */
.newsletter-block {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 0;
}

.newsletter-block h2 {
  font-size: 2.6rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.newsletter-block p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 4px;
  position: relative;
}

.newsletter-email {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-sans);
}

.newsletter-submit {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.newsletter-submit:hover {
  color: var(--accent-color);
}

.newsletter-message {
  font-size: 0.85rem;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  left: 0;
  bottom: -28px;
}

.newsletter-message.success {
  opacity: 1;
  color: green;
}

.newsletter-message.error {
  opacity: 1;
  color: var(--accent-color);
}

/* ---------------------------------------------------------------------
   8. FOOTER
   --------------------------------------------------------------------- */
footer {
  background-color: #111111;
  color: #dddddd;
  padding: 80px 0 40px 0;
  font-size: 0.9rem;
}

footer a {
  color: #aaaaaa;
}

footer a:hover {
  color: var(--bg-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--bg-color);
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: #888888;
  margin-bottom: 24px;
  max-width: 250px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-color);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-column h4 {
  color: var(--bg-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  font-weight: 700;
  font-family: var(--font-sans);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #666666;
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ---------------------------------------------------------------------
   9. ANIMATION REVEAL CLASSES (INTERSECTION OBSERVER)
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ---------------------------------------------------------------------
   10. TIMELINE STYLING (ABOUT PAGE)
   --------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 1px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -0.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  right: -6px;
  background-color: var(--accent-color);
  border: 2px solid var(--bg-color);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.3s ease;
}

.timeline-item:hover::after {
  transform: scale(1.3);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
}

.timeline-right::after {
  left: -6px;
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 6px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--bg-cream);
  border: 1px solid var(--border-color);
  position: relative;
}

.timeline-content h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.search-btn{
    display:none;
}

/* ---------------------------------------------------------------------
   THANK YOU PAGE
   --------------------------------------------------------------------- */
.thank-you-page {
  padding-top: var(--header-height);
  min-height: 100vh;
  background: var(--bg-cream);
}

.thank-you-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 90px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(250, 247, 242, 0.94), rgba(250, 247, 242, 0.94)),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(140, 45, 25, 0.035) 80px);
}

.thank-you-decoration {
  position: absolute;
  border: 1px solid rgba(140, 45, 25, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.thank-you-decoration-one {
  width: 340px;
  height: 340px;
  top: -150px;
  right: -80px;
}

.thank-you-decoration-two {
  width: 220px;
  height: 220px;
  bottom: -110px;
  left: -70px;
}

.thank-you-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 72px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.thank-you-card::before,
.thank-you-card::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
}

.thank-you-card::before {
  top: 18px;
  left: 18px;
  border-top: 1px solid var(--accent-color);
  border-left: 1px solid var(--accent-color);
}

.thank-you-card::after {
  right: 18px;
  bottom: 18px;
  border-right: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

.thank-you-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-color);
}

.thank-you-icon svg {
  width: 38px;
  height: 38px;
}

.thank-you-kicker {
  margin-bottom: 12px;
  color: var(--accent-color);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.thank-you-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 4.5rem);
  line-height: 0.98;
}

.thank-you-lead {
  max-width: 650px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.6;
}

.thank-you-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 300px;
  margin: 34px auto;
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.thank-you-divider::before,
.thank-you-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.thank-you-next h2 {
  margin-bottom: 24px;
  font-size: 1.85rem;
}

.thank-you-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}

.thank-you-steps article {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
}

.thank-you-steps article > span {
  flex: 0 0 auto;
  color: var(--accent-color);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
}

.thank-you-steps h3 {
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
}

.thank-you-steps p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.thank-you-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.thank-you-contact-note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.thank-you-contact-note a {
  color: var(--accent-color);
  font-weight: 600;
}

@media (max-width: 767px) {
  .thank-you-hero { padding: 55px 0; }
  .thank-you-card { padding: 48px 24px; }
  .thank-you-card h1 { font-size: 2.65rem; }
  .thank-you-lead { font-size: 1.08rem; }
  .thank-you-steps { grid-template-columns: 1fr; }
  .thank-you-actions { flex-direction: column; }
  .thank-you-actions .btn { width: 100%; }
}