/* ===== RYDER PUBLISHING — SHARED STYLES ===== */
:root {
  --green: #0e8fd4;
  --green-light: #29b8f0;
  --green-dark: #0a6a9e;
  --felt: #1aaae0;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #f0faff;
  --dark: #0a3d5c;
  --mid: #1a6a9a;
  --text: #0a2a40;
  --muted: #3a7a9a;
  --white: #ffffff;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

a { color: inherit; }

img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-logo span { color: var(--white); }

.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); background: rgba(201,168,76,0.1); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--gold); display: block; transition: 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  padding: 20px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(201,168,76,0.1); }
.mobile-menu a.cta-mobile {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-green {
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
}
.btn-green:hover { background: var(--green-light); }

/* ===== SECTION SHARED ===== */
section { padding: 80px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 50px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--dark);
  background-image: radial-gradient(ellipse at 70% 50%, rgba(26,107,58,0.3) 0%, transparent 60%);
  padding: 70px 40px;
  text-align: center;
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: #9aab98; font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ===== TRUST BAR ===== */
.trust-bar { background: var(--green-dark); padding: 20px 40px; }
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8c8b0;
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item span:first-child { font-size: 1.1rem; }

/* ===== BOOK CARDS ===== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.book-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }

.book-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.book-cover.green-felt { background: linear-gradient(135deg, var(--green-dark), var(--felt), var(--green-light)); }
.book-cover.dark-pool { background: linear-gradient(135deg, #0d1520, #1a2535, #1a4060); }
.book-cover.gold-accent { background: linear-gradient(135deg, #2a1f08, #4a3510, #6b4e18); }
.book-cover.audio-cover { background: linear-gradient(135deg, #0d1520, #1a2535, #2a3a4a); }
.book-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

.book-cover-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.book-info { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.book-format { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.book-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.3; font-family: 'Playfair Display', serif; }
.book-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.book-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.book-price { font-size: 1.2rem; font-weight: 700; color: var(--green); }

/* ===== APP CARDS ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.app-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.app-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.app-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); line-height: 1.3; }
.app-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; flex: 1; }
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: auto;
}

/* ===== EMAIL SIGNUP ===== */
.email-section {
  background: linear-gradient(135deg, var(--green-dark), var(--felt));
  padding: 70px 40px;
  text-align: center;
}
.email-inner { max-width: 560px; margin: 0 auto; }
.email-inner h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.email-inner p { color: rgba(255,255,255,0.75); margin-bottom: 30px; font-size: 0.95rem; line-height: 1.7; }
.email-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.email-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.email-form button {
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.email-form button:hover { background: var(--gold-light); }
.email-fine { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 12px; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-text { font-size: 0.9rem; color: #444; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 0.85rem; color: var(--dark); }
.testimonial-loc { font-size: 0.78rem; color: var(--muted); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 40px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--gold); margin-bottom: 14px; }
.footer-brand p { color: #889986; font-size: 0.85rem; line-height: 1.7; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem;
  transition: background 0.2s;
  color: white;
}
.social-btn:hover { background: rgba(201,168,76,0.2); }
.footer-col h4 { color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.85rem; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #889986; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: #556052; font-size: 0.78rem; }
.footer-bottom a { color: #889986; text-decoration: none; font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 60px 20px; }
  .page-hero { padding: 50px 20px; }
  .trust-bar { padding: 16px 20px; }
  .trust-inner { gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .email-form { flex-direction: column; }
  footer { padding: 50px 20px 24px; }
}

@media (max-width: 500px) {
  .books-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
