/* ============================================================
   HERO — Top contact bar + editorial-style image hero + enquiry card
   ============================================================ */

/* --- Top contact bar --- */
.top-bar {
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  padding: 10px 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: var(--space-xl); }
.top-bar-item {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: var(--text-xs);
  transition: color var(--duration-fast);
}
.top-bar-item:hover { color: #fff; }
.top-bar-item svg { flex-shrink: 0; }
@media (max-width: 768px) { .top-bar { display: none; } }


/* ============================================================
   HERO (image background + editorial title)
   ============================================================ */
.hero {
  position: relative;
  background: #0F172A url('../images/rvce-bg.jpg') center 38% / cover no-repeat;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(105deg,
      rgba(15,23,42,.94) 0%,
      rgba(15,23,42,.82) 38%,
      rgba(17,20,24,.55) 70%,
      rgba(0,0,0,.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 68%, rgba(0,0,0,.5) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* Glow orbs */
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 1; }
.hero-glow--1 {
  width: 460px; height: 460px; top: -140px; left: -160px;
  background: radial-gradient(circle, rgba(31, 78, 95,.55), transparent 65%);
  animation: heroGlowDrift 14s ease-in-out infinite alternate;
}
.hero-glow--2 {
  width: 540px; height: 540px; bottom: -200px; right: -180px;
  background: radial-gradient(circle, rgba(138, 185, 181,.32), transparent 65%);
  animation: heroGlowDrift2 18s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift  { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,30px) scale(1.08); } }
@keyframes heroGlowDrift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px,-20px) scale(1.05); } }

/* Decorative SVG accents */
.hero-dots { position: absolute; top: 24px; right: 28px; width: 130px; height: 130px; z-index: 2; pointer-events: none; opacity: .85; }
.hero-corner-line { position: absolute; bottom: 120px; left: 24px; width: 80px; height: 80px; z-index: 2; pointer-events: none; }

/* Floating credential pills */
.hero-credential {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; background: rgba(255,255,255,.96);
  border-radius: var(--radius-lg); box-shadow: 0 12px 32px -8px rgba(0,0,0,.45);
  pointer-events: none; white-space: nowrap;
}
.hero-credential .cred-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #16414F);
  color: #fff; flex-shrink: 0; box-shadow: 0 2px 6px rgba(31, 78, 95,.4);
}
.hero-credential .cred-icon svg { width: 18px; height: 18px; }
.hero-credential .cred-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-credential .cred-text strong { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hero-credential .cred-text span { font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: var(--text-dark-secondary); letter-spacing: .04em; margin-top: 2px; }
.hero-credential--1 { top: 26%; right: 7%; animation: credBob1 6s ease-in-out infinite alternate; }
.hero-credential--2 { bottom: 24%; right: 12%; animation: credBob2 7s ease-in-out infinite alternate; }
.hero-credential--2 .cred-icon { background: linear-gradient(135deg, var(--accent-green), #14502a); box-shadow: 0 2px 6px rgba(31,107,58,.4); }
@keyframes credBob1 { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-12px) rotate(0deg); } }
@keyframes credBob2 { from { transform: translateY(0) rotate(1.2deg); } to { transform: translateY(-10px) rotate(-.5deg); } }
@media (max-width: 1100px) { .hero-credential { display: none; } }

/* Hero content — two columns: copy left, search box right */
.hero .hero-content {
  position: relative; z-index: 3;
  max-width: var(--container); margin: 0 auto;
  padding: 88px var(--space-lg) 100px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: center;
}
.hero-left { max-width: 660px; color: #fff; }

/* Hero search box */
.hero-search-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}
.hero-search-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-search-card h3 { font-size: var(--text-xl); color: var(--ink); margin-bottom: 4px; }
.hero-search-card > p { font-size: var(--text-sm); color: var(--text-dark-secondary); margin-bottom: var(--space-lg); }
.hero-search { position: relative; display: block; }
.hero-search-icon { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; color: var(--text-dark-tertiary); pointer-events: none; z-index: 2; }
.hero-search input {
  width: 100%; padding: 14px 46px 14px 46px;
  border: 1.5px solid var(--border-color); border-radius: var(--radius-md);
  background: var(--bg-gray); font-size: var(--text-base); color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.hero-search input::placeholder { color: var(--text-dark-tertiary); }
.hero-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(31, 78, 95, 0.12); }

/* Clear (×) button */
.hero-search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  background: var(--bg-gray); color: var(--text-dark-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s;
}
.hero-search-clear:hover { background: var(--primary-50); color: var(--primary); transform: translateY(-50%) rotate(90deg); }
.hero-search-clear svg { width: 15px; height: 15px; }
.hero-search-clear[hidden] { display: none; }

/* Autocomplete dropdown */
.hero-suggest {
  list-style: none; margin: 8px 0 0; padding: 6px;
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
  max-height: 320px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.hero-suggest.open { opacity: 1; visibility: visible; transform: translateY(0); }
.hero-suggest li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--radius-md); cursor: pointer;
  color: var(--text-dark); font-size: var(--text-sm); line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.hero-suggest li .sug-ic {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-50); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.hero-suggest li .sug-ic svg { width: 16px; height: 16px; }
.hero-suggest li .sug-name { flex: 1; font-weight: 500; }
.hero-suggest li .sug-go { color: var(--text-dark-tertiary); opacity: 0; transition: opacity .15s, transform .15s; }
.hero-suggest li .sug-go svg { width: 16px; height: 16px; }
.hero-suggest li mark { background: transparent; color: var(--primary); font-weight: 700; padding: 0; }
.hero-suggest li:hover,
.hero-suggest li.active { background: var(--primary-50); color: var(--ink); }
.hero-suggest li:hover .sug-go,
.hero-suggest li.active .sug-go { opacity: 1; transform: translateX(2px); color: var(--primary); }
.hero-suggest .sug-empty {
  padding: 16px 14px; text-align: center; color: var(--text-dark-secondary);
  font-size: var(--text-sm); cursor: default;
}
.hero-suggest .sug-empty:hover { background: transparent; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; margin-bottom: var(--space-lg);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: rgba(251,250,246,.92);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(138, 185, 181,.25); }

.hero-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.07; font-weight: 600; letter-spacing: -.015em;
  color: #fff; margin: 0 0 18px;
}
.hero-title .hero-title-accent {
  color: var(--gold);
  background: linear-gradient(120deg, #B7D6D2, #8AB9B5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title-flourish { display: block; width: 230px; max-width: 60%; height: 14px; margin-top: 8px; }

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-sm); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(138, 185, 181,.95); margin: 0 0 16px;
}
.hero-desc { font-size: var(--text-lg); color: rgba(255,255,255,.78); max-width: 540px; line-height: 1.7; margin: 0 0 var(--space-xl); }

