/*
Theme Name: Nehal Solutions Theme
Theme URI: https://nehalsolutions.store
Author: NEHAL SOLUTIONS LLC
Author URI: https://nehalsolutions.store
Description: Clean, modern and responsive WordPress theme for NEHAL SOLUTIONS LLC - an IT Services & Digital Solutions consulting agency. Built for business verification, corporate presentation and lead generation.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nehalsolutions-theme
Tags: business, corporate, technology, one-column, two-columns, custom-menu, featured-images, responsive
*/

/* ---------- Design tokens ---------- */
:root {
  --ns-navy: #0b2545;
  --ns-navy-2: #13315c;
  --ns-blue: #1d6ff2;
  --ns-blue-dark: #0f52ba;
  --ns-teal: #16b8a6;
  --ns-bg: #ffffff;
  --ns-soft: #f4f7fb;
  --ns-border: #e2e8f0;
  --ns-text: #1c2733;
  --ns-muted: #5b6b7d;
  --ns-radius: 12px;
  --ns-shadow: 0 8px 30px rgba(11, 37, 69, 0.08);
  --ns-max: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ns-text);
  background: var(--ns-bg);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ns-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ns-navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.ns-container { width: 100%; max-width: var(--ns-max); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto;
  background: #fff; padding: 10px 16px; z-index: 9999; border-radius: 6px;
}

/* ---------- Buttons ---------- */
.ns-btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  background: var(--ns-blue); color: #fff !important; font-weight: 600;
  border: 2px solid var(--ns-blue); transition: .2s ease; text-decoration: none !important;
}
.ns-btn:hover { background: var(--ns-blue-dark); border-color: var(--ns-blue-dark); }
.ns-btn-outline {
  background: transparent; color: #fff !important; border-color: rgba(255,255,255,.7);
}
.ns-btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* ---------- Header ---------- */
.ns-topbar {
  background: var(--ns-navy); color: #cfe0f5; font-size: .875rem;
}
.ns-topbar .ns-container {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px;
}
.ns-topbar a { color: #ffffff; }
.ns-topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }

.ns-header { background: #fff; border-bottom: 1px solid var(--ns-border); position: sticky; top: 0; z-index: 100; }
.ns-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.ns-brand { display: flex; align-items: center; gap: 12px; }
.ns-brand-mark {
  width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--ns-blue), var(--ns-teal));
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  letter-spacing: .5px;
}
.ns-brand-name { font-size: 1.15rem; font-weight: 800; color: var(--ns-navy); text-decoration: none !important; display: block; letter-spacing: .3px; }
.ns-brand-tag { font-size: .78rem; color: var(--ns-muted); display: block; }

.ns-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; flex-wrap: wrap; }
.ns-nav li { position: relative; }
.ns-nav a { color: var(--ns-navy); font-weight: 600; font-size: .95rem; text-decoration: none; }
.ns-nav a:hover, .ns-nav .current-menu-item > a { color: var(--ns-blue); }
.ns-nav ul ul {
  display: none; position: absolute; top: 140%; left: 0; background: #fff;
  border: 1px solid var(--ns-border); border-radius: 10px; box-shadow: var(--ns-shadow);
  padding: 10px; min-width: 200px; flex-direction: column; gap: 8px; z-index: 200;
}
.ns-nav li:hover > ul { display: flex; }

.ns-menu-toggle {
  display: none; background: var(--ns-navy); color: #fff; border: 0;
  padding: 10px 14px; border-radius: 8px; font-weight: 600; cursor: pointer;
}

