/*
 * global.css — On The Road Again RV Child Theme
 * Shared styles across ALL custom pages.
 * Loaded on every page via functions.php.
 *
 * Keep this lean — only truly shared components go here.
 * Page-specific styles go in their own CSS file.
 */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Reference these in all page-specific CSS files.
   ============================================================ */
:root {
  --otra-gold:      #C47E1F;
  --otra-gold-lt:   #e09a38;
  --otra-purple:    #501C40;
  --otra-dark:      #2B2F34;
  --otra-darker:    #1e2226;
  --otra-mid:       #3a3f45;
  --otra-text-muted:#b0b8c0;
  --otra-white:     #ffffff;
  --otra-radius:    6px;
  --otra-max-width: 1100px;
  --otra-font:      'Open Sans', sans-serif;
}

/* ============================================================
   SHARED TYPOGRAPHY RESETS for custom page areas
   ============================================================ */
.otra-page {
  font-family: var(--otra-font);
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.otra-page h1,
.otra-page h2,
.otra-page h3,
.otra-page h4 {
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

.otra-page p { margin: 0 0 16px; }
.otra-page p:last-child { margin-bottom: 0; }
.otra-page a { color: var(--otra-gold); text-decoration: none; }
.otra-page a:hover { color: var(--otra-gold-lt); text-decoration: underline; }

/* ============================================================
   SHARED BUTTONS
   Use these classes on any page without re-declaring.
   ============================================================ */
.otra-btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: var(--otra-font);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--otra-radius);
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.otra-btn-gold {
  background: var(--otra-gold);
  color: #fff !important;
  border: 2px solid var(--otra-gold);
}
.otra-btn-gold:hover {
  background: var(--otra-gold-lt);
  border-color: var(--otra-gold-lt);
  color: #fff !important;
  text-decoration: none !important;
}

.otra-btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.65);
}
.otra-btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff !important;
  text-decoration: none !important;
}

.otra-btn-outline-gold {
  background: transparent;
  color: var(--otra-gold) !important;
  border: 2px solid var(--otra-gold);
}
.otra-btn-outline-gold:hover {
  background: var(--otra-gold);
  color: #fff !important;
  text-decoration: none !important;
}

/* ============================================================
   SHARED SECTION WRAPPERS
   ============================================================ */
.otra-section {
  padding: 64px 24px;
}

.otra-section-white  { background: #ffffff; }
.otra-section-light  { background: #f5f6f7; }
.otra-section-dark   { background: var(--otra-dark); }
.otra-section-darker { background: var(--otra-darker); }
.otra-section-purple { background: var(--otra-purple); }

.otra-wrap {
  max-width: var(--otra-max-width);
  margin: 0 auto;
}

/* ============================================================
   SHARED SECTION TITLE BLOCK
   ============================================================ */
.otra-section-title {
  text-align: center;
  margin-bottom: 48px;
}

.otra-section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--otra-dark);
  margin-bottom: 12px;
}
.otra-section-title h2.on-dark { color: #fff; }

.otra-underline {
  width: 60px;
  height: 3px;
  background: var(--otra-gold);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.otra-section-title p {
  color: #555;
  max-width: 660px;
  margin: 0 auto;
  font-size: 0.98rem;
}
.otra-section-title p.on-dark { color: rgba(255,255,255,0.75); }

/* ============================================================
   SHARED FOOTER BLOCK (3-col CTA strip)
   ============================================================ */
.otra-footer-blocks {
  background: var(--otra-darker);
  padding: 48px 24px;
  border-top: 2px solid var(--otra-gold);
}

.otra-blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--otra-max-width);
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 680px) { .otra-blocks-grid { grid-template-columns: 1fr; } }

.otra-block-item {
  padding: 28px 20px;
  border-radius: var(--otra-radius);
  background: var(--otra-mid);
}
.otra-block-item a {
  display: block;
  text-decoration: none !important;
}
.otra-block-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--otra-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.otra-block-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s;
}
.otra-block-item a:hover h3 { color: var(--otra-gold); }

.otra-block-icon {
  width: 44px;
  height: 44px;
  background: var(--otra-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.otra-block-icon svg { width: 22px; height: 22px; fill: var(--otra-gold); }

/* ============================================================
   RESPONSIVE UTILITY
   ============================================================ */
@media (max-width: 600px) {
  .otra-section { padding: 48px 16px; }
  .otra-btn { display: block; text-align: center; width: 100%; }
}
