/*
Theme Name: Rent A Pro Custom
Theme URI: https://rentapro.co.za/
Author: Rent A Pro
Author URI: https://rentapro.co.za/
Description: A custom editable WordPress theme for Rent A Pro Job Management Software and CRM, featuring service pages, feature pages, demo and contact forms with Google reCAPTCHA support, custom colours, social links, animations and SEO-focused content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentapro
Tags: custom-logo, custom-colors, custom-menu, featured-images, blog, one-column, two-columns, responsive-layout
*/

:root {
  --rap-primary: #0b1f33;
  --rap-secondary: #1266b0;
  --rap-accent: #f4a12f;
  --rap-cyan: #12a6c8;
  --rap-light: #f4f8fb;
  --rap-white: #ffffff;
  --rap-ink: #1f2933;
  --rap-muted: #65758b;
  --rap-line: #dce7ef;
  --rap-radius: 22px;
  --rap-shadow: 0 18px 48px rgba(11, 31, 51, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--rap-ink);
  background: var(--rap-white);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rap-secondary); text-decoration: none; }
a:hover { color: var(--rap-accent); }

.rap-container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.rap-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rap-line);
}

.rap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.rap-logo img { width: 190px; max-height: 70px; object-fit: contain; }
.rap-site-title { font-size: 26px; font-weight: 800; color: var(--rap-primary); }

.rap-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.rap-nav li { position: relative; }
.rap-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--rap-primary);
  font-weight: 700;
  font-size: 14px;
}
.rap-nav a:hover, .rap-nav .current-menu-item > a { background: var(--rap-light); color: var(--rap-secondary); }
.rap-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--rap-white);
  border: 1px solid var(--rap-line);
  border-radius: 18px;
  box-shadow: var(--rap-shadow);
  padding: 10px;
}
.rap-nav li:hover > .sub-menu { display: block; }
.rap-nav .sub-menu a { border-radius: 12px; }

.rap-mobile-toggle { display: none; border: 0; background: var(--rap-primary); color: #fff; padding: 10px 13px; border-radius: 12px; font-weight: 800; }

.rap-btn, button.rap-btn, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 22px;
  background: linear-gradient(135deg, var(--rap-secondary), var(--rap-cyan));
  color: var(--rap-white);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(18,102,176,0.24);
}
.rap-btn:hover { color: var(--rap-white); transform: translateY(-1px); }
.rap-btn.alt { background: var(--rap-accent); color: var(--rap-primary); }

.rap-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(18,166,200,0.28), transparent 36%), linear-gradient(135deg, var(--rap-primary), #123d64 58%, var(--rap-secondary));
  color: var(--rap-white);
  padding: 96px 0 82px;
}
.rap-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: center; }
.rap-kicker { color: #cdeffa; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; font-weight: 900; margin: 0 0 16px; }
.rap-hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -0.055em; }
.rap-hero p { font-size: 19px; color: #edfaff; margin: 0 0 28px; max-width: 680px; }
.rap-hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 24px 68px rgba(0,0,0,.28);
}
.rap-hero-card img { border-radius: 22px; min-height: 360px; object-fit: cover; }

.rap-section { padding: 82px 0; }
.rap-section.light { background: var(--rap-light); }
.rap-section-title { max-width: 820px; margin: 0 auto 36px; text-align: center; }
.rap-section-title h2 { color: var(--rap-primary); font-size: clamp(32px, 4vw, 48px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.035em; }
.rap-section-title p { color: var(--rap-muted); font-size: 18px; margin: 0; }

.rap-grid { display: grid; gap: 24px; }
.rap-grid.three { grid-template-columns: repeat(3, 1fr); }
.rap-grid.two { grid-template-columns: repeat(2, 1fr); }
.rap-card {
  background: var(--rap-white);
  border: 1px solid var(--rap-line);
  border-radius: var(--rap-radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(11,31,51,.06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.rap-card:hover { transform: translateY(-7px); box-shadow: var(--rap-shadow); }
.rap-card h3 { margin: 0 0 10px; color: var(--rap-primary); font-size: 22px; }
.rap-card p { margin: 0 0 18px; color: #394c60; }
.rap-icon { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, var(--rap-secondary), var(--rap-cyan)); color: #fff; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }

.rap-image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.rap-image-text img { border-radius: 28px; box-shadow: var(--rap-shadow); min-height: 360px; object-fit: cover; }
.rap-copy h2 { font-size: clamp(30px,4vw,46px); line-height: 1.12; margin: 0 0 18px; color: var(--rap-primary); }
.rap-copy p { color: #334e68; margin: 0 0 18px; }
.rap-checks { list-style: none; padding: 0; margin: 22px 0; }
.rap-checks li { margin: 10px 0; padding-left: 32px; position: relative; font-weight: 700; }
.rap-checks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--rap-cyan); font-weight: 900; }

.rap-cta-band { background: linear-gradient(135deg, var(--rap-primary), var(--rap-secondary)); color: var(--rap-white); padding: 58px; border-radius: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.rap-cta-band h2 { margin: 0 0 10px; font-size: 34px; }
.rap-cta-band p { margin: 0; color: #e4f5fb; }

.rap-form {
  background: var(--rap-white);
  border: 1px solid var(--rap-line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--rap-shadow);
}
.rap-form label { display: block; font-weight: 800; color: var(--rap-primary); margin: 14px 0 6px; }
.rap-form input, .rap-form textarea, .rap-form select {
  width: 100%;
  border: 1px solid var(--rap-line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fbfdff;
}
.rap-form textarea { min-height: 140px; resize: vertical; }
.rap-alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 800; }
.rap-alert.success { background: #e9f9ef; color: #146c2e; }
.rap-alert.error { background: #fff1f1; color: #9b1c1c; }

.rap-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rap-post { border: 1px solid var(--rap-line); border-radius: 22px; overflow: hidden; background: #fff; }
.rap-post-content { padding: 22px; }
.rap-post h2 { font-size: 22px; margin: 0 0 10px; }

.rap-site-footer { background: var(--rap-primary); color: #dcebf3; padding: 54px 0 24px; }
.rap-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; margin-bottom: 34px; }
.rap-site-footer h3 { color: #fff; margin: 0 0 12px; }
.rap-site-footer a { color: #dcebf3; }
.rap-social a { display: inline-flex; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.11); align-items: center; justify-content: center; margin-right: 8px; font-weight: 900; }
.rap-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; color: #aecaDA; font-size: 14px; }

.rap-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.rap-reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .rap-mobile-toggle { display: block; }
  .rap-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rap-line); padding: 16px; }
  .rap-nav.open { display: block; }
  .rap-nav ul { display: block; }
  .rap-nav .sub-menu { position: static; display: block; box-shadow: none; border: none; padding-left: 18px; }
  .rap-hero-grid, .rap-image-text, .rap-grid.three, .rap-grid.two, .rap-footer-grid, .rap-posts, .rap-cta-band { grid-template-columns: 1fr; }
  .rap-hero { padding: 72px 0 58px; }
}
