/* Perfection IT Services — rebuilt static site
   Palette: deep navy background, teal/blue accent gradient, light text */

:root {
  --bg: #050e1c;
  --bg-alt: #071527;
  --surface: #0c1c30;
  --surface-2: #0f223880;
  --border: #1c3454;
  --text: #eaf1fa;
  --text-muted: #9fb1c9;
  --accent: #2a97d4;
  --accent-2: #0b63a5;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.section-narrow { max-width: 780px; }

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: #06231f;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 22, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.brand-name-accent { color: var(--accent); font-weight: 600; }

.site-nav { flex: 1; display: flex; justify-content: center; }

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-menu a:hover { color: var(--text); }

/* Services dropdown */
.has-dropdown { position: relative; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.15s ease;
}
.dropdown-toggle:hover { color: var(--text); }
.has-dropdown.open .dropdown-toggle { color: var(--text); }

.chevron { transition: transform 0.15s ease; flex-shrink: 0; }
.has-dropdown.open .chevron { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 250px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}
.has-dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu a[aria-current="page"] { color: var(--accent); }
.dropdown-toggle.is-current { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #ffffff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(42, 151, 212, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-header { flex-shrink: 0; }

/* Hero */
.hero {
  position: relative;
  padding: 108px 0 96px;
  overflow: hidden;
  text-align: center;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(5, 14, 28, 0.94) 0%, rgba(5, 14, 28, 0.88) 55%, var(--bg) 100%),
    url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  pointer-events: none;
  z-index: 0;
}

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

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 24px;
}

.hero-lede {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sub-page hero + breadcrumb */
.hero-page { padding: 76px 0 64px; }

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* Feature / service cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

a.feature-card { display: block; }
a.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Certification badge */
.cert-badge {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.cert-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.cert-badge h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cert-badge p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* Services overview section (homepage) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Stats */
.stats { padding: 0 0 96px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-kicker {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.section-center { text-align: center; }
.section-center .section-kicker,
.section-center h2 { text-align: center; }
.section-center h2 { max-width: 640px; margin-left: auto; margin-right: auto; }

.prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }

/* Testimonial */
.testimonial {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 32px 26px;
  box-shadow: var(--shadow);
}

.testimonial blockquote {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--text);
}

.testimonial figcaption {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Engage */
.engage-inner { text-align: center; }
.engage .section-kicker { display: block; }
.engage-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 32px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-footer { font-size: 0.95rem; }

.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .site-nav { justify-content: flex-end; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--border); }
  .nav-menu a { display: block; padding: 14px 0; }
  .btn-header { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 64px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .feature-grid, .feature-grid.feature-grid-2, .services-grid { grid-template-columns: 1fr; }
  .cert-badge { flex-direction: column; }

  .has-dropdown .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 10px;
    margin-top: 2px;
    min-width: 0;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 10px 0; }
}
