/*
 * RenoTennis Design System
 * Version: 2.1 - Clean GeneratePress compatible
 * File: assets/css/style.css
 */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  --rt-blue:        #1B3F8B;
  --rt-blue-dark:   #0d1a2e;
  --rt-blue-light:  #2d5fc4;
  --rt-gold:        #F5A623;
  --rt-gold-light:  #faeeda;
  --rt-white:       #ffffff;
  --rt-off-white:   #f8f8f6;
  --rt-border:      #f0f0f0;
  --rt-border-mid:  #e5e7eb;
  --rt-text-primary:   #1a1a1a;
  --rt-text-secondary: #6b7280;
  --rt-text-muted:     #9ca3af;
  --rt-text-hint:      #b0b7c3;
  --rt-font-display: 'Playfair Display', Georgia, serif;
  --rt-font-body:    'Inter', system-ui, sans-serif;
  --rt-font-label:   'Montserrat', sans-serif;
  --rt-text-xs:   11px;
  --rt-text-sm:   13px;
  --rt-text-base: 16px;
  --rt-text-lg:   18px;
  --rt-text-xl:   22px;
  --rt-text-2xl:  28px;
  --rt-text-3xl:  36px;
  --rt-text-4xl:  clamp(28px, 4vw, 48px);
  --rt-text-hero: clamp(42px, 7vw, 80px);
  --rt-space-xs:  8px;
  --rt-space-sm:  16px;
  --rt-space-md:  28px;
  --rt-space-lg:  48px;
  --rt-space-xl:  64px;
  --rt-container: 1280px;
  --rt-site-gutter:    5%;
  --rt-radius-sm: 6px;
  --rt-radius-md: 10px;
  --rt-radius-lg: 14px;
  --rt-radius-pill: 30px;
  --rt-shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --rt-shadow-md:  0 8px 24px rgba(27,63,139,.08);
  --rt-shadow-lg:  0 16px 40px rgba(27,63,139,.12);
  --rt-transition: all .25s ease;
  --rt-transition-slow: all .45s ease;
  --rt-header-height: 72px;
  --rt-gradient-accent: linear-gradient(90deg, var(--rt-blue) 0%, var(--rt-blue-light) 45%, var(--rt-gold) 100%);
  --rt-gradient-dark: linear-gradient(to bottom, rgba(10,15,25,.85) 0%, rgba(10,15,25,.05) 35%, rgba(10,15,25,.05) 60%, rgba(10,15,25,.9) 100%);
}

/* ============================================
   2. RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--rt-font-body); background: var(--rt-white); color: var(--rt-text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rt-blue); text-decoration: none; transition: var(--rt-transition); }
a:hover { color: var(--rt-gold); }
ul, ol { list-style: none; }

/* ============================================
   3. BLANK TEMPLATE RESET
   ============================================ */
body.rt-blank-page {
  margin: 0 !important;
  padding: 0 !important;
}

/* GeneratePress wrappers - hide on blank template */
body.rt-blank-page #page,
body.rt-blank-page .site-header,
body.rt-blank-page .site-footer,
body.rt-blank-page #content,
body.rt-blank-page .inside-site-header {
  display: none !important;
}

/* Our content takes full width */
body.rt-blank-page .rt-page-home,
body.rt-blank-page .rt-page-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rt-font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rt-blue);
}
h1 { font-size: var(--rt-text-hero); }
h2 { font-size: var(--rt-text-4xl); }
h3 { font-size: var(--rt-text-2xl); }
h4 { font-size: var(--rt-text-xl); }
h5 { font-size: var(--rt-text-lg); }
h6 { font-size: var(--rt-text-base); }
em { font-style: italic; color: var(--rt-gold); }
p { font-size: var(--rt-text-base); color: var(--rt-text-secondary); line-height: 1.8; margin-bottom: var(--rt-space-sm); }
p:last-child { margin-bottom: 0; }

