/*
Theme Name: GeneratePress Child - Royal Home Painters
Theme URI: https://royalhomepainterstoronto.ca
Description: Child theme for GeneratePress - Royal Home Painters Toronto
Author: Your Name
Author URI: https://royalhomepainterstoronto.ca
Template: generatepress
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: generatepress-child
*/

/* ==========================================================================
   Custom styles go below this line
   ========================================================================== */
/* ==========================================================================
   ROYAL HOME PAINTERS — SHARED STYLES (All Pages)
   For: GeneratePress Theme + GenerateBlocks Pro
   ========================================================================== */

/* ---------- CSS VARIABLES (DESIGN TOKENS) ---------- */
:root {
  /* Brand Colors */
  --rhp-navy: #1a2744;
  --rhp-navy-light: #243352;
  --rhp-navy-dark: #111c30;
  --rhp-gold: #c9a960;
  --rhp-gold-light: #d4b97a;
  --rhp-gold-dark: #b08f3f;
	  --rhp-gold-amir: #f19716;
  --rhp-cream: #f8f6f1;
  --rhp-cream-dark: #ede9e0;
  --rhp-white: #ffffff;
  --rhp-off-white: #fcfbf9;

  /* Text Colors */
  --rhp-text-primary: #1a1a1a;
  --rhp-text-secondary: #555555;
  --rhp-text-light: #888888;

  /* Typography */
  --rhp-heading: 'Playfair Display', Georgia, serif;
  --rhp-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Shadows */
  --rhp-shadow-sm: 0 2px 8px rgba(26, 39, 68, 0.06);
  --rhp-shadow-md: 0 8px 30px rgba(26, 39, 68, 0.1);
  --rhp-shadow-lg: 0 20px 60px rgba(26, 39, 68, 0.12);

  /* Google Brand */
  --rhp-google-blue: #4285f4;
  --rhp-google-star: #fbbc04;
}


/* ---------- GLOBAL RESETS FOR RHP SECTIONS ---------- */
.rhp-section {
  box-sizing: border-box;
}
.rhp-section *,
.rhp-section *::before,
.rhp-section *::after {
  box-sizing: border-box;
}
.rhp-section img {
  max-width: 100%;
  height: auto;
  display: block;
}
.rhp-section a {
  text-decoration: none;
  color: inherit;
}

/* Container override inside RHP sections */
.rhp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- SHARED LABEL / TITLE CLASSES ---------- */
.rhp-label {
  font-family: var(--rhp-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--rhp-gold);
  margin-bottom: 12px;
}
.rhp-title {
  font-family: var(--rhp-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--rhp-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.rhp-subtitle {
  font-family: var(--rhp-body);
  font-size: 16px;
  color: var(--rhp-text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ---------- SHARED BUTTONS ---------- */
.rhp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--rhp-gold);
  color: var(--rhp-navy);
  font-family: var(--rhp-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  text-decoration: none;
}
.rhp-btn-primary:hover {
  background: var(--rhp-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 96, 0.3);
  color: var(--rhp-navy);
}
.rhp-btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--rhp-navy);
  color: var(--rhp-white);
  font-family: var(--rhp-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.rhp-btn-navy:hover {
  background: var(--rhp-navy-light);
  transform: translateY(-2px);
  color: var(--rhp-white);
}


/* ==========================================================================
   SECTION 0: TOP BAR
   Location: GeneratePress Elements - Header Element (before main nav)
   ========================================================================== */
.rhp-topbar {
  background: var(--rhp-navy-dark);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--rhp-body);
}
.rhp-topbar .rhp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rhp-topbar a {
  color: var(--rhp-gold-light);
  font-weight: 500;
}
.rhp-topbar a:hover {
  color: var(--rhp-gold);
}
.rhp-topbar-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.rhp-yrs-badge {
  background: var(--rhp-navy);
  color: var(--rhp-gold);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}


/* ==========================================================================
   SHARED: HERO FORM (used on Homepage + Service Pages)
   ========================================================================== */
.rhp-hero-form {
  background: var(--rhp-white);
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.rhp-hero-form h3 {
  font-family: var(--rhp-heading);
  font-size: 20px;
  color: var(--rhp-navy);
  margin: 0 0 4px 0;
  text-align: center;
}
.rhp-hero-form .rhp-form-sub {
  font-size: 13px;
  color: var(--rhp-text-light);
  text-align: center;
  margin: 0 0 20px 0;
  font-family: var(--rhp-body);
}
.rhp-hero-form .rhp-form-group {
  margin-bottom: 14px;
}
.rhp-hero-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--rhp-text-secondary);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  font-family: var(--rhp-body);
}
.rhp-hero-form input,
.rhp-hero-form select,
.rhp-hero-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0ddd5;
  border-radius: 4px;
  font-family: var(--rhp-body);
  font-size: 14px;
  background: var(--rhp-off-white);
  transition: border-color 0.2s ease;
  outline: none;
}
.rhp-hero-form input:focus,
.rhp-hero-form select:focus,
.rhp-hero-form textarea:focus {
  border-color: var(--rhp-gold);
}
.rhp-hero-form textarea {
  height: 60px;
  resize: none;
}
.rhp-hero-form .rhp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rhp-hero-form .rhp-btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--rhp-gold);
  color: var(--rhp-navy);
  font-family: var(--rhp-body);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.rhp-hero-form .rhp-btn-submit:hover {
  background: var(--rhp-gold-dark);
}
.rhp-hero-form .rhp-form-trust {
  font-size: 11px;
  color: var(--rhp-text-light);
  text-align: center;
  margin-top: 12px;
  font-family: var(--rhp-body);
}


