/*
Theme Name: Rapid Roof Now Blog
Description: Standalone blog theme for rapidroofnow.com
Author: Rapid Roof Now
Version: 1.0.1
*/

:root {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --accent: #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

/* ── Top Bar ── */
.rrn-topbar {
  background: #0f172a;
  color: #fff;
  font-size: .8rem;
  padding: .4rem 1rem;
}
.rrn-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.rrn-badge {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 600;
  background: rgba(255,255,255,.1);
}
.rrn-topbar a { color: #fff; text-decoration: none; }
.rrn-topbar a:hover { text-decoration: underline; }
.rrn-phone {
  font-weight: 700;
  animation: ringblink 1.2s ease-in-out infinite;
}
@keyframes ringblink {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ── Header ── */
.rrn-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  z-index: 40;
}
.rrn-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rrn-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #1e293b;
}
.rrn-logo img { height: 36px; width: auto; }
.rrn-logo-text { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.rrn-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: .95rem;
}
.rrn-nav a { color: #1e293b; text-decoration: none; }
.rrn-nav a:hover { color: var(--brand); }
.rrn-nav-cta {
  padding: .45rem 1.1rem;
  border-radius: 9999px;
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(14,165,233,.3);
}
.rrn-nav-cta:hover { background: var(--brand-dark) !important; }
.rrn-mobile-cta {
  display: none;
  padding: .45rem .9rem;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
@media (max-width: 768px) {
  .rrn-nav { display: none; }
  .rrn-mobile-cta { display: inline-block; }
}

/* ── Blog Archive ── */
.rrn-archive-wrap {
  max-width: 1120px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
}
.rrn-archive-wrap h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #0f172a;
}
.rrn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.rrn-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(2,8,23,.07);
  overflow: hidden;
  transition: transform .2s;
}
.rrn-card:hover { transform: translateY(-3px); }
.rrn-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.rrn-card-body { padding: 1.25rem; }
.rrn-card-body h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: #0f172a; }
.rrn-card-body h2 a { text-decoration: none; color: inherit; }
.rrn-card-body h2 a:hover { color: var(--brand); }
.rrn-card-body p { font-size: .9rem; color: #64748b; margin-bottom: 1rem; line-height: 1.6; }
.rrn-read-more { font-size: .85rem; font-weight: 600; color: var(--brand); text-decoration: none; }

/* ── Single Post ── */
.rrn-post-wrap {
  max-width: 820px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
}
.rrn-post-wrap h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: #0f172a;
  margin-bottom: .75rem;
}
.rrn-post-meta { font-size: .85rem; color: #64748b; margin-bottom: 2rem; }
.rrn-post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .75rem; color: #0f172a; }
.rrn-post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: #0f172a; }
.rrn-post-body p { line-height: 1.8; margin-bottom: 1.25rem; color: #334155; }
.rrn-post-body ul, .rrn-post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: #334155; line-height: 1.8; }
.rrn-post-body a { color: var(--brand); }

.rrn-post-cta {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.rrn-post-cta h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.rrn-post-cta p { opacity: .9; margin-bottom: 1rem; }
.rrn-post-cta a {
  display: inline-block;
  padding: .65rem 1.5rem;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 700;
  border-radius: .75rem;
  text-decoration: none;
}
.rrn-back-link { margin-top: 2rem; }
.rrn-back-link a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ── Footer ── */
.rrn-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.25rem 1rem;
}
.rrn-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}
.rrn-footer h4 { color: #fff; font-weight: 600; margin-bottom: .75rem; font-size: .95rem; }
.rrn-footer ul { list-style: none; }
.rrn-footer ul li { margin-bottom: .5rem; }
.rrn-footer a { color: #94a3b8; text-decoration: none; font-size: .9rem; }
.rrn-footer a:hover { text-decoration: underline; }
.rrn-footer-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none !important; margin-bottom: .5rem; }
.rrn-footer-logo span { color: #fff; font-weight: 800; }
.rrn-footer-desc { font-size: .85rem; margin-bottom: .75rem; }
.rrn-disclaimer { font-size: .72rem; color: #475569; line-height: 1.6; }
.rrn-footer-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none !important;
}
.rrn-footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1rem;
  font-size: .75rem;
  color: #475569;
}

/* ── Mobile sticky bar ── */
.rrn-sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: .85rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}
@media (max-width: 768px) {
  .rrn-sticky-call { display: block; }
  .rrn-post-wrap h1 { font-size: 1.6rem; }
  body { padding-bottom: 56px; }
}

/* ── Pagination ── */
.rrn-pagination {
  text-align: center;
  margin: 2rem 0 3rem;
}
.rrn-pagination .page-numbers {
  display: inline-block;
  padding: .4rem .85rem;
  margin: .2rem;
  border-radius: .5rem;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2,8,23,.07);
}
.rrn-pagination .page-numbers.current {
  background: var(--brand);
  color: #fff;
}
