:root {
  --primary: #00aeef;
  --primary-dark: #0088cc;
  --accent: #ffeb3b;
  --accent-hover: #fdd835;
  --dark: #343a40;
  --dark-2: #2b3035;
  --text: #555;
  --text-dark: #222;
  --light-bg: #f5f7fa;
  --white: #fff;
  --border: #e8e8e8;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

a:hover {
  color: var(--primary);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  line-height: 1.25;
  margin-top: 0;
}

/* Top bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

.top-bar a {
  color: var(--white);
}

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

.top-bar .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.top-bar .top-links a {
  margin-left: 18px;
}

/* Main nav */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  padding: 22px 16px !important;
  letter-spacing: 0.3px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--accent);
}

.navbar-dark .navbar-nav .nav-link.active {
  background: var(--white);
  color: var(--dark) !important;
}

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
  min-height: 520px;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero-card {
  background: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  padding: 28px 32px;
  border-left: 4px solid var(--primary);
}

.hero-card h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 20px;
  font-size: 13px;
  color: #666;
}

.hero-stats span strong {
  display: block;
  color: var(--text-dark);
  font-size: 15px;
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 2px;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--dark);
}

.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 2px;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 100%;
  pointer-events: none;
}

.hero-arrows button {
  pointer-events: all;
  position: absolute;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}

.hero-arrows .prev {
  left: 15px;
}

.hero-arrows .next {
  right: 15px;
}

/* Search bar */
.search-bar-section {
  background: var(--white);
  padding: 0;
  margin-top: -1px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}

.search-bar-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border: 1px solid var(--border);
}

.search-bar-form .field {
  flex: 1 1 180px;
  border-right: 1px solid var(--border);
  padding: 14px 16px;
}

.search-bar-form label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
  font-weight: 600;
}

.search-bar-form select,
.search-bar-form input {
  width: 100%;
  border: none;
  font-size: 14px;
  color: var(--text-dark);
  background: transparent;
  outline: none;
}

.search-bar-form .search-btn-wrap {
  flex: 0 0 auto;
}

.search-bar-form .btn-search {
  height: 100%;
  min-height: 72px;
  padding: 0 36px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.search-bar-form .btn-search:hover {
  background: var(--accent-hover);
}

/* Section titles */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.section-title .subtitle {
  color: #888;
  max-width: 640px;
  margin: 0 auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary);
  margin: 18px auto 0;
}

/* Plan cards (listings style) */
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 30px;
  transition: box-shadow 0.25s;
}

.plan-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.plan-card .thumb {
  position: relative;
  overflow: hidden;
  height: 220px;
}

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

.plan-card .badge-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 16px;
}

.plan-card .body {
  padding: 18px 20px;
}

.plan-card .meta {
  font-size: 13px;
  color: #888;
  margin: 8px 0 0;
}

.plan-card .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  background: #fafafa;
}

.plan-card .price-tag {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  padding: 6px 14px;
  font-size: 14px;
}

.plan-card .btn-details {
  background: #e9ecef;
  color: var(--dark);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

.plan-card .btn-details:hover {
  background: var(--dark);
  color: var(--white);
}

/* Team row (agent style) */
.team-feature {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.team-feature .photo {
  flex: 0 0 200px;
  max-width: 100%;
}

.team-feature .photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.team-feature .info {
  flex: 1 1 280px;
}

.team-feature .info h4 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.team-feature .contact-line {
  font-size: 14px;
  margin-bottom: 6px;
}

.team-social-bar {
  background: var(--primary);
  padding: 10px 16px;
  margin-top: 12px;
  display: inline-flex;
  gap: 12px;
}

.team-social-bar a {
  color: var(--white);
  font-size: 14px;
}

/* Service icons */
.service-box {
  text-align: center;
  padding: 30px 20px;
}

.service-box .icon-circle {
  width: 90px;
  height: 90px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--primary);
}

.service-box h4 {
  font-size: 17px;
  margin-bottom: 12px;
}

.service-box .read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stats */
.stats-row {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item .num {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-item .label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
  opacity: 0.9;
}

/* Pricing */
.price-table {
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
  padding: 36px 24px;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-table.featured {
  border-top: 4px solid var(--primary);
  box-shadow: 0 12px 32px rgba(0, 174, 239, 0.15);
  transform: scale(1.02);
}

.price-table h3 {
  font-size: 20px;
  text-transform: uppercase;
}

.price-table .amount {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 16px 0;
}

.price-table .amount small {
  font-size: 16px;
  font-weight: 400;
  color: #888;
}

.price-table ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.price-table ul li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}

.price-table ul li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 8px;
  font-weight: 700;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-size: 64px;
  color: var(--primary);
  opacity: 0.25;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 12px;
}

.testimonial-card .author {
  margin-top: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Page banner */
.page-banner {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: 32px;
  text-transform: uppercase;
  margin: 0;
}

.breadcrumb-custom {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.85;
}

.breadcrumb-custom a {
  color: var(--accent);
}

/* Forms */
.form-block {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.2);
}

.invalid-feedback {
  display: none;
  font-size: 13px;
}

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

.form-success {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

/* Footer */
.footer-top {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 55px 0 40px;
  font-size: 14px;
}

.footer-top h5 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
}

.footer-top .footer-logo img {
  height: 52px;
  margin-bottom: 16px;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top ul li {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top ul li a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-top ul li a:hover {
  color: var(--accent);
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--dark);
}

.footer-newsletter input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 10px 12px;
  width: 100%;
  margin-bottom: 10px;
}

.footer-newsletter button {
  width: 100%;
  background: #212529;
  color: var(--white);
  border: none;
  padding: 10px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.footer-newsletter button:hover {
  background: var(--primary);
}

.footer-bottom {
  background: var(--primary);
  color: var(--white);
  padding: 14px 0;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--white);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.15);
  color: var(--white);
  border-radius: 3px;
  margin: 0 12px;
}

.back-to-top:hover {
  background: var(--dark);
  color: var(--white);
}

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

.legal-content h2 {
  font-size: 22px;
  margin-top: 36px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
}

/* Project grid */
.project-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

.project-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  padding: 24px 20px 16px;
}

.project-overlay h4 {
  color: var(--white);
  margin: 0 0 6px;
  font-size: 18px;
}

@media (max-width: 991px) {
  .hero-slide.active {
    min-height: 420px;
  }

  .hero-inner {
    min-height: 420px;
  }

  .price-table.featured {
    transform: none;
  }

  .navbar-dark .navbar-nav .nav-link {
    padding: 12px 16px !important;
  }
}

@media (max-width: 575px) {
  .search-bar-form .btn-search {
    width: 100%;
    min-height: 52px;
  }

  .hero-card h2 {
    font-size: 22px;
  }
}