.rt-kicker { font-family: var(--rt-font-label); font-size: var(--rt-text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rt-text-muted); margin-bottom: 8px; display: block; }
.rt-kicker--gold { color: var(--rt-gold); }
.rt-kicker--blue { color: var(--rt-blue); }
.rt-lead { font-size: var(--rt-text-lg); color: var(--rt-text-secondary); line-height: 1.85; }
.rt-meta { font-size: var(--rt-text-xs); color: var(--rt-text-hint); letter-spacing: .02em; }

/* ============================================
   5. HEADER
   ============================================ */
.rt-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--rt-header-height);
  padding: 0 var(--rt-site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--rt-transition-slow);
  background: transparent;
}

.rt-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 1px 20px rgba(0,0,0,.07);
  backdrop-filter: blur(12px);
}

.rt-header__logo { height: 52px; width: auto; transition: height var(--rt-transition-slow); }
.rt-header.is-scrolled .rt-header__logo { height: 42px; }
.rt-header__logo--white { display: block; }
.rt-header__logo--color { display: none; }
.rt-header.is-scrolled .rt-header__logo--white { display: none; }
.rt-header.is-scrolled .rt-header__logo--color { display: block; }

.rt-header--solid { background: rgba(255,255,255,.97) !important; box-shadow: 0 1px 20px rgba(0,0,0,.07) !important; }
.rt-header--solid .rt-header__logo--white { display: none !important; }
.rt-header--solid .rt-header__logo--color { display: block !important; }
.rt-header--solid .rt-header__logo { height: 44px !important; }

.rt-nav { display: flex; gap: var(--rt-space-md); align-items: center; }
.rt-nav__link { font-size: var(--rt-text-sm); font-weight: 500; color: rgba(255,255,255,.9); text-decoration: none; transition: var(--rt-transition); }
.rt-header.is-scrolled .rt-nav__link,
.rt-header--solid .rt-nav__link { color: var(--rt-text-secondary); }
.rt-nav__link:hover { color: var(--rt-gold) !important; text-decoration: none !important; }
.rt-nav__link--active { color: var(--rt-blue) !important; font-weight: 600; }

.rt-accent-bar { height: 3px; background: var(--rt-gradient-accent); }

/* Hamburger */
.rt-hdr-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.rt-hdr-menu span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,.9); border-radius: 2px; transition: background .3s; }
.rt-header.is-scrolled .rt-hdr-menu span,
.rt-header--solid .rt-hdr-menu span { background: var(--rt-text-primary); }

/* Mobile nav overlay */
.rt-mobile-nav { display: none; position: fixed; inset: 0; background: var(--rt-blue-dark); z-index: 99999; flex-direction: column; padding: 80px var(--rt-site-gutter) 40px; overflow-y: auto; }
.rt-mobile-nav.is-open { display: flex !important; }
.rt-mobile-nav a { font-family: var(--rt-font-label); font-size: 24px; font-weight: 700; color: var(--rt-white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: block; transition: color .2s; }
.rt-mobile-nav a:hover { color: var(--rt-gold); }
.rt-mobile-nav__close { position: absolute; top: 20px; right: var(--rt-site-gutter); background: none; border: none; color: var(--rt-white); font-size: 32px; cursor: pointer; }

/* ============================================
   6. BUTTONS
   ============================================ */
.rt-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--rt-font-label); font-size: var(--rt-text-sm); font-weight: 700; text-decoration: none !important; padding: 13px 26px; border-radius: var(--rt-radius-sm); transition: var(--rt-transition); cursor: pointer; border: none; white-space: nowrap; }
body .rt-btn--primary { background: var(--rt-blue); color: var(--rt-white); }
body .rt-btn--primary:hover { background: var(--rt-gold); color: var(--rt-white); transform: translateY(-2px); }
body .rt-btn--secondary { background: var(--rt-gold); color: var(--rt-white); }
body .rt-btn--secondary:hover { background: var(--rt-blue); color: var(--rt-white); transform: translateY(-2px); }
.rt-btn--link { background: none; padding: 0; color: var(--rt-gold) !important; font-size: var(--rt-text-xs); font-weight: 600; }
.rt-btn--link:hover { color: var(--rt-blue) !important; }
.rt-btn svg { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; }

/* ============================================
   7. CARDS
   ============================================ */
