
/*
Theme Name: Rise To Top
Theme URI: https://www.tonyakako.com.ng
Author: Tony Akako & Mr. Genius (ChatGPT)
Author URI: https://www.tonyakako.com.ng
Description: A clean, creative WordPress theme for selling a book with a modern blog. Includes a sales landing homepage, testimonials, author section, and a simple contact form (no plugin).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rise-to-top
*/

/* Reset & basics */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; color: #0f172a; background: #ffffff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rtt-royal); text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  --rtt-gold: #d4af37;
  --rtt-royal: #1e3a8a;
  --rtt-dark: #0f172a;
  --rtt-light: #f8fafc;
  --rtt-accent: #0ea5e9;
  --rtt-radius: 16px;
  --rtt-shadow: 0 10px 25px rgba(2,6,23,.08);
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; font-weight: 600; box-shadow: var(--rtt-shadow); }
.btn-primary { background: var(--rtt-royal); color: white; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { border: 2px solid var(--rtt-royal); color: var(--rtt-royal); }
.section { padding: 64px 0; }
.section.light { background: var(--rtt-light); }
.card { background: #fff; border-radius: var(--rtt-radius); padding: 24px; box-shadow: var(--rtt-shadow); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Header */
.site-header { position: sticky; top:0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-bottom: 1px solid #e5e7eb; }
.site-header .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--rtt-royal); letter-spacing: .2px; }
.site-header nav a { margin: 0 10px; font-weight: 600; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Hero */
.hero { padding: 80px 0 40px; }
.hero-inner { display:flex; align-items:center; gap:40px; }
.hero h1 { font-size: clamp(32px, 4vw, 56px); margin: 0 0 10px; line-height: 1.1; }
.hero p.subtitle { font-size: clamp(16px, 2vw, 22px); margin: 0 0 24px; color:#334155; }
.badge { display:inline-block; background: var(--rtt-gold); color:#111827; padding:6px 12px; border-radius:999px; font-weight:700; letter-spacing:.3px; }

/* Sections */
.section h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.muted { color:#475569; }
.quote { font-style: italic; border-left: 4px solid var(--rtt-gold); padding-left: 16px; color:#334155; }

/* Blog */
.post-card h3 { margin: 12px 0 8px; }
.post-meta { font-size: 14px; color:#6b7280; }

/* Footer */
.site-footer { background: #0b1022; color: #e5e7eb; padding: 36px 0; }
.site-footer a { color: #e5e7eb; opacity:.9; }
.footer-inner { display:grid; gap:20px; grid-template-columns: 1fr auto; align-items:center; }
.small { font-size: 14px; color:#94a3b8; }

/* Forms */
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 16px; }
label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display:block; }
form .row { display:grid; gap:14px; }
form .row-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.alert { padding: 12px 16px; border-radius: 12px; }
.alert.success { background: #ecfdf5; border:1px solid #34d399; color:#065f46; }
.alert.error { background: #fef2f2; border:1px solid #fca5a5; color:#7f1d1d; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align:center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align:center; }
}
