/* ============================================================
   VED TRADERS — STYLE.CSS
   Clean & Professional | Deep Blue + Light Grey
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --blue:       #1e40af;
  --blue-dark:  #1e3a8a;
  --blue-light: #dbeafe;
  --text:       #0f172a;
  --text-muted: #64748b;
  --bg:         #f8fafc;
  --bg-white:   #ffffff;
  --border:     #e2e8f0;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
  --max-w:      1200px;
  --nav-h:      68px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-white);
  color: var(--text);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utilities ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section      { padding: 88px 0; }
.bg-light     { background: var(--bg); }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p  { color: var(--text-muted); }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.18; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.6rem;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }

/* ====================
   NAVBAR
   ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 2rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.logo-icon { color: var(--blue); font-size: 0.9rem; }
.logo-img { height: 82px; width: auto; display: block; }
.footer-logo-img { height: 95px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================
   HERO
   ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  background: url('assets/images/hero.jpg') center/cover no-repeat, #0f172a;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(30,64,175,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 720px;
}
.hero-tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1rem;
}
.hero-content h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin-bottom: 2.2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ====================
   ABOUT
   ==================== */
.about {
  position: relative;
  background: url('assets/images/about-bg.jpg') center/cover no-repeat;
}
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.88);
}
.about .container { position: relative; z-index: 1; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-label { margin-bottom: 0.8rem; }
.about-text h2 { margin-bottom: 1.2rem; color: var(--text); }
.about-text p { margin-bottom: 1rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.stat-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ====================
   SERVICES
   ==================== */
.services {
  position: relative;
  background: url('assets/images/services-bg.jpg') center/cover no-repeat;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 50, 0.78);
}
.services .container { position: relative; z-index: 1; }
.services .section-label { color: #93c5fd; }
.services .section-header h2 { color: #fff; }
.services .section-header p  { color: rgba(255,255,255,0.65); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.service-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.service-card h3 { color: #fff !important; }
.service-card p  { color: rgba(255,255,255,0.65) !important; }
.service-icon {
  width: 48px; height: 48px;
  background: rgba(147,197,253,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: #93c5fd;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.service-card p { font-size: 0.9rem; }

/* ====================
   PROJECTS + MAP
   ==================== */
.projects-map-section {
  position: relative;
  background: #06091a;
}
.projects-map-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/projects-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
  z-index: 0;
}
.projects-map-section .container {
  position: relative;
  z-index: 1;
}
.projects-map-section .section-label { color: rgba(255,255,255,0.7); }
.projects-map-section h2            { color: #fff; }
.projects-map-section .section-header p { color: rgba(255,255,255,0.65); }

.projects-map-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* Project list column */
.project-list-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.project-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  backdrop-filter: blur(6px);
  transition: background var(--transition), transform var(--transition);
}
.project-list-item:hover {
  background: rgba(255,255,255,0.13);
  transform: translateX(4px);
}
.pli-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  min-width: 2rem;
  line-height: 1;
}
.pli-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pli-info strong {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.pli-info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* Map column */
.project-map-col {
  display: flex;
  flex-direction: column;
}

.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}

/* ====================
   TEAM
   ==================== */
.team.section {
  position: relative;
  overflow: hidden;
}
.team-fig {
  position: absolute;
  bottom: 0;
  width: 200px;
  fill: var(--blue);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}
.team-fig-left  { left: 2%; }
.team-fig-right { right: 2%; transform: scaleX(-1); }
.team.section .container {
  position: relative;
  z-index: 1;
}
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.team-card {
  flex: 0 1 320px;
}
.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.team-photo-wrap {
  width: 110px; height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue);
  margin-bottom: 1.2rem;
  background: var(--blue-light);
}
.team-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder::after {
  content: '👤';
  font-size: 2.5rem;
}
.team-info h3 { margin-bottom: 0.3rem; }
.team-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-info p { font-size: 0.9rem; }
.team-note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ====================
   QUOTE FORM
   ==================== */
.quote.section {
  background: #fffbea;
}
.quote.section .section-label { color: var(--blue); }
.quote.section h2              { color: var(--text); }
.quote.section .section-header p { color: var(--text-muted); }
.quote-form {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { margin-bottom: 1.2rem; }
label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.req { color: #ef4444; }
input, select, textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.12);
  background: #fff;
}
select option {
  background: #fff;
  color: var(--text);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
textarea { resize: vertical; min-height: 120px; }
.form-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-msg {
  font-size: 0.9rem;
  font-weight: 500;
}
.form-msg.success { color: #16a34a; }
.form-msg.error   { color: #dc2626; }

/* ====================
   CONTACT
   ==================== */
.contact.section {
  position: relative;
  background: #f0f4ff;
}
.contact.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/contact-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.contact.section .container {
  position: relative;
  z-index: 1;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-details .section-label { margin-bottom: 0.8rem; }
.contact-details h2 { margin-bottom: 1.8rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.contact-list svg {
  width: 20px; height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list span { font-size: 0.95rem; color: var(--text-muted); }
.contact-list a { color: var(--blue); }
.contact-list a:hover { text-decoration: underline; }
.contact-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.8rem;
}
.contact-social a {
  width: 42px; height: 42px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.contact-social a:hover { background: var(--blue); color: #fff; }
.contact-social svg { width: 20px; height: 20px; }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  width: 100%; height: 100%;
  background: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

/* ====================
   PROJECT MAP
   ==================== */
.project-map {
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.15);
}
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  font-family: 'Inter', sans-serif !important;
}
.leaflet-popup-content { margin: 10px 14px !important; }

/* ====================
   FOOTER
   ==================== */
.footer {
  background: #fdf6e3;
  color: var(--text-muted);
  padding: 3rem 0 2rem;
  border-top: 2px solid #f0e4c0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.footer-brand .logo-icon { color: var(--blue); font-size: 1.2rem; }
.footer-name { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 0.82rem; color: #b0a080; }

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
  .services-grid        { grid-template-columns: repeat(2, 1fr); }
  .projects-map-inner   { grid-template-columns: 1fr; }
  .project-map          { min-height: 380px; height: 380px; }
  .about-inner          { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid           { grid-template-columns: repeat(3, 1fr); max-width: 420px; }
  .contact-inner        { grid-template-columns: 1fr; gap: 2.5rem; }
  .map-wrap             { height: 280px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav open state */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 998;
  }
  .nav-links.open + .nav-cta {
    display: inline-flex;
  }

  .services-grid        { grid-template-columns: 1fr; }
  .projects-map-inner   { grid-template-columns: 1fr; }
  .project-map          { min-height: 300px; height: 300px; }
  .form-row       { grid-template-columns: 1fr; }
  .quote-form     { padding: 1.8rem 1.2rem; }
  .stats-grid     { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; max-width: 200px; margin: 0 auto; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}
