/*
 * Hearts and Roses Mentorship Academy
 * Main CSS — Components, Search, Forms, Gallery, Lightbox, Slider
 */

/* =========================================================
   SEARCH OVERLAY
========================================================= */
.har-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 0 1rem;
}
.har-search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.har-search-overlay form {
  width: 100%;
  max-width: 640px;
  position: relative;
}
.har-search-overlay input[type="search"] {
  width: 100%;
  padding: 1rem 3.5rem 1rem 1.5rem;
  font-size: 1.25rem;
  border: 2px solid var(--har-primary);
  border-radius: var(--har-radius);
  background: #fff;
  color: #222;
  outline: none;
}
.har-search-overlay .har-search-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

/* =========================================================
   NAV OVERLAY (mobile)
========================================================= */
.har-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
.har-nav-overlay.visible {
  display: block;
}
body.nav-open {
  overflow: hidden;
}

/* =========================================================
   MOBILE SUBMENU TOGGLE ARROW
========================================================= */
.har-sub-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0 0.5rem;
  color: var(--har-text);
  transform: rotate(0deg);
  transition: transform 0.2s;
  line-height: 1;
}
.menu-item-has-children.open > .har-sub-toggle {
  transform: rotate(90deg);
}

/* =========================================================
   LIGHTBOX
========================================================= */
#har-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#har-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
body.lightbox-open {
  overflow: hidden;
}
.har-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.har-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  display: block;
}
.har-lightbox-caption {
  color: #fff;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.85;
}
.har-lightbox-close,
.har-lightbox-prev,
.har-lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10001;
}
.har-lightbox-close:hover,
.har-lightbox-prev:hover,
.har-lightbox-next:hover {
  background: var(--har-primary);
}
.har-lightbox-close { top: 1.5rem; right: 1.5rem; }
.har-lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.har-lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* =========================================================
   TESTIMONIALS SLIDER
========================================================= */
.har-testimonials-slider {
  position: relative;
  overflow: hidden;
}
.har-testimonial-slide {
  display: none;
  animation: harFadeSlide 0.5s ease;
}
.har-testimonial-slide.active {
  display: block;
}
@keyframes harFadeSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.har-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.har-prev, .har-next {
  background: var(--har-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.har-prev:hover, .har-next:hover { background: var(--har-secondary); }
.har-dots {
  display: flex;
  gap: 0.5rem;
}
.har-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.har-dot.active { background: var(--har-primary); }

/* =========================================================
   SCROLL ANIMATIONS
========================================================= */
.har-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.har-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.har-fade-in[data-delay="100"] { transition-delay: 0.1s; }
.har-fade-in[data-delay="200"] { transition-delay: 0.2s; }
.har-fade-in[data-delay="300"] { transition-delay: 0.3s; }
.har-fade-in[data-delay="400"] { transition-delay: 0.4s; }

/* =========================================================
   GALLERY FILTER BUTTONS
========================================================= */
.har-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.har-gallery-filter-btn {
  padding: 0.4rem 1.1rem;
  border: 2px solid var(--har-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--har-primary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.har-gallery-filter-btn.active,
.har-gallery-filter-btn:hover {
  background: var(--har-primary);
  color: #fff;
}

/* =========================================================
   CONTACT FORM
========================================================= */
.har-contact-form input,
.har-contact-form textarea,
.har-contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: var(--har-radius);
  margin-bottom: 1rem;
  font-family: var(--har-body-font);
  font-size: 1rem;
  background: var(--har-bg);
  color: var(--har-text);
  transition: border-color 0.2s;
}
.har-contact-form input:focus,
.har-contact-form textarea:focus {
  outline: none;
  border-color: var(--har-primary);
}
.har-contact-form input.error,
.har-contact-form textarea.error {
  border-color: #9C3FB5;
}
.har-form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--har-radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.har-form-message.error { background: #fde8e8; color: #7B2D8B; }
.har-form-message.success { background: #e8f8e8; color: #27ae60; }

/* =========================================================
   NEWSLETTER
========================================================= */
.har-newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.har-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--har-radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.95rem;
}
.har-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
.har-newsletter-form input[type="email"]:focus { outline: none; border-color: var(--har-accent); }
.har-nl-message {
  width: 100%;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.har-nl-message.success { color: #a8e6a3; }

/* =========================================================
   BREADCRUMBS
========================================================= */
.har-breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.88rem;
  color: var(--har-text-muted);
}
.har-breadcrumbs a { color: var(--har-primary); text-decoration: none; }
.har-breadcrumbs a:hover { text-decoration: underline; }
.har-breadcrumbs .sep { margin: 0 0.4rem; }

/* =========================================================
   SIDEBAR
========================================================= */
.har-sidebar .widget {
  background: var(--har-surface);
  border-radius: var(--har-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.har-sidebar .widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--har-primary);
  color: var(--har-heading);
}
.har-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.har-sidebar .widget ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--har-border);
}
.har-sidebar .widget ul li:last-child { border-bottom: none; }
.har-sidebar .widget ul li a {
  color: var(--har-text);
  text-decoration: none;
  transition: color 0.2s;
}
.har-sidebar .widget ul li a:hover { color: var(--har-primary); }

/* =========================================================
   COMMENTS
========================================================= */
.har-comments-area { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--har-border); }
.har-comments-title { font-size: 1.4rem; margin-bottom: 1.5rem; }
.har-comment-list { list-style: none; padding: 0; }
.har-comment-list .comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--har-border);
}
.har-comment-avatar { flex-shrink: 0; }
.har-comment-avatar img { border-radius: 50%; width: 50px; height: 50px; }
.har-comment-meta { font-size: 0.85rem; color: var(--har-text-muted); margin-bottom: 0.4rem; }
.har-comment-meta .author { font-weight: 700; color: var(--har-heading); margin-right: 0.5rem; }

