/*
Theme Name: Riverton Repairs
Theme URI: https://rivertonrepairs.com
Author: Riverton Repairs
Description: Custom WordPress theme for Riverton Repairs — a property repair & maintenance company. Four-page structure (Home, About, Services, Contact) with content and layout influenced by full-service property management brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: riverton
*/

/* ---------- Variables ---------- */
:root{
  --rr-orange: #C1560A;
  --rr-orange-bright: #E8690F;
  --rr-orange-dark: #9C4408;
  --rr-ink: #1B1D22;
  --rr-ink-soft: #5B5E66;
  --rr-bg: #FAF7F2;
  --rr-white: #FFFFFF;
  --rr-border: #E9E4DA;
  --rr-shadow: 0 14px 40px rgba(27,29,34,0.09);
  --rr-radius: 16px;
  --rr-max: 1180px;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--rr-ink);
  background: var(--rr-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-head); line-height:1.18; margin:0 0 .5em; font-weight:700; letter-spacing:-0.01em; }
p{ margin:0 0 1em; }
.container{ max-width: var(--rr-max); margin:0 auto; padding:0 24px; }
section{ padding: 96px 0; }
.section-tight{ padding: 64px 0; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px; color: var(--rr-orange); font-weight:700; letter-spacing:.12em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 16px; font-family: var(--font-body);
}
.eyebrow::before{ content:""; display:inline-block; width:28px; height:2px; background: var(--rr-orange); }
.section-head{ max-width: 700px; margin: 0 auto 56px; text-align:center; }
.section-head .eyebrow{ justify-content:center; }
.section-head h2{ font-size: 2.3rem; }
.section-head p{ color: var(--rr-ink-soft); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding: 14px 28px; border-radius: 999px; font-weight:600; font-family: var(--font-body);
  border: 2px solid transparent; cursor:pointer; font-size: .98rem; transition: all .2s ease;
}
.btn-primary{ background: var(--rr-orange); color:#fff; box-shadow: 0 8px 20px rgba(193,86,10,0.28); }
.btn-primary:hover{ background: var(--rr-orange-dark); box-shadow: 0 10px 26px rgba(193,86,10,0.36); transform: translateY(-1px); }
.btn-outline{ background:transparent; border-color: var(--rr-ink); color: var(--rr-ink); }
.btn-outline:hover{ background: var(--rr-ink); color:#fff; }
.btn-white{ background:#fff; color: var(--rr-orange); }
.btn-white:hover{ background: var(--rr-ink); color:#fff; }
.btn-block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 999; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--rr-border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; padding: 14px 0; gap: 24px; }
.site-logo img{ height: 52px; width:auto; }
.site-logo{ font-family: var(--font-head); font-weight:800; font-size:1.3rem; }
.main-nav{ display:flex; align-items:center; gap: 32px; }
.main-nav ul{ display:flex; gap: 28px; }
.main-nav a{ font-weight:600; font-size: .96rem; }
.main-nav a:hover{ color: var(--rr-orange); }
.header-cta{ display:flex; align-items:center; gap:16px; }
.header-phone{ font-weight:700; white-space:nowrap; }
.header-phone svg{ vertical-align:-3px; margin-right:6px; }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; padding: 6px; }
.menu-toggle span{ display:block; width:26px; height:3px; background: var(--rr-ink); margin:5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero{
  background: linear-gradient(135deg, #24262B 0%, #3A3D45 100%);
  color:#fff; padding: 100px 0; position:relative; overflow:hidden;
}
.hero::after{
  content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px;
  background: radial-gradient(circle, rgba(232,105,15,.35), transparent 70%);
}
.hero-inner{ position:relative; max-width: 680px; }
.hero h1{ font-size: 3rem; color:#fff; margin-bottom: 18px; }
.hero p{ font-size: 1.15rem; color: #D8D9DC; margin-bottom: 32px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:40px; margin-top:56px; flex-wrap:wrap; position:relative; }
.hero-stats div strong{ display:block; font-family: var(--font-head); font-size:1.8rem; color: var(--rr-orange); }
.hero-stats div span{ color:#C7C9CD; font-size:.9rem; }

/* ---------- Value props / 3-col ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card{ background:#fff; border:1px solid var(--rr-border); border-radius: var(--rr-radius); padding: 32px; text-align:left; box-shadow: var(--rr-shadow); }
.value-card .icon-wrap{ width:56px; height:56px; border-radius:14px; background: rgba(232,105,15,.12); display:flex; align-items:center; justify-content:center; color: var(--rr-orange); margin-bottom: 18px; }
.value-card h3{ font-size: 1.2rem; }
.value-card p{ color: var(--rr-ink-soft); margin:0; }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card{
  background:#fff; border-radius: var(--rr-radius); padding: 30px; border:1px solid var(--rr-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--rr-shadow); }
.service-card .icon-wrap{ width:52px; height:52px; border-radius:12px; background: var(--rr-ink); color: var(--rr-orange); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.service-card h3{ font-size: 1.15rem; margin-bottom:8px; }
.service-card p{ color: var(--rr-ink-soft); font-size:.96rem; margin:0; }
.services-cta{ text-align:center; margin-top: 44px; }

/* ---------- Guarantees band ---------- */
.guarantees{ background: var(--rr-ink); color:#fff; }
.guarantees .section-head p{ color:#C7C9CD; }
.guarantee-item{ text-align:center; padding: 0 12px; }
.guarantee-item .icon-wrap{
  width:64px; height:64px; border-radius:50%; background: rgba(232,105,15,.18); color: var(--rr-orange);
  display:flex; align-items:center; justify-content:center; margin: 0 auto 18px;
}
.guarantee-item h3{ color:#fff; font-size: 1.1rem; }
.guarantee-item p{ color:#B9BBC0; font-size:.94rem; margin:0; }

/* ---------- Stats ---------- */
.stats-band{ background: var(--rr-orange); color:#fff; }
.stats-grid{ display:grid; grid-template-columns: repeat(3,1fr); text-align:center; gap:24px; }
.stats-grid strong{ display:block; font-family: var(--font-head); font-size: 2.6rem; }
.stats-grid span{ font-size:.95rem; opacity:.9; }

/* ---------- Testimonials ---------- */
.testimonial-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:28px; }
.testimonial-card{ background:#fff; border-radius: var(--rr-radius); padding:30px; border:1px solid var(--rr-border); box-shadow: var(--rr-shadow); }
.testimonial-card .stars{ color: var(--rr-orange); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote{ color: var(--rr-ink); font-style: italic; }
.testimonial-card .author{ font-weight:700; margin-top: 14px; font-family: var(--font-head); font-size:.95rem; }

/* ---------- CTA band ---------- */
.cta-band{ background: var(--rr-ink); color:#fff; text-align:center; }
.cta-band h2{ color:#fff; font-size: 2rem; }
.cta-band p{ color:#C7C9CD; max-width:560px; margin:0 auto 28px; }

/* ---------- About page ---------- */
.about-hero{ background:#fff; border-bottom:1px solid var(--rr-border); }
.about-hero h1{ font-size: 2.6rem; }
.about-hero .eyebrow{ }
.about-content{ max-width: 780px; }
.about-content p{ color: var(--rr-ink-soft); font-size:1.05rem; }
.diff-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:32px; margin-top: 20px; }
.diff-item .num{ font-family: var(--font-head); font-size: 2.2rem; color: rgba(193,86,10,.3); font-weight:800; }
.diff-item h3{ font-size:1.1rem; margin-top:6px; }
.diff-item p{ color: var(--rr-ink-soft); margin:0; }

/* ---------- Riverton Way (5-principle) ---------- */
.riverton-way{ background: #fff; }
.way-grid{ display:grid; grid-template-columns: repeat(5,1fr); gap:24px; }
.way-item{ text-align:center; padding: 28px 16px; border-radius: var(--rr-radius); background: var(--rr-bg); border:1px solid var(--rr-border); }
.way-num{ font-family: var(--font-head); font-size:1.6rem; color: var(--rr-orange); font-weight:700; margin-bottom:10px; }
.way-item h3{ font-size:1.02rem; margin-bottom:8px; }
.way-item p{ color: var(--rr-ink-soft); font-size:.9rem; margin:0; }
@media (max-width: 960px){ .way-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .way-grid{ grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.page-hero{ background:#fff; padding: 64px 0 24px; border-bottom:1px solid var(--rr-border); text-align:center; }
.page-hero h1{ font-size: 2.6rem; }
.page-hero p{ max-width:640px; margin:0 auto; color: var(--rr-ink-soft); }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items:start; }
.contact-form{ background:#fff; border-radius: var(--rr-radius); padding: 36px; border:1px solid var(--rr-border); box-shadow: var(--rr-shadow); }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group{ margin-bottom:16px; }
.form-group label{ display:block; font-weight:600; margin-bottom:6px; font-size:.92rem; }
.form-group input, .form-group textarea{
  width:100%; padding: 13px 16px; border-radius:10px; border:1px solid var(--rr-border);
  font-family: var(--font-body); font-size: .98rem; background: var(--rr-bg);
}
.form-group textarea{ min-height: 140px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus{ outline:2px solid var(--rr-orange); background:#fff; }
.hp-field{ position:absolute; left:-9999px; }
.form-notice{ padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight:600; }
.form-notice.success{ background:#E8F6EC; color:#1E7A3B; }
.form-notice.error{ background:#FBEAEA; color:#B3261E; }

.contact-sidebar .info-card{
  background:#fff; border-radius: var(--rr-radius); border:1px solid var(--rr-border); padding: 28px; margin-bottom:22px;
}
.info-row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:18px; }
.info-row:last-child{ margin-bottom:0; }
.info-row .icon-wrap{ width:40px; height:40px; border-radius:10px; background: rgba(232,105,15,.12); color: var(--rr-orange); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-row strong{ display:block; font-family: var(--font-head); font-size:.95rem; }
.info-row span{ color: var(--rr-ink-soft); font-size:.92rem; }
.contact-map{ border-radius: var(--rr-radius); overflow:hidden; border:1px solid var(--rr-border); }
.contact-map iframe{ width:100%; height: 260px; border:0; display:block; }
.social-row{ display:flex; gap:10px; margin-top:16px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background: var(--rr-ink); color:#fff; display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background: var(--rr-orange); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--rr-ink); color:#C7C9CD; padding: 64px 0 24px; }
.footer-grid{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a:hover{ color: var(--rr-orange); }
.footer-logo img{ height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-about p{ color:#9EA1A7; font-size:.94rem; }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; color:#9EA1A7; }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .grid-3, .services-grid, .stats-grid, .testimonial-grid, .diff-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 2.3rem; }
}
@media (max-width: 720px){
  .main-nav{ display:none; }
  .menu-toggle{ display:block; }
  .header-phone span.phone-text{ display:none; }
  .grid-3, .services-grid, .stats-grid, .testimonial-grid, .diff-grid, .footer-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .hero{ padding: 64px 0; }
  section{ padding: 56px 0; }
  .site-header.nav-open .main-nav{
    display:flex; position:absolute; top:100%; left:0; right:0; background:#fff;
    flex-direction:column; padding:20px 24px; border-top:1px solid var(--rr-border); gap:16px;
  }
  .site-header.nav-open .main-nav ul{ flex-direction:column; gap:14px; }
}
