/*
Theme Name: R2R Clean
Theme URI: https://planofloodrestoration.com
Author: Plano Flood Restoration
Description: Minimal classic theme for rank-to-rent local SEO sites. Header phone CTA, simple navigation, NAP footer, mobile sticky call bar.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: All rights reserved
Text Domain: r2r-clean
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a6bb5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ----- TOP UTILITY BAR ----- */
.r2r-utility {
  background: #1a3a5c;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 0;
}
.r2r-utility-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.r2r-utility a { color: #fff; }
.r2r-utility .r2r-hours { opacity: 0.85; }
.r2r-utility .r2r-cta-phone {
  background: #e8a020;
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.r2r-utility .r2r-cta-phone:hover { background: #c98a10; text-decoration: none; }

/* ----- HEADER ----- */
.r2r-header {
  background: #fff;
  border-bottom: 1px solid #e0e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.r2r-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.r2r-brand a {
  color: #1a3a5c;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.r2r-brand a:hover { text-decoration: none; }
.r2r-brand .r2r-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #5a6f82;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.r2r-nav { display: flex; align-items: center; gap: 4px; }
.r2r-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.r2r-nav li { position: relative; }
.r2r-nav a {
  color: #1a3a5c;
  font-weight: 600;
  padding: 10px 14px;
  display: block;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.r2r-nav a:hover { background: #f0f4f8; text-decoration: none; }
.r2r-nav .r2r-sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 50;
}
.r2r-nav li:hover > .r2r-sub,
.r2r-nav li:focus-within > .r2r-sub { display: flex; }
.r2r-nav .r2r-sub a { padding: 8px 12px; font-size: 0.92rem; }

.r2r-header-cta {
  background: #e8a020;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.r2r-header-cta:hover { background: #c98a10; text-decoration: none; }

.r2r-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #1a3a5c;
  color: #1a3a5c;
  padding: 8px 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .r2r-utility-inner { font-size: 0.82rem; }
  .r2r-utility .r2r-hours { display: none; }
  .r2r-header-inner { flex-wrap: wrap; }
  .r2r-nav { width: 100%; order: 3; display: none; }
  .r2r-nav.is-open { display: block; }
  .r2r-nav ul { flex-direction: column; gap: 2px; width: 100%; }
  .r2r-nav .r2r-sub { position: static; box-shadow: none; border: none; padding-left: 20px; }
  .r2r-nav li:hover > .r2r-sub { display: none; }
  .r2r-nav li.is-open > .r2r-sub { display: flex; }
  .r2r-menu-toggle { display: inline-flex; }
  .r2r-header-cta { font-size: 0.85rem; padding: 8px 14px; }
}

/* ----- MAIN ----- */
.r2r-main { background: #fff; }

/* ----- CONTENT (the .rtr-* classes from generated pages) ----- */
.entry-content > .rtr-root { margin-top: 0; }
.entry-title { display: none; }

/* ----- FOOTER ----- */
.r2r-footer {
  background: #0f2237;
  color: #cdd8e3;
  padding: 60px 0 24px;
  margin-top: 80px;
}
.r2r-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.r2r-footer h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.r2r-footer p, .r2r-footer li { font-size: 0.93rem; line-height: 1.7; color: #b8c7d6; }
.r2r-footer a { color: #7ab3d9; }
.r2r-footer a:hover { color: #fff; }
.r2r-footer ul { list-style: none; padding: 0; margin: 0; }
.r2r-footer ul li { margin-bottom: 6px; }
.r2r-footer-nap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.r2r-footer-nap .r2r-nap-line { display: flex; gap: 8px; align-items: flex-start; }
.r2r-footer-nap .r2r-nap-line .r2r-icon { width: 16px; flex-shrink: 0; opacity: 0.7; }
.r2r-footer-phone {
  display: inline-block;
  background: #e8a020;
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 8px;
  font-size: 1rem;
}
.r2r-footer-phone:hover { background: #c98a10; text-decoration: none; }
.r2r-footer-bottom {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 24px 20px 0;
  border-top: 1px solid #1f3a55;
  text-align: center;
  font-size: 0.85rem;
  color: #8da3b9;
}
.r2r-footer-bottom a { margin: 0 8px; }

/* ----- MOBILE STICKY CALL BAR ----- */
@media (max-width: 700px) {
  body { padding-bottom: 60px; }
  .r2r-mobile-call {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #e8a020;
    color: #fff;
    text-align: center;
    padding: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    z-index: 200;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }
  .r2r-mobile-call:hover { color: #fff; text-decoration: none; }
}
@media (min-width: 701px) { .r2r-mobile-call { display: none; } }

/* ----- POST CONTENT TWEAKS ----- */
.r2r-main .rtr-hero { margin: 0; }
.r2r-main .rtr-section:first-child { padding-top: 60px; }
.r2r-main p { margin-bottom: 16px; }
.r2r-main .entry-content { max-width: 100%; padding: 0; }
.r2r-main .entry-content > .rtr-root { width: 100%; }
