/* =========================================
   Chips and Tracks – PCB Engineering Ltd
   ========================================= */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Xolonium';
  src: url('../font/xolonium/Xolonium.woff2') format('woff2'),
       url('../font/xolonium/Xolonium.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Custom Properties ---- */
:root {
  --blue:        #385cf8;
  --blue-hover:  #2f51e5;
  --dark:        #02273d;
  --dark-deep:   #011a2e;
  --white:       #ffffff;
  --off-white:   #f0f5ff;
  --text:        #2d3f55;
  --text-muted:  #607590;
  --border:      #dde6f0;
  --shadow-blue: rgba(56, 92, 248, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---- Layout ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Typography ---- */
h1, h2 {
  font-family: 'Xolonium', 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  color: var(--text-muted);
}

.eyebrow-blue       { color: var(--blue); }
.eyebrow-blue-light { color: rgba(56, 92, 248, 0.75); }
.eyebrow-white      { color: rgba(255, 255, 255, 0.65); }

.text-blue { color: var(--blue); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.875rem 1.875rem;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 24px var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(56, 92, 248, 0.48);
}

.btn-outline {
  color: #fff;
  border: 2px solid rgba(56, 92, 248, 0.45);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(56, 92, 248, 0.1);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1.125rem 2.5rem;
  border-radius: 10px;
  letter-spacing: 0.01em;
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
}

/* =========================================
   Header / Navigation
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--blue-hover);
  color: #fff !important;
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
}

/* Radial glow overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 45%, rgba(56, 92, 248, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(56, 92, 248, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 640px;
  /* Make all SVG paths white so they're visible on dark background */
  filter: brightness(0) invert(1);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.hero-lead {
  font-size: clamp(1rem, 1.75vw, 1.175rem);
  color: rgba(255, 255, 255, 0.62);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* =========================================
   Services
   ========================================= */
.section-services {
  padding: 6rem 0;
  background: var(--off-white);
}

.section-services h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 92, 248, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 92, 248, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
}

.card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.625rem;
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}

/* =========================================
   About
   ========================================= */
.section-about {
  padding: 6rem 0;
  background: var(--dark);
  color: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-mark img {
  width: 100%;
  max-width: 280px;
  filter: brightness(0) invert(1);
  opacity: 0.1;
  margin: 0 auto;
}

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  color: #fff;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-content p:last-of-type {
  margin-bottom: 2rem;
}

/* =========================================
   Contact
   ========================================= */
.section-contact {
  padding: 6rem 0;
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.contact-content h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: #fff;
  margin-bottom: 1rem;
}

.contact-content > p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--dark-deep);
  padding: 2.75rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  height: 30px;
  width: auto;
  /* Render as white on dark background */
  filter: brightness(0) invert(1);
  opacity: 0.65;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-copy a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1.6;
}

/* =========================================
   Responsive
   ========================================= */

/* Tablet */
@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-mark {
    display: none;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1.25rem;
  }

  .nav-logo img {
    height: 40px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 4.5rem;
    min-height: auto;
  }

  .hero-watermark {
    opacity: 0.025;
    width: 80%;
    right: -10%;
  }

  .section-services,
  .section-about,
  .section-contact {
    padding: 4rem 0;
  }

  .btn {
    font-size: 0.9375rem;
    padding: 0.8125rem 1.5rem;
  }

  .footer-links {
    gap: 1.25rem;
  }
}
