/* 
  Penetrust - Core Stylesheet
  Minimalist, professional, dark/tech-focused design.
*/

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-bg-dark: #121212;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-primary: #0052cc; /* Professional Blue */
  --color-accent: #ff4d4d;  /* Alert/Security Red */
  --color-border: #e0e0e0;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --container-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
  margin-bottom: 1.25rem;
}

/* Header & Nav */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-mark {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: bold;
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  background-color: var(--color-bg);
}

.hero-kicker {
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #003d99;
}

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-ghost:hover {
  background-color: var(--color-bg-alt);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--color-bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-lead {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.page-hero {
  padding: 6rem 0;
  background-color: var(--color-bg-alt);
}

.page-hero h1 {
  font-size: 3.5rem;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0; }
  h1 { font-size: 2.5rem; }
}

.card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* Service Items */
.service-item {
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.service-code {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

/* Methodology */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.method-card {
  padding: 2rem;
  background: white;
  border: 1px solid var(--color-border);
  position: relative;
}

.method-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  color: rgba(0,0,0,0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.methodology-standard {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--color-bg-alt);
  text-align: center;
}

.standard-tags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.standard-tags span {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
}

/* Process List */
.process-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.process-list li {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.process-list .step {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-accent);
  font-weight: bold;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
}

.contact-info .info-item {
  margin-bottom: 2rem;
}

.contact-info h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--color-bg-dark);
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: #aaa; font-size: 0.875rem; }

.footer-links h4, .footer-contact h4 {
  margin-bottom: 1.5rem;
}

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

.footer-links a, .footer-contact a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 2;
}

.footer-links a:hover, .footer-contact a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* Utility */
.center { text-align: center; }
.section-cta {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
}

.section-cta h2 { margin-bottom: 1rem; }
.section-cta p { margin-bottom: 2rem; opacity: 0.9; }
.section-cta .btn-ghost { border-color: white; color: white; }
.section-cta .btn-primary { background: white; color: var(--color-primary); }

.service-block {
  background: white;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.service-block-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.service-block h2 { margin-bottom: 0.5rem; }
.check-list {
  list-style: none;
  margin: 1.5rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.service-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 5rem 2rem;
    z-index: 999;
  }

  .main-nav.nav-active {
    right: 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    gap: 2rem;
  }

  @media (max-width: 768px) {
    .main-nav ul {
      flex-direction: column;
      gap: 1.5rem;
    }
  }

  .main-nav a {
    font-size: 1.25rem;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .hero { padding: 4rem 0; }
}
