:root {
  --pmr-red: #e32828;
  --pmr-red-dark: #c41f1f;
  --pmr-navy: #1b2431;
  --pmr-dark: #111820;
  --pmr-gray: #f4f6f8;
  --pmr-text: #666666;
  --pmr-heading: #1b2431;
  --pmr-white: #ffffff;
  --font-main: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--pmr-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pmr-heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

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

/* Top bar */
.top-bar {
  background: var(--pmr-navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 10px 0;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
  color: var(--pmr-red);
}

.top-bar .social-icons a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

/* Header */
.main-header {
  background: var(--pmr-white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-toggler {
  border-color: var(--pmr-navy);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(227, 40, 40, 0.25);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--pmr-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--pmr-red);
}

.btn-pmr-primary {
  background: var(--pmr-red);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-pmr-primary:hover {
  background: var(--pmr-red-dark);
  color: #fff;
}

.btn-pmr-outline {
  border: 2px solid var(--pmr-red);
  color: var(--pmr-red);
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 4px;
  background: transparent;
}

.btn-pmr-outline:hover {
  background: var(--pmr-red);
  color: #fff;
}

.btn-pmr-dark {
  background: var(--pmr-navy);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
}

.btn-pmr-dark:hover {
  background: var(--pmr-dark);
  color: #fff;
}

.header-icons a {
  color: var(--pmr-heading);
  font-size: 1.15rem;
  margin-left: 14px;
}

.header-icons a:hover {
  color: var(--pmr-red);
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 36, 49, 0.55) 0%, rgba(17, 24, 32, 0.85) 100%);
}

.hero-caption {
  position: relative;
  z-index: 2;
  padding: 80px 0 40px;
  color: #fff;
}

.hero-caption h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.hero-search-box {
  position: relative;
  z-index: 5;
  margin-top: -60px;
  margin-bottom: 50px;
}

.search-widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}

.search-tabs button {
  flex: 1;
  min-width: 120px;
  border: none;
  background: #fafafa;
  padding: 16px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--pmr-heading);
  border-bottom: 3px solid transparent;
}

.search-tabs button.active {
  background: #fff;
  color: var(--pmr-red);
  border-bottom-color: var(--pmr-red);
}

.search-widget-body {
  padding: 28px 24px 32px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pmr-heading);
}

.form-control,
.form-select {
  border-radius: 4px;
  border-color: #e0e0e0;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pmr-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 40, 40, 0.15);
}

.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  display: none;
  font-size: 0.8rem;
}

.is-invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-feedback {
  display: block;
}

/* Features */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-title .subtitle {
  color: var(--pmr-red);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.feature-card {
  text-align: center;
  padding: 35px 25px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  height: 100%;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover,
.feature-card.highlight {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid var(--pmr-red);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pmr-red);
  border-radius: 50%;
  color: var(--pmr-red);
  font-size: 1.75rem;
}

.feature-card h5 {
  margin-bottom: 12px;
}

/* CTA dark */
.cta-section {
  background: var(--pmr-navy) url("../assets/images/world-cta.jpg") center/cover no-repeat;
  position: relative;
  padding: 70px 0;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 49, 0.92);
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2,
.cta-section p {
  color: #fff;
}

.cta-phone {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--pmr-red);
  font-weight: 700;
}

/* Plan cards */
.plan-tabs .btn {
  border-radius: 0;
  padding: 10px 30px;
  font-weight: 600;
}

.plan-tabs .btn.active {
  background: var(--pmr-red);
  color: #fff;
  border-color: var(--pmr-red);
}

.plan-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.plan-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.plan-card .badge-sale {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--pmr-red);
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-card-body {
  padding: 22px;
}

.plan-price {
  color: var(--pmr-red);
  font-size: 1.35rem;
  font-weight: 700;
}

.plan-specs {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--pmr-text);
  margin-top: 12px;
}

.plan-specs i {
  color: var(--pmr-red);
  margin-right: 4px;
}