/* =========================================================
   PAGINATION
========================================================= */
.har-pagination {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.har-pagination a,
.har-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--har-radius);
  border: 1.5px solid var(--har-border);
  color: var(--har-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.har-pagination a:hover,
.har-pagination .current {
  background: var(--har-primary);
  border-color: var(--har-primary);
  color: #fff;
}

/* =========================================================
   POST META / TAGS
========================================================= */
.har-post-tags { margin-top: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.har-post-tags a {
  padding: 0.25rem 0.75rem;
  background: var(--har-surface);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--har-text);
  text-decoration: none;
  border: 1px solid var(--har-border);
  transition: all 0.2s;
}
.har-post-tags a:hover { background: var(--har-primary); color: #fff; border-color: var(--har-primary); }

/* =========================================================
   WHATSAPP PULSE ANIMATION
========================================================= */
@keyframes harPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.har-whatsapp-btn.pulse {
  animation: harPulse 2s infinite;
}

/* =========================================================
   SKIP LINK (ACCESSIBILITY)
========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.5rem 1rem;
  background: var(--har-primary);
  color: #fff;
  border-radius: 0 0 var(--har-radius) var(--har-radius);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =========================================================
   PRINT STYLES
========================================================= */
@media print {
  .har-header, .har-footer, .har-whatsapp-btn, .har-scroll-top,
  .har-dark-toggle, .har-progress-bar { display: none !important; }
  body { color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
}

/* =========================================================
   AJAX FORM RESPONSES
========================================================= */
.har-form-response {
  padding: 12px 16px;
  border-radius: var(--har-radius);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.har-form-response.success {
  background: #edf7ed;
  color: #1e6f22;
  border-color: #a8dba8;
}
.har-form-response.error {
  background: #fde8e8;
  color: #8b1a1a;
  border-color: #f5c2c2;
}
.har-nl-response.success { color: #a8e6a3; }
.har-nl-response.error   { color: #ffb3b3; }

/* Required asterisk */
.har-req { color: var(--har-primary); font-weight: 700; }

/* Form group labels */
.har-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--har-heading, #1a0a1f);
  margin-bottom: 6px;
}
.har-form-group input,
.har-form-group select,
.har-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--har-border);
  border-radius: var(--har-radius);
  background: var(--har-bg);
  color: var(--har-text);
  font-family: var(--har-font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1rem;
}
.har-form-group input:focus,
.har-form-group select:focus,
.har-form-group textarea:focus {
  outline: none;
  border-color: var(--har-primary);
  box-shadow: 0 0 0 3px rgba(123,45,139,0.1);
}
.har-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media(max-width:600px){ .har-form-row{ grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT SECTION GRID
========================================================= */
.har-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
@media(max-width:900px){ .har-contact-grid{ grid-template-columns: 1fr; } }

.har-contact-info h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.har-contact-info > p { color: var(--har-text-muted); line-height: 1.7; margin-bottom: 2rem; }

.har-contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.har-contact-item  { display: flex; gap: 1rem; align-items: flex-start; }
.har-contact-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--har-primary), var(--har-secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.har-contact-item-text label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--har-text-muted); margin-bottom: 2px; }
.har-contact-item-text span  { color: var(--har-text); font-size: 0.95rem; }
.har-contact-item-text a     { color: var(--har-primary); text-decoration: none; }
.har-contact-item-text a:hover { text-decoration: underline; }

.har-contact-form-wrap {
  background: var(--har-surface, var(--har-bg-card));
  border-radius: var(--har-radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--har-shadow-md);
  border: 1px solid var(--har-border);
}

/* =========================================================
   HERO SECTION LAYOUT FIXES
========================================================= */
.har-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.har-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.har-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.har-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,6,15,0.85) 0%, rgba(61,16,102,0.7) 50%, rgba(123,45,139,0.5) 100%);
}
.har-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
}
@media(max-width:900px){ .har-hero-grid{ grid-template-columns: 1fr; padding:100px 0 60px; } }

