/* ===== NorthPeak Solutions Inc. — Master Stylesheet ===== */

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

:root {
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-50: #f0fdfa;
  --charcoal: #1e293b;
  --charcoal-light: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: .3s ease;
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-500); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--charcoal); line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin-bottom: 1rem; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }

/* ---------- Utility ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--teal-700); color: var(--white); }
.btn-primary:hover { background: var(--teal-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--teal-700); }
.btn-outline-dark { background: transparent; color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline-dark:hover { background: var(--teal-700); color: var(--white); }

.section { padding: 80px 0; }
.section-alt { background: var(--slate-100); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--slate-200); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-header p { color: var(--slate-600); margin-top: 12px; font-size: 1.05rem; }
.section-header .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--charcoal); }
.logo img { width: 36px; height: 36px; }
.logo span { color: var(--teal-700); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--charcoal-light); font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--teal-700); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links .btn { padding: 10px 24px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 6px 0; transition: all var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  margin-top: 72px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,118,110,.88) 0%, rgba(30,41,59,.82) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; color: var(--white); }
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,.9); margin-bottom: 32px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: 120px 0 60px; margin-top: 72px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
  overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; top: -60%; right: -20%; width: 600px; height: 600px;
  border-radius: 50%; background: rgba(15,118,110,.15);
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: var(--slate-400); font-size: 1.1rem; }
.breadcrumb { margin-top: 16px; font-size: .9rem; }
.breadcrumb a { color: var(--teal-500); }
.breadcrumb span { color: var(--slate-400); }

/* ---------- Services Grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 30px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200);
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-500); }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--teal-50); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--teal-700); font-size: 1.5rem;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--slate-600); font-size: .95rem; margin-bottom: 16px; }
.service-card ul { margin-bottom: 0; }
.service-card ul li { color: var(--slate-600); font-size: .9rem; padding: 4px 0 4px 20px; position: relative; }
.service-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--teal-700); font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--teal-500); margin-bottom: 4px; }
.stat-item p { color: var(--slate-200); font-size: .95rem; }

/* ---------- Logos / Clients ---------- */
.clients-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px;
  opacity: .5; filter: grayscale(1); transition: all var(--transition);
}
.clients-bar:hover { opacity: .8; filter: grayscale(0); }
.client-logo {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--slate-400); letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200);
}
.testimonial-card .quote { font-style: italic; color: var(--slate-600); margin-bottom: 20px; line-height: 1.8; }
.testimonial-card .author { font-weight: 600; color: var(--charcoal); }
.testimonial-card .role { font-size: .85rem; color: var(--slate-400); }
.stars { color: #f59e0b; margin-bottom: 12px; letter-spacing: 2px; }

/* ---------- About / Team ---------- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-content img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--slate-600); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--white);
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--teal-700); font-size: .9rem; font-weight: 500; }
.team-card p { color: var(--slate-600); font-size: .9rem; margin-top: 8px; }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.cert-item {
  padding: 24px; border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200);
}
.cert-item .cert-icon { font-size: 2rem; margin-bottom: 10px; }
.cert-item h4 { font-size: .95rem; margin-bottom: 4px; }
.cert-item p { font-size: .8rem; color: var(--slate-400); margin: 0; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.value-card { text-align: center; padding: 30px 20px; }
.value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--slate-600); font-size: .95rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-detail { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-detail .icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--teal-50); display: flex; align-items: center; justify-content: center;
  color: var(--teal-700); font-size: 1.2rem; flex-shrink: 0;
}
.contact-detail h4 { font-size: .95rem; margin-bottom: 4px; }
.contact-detail p { color: var(--slate-600); font-size: .9rem; margin: 0; }
.contact-detail a { color: var(--teal-700); }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--slate-200);
  border-radius: var(--radius); font-family: var(--font-body); font-size: .95rem;
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(15,118,110,.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-success {
  display: none; text-align: center; padding: 24px;
  background: var(--teal-50); border-radius: var(--radius); color: var(--teal-700);
}
.form-success.visible { display: block; }

.map-placeholder {
  margin-top: 30px; height: 220px; border-radius: var(--radius-lg);
  background: var(--slate-100); display: flex; align-items: center; justify-content: center;
  color: var(--slate-400); font-size: .9rem; border: 1px solid var(--slate-200);
}

/* ---------- CTA Banner ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--charcoal) 100%);
  text-align: center; padding: 80px 0;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--slate-400); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: .9rem; line-height: 1.8; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--slate-400); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--teal-500); }
.footer-bottom {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--teal-500); }

/* ---------- Legal Pages ---------- */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 36px 0 12px; color: var(--charcoal); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: var(--slate-600); font-size: .95rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; margin-bottom: 8px; }
.legal-content a { color: var(--teal-700); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
    background: var(--white); flex-direction: column; justify-content: flex-start;
    padding: 40px 24px; gap: 24px;
    transform: translateX(100%); transition: transform var(--transition);
  }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: block; }

  .hero { min-height: 80vh; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

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