.rt-card { background: var(--rt-white); border: 0.5px solid var(--rt-border-mid); border-radius: var(--rt-radius-md); border-left: 3px solid var(--rt-blue); padding: 22px; transition: var(--rt-transition); cursor: pointer; }
.rt-card:hover { transform: translateY(-6px); box-shadow: var(--rt-shadow-lg); border-left-color: var(--rt-gold); }
.rt-card--gold { border-left-color: var(--rt-gold); }
.rt-card--dark { border-left-color: var(--rt-blue-dark); }
.rt-card__tag { font-family: var(--rt-font-label); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--rt-text-hint); margin-bottom: 9px; display: block; }
.rt-card__title { font-family: var(--rt-font-label); font-size: 14px; font-weight: 700; color: var(--rt-blue); line-height: 1.35; margin-bottom: 8px; }
.rt-card__desc { font-size: 12px; color: var(--rt-text-muted); line-height: 1.6; }
.rt-card__link { font-size: 11px; font-weight: 600; color: var(--rt-gold); margin-top: 12px; display: block; transition: var(--rt-transition); }
.rt-card__link:hover { color: var(--rt-blue); }

.rt-event-card { border-radius: var(--rt-radius-md); overflow: hidden; border: 1px solid var(--rt-border); transition: var(--rt-transition); cursor: pointer; }
.rt-event-card:hover { transform: translateY(-4px); box-shadow: var(--rt-shadow-md); }
.rt-event-card__header { background: var(--rt-blue); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.rt-event-card__day { font-family: var(--rt-font-label); font-size: 36px; font-weight: 700; color: var(--rt-gold); line-height: 1; }
.rt-event-card__month { font-size: 11px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; line-height: 1.6; }
.rt-event-card__body { padding: 18px 20px; background: var(--rt-white); }
.rt-event-card__type { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--rt-gold); margin-bottom: 6px; }
.rt-event-card__title { font-size: 14px; font-weight: 500; color: var(--rt-text-primary); margin-bottom: 5px; line-height: 1.4; }
.rt-event-card__loc { font-size: 11px; color: var(--rt-text-hint); }

/* ============================================
   8. SECTIONS & LAYOUT
   ============================================ */
.rt-section { padding: var(--rt-space-xl) var(--rt-site-gutter); }
.rt-section--alt { background: var(--rt-off-white); }
.rt-section--dark { background: var(--rt-blue-dark); }
.rt-grid-guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rt-grid-editorial { display: grid; grid-template-columns: 58% 42%; }
.rt-grid-trust { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rt-border); }
.rt-trust-item { padding: 32px; border-right: 1px solid var(--rt-border); }
.rt-trust-item:last-child { border-right: none; }
.rt-trust-num { font-family: var(--rt-font-label); font-size: 38px; font-weight: 700; color: var(--rt-blue); line-height: 1; }
.rt-trust-num--accent { color: var(--rt-gold); }
.rt-trust-label { font-size: 12px; color: var(--rt-text-muted); margin-top: 6px; line-height: 1.5; }
.rt-border-top { border-top: 1px solid var(--rt-border); }
.rt-border-bot { border-bottom: 1px solid var(--rt-border); }
.rt-border-gold { border-top: 3px solid var(--rt-gold); }

/* ============================================
   9. HERO
   ============================================ */
