/*
Theme Name: TestimonyVille
Theme URI: https://testimonyvile.org
Author: TestimonyVille
Author URI: https://testimonyvile.org
Description: A Christ-centred testimony sharing platform theme. Built for TestimonyVille — a non-profit, non-denominational community where believers share stories of God's faithfulness. Designed for use with Gravity Forms, WPForms, or Contact Form 7 for testimony submission, and a custom post type for testimonies.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: testimonyvile
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, religion, clean, elegant
*/

/* ================================================================
   DESIGN TOKENS & RESET
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Lato:wght@300;400;700;900&display=swap');

:root {
  --gold:        #C9943A;
  --gold-light:  #E8C278;
  --gold-pale:   #F5E8CC;
  --deep:        #1A1008;
  --rich:        #2C1A0A;
  --cream:       #FAF5EC;
  --warm-white:  #FFFDF8;
  --text:        #3A2510;
  --muted:       #7A5C3C;
  --accent:      #8B1C1C;
  --border:      rgba(201,148,58,0.2);
  --nav-height:  70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Cormorant Garamond', serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.28;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.entry-content h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.entry-content h3 { font-size: 1.4rem; margin: 1.8rem 0 0.8rem; }
.entry-content p  { font-size: 1.1rem; font-weight: 300; line-height: 1.9; color: var(--muted); margin-bottom: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content li { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--muted); margin-bottom: 0.4rem; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1.2rem 2rem; margin: 2rem 0;
  background: var(--cream);
  font-style: italic; font-size: 1.15rem; color: var(--text);
}

/* ================================================================
   LAYOUT UTILITIES
================================================================ */
.tv-container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.tv-container--narrow { max-width: 780px; }
.tv-container--wide   { max-width: 1300px; }

.tv-section { padding: 6rem 2rem; }
.tv-section--cream      { background: var(--cream); }
.tv-section--warm-white { background: var(--warm-white); }
.tv-section--dark       { background: var(--deep); }
.tv-section--darker     { background: #0E0804; }

/* ================================================================
   BUTTONS
================================================================ */
.tv-btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  transition: all 0.25s; text-decoration: none;
  border: none; cursor: pointer;
}
.tv-btn--primary { background: var(--gold); color: #fff; }
.tv-btn--primary:hover { background: #b8832a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,148,58,0.3); color: #fff; }
.tv-btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--gold-pale); }
.tv-btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.tv-btn--ghost-light { background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.28); }
.tv-btn--ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }
.tv-btn--full { width: 100%; text-align: center; }

/* ================================================================
   SECTION LABELS & TITLES
================================================================ */
.tv-eyebrow {
  display: block;
  font-family: 'Lato', sans-serif; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.tv-title       { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; }
.tv-title--lg   { font-size: clamp(2.4rem, 5vw, 4rem); }
.tv-title--hero { font-size: clamp(3rem, 7.5vw, 6.2rem); }
.tv-title em    { font-style: italic; color: var(--gold-light); }
.tv-title--white { color: #fff; }
.tv-body { font-size: 1.1rem; font-weight: 300; line-height: 1.9; color: var(--muted); }
.tv-body--light { color: rgba(255,255,255,0.6); }

/* ================================================================
   ORNAMENT DIVIDER
================================================================ */
.tv-divider {
  display: flex; align-items: center; gap: 1rem; margin: 1rem 0;
}
.tv-divider::before, .tv-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-pale), transparent);
}
.tv-divider span { color: var(--gold); font-size: 1rem; }

/* ================================================================
   SCRIPTURE BLOCK
================================================================ */
.tv-scripture {
  border-left: 3px solid var(--gold); padding: 1.4rem 2rem;
  background: var(--cream); margin: 2rem 0;
}
.tv-scripture--dark {
  background: rgba(201,148,58,0.06); border-left-color: var(--gold);
}
.tv-scripture blockquote {
  font-family: 'Playfair Display', serif; font-size: 1.15rem;
  font-style: italic; line-height: 1.7; color: var(--text);
  margin-bottom: 0.5rem; border: none; background: none; padding: 0;
}
.tv-scripture--dark blockquote { color: rgba(255,255,255,0.85); }
.tv-scripture cite {
  font-family: 'Lato', sans-serif; font-size: 0.64rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-style: normal;
}