.har-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.18);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 1.25rem;
}
.har-hero-title {
  font-family: var(--har-font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}
.har-hero-title .highlight {
  background: linear-gradient(135deg, #C9A84C, #E8CC80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.har-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  max-width: 520px;
}
.har-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.har-hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.har-hero-stat-num {
  font-family: var(--har-font-display);
  font-size: 2rem;
  font-weight: 900;
  color: #C9A84C;
  line-height: 1;
}
.har-hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* =========================================================
   PAGE HERO (used by all inner page templates)
========================================================= */
.har-page-hero {
  position: relative;
  overflow: hidden;
}
.har-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,6,15,.92) 0%, rgba(61,16,102,.75) 60%, rgba(123,45,139,.6) 100%);
  pointer-events: none;
}

/* =========================================================
   BLOG FILTER TABS
========================================================= */
.har-blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.har-blog-filter .har-filter-btn,
.har-filter-btn {
  padding: .45rem 1.2rem;
  border: 2px solid var(--har-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--har-primary);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .22s;
  line-height: 1.4;
}
.har-blog-filter .har-filter-btn:hover,
.har-blog-filter .har-filter-btn.active,
.har-filter-btn:hover,
.har-filter-btn.active {
  background: var(--har-primary);
  color: #fff;
}

/* =========================================================
   EVENT CARDS (used on Events page + homepage)
========================================================= */
.har-event-card {
  background: var(--har-bg-card);
  border-radius: var(--har-radius);
  overflow: hidden;
  box-shadow: var(--har-shadow-sm);
  border: 1px solid var(--har-border);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.har-event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--har-shadow-md);
}
.har-event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  width: 52px;
  text-align: center;
  border-radius: 10px;
  padding: 6px 4px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(123,45,139,.4);
}
.har-event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: var(--har-font-display);
}
.har-event-month {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .9;
}
.har-event-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.har-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.har-event-card:hover .har-event-thumb img {
  transform: scale(1.06);
}
.har-event-status-badge {
  position: absolute;
  bottom: .75rem;
  right: .75rem;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.har-event-body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.har-event-title {
  font-size: 1.1rem;
  margin: .5rem 0 .75rem;
  line-height: 1.4;
}
.har-event-title a {
  color: var(--har-heading, var(--har-text));
  text-decoration: none;
  transition: color .2s;
}
.har-event-title a:hover { color: var(--har-primary); }
.har-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  font-size: .8rem;
  color: var(--har-text-muted);
  margin-bottom: .85rem;
}
.har-event-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.har-event-excerpt {
  font-size: .88rem;
  color: var(--har-text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem;
}
.har-event-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: auto;
}

