/* ============================================
   Rapid Home Warranty - Main Stylesheet
   Brand Colors:
   - Navy: #052a52
   - Dark Navy: #031a35
   - Orange: #ff6b35
   - Orange Hover: #e85a25
   - Light Gray BG: #f4f6f9
   - Text Dark: #1a1a2e
   - Text Gray: #555555
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

section, .top-bar, .header, .footer, .cta-banner, .sticky-cta {
  max-width: 100vw;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: #ff6b35;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
  background: #e85a25;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}
.btn-secondary:hover {
  background: #ffffff;
  color: #052a52;
}

.btn-outline {
  background: transparent;
  color: #052a52;
  border: 2px solid #052a52;
}
.btn-outline:hover {
  background: #052a52;
  color: #ffffff;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Top Bar --- */
.top-bar {
  background: #031a35;
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a {
  color: #ffffff;
  transition: color 0.2s;
}
.top-bar a:hover { color: #ff6b35; }
.top-bar-left {
  display: flex;
  gap: 25px;
  align-items: center;
}
.top-bar-left svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

/* --- Header / Navigation --- */
.header {
  background: #ffffff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 48px;
  height: 48px;
  background: #052a52;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 30px; height: 30px; }
.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #052a52;
  line-height: 1.1;
}
.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ff6b35;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 16px;
  color: #1a1a2e;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active {
  color: #ff6b35;
  background: rgba(255, 107, 53, 0.06);
}
.nav .btn-primary {
  margin-left: 8px;
  padding: 10px 24px;
  color: #ffffff;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #052a52;
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Logo Image --- */
.logo-img {
  height: 64px;
  width: auto;
}

/* --- As Seen On Slider --- */
.seen-on {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}
.seen-on-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #bbb;
  margin-bottom: 20px !important;
}
.seen-on-track {
  overflow: hidden;
  position: relative;
}
.seen-on-track::before,
.seen-on-track::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.seen-on-track::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}
.seen-on-track::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}
.seen-on-logos {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-logos 25s linear infinite;
  width: max-content;
}
.seen-on-logo {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.seen-on-logo:hover {
  opacity: 0.8;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #052a52 0%, #0a3d6e 100%);
  color: #ffffff;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url('') center/cover no-repeat;
  opacity: 0.15;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  margin-bottom: 20px;
  font-size: 2.8rem;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Trust Strip --- */
.trust-strip {
  background: #ffffff;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.trust-item h3 {
  font-size: 2.2rem;
  color: #052a52;
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 0.85rem;
  color: #ff6b35;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}
.section-light {
  background: #f4f6f9;
}
.section-dark {
  background: #052a52;
  color: #ffffff;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header .badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}
.section-dark .section-header .badge {
  background: rgba(255, 107, 53, 0.2);
}
.section-header h2 {
  margin-bottom: 15px;
}
.section-header p {
  color: #555;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}
.section-dark .section-header p {
  color: rgba(255,255,255,0.75);
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 35px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}
.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; color: #ffffff; }
.card h3 { margin-bottom: 12px; color: #052a52; }
.card p { color: #555; font-size: 0.95rem; margin: 0; }

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
}
.step {
  position: relative;
  padding: 0 15px;
}
.step-number {
  width: 64px;
  height: 64px;
  background: #ff6b35;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.step h3 { margin-bottom: 10px; color: #052a52; }
.step p { color: #555; font-size: 0.95rem; }

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}
.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.pricing-card.featured {
  background: #052a52;
  color: #ffffff;
  border-color: #ff6b35;
  transform: scale(1.05);
  z-index: 1;
}
.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b35;
  color: #ffffff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.pricing-card.featured h3 { color: #ffffff; }
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: #052a52;
  margin: 15px 0 5px;
}
.pricing-card.featured .pricing-price { color: #ff6b35; }
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
}
.pricing-card.featured .pricing-price span { color: rgba(255,255,255,0.6); }
.pricing-features {
  text-align: left;
  margin: 25px 0;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: #ff6b35;
  flex-shrink: 0;
  margin-top: 3px;
}
.pricing-card .btn { width: 100%; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonial {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.testimonial-stars {
  color: #ff6b35;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.testimonial p {
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f6f9;
}
.testimonial-name {
  font-weight: 700;
  color: #052a52;
  font-size: 0.95rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: #999;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat h3 {
  font-size: 2.5rem;
  color: #ff6b35;
  margin-bottom: 5px;
}
.stat p {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin: 0;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-image img {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* --- Contact Info Cards --- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.contact-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff6b35, #ff8f5e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}
.contact-card-icon svg { width: 24px; height: 24px; color: #ffffff; }
.contact-card h4 { margin-bottom: 5px; color: #052a52; }
.contact-card p { color: #555; margin: 0; font-size: 0.95rem; }
.contact-card a { color: #ff6b35; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* --- Contact Form --- */
.contact-form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1a1a2e;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #ffffff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.faq-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}
.faq-item h4 {
  color: #052a52;
  margin-bottom: 8px;
}
.faq-item p {
  color: #555;
  font-size: 0.95rem;
  margin: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #052a52 0%, #0a3d6e 100%);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  margin-bottom: 15px;
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: #031a35;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 15px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  font-size: 0.95rem;
}
.footer-links a:hover { color: #ff6b35; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #ff6b35;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Value Props --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card {
  text-align: center;
  padding: 40px 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}
.value-card .card-icon { margin: 0 auto 20px; }
.value-card h3 { margin-bottom: 10px; color: #052a52; }
.value-card p { color: #555; font-size: 0.95rem; margin: 0; }

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .hero .container { gap: 40px; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-card.featured:hover { transform: translateY(-5px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .section { padding: 50px 0; }

  .top-bar .container { flex-direction: column; gap: 8px; }
  .top-bar-right { display: none; }

  .mobile-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 5px;
  }
  .nav.active { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; }
  .nav .btn-primary { margin-left: 0; }
  .header .container { position: relative; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; }
  .hero-image img { height: 250px; }

  .trust-strip .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cards-grid, .steps-grid, .pricing-grid,
  .testimonials-grid, .values-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col-image img { height: 280px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-form-wrapper { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .container { padding: 0 15px; }
  .trust-strip .container { grid-template-columns: 1fr; }
  .logo-img { height: 45px; }
  .hero { padding: 50px 0 60px; }
  .btn-large { padding: 14px 28px; font-size: 1rem; }
}

/* --- Nav CTA Button --- */
.nav-cta {
  margin-left: 8px;
  padding: 10px 22px !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
}


/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 70px; }
}

/* --- Platinum Spotlight Grid --- */
.rhw-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.rhw-spotlight-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 768px) {
  .rhw-spotlight-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .rhw-spotlight-features {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
@media (max-width: 400px) {
  .rhw-spotlight-features {
    grid-template-columns: 1fr;
  }
}

/* --- Blog Teaser Grid --- */
.rhw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .rhw-blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