/* ================================================================
   PAGE HERO (inner pages)
================================================================ */
.tv-page-hero {
  min-height: 40vh; background: var(--deep);
  display: flex; align-items: center;
  padding: calc(var(--nav-height) + 4rem) 2rem 4rem;
  position: relative; overflow: hidden;
}
.tv-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(201,148,58,0.12) 0%, transparent 70%);
}
.tv-page-hero__content { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.tv-page-hero__title   { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1rem; }
.tv-page-hero__title em { color: var(--gold-light); font-style: italic; }
.tv-page-hero__sub { font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,0.55); max-width: 520px; line-height: 1.8; }

/* ================================================================
   NAVIGATION
================================================================ */
#masthead {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  background: rgba(26,16,8,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,148,58,0.18);
  transition: padding 0.3s ease, background 0.3s ease;
}
#masthead.scrolled {
  padding-top: 0; padding-bottom: 0; height: 58px;
  background: rgba(20,10,4,0.98);
}

.site-logo {
  font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 900;
  color: var(--gold-light); letter-spacing: 0.04em; text-decoration: none;
  flex-shrink: 0;
}
.site-logo span { color: #fff; font-style: italic; }

#primary-menu {
  display: flex; gap: 2.2rem; align-items: center;
}
#primary-menu li a {
  font-family: 'Lato', sans-serif; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); text-decoration: none;
  transition: color 0.25s; position: relative; padding-bottom: 4px;
}
#primary-menu li a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.25s;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a,
#primary-menu li.current_page_item a { color: var(--gold-light); }
#primary-menu li a:hover::after,
#primary-menu li.current-menu-item a::after,
#primary-menu li.current_page_item a::after { transform: scaleX(1); }

.nav-cta-btn {
  font-family: 'Lato', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 1.4rem; background: var(--gold); color: #fff !important;
  text-decoration: none; transition: background 0.25s, transform 0.2s;
  white-space: nowrap; flex-shrink: 0;
}
.nav-cta-btn:hover { background: var(--gold-light) !important; transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.7); transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(20,10,4,0.97); z-index: 490;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  padding: 3rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.25s;
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu .tv-btn { margin-top: 1rem; }

/* ================================================================
   FOOTER
================================================================ */
#colophon {
  background: #0E0804;
  padding: 4.5rem 2rem 2.5rem;
  color: rgba(255,255,255,0.4);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2rem;
}
.footer-brand .site-logo { display: block; margin-bottom: 1rem; font-size: 1.3rem; }
.footer-tagline { font-size: 0.88rem; font-weight: 300; line-height: 1.75; max-width: 230px; }
.footer-col h4 {
  font-family: 'Lato', sans-serif; font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.4); transition: color 0.25s; text-decoration: none; }
.footer-col ul a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-family: 'Lato', sans-serif; font-size: 0.7rem; letter-spacing: 0.05em; }
.footer-verse { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 0.88rem; color: rgba(255,255,255,0.25); }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.tv-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.tv-reveal.visible { opacity: 1; transform: translateY(0); }
.tv-reveal--d1 { transition-delay: 0.1s; }
.tv-reveal--d2 { transition-delay: 0.2s; }
.tv-reveal--d3 { transition-delay: 0.3s; }
.tv-reveal--d4 { transition-delay: 0.4s; }