/* =========================================================
   SEARCH OVERLAY (fixes hidden attribute handling)
========================================================= */
#har-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,6,15,.92);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px);
}
#har-search-overlay[hidden] {
  display: none !important;
}
#har-search-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: all;
}
.har-search-inner {
  width: 100%;
  max-width: 660px;
  position: relative;
}
.har-search-form {
  display: flex;
  gap: 0;
  border-radius: var(--har-radius);
  overflow: hidden;
  background: var(--har-bg-card);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  border: 2px solid var(--har-primary);
}
.har-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  background: transparent;
  color: var(--har-text);
  font-family: var(--har-font-body);
}
.har-search-input::placeholder { color: var(--har-text-muted); }
.har-search-form button[type="submit"] {
  padding: 0 1.5rem;
  background: var(--har-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s;
  white-space: nowrap;
}
.har-search-form button[type="submit"]:hover { background: var(--har-secondary); }
.har-search-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
}
.har-search-close:hover { background: var(--har-primary); }

/* =========================================================
   MOBILE NAV OVERLAY
========================================================= */
#har-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 997;
  backdrop-filter: blur(2px);
}
#har-nav-overlay.active { display: block; }
body.nav-open { overflow: hidden; }

/* =========================================================
   ICON BUTTON (header toggle / search)
========================================================= */
.har-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--har-border);
  background: var(--har-bg-card);
  color: var(--har-text);
  cursor: pointer;
  transition: all .22s;
  position: relative;
  flex-shrink: 0;
}
.har-icon-btn:hover {
  border-color: var(--har-primary);
  color: var(--har-primary);
  background: var(--har-surface, var(--har-bg-alt));
  transform: scale(1.05);
}
.har-icon-btn svg { pointer-events: none; }

/* =========================================================
   PROGRESS BAR
========================================================= */
#har-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--har-primary), var(--har-accent));
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.har-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.har-breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.har-breadcrumbs a:hover { color: var(--har-accent); }
.har-breadcrumbs .sep { color: rgba(255,255,255,.35); }
.har-breadcrumbs .current { color: var(--har-accent); font-weight: 600; }

/* =========================================================
   WHATSAPP & SCROLL TOP - ensure visibility
========================================================= */
.har-fab-stack {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 1500;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (additional)
========================================================= */
@media (max-width: 768px) {
  .har-hero-grid { grid-template-columns: 1fr !important; padding: 100px 0 50px !important; }
  .har-hero-image-col { display: none !important; }
  .har-content-sidebar-wrap { grid-template-columns: 1fr !important; }
  .har-contact-grid { grid-template-columns: 1fr !important; }
  .har-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 540px) {
  .har-footer-grid { grid-template-columns: 1fr !important; }
  .har-hero-actions { flex-direction: column; }
  .har-hero-stats { gap: 1.25rem; }
}

/* =========================================================
   TESTIMONIALS SLIDER
========================================================= */
.har-testimonials-wrap {
  max-width: 820px;
  margin: 2.5rem auto 0;
}
.har-testimonials-slider {
  position: relative;
  min-height: 200px;
}
.har-testimonial-slide {
  display: none;
  animation: harSlideIn .45s ease;
}
.har-testimonial-slide.active { display: block; }
@keyframes harSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.har-testimonial-card {
  background: var(--har-bg-card);
  border-radius: var(--har-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--har-shadow-md);
  border: 1px solid var(--har-border);
  position: relative;
  text-align: center;
}
.har-testimonial-quote {
  font-size: 4rem;
  line-height: .8;
  color: var(--har-primary);
  opacity: .25;
  font-family: Georgia, serif;
  margin-bottom: .5rem;
}
.har-testimonial-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--har-text);
  font-style: italic;
  margin-bottom: 1.75rem;
}
.har-testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.har-testimonial-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--har-primary), var(--har-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid var(--har-accent);
}
.har-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.har-testimonial-name { font-weight: 700; font-size: 1rem; color: var(--har-heading, var(--har-text)); }
.har-testimonial-role { font-size: .82rem; color: var(--har-primary); margin-top: 2px; }