.rt-hero { position: relative; height: 70vh; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; }
.rt-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; will-change: transform; }
.rt-hero__overlay { position: absolute; inset: 0; background: var(--rt-gradient-dark); }
.rt-hero__body { position: relative; z-index: 2; padding: 0 var(--rt-site-gutter) 52px; width: 100%; }
.rt-hero__kicker { font-size: var(--rt-text-xs); letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.95); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: rgba(10,15,25,.6); backdrop-filter: blur(8px); padding: 7px 16px; border-radius: var(--rt-radius-pill); border: 1px solid rgba(255,255,255,.2); }
.rt-hero__h1 { font-family: var(--rt-font-display); font-size: var(--rt-text-hero); font-weight: 700; color: var(--rt-white); line-height: 1.05; margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.rt-hero__h1 em { font-style: italic; color: var(--rt-gold); }
.rt-hero__sub { font-size: clamp(14px,1.8vw,17px); color: rgba(255,255,255,.9); line-height: 1.75; max-width: 520px; margin-bottom: 32px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }

/* Intent pills */
.rt-intent-pills { display: flex; gap: 12px; flex-wrap: wrap; }
a.rt-intent-pill { display: inline-flex; align-items: center; gap: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 40px; padding: 11px 20px 11px 14px; cursor: pointer; transition: var(--rt-transition); text-decoration: none !important; color: var(--rt-white) !important; font-size: 13px; font-weight: 500; white-space: nowrap; backdrop-filter: blur(8px); }
a.rt-intent-pill::before { content: ''; display: inline-block; width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: var(--rt-gold); margin-right: 9px; flex-shrink: 0; }
a.rt-intent-pill:hover, a.rt-intent-pill:focus-visible { background: rgba(245,166,35,.18); border-color: rgba(245,166,35,.5); transform: translateY(-2px); color: var(--rt-white) !important; outline: none; }

/* Inner hero */
.rt-inner-hero { position: relative; height: 45vh; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; }
.rt-inner-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; }
.rt-inner-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,25,.88) 0%, rgba(10,15,25,.3) 60%, rgba(10,15,25,.5) 100%); }
.rt-inner-hero__body { position: relative; z-index: 2; padding: 0 var(--rt-site-gutter) 40px; width: 100%; }
.rt-inner-hero__breadcrumb { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.rt-inner-hero__breadcrumb a { color: rgba(255,255,255,.7) !important; text-decoration: none !important; }
.rt-inner-hero__breadcrumb a:hover { color: var(--rt-gold) !important; }
.rt-inner-hero__h1 { font-family: var(--rt-font-display); font-size: clamp(26px,4vw,42px); font-weight: 700; color: var(--rt-white); line-height: 1.2; margin-bottom: 10px; text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.rt-inner-hero__h1 em { font-style: italic; color: var(--rt-gold); }
.rt-inner-hero__meta { font-size: 11px; color: rgba(255,255,255,.55); }

/* ============================================
   10. PILLS & BADGES
   ============================================ */
.rt-badge { display: inline-block; background: var(--rt-blue); color: var(--rt-white); font-family: var(--rt-font-label); font-size: 10px; font-weight: 600; padding: 4px 11px; border-radius: 3px; letter-spacing: .09em; text-transform: uppercase; }
.rt-filter-pill { font-size: 12px; font-weight: 500; padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--rt-border-mid); background: var(--rt-white); color: var(--rt-text-secondary); cursor: pointer; transition: var(--rt-transition); white-space: nowrap; }
.rt-filter-pill:hover, .rt-filter-pill.is-active { background: var(--rt-blue); color: var(--rt-white); border-color: var(--rt-blue); }

/* ============================================
   11. ARTICLE LAYOUT
   ============================================ */
.rt-article-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 52px; max-width: 1160px; margin: 0 auto; padding: 56px var(--rt-site-gutter); }
.rt-article { min-width: 0; }
.rt-article h2 { font-family: var(--rt-font-display); font-size: clamp(20px,2.5vw,26px); font-weight: 700; color: var(--rt-blue); margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--rt-gold); }
.rt-article h2:first-of-type { margin-top: 0; }
.rt-article p { font-size: 15px; color: #4b5563; line-height: 1.85; margin-bottom: 16px; }
.rt-article a { color: var(--rt-blue) !important; text-decoration: underline !important; text-decoration-color: rgba(27,63,139,.25) !important; }
.rt-article a:hover { color: var(--rt-gold) !important; text-decoration-color: var(--rt-gold) !important; }
.rt-article__intro { font-size: 16px; color: #374151; line-height: 1.9; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--rt-border); }
.rt-article__list { list-style: none; margin: 16px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rt-article__list li { font-size: 15px; color: #4b5563; line-height: 1.75; padding-left: 20px; position: relative; }
.rt-article__list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--rt-gold); }

/* ============================================
   12. FAQ ACCORDION
   ============================================ */
.rt-faq { display: flex; flex-direction: column; margin-top: 16px; }
.rt-faq__item { border-bottom: 1px solid var(--rt-border); }
.rt-faq__item:last-child { border-bottom: none; }
.rt-faq__question { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-family: var(--rt-font-label); font-size: 14px; font-weight: 700; color: var(--rt-blue); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color .2s; }
.rt-faq__question:hover { color: var(--rt-gold); }
.rt-faq__question::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--rt-gold); flex-shrink: 0; transition: transform .3s; }
.rt-faq__question[aria-expanded="true"]::after { transform: rotate(45deg); }
.rt-faq__answer { font-size: 14px; color: var(--rt-text-secondary); line-height: 1.8; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.rt-faq__answer.open { max-height: 1500px; padding-bottom: 18px; }
.rt-faq__answer a { color: var(--rt-blue) !important; }

/* ============================================
   13. SIDEBAR
   ============================================ */
.rt-sidebar { display: flex; flex-direction: column; gap: 20px; }
.rt-sidebar__card { background: var(--rt-white); border: 0.5px solid var(--rt-border-mid); border-radius: var(--rt-radius-lg); padding: 20px; position: sticky; top: 80px; }
.rt-sidebar__card--blue { background: var(--rt-blue) !important; border-color: var(--rt-blue) !important; }
.rt-sidebar__card-title { font-family: var(--rt-font-label); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rt-text-muted); margin-bottom: 14px; }
.rt-sidebar__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rt-sidebar__links a { font-size: 13px; color: var(--rt-blue) !important; text-decoration: none !important; transition: color .2s; display: block; padding: 2px 0; }
.rt-sidebar__links a:hover { color: var(--rt-gold) !important; }
.rt-sidebar__card--blue .rt-sidebar__links a { color: rgba(255,255,255,.65) !important; }
.rt-sidebar__card--blue .rt-sidebar__links a:hover { color: var(--rt-gold) !important; }

