/* === Pinnacle Machine Services — Patriotic Theme === */

:root {
  --red: #b22234;
  --red-dark: #8b1a29;
  --red-light: #e63946;
  --blue: #002868;
  --blue-mid: #1a3d6d;
  --blue-light: #2c5282;
  --blue-dark: #001a40;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

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

/* ══════════════════════════════
   NAVIGATION
   ══════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--red);
}

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

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

.logo-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.logo-light {
  font-weight: 400;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-link.active {
  color: var(--white);
  font-weight: 600;
}

.nav-cta {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--red-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('https://images.unsplash.com/photo-1504917595217-d4dc5efe5a2c?w=1600&q=80') center/cover no-repeat;
  padding-top: 68px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: grayscale(100%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,40,104,0.92) 0%, rgba(0,26,64,0.85) 50%, rgba(178,34,52,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 80px 24px 80px 48px;
  color: var(--white);
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag .flag-bar {
  display: inline-flex;
  gap: 3px;
}

.hero-tag .flag-bar span {
  width: 16px;
  height: 3px;
  border-radius: 1px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ══════════════════════════════
   TRUST BAR
   ══════════════════════════════ */
.trust-bar {
  background: var(--blue);
  padding: 18px 0;
  border-bottom: 2px solid var(--red);
}

.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
}

.trust-item svg {
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

/* ══════════════════════════════
   PAGE HEADER
   ══════════════════════════════ */
.page-header {
  padding: 120px 0 48px;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--red);
}

.page-header .container {
  max-width: 800px;
}

.page-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
}

/* ══════════════════════════════
   SECTIONS
   ══════════════════════════════ */
.section {
  padding: 80px 0;
}

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

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

.section-cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 8px;
}

.section-label.center,
.section-heading.center,
.section-desc.center {
  text-align: center;
}

.section-heading {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 600px;
}

.section-desc.center {
  margin: 0 auto 48px;
}

/* ══════════════════════════════
   SERVICES GRID
   ══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ══════════════════════════════
   SPLIT LAYOUT
   ══════════════════════════════ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.spec-list {
  list-style: none;
  margin-top: 24px;
}

.spec-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-left: 20px;
  position: relative;
}

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.spec-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.spec-badge-text {
  margin-top: 24px;
}

.spec-badge-big {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}

.spec-badge-small {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* ══════════════════════════════
   COVERAGE GRID
   ══════════════════════════════ */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.coverage-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.coverage-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.coverage-icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 16px;
}

.coverage-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.coverage-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ══════════════════════════════
   ABOUT STATS
   ══════════════════════════════ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -1px;
  white-space: nowrap;
}

.stat-label {
  font-size: 15px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ══════════════════════════════
   TEAM
   ══════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gray-200);
}

.team-avatar span {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}

.team-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.team-bio {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ══════════════════════════════
   CONTACT / CTA
   ══════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.contact-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.contact-item a {
  color: var(--gray-600);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--blue);
}

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
}

.cta-info {
  margin-top: 32px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 16px;
}

.cta-info-item svg {
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.cta-info-item a {
  color: inherit;
  text-decoration: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.cta-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--white);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

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

.form-status {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

/* ══════════════════════════════
   FEATURE CARDS (home page)
   ══════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ══════════════════════════════
   BUTTONS
   ══════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  background: var(--off-white);
  border-color: var(--blue);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.footer {
  background: var(--blue-dark);
  padding: 48px 0 32px;
  border-top: 3px solid var(--red);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.footer-concept {
  font-size: 12px;
  color: var(--gray-600);
}

.footer-concept a {
  color: var(--gray-400);
  text-decoration: none;
}

.footer-concept a:hover {
  color: var(--white);
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 71px;
    left: 0;
    right: 0;
    background: var(--blue-dark);
    border-bottom: 2px solid var(--red);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 60px 24px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .trust-items {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .services-grid,
  .features-grid,
  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .cta-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    font-size: 28px;
  }

  .page-title {
    font-size: 30px;
  }

  .section {
    padding: 56px 0;
  }

  .page-header {
    padding: 100px 0 36px;
  }
}
