/* =============================================
   Insurance Spain — Custom Styles
   Modern visual upgrades, purple standardisation
   ============================================= */

/* ---- Root overrides ---- */
:root {
  --brand: #5830E0;
  --brand-dark: #3d1fb8;
  --brand-light: #ede9fb;
  --brand-mid: #7b5ce6;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --shadow-sm: 0 2px 12px rgba(88, 48, 224, 0.08);
  --shadow-md: 0 6px 24px rgba(88, 48, 224, 0.14);
  --shadow-lg: 0 12px 40px rgba(88, 48, 224, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ---- Smooth transitions site-wide ---- */
a, .btn, .single-cat, .single-footer a {
  transition: all 0.25s ease;
}

/* ---- Navbar: sharper drop shadow ---- */
.header {
  box-shadow: 0 2px 20px rgba(88, 48, 224, 0.1) !important;
}

/* ---- Buttons: modern rounded gradient ---- */
.btn {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  border: none;
  border-radius: 50px !important;
  padding: 12px 30px !important;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(88, 48, 224, 0.35);
  color: #fff !important;
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  box-shadow: 0 6px 20px rgba(88, 48, 224, 0.45);
  transform: translateY(-2px);
  color: #fff !important;
}

/* ---- Section titles: cleaner underline ---- */
.section-title h2::before {
  background: linear-gradient(90deg, var(--brand), var(--brand-mid)) !important;
  border-radius: 2px;
}

/* ---- Category slider cards ---- */
.single-cat {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all 0.3s ease !important;
}

.single-cat:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.single-cat .icon {
  background: var(--brand-light) !important;
  border-radius: 50%;
  padding: 14px;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

/* ---- How It Works cards ---- */
.how-it-works-card {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.how-it-works-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* ---- Why Choose Us cards (about page) ---- */
.why-card {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-4px);
}

/* ---- Blog cards ---- */
.blog-grid-card {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-grid-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-4px);
}

/* ---- Location grid links ---- */
.location-link {
  display: block;
  padding: 18px 22px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: var(--radius-sm);
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.location-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- Stats bar ---- */
.stats-bar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
  padding: 50px 0;
  color: #fff;
}

.stats-bar h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.stats-bar p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* ---- Hero search input ---- */
.search-input {
  border-radius: 50px !important;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ---- Call to action section ---- */
.call-action {
  background-size: cover;
  background-position: center;
}

.call-action .btn {
  background: #fff !important;
  color: var(--brand) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.call-action .btn:hover {
  background: var(--brand-light) !important;
  color: var(--brand-dark) !important;
  transform: translateY(-2px);
}

/* ---- Newsletter section ---- */
.newsletter {
  background: linear-gradient(135deg, #f0ebff 0%, #e8e0ff 100%);
}

.newsletter .newsletter-form input {
  border-radius: 50px 0 0 50px !important;
}

.newsletter .newsletter-form .btn {
  border-radius: 0 50px 50px 0 !important;
}

/* ---- Footer: slightly warmer dark tone ---- */
.footer {
  background: #0f0a2a !important;
}

.footer-top {
  background: #0f0a2a !important;
}

.footer-bottom {
  background: #0a0620 !important;
}

/* ---- Footer links purple accent on hover ---- */
.single-footer.f-link ul li a:hover {
  color: #b29cfb !important;
}

/* ---- Coverage sidebar quote form ---- */
.sidebar .widget {
  border-radius: var(--radius) !important;
  overflow: hidden;
}

/* ---- Breadcrumbs: subtle gradient background ---- */
.breadcrumbs {
  background: linear-gradient(135deg, #1a0f4f 0%, #2d1b8e 100%);
}

/* ---- Blog single post title link ---- */
.post-title a:hover {
  color: var(--brand) !important;
}

/* ---- Tag pills ---- */
.tags a {
  border-radius: 50px !important;
  transition: all 0.2s ease;
}

.tags a:hover {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}

/* ---- Scroll to top button ---- */
.scroll-top {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%) !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md) !important;
}

/* ---- Pagination ---- */
.pagination .page-link {
  border-radius: var(--radius-sm) !important;
  color: var(--brand);
}

.pagination .page-item.active .page-link {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
}

/* ---- Input focus: purple ring ---- */
input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(88, 48, 224, 0.12) !important;
}


/* ---- Insurer logo carousel hover ---- */
#carouselLogos img {
  filter: grayscale(40%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

#carouselLogos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