/* Promo banners */
.promo-banner {
  padding: 40px;
  border-radius: 4px;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.promo-banner.light {
  background-color: #f8f9fa;
  border: 1px solid #eee;
}

.promo-banner.striped {
  background: linear-gradient(135deg, var(--pmr-red) 0%, #1e3a8a 50%, #fff 50%);
  color: #fff;
}

/* Video section */
.video-section {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 49, 0.55);
}

.play-btn {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--pmr-red);
  border: 4px solid #fff;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.play-btn:hover {
  transform: scale(1.08);
}

/* Testimonials */
.testimonials-section {
  background: var(--pmr-gray) url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d0d5db' fill-opacity='0.35'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testimonial-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.testimonial-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Blog */
.blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
}

.blog-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.blog-tag {
  color: var(--pmr-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Page breadcrumb */
.page-hero {
  background: var(--pmr-navy);
  padding: 70px 0 60px;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 10px;
}

.breadcrumb-custom {
  justify-content: center;
  margin: 0;
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-custom .active {
  color: var(--pmr-red);
}

/* Stats */
.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-box h3 {
  color: var(--pmr-red);
  font-size: 2.5rem;
  margin-bottom: 0;
}

/* Team */
.team-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.team-card .social-team a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--pmr-gray);
  color: var(--pmr-heading);
  border-radius: 50%;
  margin: 0 4px;
}

.team-card .social-team a:hover {
  background: var(--pmr-red);
  color: #fff;
}

/* Pricing */
.pricing-card {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 40px 30px;
  text-align: center;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
  border-color: var(--pmr-red);
  box-shadow: 0 20px 50px rgba(227, 40, 40, 0.15);
  transform: scale(1.02);
}

.pricing-card .price {
  font-size: 2.5rem;
  color: var(--pmr-red);
  font-weight: 700;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  text-align: left;
}

.pricing-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.pricing-card ul li i {
  color: var(--pmr-red);
  margin-right: 8px;
}

/* Contact */
.contact-section .row {
  --bs-gutter-x: 1.5rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.contact-info-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--pmr-gray);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  border: 1px solid #e8ecef;
  height: auto;
}

.contact-info-box i {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 1.35rem;
  color: var(--pmr-red);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pmr-red);
  border-radius: 50%;
  line-height: 1;
}

.contact-info-box h5 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.contact-info-box p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.contact-form-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 2rem 2rem 2.25rem;
  height: 100%;
}

.contact-form-title {
  margin-bottom: 0.5rem;
}

.contact-form-lead {
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.contact-section .form-label {
  margin-bottom: 0.35rem;
}

.contact-section .invalid-feedback {
  margin-top: 0.25rem;
}

.map-placeholder {
  background: var(--pmr-gray);
  min-height: 320px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #ccc;
  padding: 1.5rem;
}

.map-placeholder.contact-map-note {
  min-height: 120px;
}

@media (max-width: 991.98px) {
  .contact-sidebar {
    margin-bottom: 0.5rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

/* Footer */
.footer-pre {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.footer-pre .pre-box {
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 20px;
  text-align: center;
  border-radius: 4px;
  height: 100%;
}

.footer-pre .pre-box i {
  font-size: 2rem;
  color: var(--pmr-red);
  margin-bottom: 12px;
}

.main-footer {
  background: var(--pmr-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 0;
  margin-top: 50px;
}

.main-footer h5 {
  color: #fff;
  margin-bottom: 22px;
  font-size: 1.1rem;
}

.main-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.main-footer a:hover {
  color: var(--pmr-red);
}

.main-footer .footer-links li {
  margin-bottom: 10px;
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  color: #fff;
}

.footer-social a:hover {
  background: var(--pmr-red);
}

.footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-post img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 3px;
}

.footer-bottom {
  background: var(--pmr-dark);
  padding: 18px 0;
  margin-top: 50px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  margin-left: 18px;
}

.thank-you-message {
  display: none;
  padding: 20px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 4px;
  margin-top: 15px;
  font-weight: 500;
}

.thank-you-message.show {
  display: block;
}

.work-step {
  text-align: center;
  padding: 20px;
}

.work-step .step-num {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: var(--pmr-red);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

@media (max-width: 991px) {
  .hero-search-box {
    margin-top: 20px;
  }

  .pricing-card.featured {
    transform: none;
    margin-top: 20px;
  }

  .navbar-collapse {
    padding: 15px 0;
  }
}
