/* ========================================
   TECHLARCH — Global Stylesheet
   Colors: Royal Blue #1a56c4, Gold #c9a84c, Dark #0d1b2a
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

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

:root {
  --blue:      #1a56c4;
  --blue-dark: #0f3a8f;
  --blue-light:#2d6fe8;
  --gold:      #c9a84c;
  --gold-light:#e8c96a;
  --dark:      #0d1b2a;
  --dark2:     #1a2d42;
  --text:      #1e2d3d;
  --muted:     #5a6e85;
  --border:    #dde4f0;
  --bg:        #f4f7fc;
  --white:     #ffffff;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(26,86,196,0.10);
  --shadow-lg: 0 12px 48px rgba(26,86,196,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(201,168,76,0.15);
}
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  padding: 9px 22px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 2px solid var(--gold);
  padding: 16px 24px 24px;
  z-index: 998;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  display: block;
  transition: 0.2s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.mobile-menu.open { display: flex; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 40px 0;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 280px; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  transition: 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--dark); }

/* ---- UTILITIES ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 30px;
}
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid rgba(201,168,76,0.35); }
.badge-blue { background: rgba(26,86,196,0.1); color: var(--blue); border: 1px solid rgba(26,86,196,0.25); }

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-title span { color: var(--blue); }
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--blue-dark) 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin: 12px 0 8px;
}
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; }

/* Divider accent */
.divider-accent {
  width: 52px; height: 4px;
  background: linear-gradient(to right, var(--blue), var(--gold));
  border-radius: 4px;
  margin: 16px 0 24px;
}
.divider-accent.center { margin: 16px auto 24px; }

/* Comp Tag (used in products) */
.comp-tag {
  background: var(--bg);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: 'Courier New', monospace;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  footer { padding: 48px 20px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}
