/*
Theme Name: TYTT Child
Theme URI: https://nicolaithedesigner.com
Description: Child theme of Hello Elementor for "To Tell You The Truth" by Grace V. Pearl
Author: nicolaithedesigner.com
Author URI: https://nicolaithedesigner.com
Template: hello-elementor
Version: 1.0.0
Text Domain: tytt-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --tytt-green-dark:   #1a4a3a;
  --tytt-green-mid:    #1e5544;
  --tytt-green-light:  #2a6b52;
  --tytt-gold:         #c97d3a;
  --tytt-gold-light:   #e09050;
  --tytt-cream:        #f5f0e8;
  --tytt-bg-light:     #f0ede8;
  --tytt-bg-section:   #e8e4df;
  --tytt-text-dark:    #2c2c2c;
  --tytt-text-mid:     #555555;
  --tytt-text-light:   #888888;
  --tytt-white:        #ffffff;

  --tytt-font-display: 'Cormorant Garamond', Georgia, serif;
  --tytt-font-script:  'Dancing Script', cursive;
  --tytt-font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --tytt-transition:   0.3s ease;
  --tytt-radius:       4px;
  --tytt-shadow:       0 4px 20px rgba(0,0,0,0.10);
  --tytt-shadow-deep:  0 8px 40px rgba(0,0,0,0.18);
}

/* ============================================================
   GOOGLE FONTS — loaded via functions.php
   ============================================================ */

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
body {
  font-family: var(--tytt-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tytt-text-dark);
  background: var(--tytt-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--tytt-font-display);
  line-height: 1.2;
  color: var(--tytt-text-dark);
}

a {
  color: var(--tytt-gold);
  transition: color var(--tytt-transition);
}
a:hover { color: var(--tytt-gold-light); }

p { margin-bottom: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header,
header.elementor-location-header {
  background: var(--tytt-green-dark) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

/* Push page content below fixed header */
.page-content-wrapper,
#content.site-content,
.elementor-location-single,
body .elementor-page {
  margin-top: 72px;
}

/* Logo area — explicit green bg */
.site-header .site-logo,
.elementor-widget-site-logo,
header .elementor-widget-image {
  background: var(--tytt-green-dark);
  padding: 8px 16px;
}

.site-header .site-logo img,
header .elementor-widget-image img {
  max-height: 52px;
  width: auto;
}

/* Nav links */
.main-navigation a,
.elementor-nav-menu a,
header .elementor-widget-nav-menu a {
  color: var(--tytt-white) !important;
  font-family: var(--tytt-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--tytt-radius);
  transition: all var(--tytt-transition);
}

.main-navigation a:hover,
.elementor-nav-menu a:hover,
header .elementor-widget-nav-menu a:hover {
  color: var(--tytt-green-dark) !important;
  background: var(--tytt-white);
}

/* Donate nav button */
.menu-item-donate a,
.nav-donate {
  background: var(--tytt-gold) !important;
  color: var(--tytt-white) !important;
  border-radius: var(--tytt-radius) !important;
  padding: 8px 18px !important;
}
.menu-item-donate a:hover,
.nav-donate:hover {
  background: var(--tytt-gold-light) !important;
  color: var(--tytt-white) !important;
}

/* ============================================================
   SECTION TITLES (global pattern)
   ============================================================ */
.tytt-section-title {
  font-family: var(--tytt-font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--tytt-gold);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.tytt-divider {
  width: 80px;
  height: 1px;
  background: var(--tytt-green-dark);
  margin: 0 auto 2.5rem;
}

/* ============================================================
   DEPICTER SLIDER WRAPPER
   ============================================================ */
.tytt-slider-section {
  width: 100%;
  overflow: hidden;
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.tytt-blog-card {
  background: var(--tytt-white);
  border-radius: var(--tytt-radius);
  overflow: hidden;
  box-shadow: var(--tytt-shadow);
  transition: transform var(--tytt-transition), box-shadow var(--tytt-transition);
  height: 100%;
}

.tytt-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tytt-shadow-deep);
}

.tytt-blog-card .card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.tytt-blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tytt-blog-card:hover .card-image img {
  transform: scale(1.05);
}

.tytt-blog-card .card-body {
  padding: 24px;
}

.tytt-blog-card .card-title {
  font-family: var(--tytt-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--tytt-text-dark);
}

.tytt-blog-card .card-excerpt {
  font-size: 0.875rem;
  color: var(--tytt-text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
}

.tytt-read-more {
  color: var(--tytt-gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tytt-read-more::after {
  content: '→';
  transition: transform var(--tytt-transition);
}

.tytt-read-more:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.tytt-about-name {
  font-family: var(--tytt-font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--tytt-text-dark);
  margin-bottom: 4px;
}

.tytt-about-sub {
  font-family: var(--tytt-font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--tytt-green-mid);
  margin-bottom: 20px;
}

.tytt-about-portrait img {
  border-radius: var(--tytt-radius);
  box-shadow: var(--tytt-shadow-deep);
}

/* ============================================================
   TESTIMONIALS (ElementsKit carousel overrides)
   ============================================================ */
.tytt-testimonials-section {
  background: var(--tytt-green-dark);
}

.tytt-testimonials-section .tytt-section-title {
  color: var(--tytt-gold-light);
}

.tytt-testimonials-section .tytt-divider {
  background: rgba(255,255,255,0.3);
}

/* ElementsKit testimonial card */
.tytt-testimonials-section .ekit-testimonial--content,
.tytt-testimonials-section .elementskit-testimonial-review {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  padding: 36px 40px !important;
}

.tytt-testimonials-section .elementskit-testimonial-review p,
.tytt-testimonials-section .ekit-testimonial--desc {
  font-family: var(--tytt-font-display) !important;
  font-size: 1.05rem !important;
  font-style: italic !important;
  color: rgba(255,255,255,0.9) !important;
  line-height: 1.9 !important;
}

.tytt-testimonials-section .elementskit-testimonial-name,
.tytt-testimonials-section .ekit-testimonial--title {
  font-family: var(--tytt-font-body) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--tytt-gold-light) !important;
}

/* Carousel dots */
.tytt-testimonials-section .swiper-pagination-bullet {
  background: rgba(255,255,255,0.3) !important;
  opacity: 1 !important;
}

.tytt-testimonials-section .swiper-pagination-bullet-active {
  background: var(--tytt-gold) !important;
}

/* ============================================================
   AUDIO SECTION
   ============================================================ */
.tytt-audio-section {
  background: var(--tytt-bg-section);
}

.tytt-audio-tracklist {
  background: var(--tytt-white);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--tytt-shadow);
}

.tytt-audio-track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  border-radius: var(--tytt-radius);
  transition: background var(--tytt-transition);
}

.tytt-audio-track:last-child { border-bottom: none; }

.tytt-audio-track:hover { background: var(--tytt-cream); }

.tytt-track-btn {
  width: 36px;
  height: 36px;
  background: var(--tytt-green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tytt-white);
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: background var(--tytt-transition);
}

.tytt-track-btn:hover { background: var(--tytt-gold); }
.tytt-track-btn.playing { background: var(--tytt-gold); }

.tytt-track-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tytt-text-dark);
}