/* ---------- Hero ---------- */
.ns-hero {
  background: linear-gradient(135deg, var(--ns-navy) 0%, var(--ns-navy-2) 55%, #17406e 100%);
  color: #eaf2ff; padding: 92px 0;
}
.ns-hero h1 { color: #fff; font-size: 3rem; max-width: 850px; }
.ns-hero p.ns-lead { font-size: 1.15rem; max-width: 720px; color: #cddcf0; }
.ns-eyebrow {
  display: inline-block; letter-spacing: .16em; text-transform: uppercase;
  font-size: .74rem; font-weight: 700; color: var(--ns-teal); margin-bottom: 14px;
}
.ns-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Sections ---------- */
.ns-section { padding: 76px 0; }
.ns-section-alt { background: var(--ns-soft); }
.ns-section-head { max-width: 760px; margin-bottom: 42px; }
.ns-section-head p { color: var(--ns-muted); }

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

.ns-card {
  background: #fff; border: 1px solid var(--ns-border); border-radius: var(--ns-radius);
  padding: 28px; box-shadow: var(--ns-shadow); transition: transform .2s ease;
}
.ns-card:hover { transform: translateY(-4px); }
.ns-card h3 { margin-bottom: .4em; }
.ns-card p { color: var(--ns-muted); margin: 0; }
.ns-card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(29, 111, 242, .12); color: var(--ns-blue-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

.ns-list { list-style: none; margin: 0; padding: 0; }
.ns-list li { padding: 8px 0 8px 26px; position: relative; color: var(--ns-muted); }
.ns-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--ns-teal); font-weight: 800;
}

/* ---------- Legal / verification block ---------- */
.ns-legal-box {
  background: #fff; border: 1px solid var(--ns-border); border-left: 5px solid var(--ns-blue);
  border-radius: var(--ns-radius); padding: 30px; box-shadow: var(--ns-shadow);
}
.ns-legal-table { width: 100%; border-collapse: collapse; }
.ns-legal-table th, .ns-legal-table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--ns-border);
  font-size: .95rem; vertical-align: top;
}
.ns-legal-table th { width: 42%; color: var(--ns-navy); font-weight: 700; }
.ns-legal-table td { color: var(--ns-muted); }
.ns-legal-table tr:last-child th, .ns-legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Contact ---------- */
.ns-contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.ns-form-field { margin-bottom: 18px; }
.ns-form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ns-navy); font-size: .92rem; }
.ns-form-field input, .ns-form-field textarea, .ns-form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--ns-border);
  border-radius: 8px; font: inherit; color: var(--ns-text); background: #fff;
}
.ns-form-field input:focus, .ns-form-field textarea:focus, .ns-form-field select:focus {
  outline: none; border-color: var(--ns-blue); box-shadow: 0 0 0 3px rgba(29,111,242,.15);
}
.ns-form-field textarea { min-height: 150px; resize: vertical; }
.ns-notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.ns-notice-ok { background: #e7f8f2; color: #0b6b53; border: 1px solid #b8ead9; }
.ns-notice-err { background: #fdecec; color: #96201d; border: 1px solid #f6c9c7; }

/* ---------- Posts ---------- */
.ns-post-card { background: #fff; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); overflow: hidden; box-shadow: var(--ns-shadow); }
.ns-post-card .ns-post-body { padding: 24px; }
.ns-meta { color: var(--ns-muted); font-size: .85rem; margin-bottom: 10px; }
.ns-entry-content { max-width: 820px; }
.ns-entry-content ul, .ns-entry-content ol { padding-left: 22px; }
.ns-entry-content blockquote {
  margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--ns-teal);
  background: var(--ns-soft); color: var(--ns-muted);
}
.ns-pagination { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.ns-pagination .page-numbers {
  padding: 9px 15px; border: 1px solid var(--ns-border); border-radius: 8px; color: var(--ns-navy);
}
.ns-pagination .page-numbers.current { background: var(--ns-navy); color: #fff; border-color: var(--ns-navy); }

/* ---------- Footer ---------- */
.ns-footer { background: var(--ns-navy); color: #c2d4ea; padding: 62px 0 0; margin-top: 0; }
.ns-footer h3, .ns-footer h4 { color: #fff; font-size: 1.05rem; }
.ns-footer a { color: #dbe8f8; }
.ns-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
.ns-footer-widgets { margin-top: 10px; }
.ns-footer .ns-nav-footer ul { list-style: none; margin: 0; padding: 0; }
.ns-footer .ns-nav-footer li { padding: 5px 0; }
.ns-corporate-note {
  margin-top: 42px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .9rem; color: #a9c1de;
}
.ns-copyright {
  border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; font-size: .87rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #a9c1de;
}

/* ---------- Widgets ---------- */
.ns-sidebar .widget { background: #fff; border: 1px solid var(--ns-border); border-radius: var(--ns-radius); padding: 22px; margin-bottom: 24px; }
.ns-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.ns-sidebar .widget li { padding: 6px 0; border-bottom: 1px solid var(--ns-border); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ns-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ns-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-contact-grid { grid-template-columns: 1fr; }
  .ns-hero h1 { font-size: 2.3rem; }
}
@media (max-width: 720px) {
  .ns-menu-toggle { display: block; }
  .ns-nav { display: none; width: 100%; }
  .ns-nav.is-open { display: block; }
  .ns-header-inner { flex-wrap: wrap; }
  .ns-nav ul { flex-direction: column; gap: 12px; padding: 14px 0 4px; }
  .ns-nav ul ul { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
  .ns-grid-2, .ns-grid-3 { grid-template-columns: 1fr; }
  .ns-hero { padding: 62px 0; }
  .ns-hero h1 { font-size: 1.95rem; }
  .ns-section { padding: 54px 0; }
  .ns-topbar .ns-container { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ns-footer-grid { grid-template-columns: 1fr; }
  .ns-legal-table th, .ns-legal-table td { display: block; width: 100%; }
  .ns-legal-table th { border-bottom: 0; padding-bottom: 0; }
}