/* ============================================
   14. FOOTER
   ============================================ */
.rt-footer { background: var(--rt-blue-dark); padding: var(--rt-space-xl) var(--rt-site-gutter) var(--rt-space-md); margin-top: 0; }
.rt-footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: var(--rt-space-lg); margin-bottom: var(--rt-space-lg); }
.rt-footer__logo { height: 80px; width: auto; max-width: 220px; margin-bottom: 16px; display: block; object-fit: contain; }
.rt-footer__about { font-size: 12px; color: rgba(255,255,255,.38); line-height: 1.85; max-width: 240px; }
.rt-footer__col-title { font-family: var(--rt-font-label); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 18px; display: block; }
.rt-footer__links li { margin-bottom: 10px; }
.rt-footer__links a { font-size: 13px; color: rgba(255,255,255,.48) !important; text-decoration: none !important; transition: var(--rt-transition); }
.rt-footer__links a:hover { color: var(--rt-gold) !important; }
.rt-footer__bottom { border-top: 1px solid rgba(255,255,255,.05); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.rt-footer__copy { font-size: 11px; color: rgba(255,255,255,.2); }
.rt-footer__partner { font-size: 11px; color: rgba(255,255,255,.2); }
.rt-footer__partner a { color: rgba(245,166,35,.45) !important; text-decoration: none !important; }
.rt-footer__partner a:hover { color: var(--rt-gold) !important; }

/* ============================================
   15. HANDOFF
   ============================================ */
.rt-handoff-inner { padding: var(--rt-space-xl) var(--rt-site-gutter); background: var(--rt-off-white); border-top: 3px solid var(--rt-gold); display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 0; }
.rt-handoff-inner__left { max-width: 580px; }
.rt-handoff-inner h2 { font-family: var(--rt-font-display); font-size: clamp(18px,2.5vw,24px); color: var(--rt-blue); margin: 12px 0; border: none !important; padding: 0 !important; }
.rt-handoff-inner p { font-size: 14px; color: var(--rt-text-secondary); line-height: 1.8; }

/* ============================================
   16. ANIMATIONS
   ============================================ */
.rt-fade-up { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.rt-fade-up.is-visible { opacity: 1; transform: none; }
.rt-fade-up.d1 { transition-delay: .1s; }
.rt-fade-up.d2 { transition-delay: .2s; }
.rt-fade-up.d3 { transition-delay: .3s; }
.rt-fade-up.d4 { transition-delay: .4s; }
.rt-fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rt-fade-in.visible { opacity: 1; transform: none; }
.rt-parallax { will-change: transform; }
[data-count-target] { display: inline-block; }

/* ============================================
   17. UTILITIES
   ============================================ */
.rt-hidden { display: none !important; }
.rt-text-blue { color: var(--rt-blue); }
.rt-text-gold { color: var(--rt-gold); }
.rt-bg-white { background: var(--rt-white); }
.rt-bg-off { background: var(--rt-off-white); }
.rt-bg-dark { background: var(--rt-blue-dark); }
.rt-bg-gold { background: var(--rt-gold); }

/* ============================================
   18. RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .rt-grid-trust { grid-template-columns: 1fr 1fr; }
  .rt-trust-item:nth-child(2) { border-right: none; }
  .rt-trust-item:nth-child(3) { border-top: 1px solid var(--rt-border); border-right: 1px solid var(--rt-border); }
  .rt-trust-item:nth-child(4) { border-top: 1px solid var(--rt-border); border-right: none; }
  .rt-grid-editorial { grid-template-columns: 1fr; }
  .rt-grid-guides { grid-template-columns: 1fr 1fr; }
  .rt-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rt-hero__h1 { font-size: clamp(36px,8vw,56px); }
  .rt-article-wrap { grid-template-columns: 1fr; gap: 0; padding: 36px var(--rt-site-gutter); }
  .rt-sidebar { display: none; }
  .rt-inner-hero { height: 40vh; min-height: 280px; }
  .rt-hdr-menu { display: flex !important; }
  .rt-nav { display: none; }
  .rt-handoff-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --rt-space-lg: 36px; --rt-space-xl: 48px; }
  .rt-grid-guides { grid-template-columns: 1fr; }
  .rt-intent-pills { flex-direction: column; align-items: flex-start; }
  a.rt-intent-pill { width: auto; }
  .rt-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .rt-footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rt-hero { height: 75vh; }
  h2 { font-size: clamp(22px,6vw,32px); }
  h3 { font-size: clamp(18px,5vw,24px); }
  .rt-inner-hero__h1 { font-size: clamp(22px,7vw,30px); }
}

/* ============================================
   GENERATEPRESS RESET & WHITE SPACE FIXES
   ============================================ */
body.rt-blank-page,
body.rt-blank-page html {
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix inferior: Pegar el footer al final de la pantalla */
.rt-page-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.rt-footer {
  margin-top: auto;
}

/* Fix superior: Eliminar márgenes fantasmas de Gutenberg */
body.rt-blank-page .entry-content,
body.rt-blank-page .wp-block-html,
body.rt-blank-page .wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Ocultar párrafos vacíos arriba de la página */
body.rt-blank-page p:empty {
  display: none !important;
}

/* Hide ALL GeneratePress structural elements */
body.rt-blank-page #page,
body.rt-blank-page #content,
body.rt-blank-page .site-header,
body.rt-blank-page .site-footer,
body.rt-blank-page .inside-site-header,
body.rt-blank-page .site-branding,
body.rt-blank-page .navigation-branding,
body.rt-blank-page #site-navigation,
body.rt-blank-page .main-navigation,
body.rt-blank-page .inside-navigation,
body.rt-blank-page .site-info,
body.rt-blank-page #colophon,
body.rt-blank-page .generate-back-to-top,
body.rt-blank-page #generate-back-to-top {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force content wrapper to full width */
body.rt-blank-page .site-content,
body.rt-blank-page #content,
body.rt-blank-page .content-area,
body.rt-blank-page .inside-article,
body.rt-blank-page .post-content,
body.rt-blank-page .entry-content,
body.rt-blank-page article {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove GP container padding */
body.rt-blank-page .grid-container,
body.rt-blank-page .container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}