/* Main Styles - JVB Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
  --navy: #003366;
  /* Deep logo blue */
  --logo-green: #8CC63F;
  /* Vibrant house green */
  --silver: #A7A9AC;
  /* Sophisticated silver-gray */
  --white: #ffffff;
  --charcoal: #141414;
  --gold: #D4AF37;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
}

/* Tailwind-like utility classes for the "No Framework" requirement */
.bg-navy {
  background-color: var(--navy);
}

.bg-logo-green {
  background-color: var(--logo-green);
}

.text-navy {
  color: var(--navy);
}

.text-logo-green {
  color: var(--logo-green);
}

.text-silver {
  color: var(--silver);
}

.bg-charcoal {
  background-color: var(--charcoal);
}

.bg-black {
  background-color: #000000;
}

.bg-gold {
  background-color: var(--gold);
}

.bg-white {
  background-color: var(--white);
}

.bg-gray-50 {
  background-color: var(--gray-50);
}

.text-charcoal {
  color: var(--charcoal);
}

.text-gold {
  color: var(--gold);
}

.text-white {
  color: var(--white);
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: var(--gray-500);
}

.text-gray-600 {
  color: var(--gray-600);
}

/* Shimmer Lift Base */
.shimmer-lift {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shimmer-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -10px rgba(140, 198, 63, 0.4);
  /* Glow matching logo green */
}

.shimmer-lift::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(30deg);
  transition: none;
}

.shimmer-lift:hover::after {
  left: 130%;
  transition: all 0.8s ease-in-out;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* Navigation */
nav {
  transition: all 0.3s ease;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--logo-green);
  color: var(--navy);
}

.btn-quote-header {
  background-color: var(--gold);
  color: white;
  padding: 0.6rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.btn-quote-header:hover {
  background-color: var(--navy);
  color: white;
}

.mobile-call-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--gold);
  color: white;
  padding: 8px 16px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-call-button:hover {
  background-color: var(--navy);
}

.mobile-call-button svg {
  width: 18px;
  height: 18px;
}

.btn-silver {
  background-color: var(--silver);
  color: var(--charcoal);
}

.btn-silver:hover {
  background-color: var(--white);
  color: var(--charcoal);
}

.btn-transparent {
  background-color: transparent;
  color: var(--charcoal);
  border: 2px solid var(--charcoal);
}

.btn-transparent:hover {
  background-color: var(--charcoal);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--charcoal);
}

.btn-white:hover {
  background-color: var(--silver);
  color: var(--charcoal);
}

/* Grid Layouts */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sections */
section {
  padding: 6rem 0;
}

/* Portfolio */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 4/5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-200);
  outline: none;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ── Hide legacy gold phone button (replaced by chat widget) ─────── */
.floating-call-btn {
  display: none !important;
}

/* ══════════════════════════════════════════════════════════════════
   CHAT WIDGET — Navy floating button + slide-up popup
══════════════════════════════════════════════════════════════════ */

/* ── Chat Button ──────────────────────────────────────────────── */
#jvb-chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #003366;
  /* Deep Navy Blue */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.45);
  z-index: 1000;
  border: none;
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

#jvb-chat-btn:hover {
  background-color: #004080;
  transform: scale(1.08);
}

#jvb-chat-btn:focus-visible {
  outline: 3px solid #D4AF37;
  outline-offset: 3px;
}

/* Tooltip label */
#jvb-chat-tooltip {
  position: absolute;
  right: 74px;
  background: #141414;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#jvb-chat-btn:hover #jvb-chat-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse ring */
#jvb-chat-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: chat-ring-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes chat-ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(0, 51, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 51, 102, 0);
  }
}

/* ── Chat Popup (slide-up card) ────────────────────────────────── */
#jvb-chat-popup {
  position: fixed;
  bottom: 92px;
  right: 20px;
  width: 340px;
  max-width: calc(100vw - 32px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.3);
  background: #ffffff;
  z-index: 999;
  /* Hidden state */
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

#jvb-chat-popup.jvb-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
#jvb-popup-header {
  background: linear-gradient(135deg, #003366 0%, #004a99 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#jvb-popup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  flex-shrink: 0;
}

/* Body */
#jvb-popup-body {
  padding: 16px;
  max-height: 65vh;
  overflow-y: auto;
}

/* Chat intro bubble */
#jvb-chat-bubble {
  background: #f1f5f9;
  border-radius: 12px 12px 12px 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

/* Form fields */
#jvb-lead-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jvb-field input,
.jvb-field select,
.jvb-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  background: #fff;
  color: #141414;
}

.jvb-field input:focus,
.jvb-field select:focus,
.jvb-field textarea:focus {
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.jvb-field textarea {
  resize: none;
}

/* Submit button */
#jvb-lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: #003366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

#jvb-lead-submit:hover {
  background: #D4AF37;
  color: #003366;
}

#jvb-lead-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}