/*
Theme Name: RoblesFlow Consultor
Theme URI: https://roblesflow.com
Author: RoblesFlow
Author URI: https://roblesflow.com
Description: Tema de landing page para consultores imobiliários RoblesFlow. Totalmente personalizável pelo Customizer (dados, fotos, testemunhos, WhatsApp) e ligado à captação automática de leads via WhatsApp com IA.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: roblesflow-consultor
*/

:root {
  --rf-primary: #c9a227;
  --rf-primary-hover: #a6841f;
  --rf-primary-rgb: 201, 162, 39;
  --rf-background: #ffffff;
  --rf-surface: #ffffff;
  --rf-border: #e2e8f0;
  --rf-muted: #64748b;
  --rf-text: #0f172a;
  --rf-whatsapp: #25d366;
  --rf-whatsapp-hover: #1ebe5b;
  --rf-radius-sm: 8px;
  --rf-radius-md: 14px;
  --rf-radius-lg: 22px;
  --rf-radius-xl: 32px;
  --rf-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --rf-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --rf-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --rf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body.rf-body {
  margin: 0;
  font-family: var(--rf-font-body);
  color: var(--rf-text);
  background: var(--rf-background);
  line-height: 1.55;
}

h1, h2, h3,
.rf-brand-name,
.rf-hero h1,
.rf-section-head h2,
.rf-about-text h2,
.rf-footer-brand {
  font-family: var(--rf-font-heading);
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.rf-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.rf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rf-border);
}

.rf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.rf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
}

.rf-brand-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rf-primary);
}

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--rf-radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rf-btn:hover {
  transform: translateY(-1px);
}

.rf-btn-primary {
  background: var(--rf-whatsapp);
  color: #fff;
  box-shadow: var(--rf-shadow-sm);
}

.rf-btn-primary:hover {
  background: var(--rf-whatsapp-hover);
}

.rf-btn-outline {
  background: transparent;
  color: var(--rf-primary);
  border: 1.5px solid var(--rf-primary);
}

.rf-btn-outline:hover {
  background: rgba(var(--rf-primary-rgb),0.06);
}

.rf-btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* Hero */
.rf-hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

/* Quando há foto do consultor, o hero passa a usar essa foto como fundo de
   página inteira (em vez de um cartão à parte), com um véu escuro em
   gradiente para o texto continuar sempre legível — o mesmo espírito visual
   do protótipo original do site. */
.rf-hero-photo-bg {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #fff;
}

.rf-hero-photo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 10, 0.92) 0%,
    rgba(8, 8, 10, 0.78) 32%,
    rgba(8, 8, 10, 0.42) 58%,
    rgba(8, 8, 10, 0.08) 85%
  );
  z-index: 0;
}

.rf-hero > .rf-container {
  position: relative;
  z-index: 1;
}

.rf-hero-content {
  max-width: 560px;
}

.rf-eyebrow {
  display: inline-block;
  background: rgba(var(--rf-primary-rgb),0.1);
  color: var(--rf-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.rf-hero-photo-bg .rf-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.rf-hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rf-hero-photo-bg h1 {
  color: #fff;
}

.rf-hero p.rf-lead {
  font-size: 18px;
  color: var(--rf-muted);
  margin: 0 0 28px;
  max-width: 480px;
}

.rf-hero-photo-bg p.rf-lead {
  color: rgba(255, 255, 255, 0.85);
}

.rf-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.rf-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.rf-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--rf-primary);
}

.rf-stat-label {
  font-size: 13px;
  color: var(--rf-muted);
}

.rf-hero-photo-bg .rf-stat-label {
  color: rgba(255, 255, 255, 0.75);
}

.rf-hero-badge {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--rf-radius-md);
  box-shadow: var(--rf-shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rf-text);
}

.rf-hero-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rf-whatsapp);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}

/* Section shared */
.rf-section {
  padding: 64px 0;
}