/* ==========================================================================
   SHARED: REVIEW BASE STYLES (reused by Service Pages)
   ========================================================================== */
.rhp-review-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rhp-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rhp-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rhp-gold);
  font-family: var(--rhp-heading);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.rhp-review-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rhp-text-primary);
  font-family: var(--rhp-body);
}
.rhp-review-date {
  font-size: 11px;
  color: var(--rhp-text-light);
  font-family: var(--rhp-body);
}
.rhp-review-stars {
  color: var(--rhp-google-star);
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.rhp-review-text {
  font-size: 14px;
  color: var(--rhp-text-secondary);
  line-height: 1.7;
  font-family: var(--rhp-body);
}
.rhp-review-google-icon {
  margin-left: auto;
  font-size: 16px;
  font-weight: 800;
}


/* ==========================================================================
   SHARED: FAQ (reused by Service Pages)
   ========================================================================== */
.rhp-faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.rhp-faq-item {
  border: 1px solid #f0ede6;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.rhp-faq-item:hover {
  border-color: var(--rhp-gold-light);
}
.rhp-faq-q {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--rhp-navy);
  user-select: none;
  font-family: var(--rhp-body);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.rhp-faq-q span {
  font-size: 20px;
  color: var(--rhp-gold);
  transition: transform 0.3s ease;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
}
.rhp-faq-a {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--rhp-text-secondary);
  line-height: 1.7;
  display: none;
  font-family: var(--rhp-body);
}
.rhp-faq-item.open .rhp-faq-a {
  display: block;
}
.rhp-faq-item.open .rhp-faq-q span {
  transform: rotate(45deg);
}
.rhp-faq-item.open {
  border-color: var(--rhp-gold);
}


/* ==========================================================================
   SHARED: BOTTOM CTA
   ========================================================================== */
.rhp-bottom-cta {
  padding: 80px 0;
  background: var(--rhp-navy);
  position: relative;
  text-align: center;
  overflow: hidden;
}
.rhp-bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rhp-navy-dark) 0%, var(--rhp-navy) 60%, #1e3a5f 100%);
}
.rhp-bottom-cta .rhp-container {
  position: relative;
  z-index: 1;
}
.rhp-bottom-cta .rhp-label {
  color: var(--rhp-gold);
}
.rhp-bottom-cta h2 {
  font-family: var(--rhp-heading);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--rhp-white);
  font-weight: 600;
  margin: 0 0 14px 0;
}
.rhp-bottom-cta h2 em {
  font-style: italic;
  color: var(--rhp-gold);
}
.rhp-bottom-cta > .rhp-container > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 auto 28px;
  max-width: 480px;
  line-height: 1.7;
  font-family: var(--rhp-body);
}
.rhp-bottom-cta-phone {
  font-family: var(--rhp-heading);
  font-size: 26px;
  color: var(--rhp-gold);
  font-weight: 600;
  margin-top: 20px;
}
.rhp-bottom-cta-phone a {
  color: var(--rhp-gold);
}
.rhp-bottom-cta-phone a:hover {
  color: var(--rhp-gold-light);
}
.rhp-bottom-cta-reassure {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
  font-family: var(--rhp-body);
}


/* ==========================================================================
   SHARED: FOOTER
   ========================================================================== */
.rhp-footer {
  background: var(--rhp-navy-dark);
  padding: 52px 0 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--rhp-body);
}
.rhp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.rhp-footer h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rhp-gold);
  margin: 0 0 14px 0;
}
.rhp-footer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 10px 0;
}
.rhp-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rhp-footer li {
  margin-bottom: 6px;
}
.rhp-footer li a {
  font-size: 13px;
  transition: color 0.2s ease;
}
.rhp-footer li a:hover {
  color: var(--rhp-gold);
}
.rhp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.rhp-footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--rhp-navy);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rhp-gold);
  font-size: 22px;
  flex-shrink: 0;
}
.rhp-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rhp-footer-logo-text {
  font-family: var(--rhp-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--rhp-white);
  line-height: 1.1;
}
.rhp-footer-logo-text span {
  display: block;
  font-family: var(--rhp-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}


/* ==========================================================================
   STICKY MOBILE CTA
   ========================================================================== */
.rhp-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--rhp-navy);
  padding: 10px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  gap: 10px;
}
.rhp-mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--rhp-body);
  text-decoration: none;
}
.rhp-mobile-cta .mc-phone {
  background: var(--rhp-white);
  color: var(--rhp-navy);
}
.rhp-mobile-cta .mc-est {
  background: var(--rhp-gold);
  color: var(--rhp-navy);
}


