/* ===========================
   Linton Precision Engineering
   Global Stylesheet
   =========================== */

:root {
  --navy: #0a1628;
  --navy-light: #1a2d4a;
  --navy-mid: #12203a;
  --blue-accent: #2a6cb6;
  --blue-light: #3d8bd4;
  --white: #ffffff;
  --off-white: #f4f6f9;
  --silver: #c8cdd4;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --border: #e0e4ea;
  --shadow: rgba(10, 22, 40, 0.08);
  --shadow-lg: rgba(10, 22, 40, 0.15);
  --radius: 6px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   Header & Navigation
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

.logo span { color: var(--blue-accent); }

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

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  background: var(--blue-accent) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===========================
   Hero Sections
   =========================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(30%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(42,108,182,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,108,182,0.15);
  border: 1px solid rgba(42,108,182,0.3);
  color: var(--blue-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page heroes (smaller) */
.page-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: grayscale(30%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(42,108,182,0.12) 0%, transparent 70%);
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 600px;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(42,108,182,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.btn-secondary {
  background: var(--off-white);
  color: var(--navy);
}
.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-1px);
}

/* ===========================
   Sections
   =========================== */
.section {
  padding: 96px 0;
}

.section-light {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  color: var(--blue-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-top: 12px;
}

/* ===========================
   Cards
   =========================== */
.card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(42,108,182,0.2);
  box-shadow: 0 8px 32px var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(42,108,182,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--blue-accent);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 0.95rem; }

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

/* ===========================
   Stats Bar
   =========================== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--navy);
  border-radius: 12px;
  overflow: hidden;
  margin-top: -60px;
  position: relative;
  z-index: 3;
  box-shadow: 0 12px 40px var(--shadow-lg);
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  background: var(--navy-light);
}

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.stat-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  margin-top: 4px;
  font-weight: 500;
}

/* ===========================
   Gallery
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-light);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Gallery placeholder (no real images) */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
}

/* ===========================
   Certifications
   =========================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cert-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition);
}

.cert-card:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 4px 20px var(--shadow);
}

.cert-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(42,108,182,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

.cert-card h4 { font-size: 1rem; margin-bottom: 6px; }
.cert-card p { color: var(--text-light); font-size: 0.85rem; }

/* ===========================
   Contact Form
   =========================== */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(42,108,182,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* Contact info cards */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: 10px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(42,108,182,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-info-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-light); font-size: 0.9rem; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
}

/* ===========================
   Two-Column Layout
   =========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col-text h2 { margin-bottom: 16px; }
.two-col-text p { color: var(--text-light); margin-bottom: 16px; }

.two-col-visual {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 4rem;
  overflow: hidden;
  position: relative;
}

.two-col-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Feature list */
.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(42,108,182,0.1);
  color: var(--blue-accent);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================
   CTA Banner
   =========================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 16px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42,108,182,0.2), transparent);
  border-radius: 50%;
}

.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.65); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===========================
   Process Steps
   =========================== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(42,108,182,0.15);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.process-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.process-step p { color: var(--text-light); font-size: 0.9rem; }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col { gap: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .hero { min-height: 70vh; }
  .page-hero { min-height: 35vh; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-steps { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }
  .cta-banner { padding: 40px 24px; }

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}