/* Slider controls */
.har-slider-prev,
.har-slider-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--har-primary);
  background: transparent;
  color: var(--har-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .22s;
  flex-shrink: 0;
}
.har-slider-prev:hover,
.har-slider-next:hover {
  background: var(--har-primary);
  color: #fff;
  transform: scale(1.08);
}
.har-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--har-border);
  cursor: pointer;
  transition: all .22s;
  padding: 0;
}
.har-slider-dot.active {
  background: var(--har-primary);
  transform: scale(1.3);
}

/* =========================================================
   LIGHTBOX IMPROVEMENTS
========================================================= */
#har-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,2,10,.94);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
#har-lightbox.active { display: flex; }
body.lightbox-open { overflow: hidden; }
.har-lightbox-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.har-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.har-lightbox-caption {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  text-align: center;
  max-width: 600px;
}
.har-lightbox-close {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10001;
}
.har-lightbox-close:hover { background: var(--har-primary); }
.har-lightbox-prev,
.har-lightbox-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 10001;
}
.har-lightbox-prev { left: 1.25rem; }
.har-lightbox-next { right: 1.25rem; }
.har-lightbox-prev:hover,
.har-lightbox-next:hover { background: var(--har-primary); }

/* =========================================================
   HEADER – dark mode icon visibility fix
========================================================= */
.har-hide-on-dark  { display: inline-flex; }
.har-show-on-dark  { display: none; }
body.har-dark-mode .har-hide-on-dark { display: none !important; }
body.har-dark-mode .har-show-on-dark { display: inline-flex !important; }

/* =========================================================
   FORM SUBMIT SPINNER + MISC UTILITIES
========================================================= */
@keyframes harSpin { to { transform: rotate(360deg); } }
.har-btn-icon-spin { animation: harSpin .8s linear infinite; }

/* Ensure form group select looks consistent */
.har-form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B2D8B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

/* Ensure textarea resizes nicely */
.har-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================================
   SECTION SPACING UTILITIES
========================================================= */
.har-section { padding: var(--har-section-pad, 80px) 0; }
.har-section-sm { padding: 50px 0; }
.har-section-lg { padding: 110px 0; }

/* =========================================================
   CARD HOVER ANIMATIONS
========================================================= */
.har-card {
  transition: transform .3s ease, box-shadow .3s ease;
}
.har-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--har-shadow-md);
}

/* =========================================================
   GALLERY ITEM HOVER
========================================================= */
.har-gallery-item {
  overflow: hidden;
  border-radius: var(--har-radius);
  position: relative;
}
.har-gallery-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: inherit;
  position: relative;
}
.har-gallery-img-wrap img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
  aspect-ratio: 4/3;
}
.har-gallery-item:hover .har-gallery-img-wrap img {
  transform: scale(1.06);
}
.har-gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
}
.har-gallery-item:hover .har-gallery-overlay { opacity: 1; }
.har-gallery-title { color: #fff; font-size: .9rem; font-weight: 600; }

/* =========================================================
   PRINT STYLES
========================================================= */
@media print {
  #har-header, .har-footer, .har-fab-stack, #har-splash-screen,
  #har-nav-overlay, #har-search-overlay { display: none !important; }
  body { color: #000 !important; background: #fff !important; }
}