/* ==========================================================================
   GENERATEPRESS OVERRIDES (All Pages)
   ========================================================================== */
.phrasing_breadcrumb, .breadcrumbs, .entry-meta { display: none; }
/* Hide the default GeneratePress copyright/footer bar */
.site-info {
  display: none !important;
}

/* Hide the breadcrumb "Home" link */
.phrasing_breadcrumb,
.breadcrumbs,
.entry-meta,
#breadcrumbs,
.breadcrumb,
span.breadcrumb,
.inside-header .breadcrumb-navxt,
nav.breadcrumb {
  display: none !important;
}

/* Make the header navigation sticky and match mockup */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Reduce logo size to match mockup */
.site-header .header-image img,
.site-header .custom-logo {
  max-height: 44px !important;
  width: auto !important;
}

/* Hide the page title on homepage */
.page-id-8677 .entry-header,
.home .entry-header {
  display: none !important;
}
/* Style the Get A Quote nav item as a button */
.main-navigation li:last-child a {
  background: var(--rhp-gold) !important;
  color: var(--rhp-navy) !important;
  padding: 10px 18px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
.main-navigation li:last-child a:hover {
  background: var(--rhp-gold-dark) !important;
}

/* Style the phone number nav item */
.main-navigation li:nth-last-child(2) a {
  font-weight: 700 !important;
  color: var(--rhp-navy) !important;
  font-size: 15px !important;
}

/* Navigation text styling */
.main-navigation a {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--rhp-text-secondary) !important;
  font-family: var(--rhp-body) !important;
}
.main-navigation a:hover {
  color: var(--rhp-navy) !important;
}

/* Remove tagline under site title */
.site-description {
  display: none !important;
}

/* ===== NAVY BUTTON FIX ===== */
.rhp-btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--rhp-navy);
  color: var(--rhp-white) !important;
  font-family: var(--rhp-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none !important;
}
.rhp-btn-navy:hover {
  background: var(--rhp-navy-light);
  color: var(--rhp-white) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}
.rhp-founder-bar {
  padding: 32px 0;
  background: var(--rhp-cream);
  border-top: 1px solid #e8e3d8;
  border-bottom: 1px solid #e8e3d8;
}
/* ===== READABILITY IMPROVEMENTS (Light sections only) ===== */
:root {
  --rhp-text-secondary: #3a3a3a;
  --rhp-text-light: #666666;
}

/* Only target LIGHT-background sections */
.rhp-aio-intro p,
.rhp-owner-content p,
.rhp-why-card p,
.rhp-review-text,
.rhp-faq-a,
.rhp-services .rhp-sc-body p,
.rhp-process-step p,
.rhp-trust-bar p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #3a3a3a !important;
}

.rhp-aio-intro p {
  font-size: 17px !important;
  color: #333333 !important;
}

/* Bottom CTA section */
.rhp-bottom-cta p {
  color: rgba(255,255,255,0.55) !important;
  font-size: 16px !important;
}

.rhp-bottom-cta h2 {
  color: var(--rhp-white) !important;
}

.rhp-bottom-cta .rhp-label {
  color: var(--rhp-gold) !important;
}

.rhp-bottom-cta .rhp-bottom-cta-phone a {
  color: var(--rhp-gold) !important;
}

.rhp-bottom-cta .rhp-bottom-cta-reassure {
  color: rgba(255,255,255,0.35) !important;
}

/* Footer trust bar */
.rhp-footer-trust p,
.rhp-footer-trust span {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== BOTTOM CTA TEXT FIX ===== */
.rhp-bottom-cta p,
.rhp-bottom-cta .rhp-bottom-cta-reassure,
.rhp-bottom-cta div {
  color: rgba(255,255,255,0.55) !important;
}

.rhp-bottom-cta h2 {
  color: #ffffff !important;
}

.rhp-bottom-cta h2 em {
  color: var(--rhp-gold) !important;
}

.rhp-bottom-cta .rhp-label {
  color: var(--rhp-gold) !important;
}

.rhp-bottom-cta .rhp-bottom-cta-phone,
.rhp-bottom-cta .rhp-bottom-cta-phone a {
  color: var(--rhp-gold) !important;
}

.rhp-bottom-cta .rhp-bottom-cta-reassure {
  color: rgba(255,255,255,0.35) !important;
}


/* ==========================================================================
   SHARED RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .rhp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rhp-mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 60px;
  }
  .rhp-topbar-badges {
    display: none;
  }
}

@media (max-width: 480px) {
  .rhp-footer-grid {
    grid-template-columns: 1fr;
  }
}