.rf-section-alt {
  background: var(--rf-surface);
  border-top: 1px solid var(--rf-border);
  border-bottom: 1px solid var(--rf-border);
}

.rf-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.rf-section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.rf-section-head p {
  color: var(--rf-muted);
  font-size: 16px;
  margin: 0;
}

/* Services */
.rf-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rf-service-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.rf-service-card:hover {
  box-shadow: var(--rf-shadow);
  transform: translateY(-3px);
}

.rf-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--rf-primary-rgb),0.1);
  color: var(--rf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}

.rf-service-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}

.rf-service-card p {
  font-size: 14px;
  color: var(--rf-muted);
  margin: 0;
}

/* About */
.rf-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.rf-about-photo {
  border-radius: var(--rf-radius-lg);
  box-shadow: var(--rf-shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.rf-about-text h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
}

.rf-about-text p {
  color: var(--rf-muted);
  font-size: 16px;
  margin: 0 0 16px;
}

.rf-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.rf-badge {
  background: rgba(var(--rf-primary-rgb),0.08);
  color: var(--rf-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

/* Steps */
.rf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rf-step {
  text-align: center;
}

.rf-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rf-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.rf-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 700;
}

.rf-step p {
  font-size: 14px;
  color: var(--rf-muted);
  margin: 0;
}

/* Testimonials */
.rf-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rf-testimonial-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 26px 22px;
}

.rf-stars {
  color: #f59e0b;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.rf-testimonial-text {
  font-size: 15px;
  color: var(--rf-text);
  margin: 0 0 16px;
}

.rf-testimonial-author {
  font-weight: 700;
  font-size: 14px;
}

/* Contact form */
.rf-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.rf-contact-info h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 16px;
}

.rf-contact-info p {
  color: var(--rf-muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.rf-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}

.rf-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--rf-primary-rgb),0.1);
  color: var(--rf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rf-form {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-lg);
  padding: 32px;
  box-shadow: var(--rf-shadow-sm);
}

.rf-form-row {
  margin-bottom: 16px;
}

.rf-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--rf-text);
}

.rf-form-row input,
.rf-form-row select,
.rf-form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rf-border);
  border-radius: var(--rf-radius-sm);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--rf-text);
}

.rf-form-row input:focus,
.rf-form-row select:focus,
.rf-form-row textarea:focus {
  outline: none;
  border-color: var(--rf-primary);
  box-shadow: 0 0 0 3px rgba(var(--rf-primary-rgb),0.12);
}

.rf-form-submit {
  width: 100%;
  background: var(--rf-primary);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--rf-radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rf-form-submit:hover {
  background: var(--rf-primary-hover);
}

.rf-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rf-form-msg {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--rf-radius-sm);
  display: none;
}

.rf-form-msg.rf-ok {
  display: block;
  background: rgba(37, 211, 102, 0.12);
  color: #0f7a3d;
}

.rf-form-msg.rf-error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

/* Floating WhatsApp button */
.rf-floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--rf-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  animation: rf-pulse 2.4s infinite;
}

@keyframes rf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
.rf-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 28px;
}

.rf-footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.rf-footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.rf-footer-social {
  display: flex;
  gap: 12px;
}

.rf-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.rf-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .rf-about-grid,
  .rf-contact-grid {
    grid-template-columns: 1fr;
  }
  .rf-hero-photo-bg {
    background-position: center 25%;
    min-height: 480px;
  }
  .rf-hero-photo-bg::before {
    background: rgba(8, 8, 10, 0.72);
  }
  .rf-hero-content {
    max-width: none;
  }
  .rf-hero-badge {
    left: 20px;
    right: 20px;
    bottom: 20px;
    justify-content: center;
  }
  .rf-services-grid,
  .rf-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rf-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .rf-services-grid,
  .rf-testimonials-grid {
    grid-template-columns: 1fr;
  }
  .rf-hero-ctas {
    flex-direction: column;
  }
  .rf-hero-ctas .rf-btn {
    width: 100%;
  }
}