.tytt-track-author {
  font-size: 0.75rem;
  color: var(--tytt-text-light);
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.elementor-button.tytt-btn-gold,
.tytt-btn-gold {
  background: var(--tytt-gold) !important;
  color: var(--tytt-white) !important;
  border-color: var(--tytt-gold) !important;
  font-family: var(--tytt-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: var(--tytt-radius) !important;
  transition: all var(--tytt-transition) !important;
}

.elementor-button.tytt-btn-gold:hover,
.tytt-btn-gold:hover {
  background: var(--tytt-gold-light) !important;
  border-color: var(--tytt-gold-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,125,58,0.4) !important;
}

/* ============================================================
   FLUENT FORMS OVERRIDES
   ============================================================ */
.tytt-subscribe-section .ff-el-input--content input[type="email"],
.tytt-subscribe-section .ff-el-input--content input[type="text"] {
  border: 2px solid #ddd;
  border-radius: var(--tytt-radius);
  padding: 12px 18px;
  font-family: var(--tytt-font-body);
  font-size: 0.95rem;
  transition: border-color var(--tytt-transition);
}

.tytt-subscribe-section .ff-el-input--content input:focus {
  border-color: var(--tytt-green-mid);
  outline: none;
}

.tytt-subscribe-section .ff-btn-submit {
  background: var(--tytt-gold) !important;
  color: var(--tytt-white) !important;
  font-family: var(--tytt-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: var(--tytt-radius) !important;
  padding: 12px 24px !important;
  transition: background var(--tytt-transition) !important;
}

.tytt-subscribe-section .ff-btn-submit:hover {
  background: var(--tytt-gold-light) !important;
}

/* ============================================================
   GIVEWP DONATE BUTTON
   ============================================================ */
.give-btn,
.give-submit {
  background: var(--tytt-gold) !important;
  border-color: var(--tytt-gold) !important;
  color: var(--tytt-white) !important;
  font-family: var(--tytt-font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border-radius: var(--tytt-radius) !important;
}

.give-btn:hover,
.give-submit:hover {
  background: var(--tytt-gold-light) !important;
  border-color: var(--tytt-gold-light) !important;
}

/* ============================================================
   BOOK PREVIEW PAGE
   ============================================================ */
.tytt-book-preview-section {
  padding: 60px 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
footer.elementor-location-footer {
  background: var(--tytt-green-dark) !important;
  color: rgba(255,255,255,0.7) !important;
  text-align: center;
  padding: 24px !important;
  font-size: 0.8rem;
}

.site-footer a,
footer.elementor-location-footer a {
  color: var(--tytt-gold-light) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body .elementor-page { margin-top: 60px; }

  .tytt-blog-card .card-body { padding: 18px; }

  .tytt-audio-track { padding: 12px 8px; }
}

@media (max-width: 480px) {
  .tytt-about-name { font-size: 1.4rem; }
}
