/* assets/css/style.css */
:root {
  --primary-navy: #0F1252;
  --primary-green: #10B981;
  --hover-green: #059669;
  --bg-light: #F4F7FB;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Georgia', serif; /* Fallback if needed for elegant headings */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-dark); background-color: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary-navy); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Layout Helpers */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.relative { position: relative; }
.absolute { position: absolute; }

/* Typography */
.text-green { color: var(--primary-navy); } /* Changed to navy per request for titles */
.text-navy { color: var(--primary-navy); }
.text-white { color: #fff; }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s ease; border: none; }
.btn-primary { background-color: var(--primary-navy); color: #fff; }
.btn-primary:hover { background-color: #0c0e3e; color: #fff; }
.btn-outline { background-color: transparent; border: 1px solid var(--primary-navy); color: var(--primary-navy); }
.btn-outline:hover { background-color: var(--primary-navy); color: #fff; }
.btn-green { background-color: var(--primary-navy); color: #fff; } /* Changed to navy per request */
.btn-green:hover { background-color: var(--hover-green); color: #fff; }
.btn-white { background-color: #fff; color: var(--primary-navy); }
.btn-white:hover { background-color: #f1f5f9; }

/* Header & Topbar */
.topbar { background-color: var(--bg-light); border-bottom: 1px solid var(--border-color); padding: 8px 0; font-size: 13px; color: var(--text-muted); }
.header { background-color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); transition: transform 0.3s ease-in-out; }
body.nav-hidden .header { transform: translateY(-100%); }
.logo img { height: 45px; }
.nav-menu { display: flex; gap: 24px; align-items: center; }
.nav-link { font-weight: 500; font-size: 14px; color: var(--text-dark); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--primary-navy); font-weight: 700; }
.nav-link.active::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--primary-navy); }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--primary-navy); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 14px; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary-green); }
textarea.form-control { resize: vertical; min-height: 80px; }
.checkbox-group { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4, .grid-cols-5 { grid-template-columns: 1fr; }
  .nav-menu { display: none; } /* Add hamburger menu logic later */
  .section { padding: 50px 0; }
}

/* RFQ Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 18, 82, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.modal-overlay.show .modal-content {
  transform: translateY(0);
}
.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--primary-navy);
}
.modal-body {
  padding: 25px;
}
