/*
Theme Name: Vic-Charles Models
Theme URI: https://www.viccharlesltd.com
Author: Alphabeta Solutions Ltd
Author URI: https://alphabetang.com
Description: Premium aluminum & glass works theme for Vic-Charles Models Ltd, Abuja. Elementor compatible, with a Vic Settings page for managing all front-end contact values.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vic-charles
*/

/* Main styles are enqueued from assets/css/style.css and assets/css/light-theme.css */

/* ── WhatsApp floating button (moved from inline HTML) ── */
.btn-whatsapp-pulse {
  background: #25d366;
  color: white !important;
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  right: 20px;
  font-size: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 0;
  height: 0;
  padding: 30px;
  text-decoration: none;
  border-radius: 50%;
  animation-name: vc-pulse;
  animation-duration: 1.2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
@keyframes vc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  80%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
.btn-whatsapp-pulse-border {
  bottom: 20px;
  left: 20px;
  animation-play-state: paused;
}
.btn-whatsapp-pulse-border::before {
  content: "";
  position: fixed;
  border-radius: 50%;
  padding: 25px;
  border: 5px solid #25d366;
  opacity: 0.75;
  animation-name: vc-pulse-border;
  animation-duration: 1.5s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
@keyframes vc-pulse-border {
  0%   { padding: 25px; opacity: 0.75; }
  75%  { padding: 50px; opacity: 0; }
  100% { opacity: 0; }
}

/* ── WordPress core alignment helpers ── */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ── Elementor full-width content wrapper ── */
.vic-page-content { padding-top: 90px; }
.elementor-page .vic-page-content { padding-top: 0; }

/* ── Landmark project cards (portfolio + modal meta) ── */
.project-card {
  background: var(--navy-light, #111827);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.project-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card-img { transform: scale(1.05); }
.project-card-body { padding: 1.6rem 1.6rem 1.9rem; }
.project-card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 0.5rem;
}
.project-card-body h4 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white, #fff);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.project-card-body > p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
}
.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.9rem;
}
.project-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-subtle, rgba(255, 255, 255, 0.5));
}
.project-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold, #c9a84c);
}
.project-card-meta em { font-style: normal; }

/* ── Portfolio overlay concise description ── */
.portfolio-overlay-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Project pop-up modal ── */
.vic-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.vic-modal.open { display: flex; }
.vic-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 20, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.vic-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  background: var(--navy-light, #111827);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  animation: vicModalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
  display: flex;
}
@keyframes vicModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.vic-modal-scroll {
  overflow-y: auto;
  width: 100%;
  max-height: 88vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 168, 76, 0.45) transparent;
}
.vic-modal-scroll::-webkit-scrollbar { width: 6px; }
.vic-modal-scroll::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.45); border-radius: 3px; }
.vic-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(6px);
  color: var(--gold, #c9a84c);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.vic-modal-close:hover {
  background: var(--gold, #c9a84c);
  color: var(--navy, #0a0e1a);
  transform: rotate(90deg);
}
.vic-modal-close svg { width: 18px; height: 18px; }

.vic-modal-media {
  position: relative;
  width: 100%;
  background: #05070f;
}
.vic-modal-media img,
.vic-modal-media video {
  display: block;
  width: 100%;
  max-height: 38vh;
  object-fit: cover;
}
.vic-modal-media iframe,
.vic-modal-media.is-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 44vh;
  border: 0;
  display: block;
  object-fit: contain;
}
/* Soft fade at the media base hints at scrollable content below */
.vic-modal-media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.85));
  pointer-events: none;
}
/* Gallery slider */
.vic-modal-media .vic-slides { position: relative; }
.vic-modal-media .vic-slides img { display: none; }
.vic-modal-media .vic-slides img.active { display: block; }
.vic-gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.5);
  background: rgba(10, 14, 26, 0.72);
  color: var(--gold, #c9a84c);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
}
.vic-gal-nav:hover { background: var(--gold, #c9a84c); color: var(--navy, #0a0e1a); }
.vic-gal-nav.prev { left: 1rem; }
.vic-gal-nav.next { right: 1rem; }
.vic-gal-nav svg { width: 18px; height: 18px; }
.vic-gal-count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  z-index: 5;
}

.vic-modal-body { padding: 2.25rem 2.5rem 2.75rem; }
.vic-modal-body h3 {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--white, #fff);
  margin: 0.4rem 0 1rem;
}
.vic-modal-content {
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  font-size: 0.95rem;
  line-height: 1.85;
}
.vic-modal-content p { margin-bottom: 1rem; }
body.vic-modal-open { overflow: hidden; }
.vic-open-project { cursor: pointer; }
@media (max-width: 640px) {
  .vic-modal { padding: 1rem 0.5rem; }
  .vic-modal-body { padding: 1.75rem 1.5rem 2rem; }
}