/* ================================================================
   HOME PAGE — HERO
================================================================ */
.tv-hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--deep);
}
.tv-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201,148,58,0.17) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 15% 85%, rgba(139,28,28,0.13) 0%, transparent 60%),
    linear-gradient(160deg, #1A1008 0%, #2C1A0A 55%, #0E0804 100%);
}
.tv-hero__cross {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: 360px; height: 360px; opacity: 0.045;
}
.tv-hero__content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 2rem; max-width: 880px;
}
.tv-hero__eyebrow { font-family: 'Lato', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; animation: tvFadeUp 1.2s 0.1s both; }
.tv-hero__title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7.5vw, 6.2rem); font-weight: 900; line-height: 1.04; color: #fff; margin-bottom: 1.2rem; animation: tvFadeUp 1.2s 0.22s both; }
.tv-hero__title em { font-style: italic; color: var(--gold-light); }
.tv-hero__verse { font-family: 'Cormorant Garamond', serif; font-size: 1.18rem; font-style: italic; color: rgba(255,255,255,0.55); margin-bottom: 0.35rem; animation: tvFadeUp 1.2s 0.34s both; }
.tv-hero__ref { font-family: 'Lato', sans-serif; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 2.6rem; animation: tvFadeUp 1.2s 0.4s both; }
.tv-hero__sub { font-size: 1.2rem; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,0.68); max-width: 600px; margin: 0 auto 3rem; animation: tvFadeUp 1.2s 0.48s both; }
.tv-hero__actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; animation: tvFadeUp 1.2s 0.58s both; }
.tv-hero__stats { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; gap: 3.5rem; animation: tvFadeUp 1.2s 0.75s both; z-index: 2; }
.tv-hero__stat { text-align: center; }
.tv-hero__stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold-light); display: block; }
.tv-hero__stat-label { font-family: 'Lato', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.tv-hero__stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); align-self: center; }

@keyframes tvFadeUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   TESTIMONY CARDS
================================================================ */
.tv-testimony-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.tv-testimony-card {
  background: var(--warm-white); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid transparent;
}
.tv-testimony-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(58,37,16,0.12); border-color: var(--gold-pale); }
.tv-testimony-card__top { padding: 2.2rem 2.2rem 1.4rem; border-bottom: 1px solid var(--gold-pale); position: relative; }
.tv-testimony-card__quote { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: var(--gold-pale); line-height: 1; position: absolute; top: 0.5rem; right: 1.2rem; }
.tv-testimony-card__cat { font-family: 'Lato', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; display: block; }
.tv-testimony-card__excerpt { font-family: 'Cormorant Garamond', serif; font-size: 1.08rem; font-style: italic; line-height: 1.75; color: var(--text); }
.tv-testimony-card__bottom { padding: 1.2rem 2.2rem; display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tv-testimony-card__author { display: flex; align-items: center; gap: 0.8rem; }
.tv-testimony-card__avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.85rem; font-weight: 700; color: #fff; flex-shrink: 0; background: var(--deep); }
.tv-testimony-card__name { font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: var(--deep); }
.tv-testimony-card__location { font-size: 0.82rem; font-weight: 300; color: var(--muted); }
.tv-testimony-card__read { font-family: 'Lato', sans-serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); transition: color 0.2s; }
.tv-testimony-card:hover .tv-testimony-card__read { color: var(--text); }

