/* ==========================================================================
   Q TECH PRODUCTS - MODERN LIGHT INDUSTRIAL DESIGN SYSTEM
   Precision Manufacturing & Engineering Authority
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.98);

  --accent-gold: #d97706;
  --accent-gold-light: #b45309;
  --accent-gold-dark: #92400e;
  --accent-gold-glow: rgba(217, 119, 6, 0.15);
  --accent-gold-subtle: #fef3c7;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-focus: #d97706;
  --border-gold: rgba(217, 119, 6, 0.35);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-gold: 0 8px 25px rgba(217, 119, 6, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle blueprint engineering grid overlay on light background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TOP TRUST BAR (CLEAN LIGHT SLATE, NON-OVERLAPPING)
   ========================================================================== */
.top-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.775rem;
  color: #475569;
  padding: 0.4rem 0;
  position: relative;
  z-index: 100;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.top-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.top-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.75rem;
}

.top-badge-item strong {
  color: #0f172a;
  font-weight: 700;
}

.top-badge-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.top-contact a {
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.top-contact a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   MAIN NAVIGATION HEADER (CRISP WHITE, CLEAN, SPACIOUS)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 4px 12px rgba(217, 119, 6, 0.25));
}

.logo-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.brand-title span {
  color: var(--accent-gold);
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after, .nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: #ffffff;
  border: 1px solid var(--accent-gold-dark);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
  background: var(--accent-gold-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* The Core Highlighted CTA */
.btn-drawing {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

.btn-drawing:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-cyan {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
}

.btn-cyan:hover {
  background: #0369a1;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
}

.btn-whatsapp:hover {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
}

/* ==========================================================================
   PAGE HERO & SECTION STYLING (LIGHT BACKGROUNDS)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem 0;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  color: #b45309;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   BADGES (LIGHT THEME)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-cyan {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ==========================================================================
   SITE FOOTER (CLEAN LIGHT TECHNICAL SLATE)
   ========================================================================== */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 2;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #475569;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 0.25rem;
}

.facility-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.facility-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.facility-addr {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: var(--text-secondary);
}

.footer-bottom a:hover {
  color: var(--accent-gold);
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-menu {
    gap: 0.95rem;
  }
  .nav-link {
    font-size: 0.8125rem;
  }
  .header-actions .btn-drawing {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.775rem !important;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Mobile Navigation Slide-Down Drawer */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 3px solid var(--accent-gold);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    padding: 1.25rem 1.5rem 2rem 1.5rem;
    gap: 0.25rem;
    z-index: 1000;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active > li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-menu.active > li:last-child {
    border-bottom: none;
  }

  .nav-menu.active .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    width: 100%;
    border-radius: 6px;
  }

  .nav-menu.active .nav-link:hover,
  .nav-menu.active .nav-link.active {
    color: var(--accent-gold);
  }

  .nav-menu.active .nav-link::after {
    display: none;
  }

  .nav-menu.active .nav-dropdown {
    position: relative;
  }

  .nav-menu.active .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0.25rem 0 0.75rem 0.5rem;
    background: #f8fafc;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0.4rem;
    width: calc(100% - 0.5rem);
    min-width: unset;
  }

  .nav-menu.active .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-menu.active .dropdown-menu li {
    border-bottom: none;
  }

  .nav-menu.active .dropdown-menu li a {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
    white-space: normal;
    border-radius: 6px;
    display: block;
  }

  .nav-menu.active .dropdown-menu li a:hover {
    background: #fef3c7;
    color: #b45309;
    padding-left: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 640px) {
  .top-badges {
    display: none;
  }
  .top-bar-inner {
    justify-content: center;
  }
  .top-contact {
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  .brand-logo-img {
    height: 42px;
    max-width: 110px;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-tagline {
    display: none;
  }
  .header-actions .btn-drawing {
    display: none; /* Hide top CTA on tiny screens to avoid header crowding, mobile drawer has full nav */
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UNIVERSAL FORM & MODAL SYSTEM (CORE)
   ========================================================================== */
.modal-backdrop,
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal-backdrop.open,
.modal-backdrop.active,
.modal-overlay.open,
.modal-overlay.active {
  display: flex !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
  text-align: left;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.form-label .req {
  color: #dc2626;
  font-weight: 800;
  margin-left: 0.2rem;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #0f172a;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
  background-color: #ffffff;
}

select.form-control,
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

