/* ==========================================================================
   PrimeVision Systems - Exact Replica & Stretched Responsive Stylesheet
   ========================================================================== */

/* --- Custom Local Fonts (Google Sans) --- */
@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}

:root {
  /* Brand Palette - Exact Red: #E5010C */
  --primary-red: #E5010C;
  --primary-red-hover: #c4010a;
  --primary-red-light: rgba(229, 1, 12, 0.08);
  
  --dark-hero: #0f172a;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  
  --bg-light-gray: #f8fafc;
  --border-light: #e5e7eb;
  
  --whatsapp-green: #25d366;
  --whatsapp-hover: #1eaa53;

  --font-main: 'Google Sans', system-ui, -apple-system, sans-serif;

  --header-height: 84px;
  --stretched-max-width: 1750px;
  --side-padding: 3rem; /* Reduced Left & Right Side Padding by Half */
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition: all 0.25s ease-in-out;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-main);
  transition: var(--transition);
}

/* Global Stretched Full-Width Container */
.container {
  width: 100%;
  max-width: var(--stretched-max-width);
  margin: 0 auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

/* ================= HEADER / NAVBAR ================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo - 'Systems' on a Separate Line */
.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title-text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: -0.02em;
}

.brand-subtitle-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Navigation Links - Enlarged Font & Increased Spacing */
.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-red);
}

/* Header WhatsApp Button - Black Stroke, Transparent Background, Reactive Normally & Hover */
.btn-whatsapp-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-whatsapp-nav svg {
  fill: #000000;
  color: #000000;
  width: 20px;
  height: 20px;
  transition: fill 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-whatsapp-nav:hover {
  background-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-nav:hover svg {
  fill: #ffffff;
  color: #ffffff;
  transform: scale(1.1);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  padding: 0.4rem;
}

/* ================= HERO SECTION (Full 100vh First Screen) ================= */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
              url('images/bg_img.png') center/cover no-repeat;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 950px;
  padding: 2.5rem 1rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 5.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-headline .brand-part {
  color: #ffffff;
}

.hero-headline .divider-part {
  font-weight: 300;
  margin: 0 0.4rem;
  opacity: 0.7;
}

.hero-headline .partner-part {
  font-style: italic;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #e5e7eb;
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
}

.btn-hero-primary:hover {
  background-color: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 1, 12, 0.35);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* Floating WhatsApp Button - Highlighted Pulse Ring Normally AND Hover */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 64px;
  height: 64px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse-ring 2.2s infinite;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 20px rgba(37, 211, 102, 0.45);
  }
}

/* ================= TRUST HIGHLIGHTS BAR ================= */
.features-strip {
  background-color: var(--bg-light-gray);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.features-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.feature-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.feature-box svg {
  color: var(--primary-red);
  width: 22px;
  height: 22px;
}

/* ================= SECTION COMMON ================= */
.section {
  padding: 5.5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ================= SHOWROOM GALLERY ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.75rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ================= PRODUCT CARDS ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.product-img-wrapper {
  width: 100%;
  height: 250px;
  background: var(--bg-light-gray);
  overflow: hidden;
  position: relative;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.product-checklist {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-checklist li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.product-checklist li svg {
  color: var(--primary-red);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-product-more {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  text-align: center;
}

.btn-product-more:hover {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

/* ================= SERVICES SECTION ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
}

.service-icon-bg {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem auto;
  color: var(--text-dark);
}

.service-card:hover .service-icon-bg {
  background: var(--primary-red-light);
  color: var(--primary-red);
}

.service-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
}

.service-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ================= CONTACT SECTION ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-badge {
  width: 42px;
  height: 42px;
  background: var(--primary-red-light);
  color: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.contact-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
}

/* Map Card */
.map-frame-box {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 380px;
}

.map-btn-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ffffff;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: #2563eb;
  border: 1px solid #d1d5db;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
}

.map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: #f8fafc;
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
  padding-bottom: 2.25rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 1.35rem;
  max-width: 440px;
  line-height: 1.55;
}

.social-icons-row {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: #e5e7eb;
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.footer-link-list a:hover {
  color: var(--primary-red);
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.92rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
}

.hours-day {
  color: var(--text-muted);
}

.hours-val {
  font-weight: 700;
  color: var(--text-dark);
}

.hours-val.closed {
  color: var(--primary-red);
}

.footer-copyright {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= MODALS & OVERLAYS ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f3f4f6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.modal-close:hover {
  background: #e5e7eb;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px var(--primary-red-light);
}

.btn-submit {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary-red);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.btn-submit:hover {
  background: var(--primary-red-hover);
}

/* Toast Container */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: var(--text-dark);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid var(--primary-red);
}

/* ================= COMPREHENSIVE RESPONSIVE DESIGN ================= */

@media (min-width: 1600px) {
  :root {
    --side-padding: 3.75rem;
  }
}

@media (max-width: 1440px) {
  :root {
    --side-padding: 2.5rem;
  }
}

@media (max-width: 1200px) {
  :root {
    --side-padding: 1.75rem;
  }
  .hero-headline {
    font-size: 3.2rem;
  }
  .nav-links {
    gap: 2rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --side-padding: 1.25rem;
  }
  
  .gallery-grid, .products-grid, .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --side-padding: 0.75rem;
    --header-height: 72px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--primary-red-light);
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-links.mobile-open {
    display: flex !important;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-headline {
    font-size: 2.2rem;
    white-space: normal;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .features-flex {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }

  .gallery-grid, .products-grid, .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  :root {
    --side-padding: 0.65rem;
  }

  .btn-whatsapp-nav span {
    display: none;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .modal-box {
    padding: 1.5rem 1.1rem;
  }
}