/* Testimony archive card (search results) */
.tv-archive-card {
  background: var(--warm-white); border: 1px solid var(--gold-pale);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.tv-archive-card:hover { transform: translateY(-4px); box-shadow: 0 16px 45px rgba(58,37,16,0.1); border-color: var(--gold-light); }
.tv-archive-card__badge { padding: 0.5rem 1rem; font-family: 'Lato', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; display: flex; align-items: center; gap: 0.5rem; }
.tv-archive-card__badge--healing   { background: #F0FAF0; color: #2E5A2E; border-bottom: 1px solid #D4EDD4; }
.tv-archive-card__badge--financial { background: #F0F4FA; color: #1C3A5A; border-bottom: 1px solid #D4DDEF; }
.tv-archive-card__badge--family    { background: #FFF0F0; color: #5A1C1C; border-bottom: 1px solid #EDD4D4; }
.tv-archive-card__badge--protection{ background: #F5F0FA; color: #3A1C5A; border-bottom: 1px solid #DDD4ED; }
.tv-archive-card__body { padding: 1.8rem 1.8rem 1.2rem; flex: 1; }
.tv-archive-card__title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--deep); line-height: 1.35; margin-bottom: 0.8rem; }
.tv-archive-card__excerpt { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-style: italic; line-height: 1.7; color: var(--muted); }
.tv-archive-card__footer { padding: 1rem 1.8rem; border-top: 1px solid var(--gold-pale); display: flex; align-items: center; justify-content: space-between; }
.tv-archive-card__author { display: flex; align-items: center; gap: 0.7rem; }
.tv-archive-card__av { width: 2rem; height: 2rem; border-radius: 50%; background: var(--deep); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 0.78rem; font-weight: 700; color: #fff; }
.tv-archive-card__info-name { font-family: 'Lato', sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--deep); }
.tv-archive-card__info-loc  { font-size: 0.8rem; font-weight: 300; color: var(--muted); }
.tv-archive-card__arrow { color: var(--gold); font-size: 1.1rem; transition: transform 0.2s; }
.tv-archive-card:hover .tv-archive-card__arrow { transform: translateX(4px); }

/* ================================================================
   CATEGORY TILES
================================================================ */
.tv-cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.tv-cat-tile { aspect-ratio: 1 / 1.1; position: relative; overflow: hidden; cursor: pointer; text-decoration: none; display: block; }
.tv-cat-tile__bg { position: absolute; inset: 0; transition: transform 0.5s ease; }
.tv-cat-tile:hover .tv-cat-tile__bg { transform: scale(1.08); }
.tv-cat-tile--healing    .tv-cat-tile__bg { background: linear-gradient(160deg, #173317, #0B1F0B); }
.tv-cat-tile--financial  .tv-cat-tile__bg { background: linear-gradient(160deg, #17273A, #0B1520); }
.tv-cat-tile--family     .tv-cat-tile__bg { background: linear-gradient(160deg, #3A1717, #200B0B); }
.tv-cat-tile--protection .tv-cat-tile__bg { background: linear-gradient(160deg, #27173A, #150B22); }
.tv-cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%); }
.tv-cat-tile__inner { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 1.8rem 1.6rem; }
.tv-cat-tile__emoji { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.tv-cat-tile__name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.tv-cat-tile__sub  { font-family: 'Lato', sans-serif; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.tv-cat-tile__bar  { position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--gold); transition: width 0.4s; z-index: 3; }
.tv-cat-tile:hover .tv-cat-tile__bar { width: 100%; }

/* ================================================================
   SINGLE TESTIMONY
================================================================ */
.tv-single-hero { min-height: 50vh; background: var(--deep); padding: calc(var(--nav-height) + 5rem) 2rem 5rem; position: relative; overflow: hidden; }
.tv-single-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 40%, rgba(201,148,58,0.12) 0%, transparent 70%); }
.tv-single-hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.tv-single-hero__cat { font-family: 'Lato', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.tv-single-hero__title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 1.5rem; }
.tv-single-hero__meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.tv-single-hero__author { display: flex; align-items: center; gap: 0.8rem; }
.tv-single-hero__av { width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; }
.tv-single-hero__author-name { font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.tv-single-hero__author-loc  { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.5); }
.tv-single-hero__date { font-family: 'Lato', sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); }

.tv-single-body { background: var(--warm-white); padding: 5rem 2rem; }
.tv-single-body__inner { max-width: 780px; margin: 0 auto; }
.tv-single-body .entry-content p { font-size: 1.15rem; }

.tv-single-share { background: var(--cream); padding: 2rem; margin-top: 3rem; text-align: center; border: 1px solid var(--gold-pale); }
.tv-single-share h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }
.tv-share-btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.tv-share-btn { font-family: 'Lato', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.6rem 1.2rem; border: 1px solid var(--gold-pale); background: var(--warm-white); color: var(--text); cursor: pointer; text-decoration: none; transition: all 0.22s; }
.tv-share-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ================================================================
   ARCHIVE / SEARCH
================================================================ */
.tv-archive-header { max-width: 1100px; margin: 0 auto 3rem; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.tv-search-bar { background: var(--deep); padding: 2rem 2rem; border-bottom: 1px solid rgba(201,148,58,0.18); }
.tv-search-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.tv-search-wrap { flex: 1; min-width: 260px; position: relative; }
.tv-search-wrap svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.tv-search-input {
  width: 100%; padding: 0.9rem 1.2rem 0.9rem 3rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(201,148,58,0.25);
  color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; outline: none;
  transition: border-color 0.25s;
}
.tv-search-input::placeholder { color: rgba(255,255,255,0.3); }
.tv-search-input:focus { border-color: var(--gold); }
.tv-filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tv-filter-tab {
  font-family: 'Lato', sans-serif; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; background: transparent;
  border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.55);
  cursor: pointer; transition: all 0.22s; text-decoration: none; display: inline-block;
}
.tv-filter-tab:hover { border-color: var(--gold-light); color: var(--gold-light); }
.tv-filter-tab.active, .tv-filter-tab.current-cat { background: var(--gold); border-color: var(--gold); color: #fff; }
.tv-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.tv-results-count { font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Pagination */
.tv-pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3.5rem; }
.tv-pagination .page-numbers {
  width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center;
  font-family: 'Lato', sans-serif; font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--gold-pale); color: var(--muted); text-decoration: none;
  transition: all 0.2s;
}
.tv-pagination .page-numbers:hover,
.tv-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ================================================================
   FORMS (Gravity Forms / WPForms override styles)
================================================================ */
.tv-form-wrap .gform_wrapper,
.tv-form-wrap .wpforms-container { font-family: 'Cormorant Garamond', serif; }

.tv-form-wrap .gfield_label,
.tv-form-wrap .wpforms-field-label {
  font-family: 'Lato', sans-serif !important; font-size: 0.7rem !important;
  font-weight: 700 !important; letter-spacing: 0.14em !important;
  text-transform: uppercase !important; color: var(--text) !important;
  margin-bottom: 0.45rem !important;
}
.tv-form-wrap input[type=text],
.tv-form-wrap input[type=email],
.tv-form-wrap input[type=tel],
.tv-form-wrap select,
.tv-form-wrap textarea {
  width: 100% !important; padding: 0.85rem 1rem !important;
  border: 1.5px solid var(--gold-pale) !important; background: var(--cream) !important;
  font-family: 'Cormorant Garamond', serif !important; font-size: 1.05rem !important;
  color: var(--text) !important; outline: none !important;
  border-radius: 0 !important;
  transition: border-color 0.25s, background 0.25s !important;
}
.tv-form-wrap input:focus,
.tv-form-wrap select:focus,
.tv-form-wrap textarea:focus { border-color: var(--gold) !important; background: #fff !important; }
.tv-form-wrap textarea { min-height: 160px !important; line-height: 1.7 !important; resize: vertical !important; }

.tv-form-wrap .gform_submit_button,
.tv-form-wrap .wpforms-submit,
.tv-form-wrap input[type=submit] {
  font-family: 'Lato', sans-serif !important; font-size: 0.82rem !important;
  font-weight: 700 !important; letter-spacing: 0.14em !important;
  text-transform: uppercase !important; padding: 1.1rem 3rem !important;
  background: var(--gold) !important; color: #fff !important;
  border: none !important; cursor: pointer !important; border-radius: 0 !important;
  transition: background 0.25s !important;
}
.tv-form-wrap .gform_submit_button:hover,
.tv-form-wrap .wpforms-submit:hover,
.tv-form-wrap input[type=submit]:hover { background: #b8832a !important; }

/* ================================================================
   WIDGETS & SIDEBAR
================================================================ */
.tv-widget { margin-bottom: 2.5rem; }
.tv-widget__title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--deep); margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--gold-pale); }
.tv-widget ul { list-style: none; }
.tv-widget ul li { padding: 0.5rem 0; border-bottom: 1px solid var(--gold-pale); font-size: 0.95rem; font-weight: 300; }
.tv-widget ul li a { color: var(--muted); text-decoration: none; transition: color 0.22s; }
.tv-widget ul li a:hover { color: var(--gold); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) {
  #masthead { padding: 0 1.5rem; }
  #primary-menu { display: none; }
  .hamburger { display: flex; }
  .nav-cta-btn { display: none; }
  .tv-testimony-grid { grid-template-columns: 1fr; }
  .tv-cat-grid { grid-template-columns: 1fr 1fr; }
  .tv-archive-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tv-section { padding: 4rem 1.2rem; }
  .tv-cat-grid { grid-template-columns: 1fr 1fr; }
  .tv-archive-grid { grid-template-columns: 1fr; }
  .tv-hero__stats { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
