/* ============================================================
   MatiProTech Solutions — Shared Stylesheet
   Cloudflare Pages Build | 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy:        #0a1628;
  --navy-mid:    #1a3a6b;
  --blue:        #2563eb;
  --blue-light:  #3b82f6;
  --crimson:     #c41e3a;
  --crimson-light: #fb7185;
  --red:         #dc2626;
  --red-dark:    #b91c1c;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-300:    #cbd5e1;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --text:        #1e293b;
  --radius:      8px;
  --shadow:      0 4px 24px rgba(10,22,40,0.10);
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-alt { background: var(--gray-100); }

/* ── NAV ── */
nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-mark { width: 36px; height: 36px; }
.nav-logo .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .logo-text .brand-name { font-size: 1rem; font-weight: 800; color: var(--white); letter-spacing: -0.3px; }
.nav-logo .logo-text .brand-name span { color: var(--crimson); }
.nav-logo .logo-text .brand-sub { font-size: 0.65rem; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: all var(--transition); white-space: nowrap;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.nav-links > li > a:hover, .nav-links > li > a.active {
  color: var(--white); background: rgba(255,255,255,0.1);
}
.nav-links .nav-cta > a { background: var(--blue); color: var(--white) !important; padding: 8px 18px; }
.nav-links .nav-cta > a:hover { background: var(--blue-light); }
.nav-links .nav-nestshield > a { background: var(--red); color: var(--white) !important; padding: 8px 18px; }
.nav-links .nav-nestshield > a:hover { background: var(--red-dark); }

/* Dropdown */
.nav-links .dropdown { display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy-mid); border-radius: var(--radius); min-width: 220px;
  box-shadow: var(--shadow); padding: 8px 0; list-style: none; }
.nav-links li:hover .dropdown { display: block; }
.nav-links .dropdown li a { display: block; padding: 10px 18px; color: rgba(255,255,255,0.85); font-size: 0.88rem; transition: all var(--transition); }
.nav-links .dropdown li a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 0.7rem; opacity: 0.7; }

/* 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: 5px 0; border-radius: 2px; transition: all var(--transition); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e40af 100%);
  color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; }
.hero-content { position: relative; }
.hero-eyebrow {
  display: inline-block; background: rgba(196,30,58,0.2); border: 1px solid rgba(196,30,58,0.4);
  color: var(--crimson-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--crimson-light); }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-graphic { display: flex; align-items: center; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); color: var(--white); transform: translateY(-1px); }
.btn-amber { background: var(--crimson); color: var(--white); }
.btn-amber:hover { background: #9b1c1c; color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: 12px; padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(10,22,40,0.14); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon.blue { background: #dbeafe; }
.card-icon.navy { background: #e0e7ff; }
.card-icon.red { background: #fee2e2; }
.card-icon.green { background: #dcfce7; }
.card-icon.amber { background: #fef3c7; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.card p { font-size: 0.93rem; color: var(--gray-500); line-height: 1.65; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── SECTION HEADERS ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block; color: var(--crimson); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 14px;
}
.section-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 580px; margin: 0 auto; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white); padding: 60px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

/* ── STATS BAR ── */
.stats-bar { background: var(--navy); color: var(--white); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--crimson-light); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ── SOCIAL PROOF / TRUST BAR ── */
.trust-bar { background: var(--gray-100); padding: 32px 0; border-top: 1px solid var(--gray-300); border-bottom: 1px solid var(--gray-300); }
.trust-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-500); text-align: center; margin-bottom: 20px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-logo { font-size: 0.9rem; font-weight: 700; color: var(--gray-500); letter-spacing: -0.3px; opacity: 0.6; }

/* ── NESTSHIELD FEATURE ── */
.nestshield-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a5f 100%);
  color: var(--white); border-radius: 16px; padding: 56px 52px;
  display: flex; align-items: center; gap: 52px; overflow: hidden; position: relative;
}
.nestshield-banner::before {
  content: ''; position: absolute; right: 52px; top: 50%; transform: translateY(-50%);
  width: 120px; height: 120px; opacity: 0.07;
}
.nestshield-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,0.2); border: 1px solid rgba(220,38,38,0.4);
  color: #fca5a5; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 16px;
}
.nestshield-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.nestshield-banner p { color: rgba(255,255,255,0.75); font-size: 1rem; margin-bottom: 24px; max-width: 520px; }
.nestshield-features { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ns-pill {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85); font-size: 0.82rem; padding: 5px 14px;
  border-radius: 100px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo .logo-mark { width: 32px; height: 32px; }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-logo-text .brand-name { font-size: 1rem; font-weight: 800; color: var(--white); }
.footer-logo-text .brand-name span { color: var(--crimson); }
.footer-logo-text .brand-tagline { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.footer-desc { font-size: 0.87rem; line-height: 1.7; }
.footer h4 { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: rgba(255,255,255,0.6); font-size: 0.88rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.83rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); font-size: 0.83rem; }
.footer-bottom a:hover { color: var(--white); }

/* ── PROSE (privacy, legal) ── */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 36px 0 12px; }
.prose h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; color: var(--gray-700); line-height: 1.65; }
.prose strong { color: var(--navy); }
.prose a { color: var(--blue); }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius); font-size: 0.95rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white); font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-success { background: #dcfce7; border: 1px solid #86efac; border-radius: var(--radius); padding: 14px 18px; color: #166534; font-size: 0.93rem; display: none; margin-bottom: 16px; }

/* ── CAPABILITY PAGE ── */
.capability-card {
  border-left: 4px solid var(--crimson); padding: 28px 28px 28px 32px;
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); margin-bottom: 24px;
}
.capability-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.capability-card p { color: var(--gray-500); font-size: 0.93rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nestshield-banner { flex-direction: column; padding: 40px 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-actions { flex-direction: column; }
  .nestshield-banner { padding: 32px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