.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.hero .btn-ghost {
  background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

/* Stats */
.hero-stats { display: flex; align-items: stretch; gap: var(--space-xl); flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.16); }
.hero-stat-number { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; color: #fff; letter-spacing: -.01em; }
.hero-stat-label { font-size: var(--text-sm); color: rgba(255,255,255,.6); font-weight: 500; }

/* Scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: 10px; letter-spacing: .25em;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .4; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }
@media (max-width: 768px) { .hero-scroll { display: none; } }


/* ============================================================
   ENQUIRY CARD SECTION (lead form lifted out of hero)
   ============================================================ */
.enquiry { background: var(--bg-light-alt); }
.enquiry-layout { display: grid; grid-template-columns: 1fr 460px; gap: var(--space-3xl); align-items: center; }
.enquiry-copy .section-badge { margin-bottom: var(--space-md); }
.enquiry-copy h2 { font-size: var(--text-4xl); margin-bottom: var(--space-sm); }
.enquiry-copy p { font-size: var(--text-lg); color: var(--text-dark-secondary); }
.enquiry-points { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: 12px; }
.enquiry-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.enquiry-points svg { width: 20px; height: 20px; color: var(--accent-green); flex-shrink: 0; }

.hero-form-card {
  background: #fff; border-radius: var(--radius-lg); padding: var(--space-2xl);
  box-shadow: var(--shadow-xl); position: relative; border: 1px solid var(--rule);
}
.hero-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-form-card h3 { font-size: var(--text-xl); color: var(--ink); margin-bottom: 4px; }
.hero-form-card > p { font-size: var(--text-sm); color: var(--text-dark-secondary); margin-bottom: var(--space-lg); }
.hero-form .form-input { background: var(--bg-gray); border: 1.5px solid var(--border-color); }
.hero-form .form-input:focus { background: #fff; border-color: var(--primary); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .enquiry-layout { grid-template-columns: 1fr; gap: var(--space-2xl); }
  /* Hero stacks: copy on top, search box below (full width) */
  .hero .hero-content { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-left { max-width: 100%; }
  .hero-search-panel { max-width: 520px; }
}
@media (max-width: 768px) {
  .hero .hero-content { padding: 64px var(--space-md) 72px; }
  .hero-desc { font-size: var(--text-base); }
  .hero-stats { gap: var(--space-lg); }
  .hero-stat-number { font-size: var(--text-2xl); }
  .enquiry-copy h2 { font-size: var(--text-3xl); }
  .hero-form-card { padding: var(--space-xl); }
  .hero-search-panel { max-width: 100%; }
  .hero-search-card { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .hero .hero-content { padding: 52px var(--space-md) 60px; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { gap: var(--space-md); }
  .hero-stat-number { font-size: var(--text-xl); }
  .hero-stat-label { font-size: var(--text-xs); }
  .hero-form-card { padding: var(--space-lg); }
  .hero-form .form-input { padding: 11px 14px; font-size: var(--text-sm); }
}
