/* ─────────────────────────────────────────────────────────────────
   ASIAM Engineering — Shared site-wide styles
   Used by: index.html, products.html, all-projects.html
   (Project-detail pages have their own project-page.css.
   The login page is intentionally standalone.)

   Contents:
   1. Design tokens (:root variables)
   2. Reset and base
   3. Custom scrollbar
   4. Site navigation (desktop)
   5. Site footer (desktop)
   6. Responsive nav and footer (mobile)
   ───────────────────────────────────────────────────────────────── */

/* ── 1. Design tokens ─────────────────────────────────────────── */
:root {
  --orange: #FF4236;
  --orange-dark: #CC2A1E;
  --orange-pale: #FFF0EF;
  --orange-xpale: #FFF5F5;
  --white: #FFFFFF;
  --off-white: #F9F7F5;
  --gray-100: #F3EFEB;
  --gray-200: #E4DDD7;
  --gray-400: #9C8E82;
  --gray-600: #5C5248;
  --gray-800: #2E2822;
  --dark: #1E1A16;
  --font: 'Open Sans', sans-serif;
}

/* ── 2. Reset and base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  overflow-x: hidden;
}

/* ── 3. Custom scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ── 4. Site navigation (desktop) ─────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 68px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242,101,34,0.2);
  box-shadow: 0 2px 20px rgba(242,101,34,0.08);
  transition: all 0.3s ease;
}
nav.scrolled { height: 58px; background: rgba(255,255,255,0.99); }

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-family: var(--font); font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray-600); text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--orange); color: var(--white) !important;
  padding: 8px 20px; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--gray-800); transition: 0.3s; }

/* ── 5. Site footer (desktop) ─────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 3px solid var(--orange);
  padding: 48px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font); font-size: 20px; font-weight: 800;
  color: var(--white); letter-spacing: 5px; text-decoration: none; text-transform: uppercase;
}
.footer-tagline {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.25);
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  max-width: 1200px; margin: 32px auto 0;
}

/* ── 6. Skip link ─────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 9999;
  background: var(--orange); color: var(--white);
  padding: 10px 20px; font-family: var(--font); font-size: 14px;
  font-weight: 700; letter-spacing: 1px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── 7. Responsive nav and footer (mobile) ────────────────────── */
@media (max-width: 1080px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-top: 2px solid var(--orange);
    box-shadow: 0 8px 24px rgba(242,101,34,0.1);
    padding: 24px; gap: 20px;
  }
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
