/* =============================================
   BOR SYSTEMS - main.css
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: var(--fs-body, 16px);
  color: var(--clr-body, #e0e0e0);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  color: var(--clr-heading, #fff);
  line-height: 1.25;
  font-size: var(--fs-heading, 32px);
}
h2 { font-size: calc(var(--fs-heading) * 0.8); }
h3 { font-size: calc(var(--fs-heading) * 0.65); }
h4 { font-size: calc(var(--fs-heading) * 0.5); }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--navbar-bg, #0a0a0a);
  border-bottom: 1px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-tagline {
  font-size: var(--tagline-size, 14px);
  color: var(--tagline-color, #2d7a38);
  font-weight: 400;
  white-space: nowrap;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--clr-nav, #ccc);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-arrow { font-size: 0.65rem; margin-left: 3px; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navbar-bg);
  border: 1px solid var(--primary);
  border-top: none;
  list-style: none;
  min-width: 220px;
  z-index: 999;
  border-radius: 0 0 6px 6px;
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--clr-nav);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown li a:hover { background: var(--primary); color: #fff; }
.has-dropdown:hover .dropdown { display: block; }

/* Lang switcher dropdown */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 0.78rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.lang-dropdown-btn:hover {
  background: var(--primary);
  color: #fff;
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--navbar-bg);
  border: 1px solid var(--primary);
  border-radius: 6px;
  list-style: none;
  min-width: 110px;
  z-index: 1001;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  color: var(--clr-nav);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-option:hover { background: rgba(45,122,56,0.15); color: #fff; }
.lang-option.active { color: var(--primary); font-weight: 700; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-nav);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; }

/* ---- HERO ---- */
.hero {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--clr-body);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 2px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: transparent; color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  margin-left: 0.8rem;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- SECTION ---- */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--clr-heading);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }
.section-subtitle {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(45,122,56,0.25);
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  color: inherit;
}
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--clr-heading);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--clr-body);
  opacity: 0.8;
  line-height: 1.6;
}

/* ---- PAGE HEADER ---- */
.page-header {
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(45,122,56,0.2);
  padding: 1.5rem 1.5rem 1.2rem;
  text-align: center;
}
.page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-header h1 { font-size: clamp(1.4rem,3vw,2.2rem); margin-bottom: 0.3rem; }
.page-header p { color: var(--primary); font-size: 0.95rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.breadcrumb a { color: rgba(255,255,255,0.4); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); }

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.team-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(45,122,56,0.2);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.team-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 1rem;
  display: block;
}
.team-photo-placeholder {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--secondary);
  border: 3px solid var(--primary);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.team-card .role { color: var(--primary); font-size: 0.85rem; margin-bottom: 0.8rem; }
.team-card .responsibilities { font-size: 0.85rem; opacity: 0.75; text-align: left; }
.team-card .team-contact { margin-top: 1rem; font-size: 0.82rem; }

/* ---- CLIENTS ---- */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}
.client-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(45,122,56,0.2);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-body);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--primary); font-weight: 600; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(45,122,56,0.3);
  border-radius: 5px;
  padding: 0.7rem 1rem;
  color: var(--clr-body);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-info h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.7rem; font-size: 0.95rem; }

/* ---- STL VIEWER ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(45,122,56,0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.project-card:hover { border-color: var(--primary); }
.project-viewer {
  width: 100%;
  height: 240px;
  background: #050f07;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
}
.project-info { padding: 1.2rem; }
.project-info h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.project-info p { font-size: 0.85rem; opacity: 0.75; }

/* ---- FOOTER ---- */
.footer {
  background: var(--footer-bg, #0a0a0a);
  border-top: 1px solid rgba(45,122,56,0.3);
  margin-top: auto;
}
.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 { color: var(--primary); margin-bottom: 0.8rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col p, .footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-col a:hover { color: var(--primary); }
.footer-tagline { color: var(--tagline-color) !important; font-size: 0.9rem !important; }
.footer-founded { opacity: 0.5; font-size: 0.8rem !important; margin-top: 0.5rem; }
.footer-links { list-style: none; }
.footer-links li a { display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ---- ALERTS ---- */
.alert { padding: 0.9rem 1.2rem; border-radius: 5px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-success { background: rgba(45,122,56,0.2); border: 1px solid var(--primary); color: #7dda8a; }
.alert-error { background: rgba(200,40,40,0.15); border: 1px solid #c82828; color: #f08080; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--navbar-bg);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--primary);
    gap: 0;
  }
  .nav-menu.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { padding: 0.7rem 1.5rem; border-radius: 0; }
  .dropdown { position: static; border: none; border-top: 1px solid rgba(45,122,56,0.2); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .lang-switcher { margin-left: auto; }
  .hero { padding: 4rem 1.2rem 3rem; }
}

/* ── Page content paragraphs ─────────────────────────────────────────────── */
.page-content p,
.section div[style*="line-height"] p {
  margin-bottom: 1.2rem;
  text-indent: 1.5em;
  line-height: 1.9;
}

