/*
Theme Name: Nomad Tech Theme
Theme URI: https://nomadtech.space
Author: NOMAD TECH LLC
Author URI: https://nomadtech.space
Description: A clean, modern and fully responsive WordPress theme for technology and IT services consulting companies. Built for NOMAD TECH LLC and optimized for Meta Business Manager domain and business verification.
Version: 1.0.0
Requires at least: 5.5
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: nomadtech-theme
Tags: business, technology, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------
   1. Design tokens
--------------------------------------------- */
:root {
  --nt-bg: #ffffff;
  --nt-surface: #f5f7fb;
  --nt-ink: #0f1b2d;
  --nt-muted: #5a6b83;
  --nt-primary: #0b63e5;
  --nt-primary-dark: #084bb0;
  --nt-accent: #00c2a8;
  --nt-border: #e2e8f2;
  --nt-dark: #0b1524;
  --nt-radius: 12px;
  --nt-shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --nt-max: 1160px;
  --nt-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------
   2. Base
--------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--nt-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--nt-ink);
  background: var(--nt-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--nt-primary); text-decoration: none; }
a:hover { color: var(--nt-primary-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.nt-container {
  width: 100%;
  max-width: var(--nt-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;
}

.nt-section { padding: 72px 0; }
.nt-section--alt { background: var(--nt-surface); }
.nt-section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.nt-section__head p { color: var(--nt-muted); margin: 0; }

.nt-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nt-primary);
  margin-bottom: 10px;
}

/* ---------------------------------------------
   3. Buttons
--------------------------------------------- */
.nt-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--nt-primary);
  color: #fff !important;
  font-weight: 600;
  border: 2px solid var(--nt-primary);
  transition: all .2s ease;
  cursor: pointer;
}
.nt-btn:hover { background: var(--nt-primary-dark); border-color: var(--nt-primary-dark); text-decoration: none; }
.nt-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.6); }
.nt-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------------------------------------------
   4. Header
--------------------------------------------- */
.nt-topbar {
  background: var(--nt-dark);
  color: #cfd9e8;
  font-size: .88rem;
}
.nt-topbar .nt-container {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  padding-top: 10px; padding-bottom: 10px;
}
.nt-topbar a { color: #fff; }
.nt-topbar__contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.nt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nt-border);
}
.nt-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.nt-brand { display: flex; align-items: center; gap: 12px; }
.nt-brand__mark {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--nt-primary), var(--nt-accent));
  color: #fff; font-weight: 800; letter-spacing: .02em;
}
.nt-brand__name {
  font-size: 1.15rem; font-weight: 800; color: var(--nt-ink); line-height: 1.1;
  text-transform: uppercase; letter-spacing: .04em;
}
.nt-brand__tag { font-size: .76rem; color: var(--nt-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.nt-brand a:hover { text-decoration: none; }

.nt-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nt-nav a { color: var(--nt-ink); font-weight: 600; font-size: .95rem; }
.nt-nav a:hover { color: var(--nt-primary); text-decoration: none; }
.nt-nav .current-menu-item > a { color: var(--nt-primary); }
.nt-nav ul ul { display: none; }

.nt-menu-toggle {
  display: none;
  background: none; border: 1px solid var(--nt-border);
  border-radius: 8px; padding: 8px 12px; font-size: 1rem; cursor: pointer;
  color: var(--nt-ink);
}

/* ---------------------------------------------
   5. Hero
--------------------------------------------- */
.nt-hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(0,194,168,.28), transparent 60%),
              linear-gradient(135deg, #0b1524 0%, #123a7a 100%);
  color: #fff;
  padding: 110px 0;
}
.nt-hero h1 { color: #fff; max-width: 16ch; font-size: 3rem; }
.nt-hero p { color: #d3dcec; max-width: 60ch; font-size: 1.1rem; }
.nt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.nt-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; font-size: .9rem; color: #b9c7dd; }

/* ---------------------------------------------
   6. Grid / cards
--------------------------------------------- */
.nt-grid { display: grid; gap: 24px; }
.nt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nt-grid--2 { grid-template-columns: repeat(2, 1fr); }

.nt-card {
  background: #fff;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-radius);
  padding: 28px;
  box-shadow: var(--nt-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,27,45,.12); }
.nt-card h3 { margin-bottom: .4em; }
.nt-card p { color: var(--nt-muted); margin: 0; }
.nt-card__icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(11,99,229,.1); color: var(--nt-primary);
}

.nt-list { list-style: none; padding: 0; margin: 0; }
.nt-list li { padding: 10px 0 10px 28px; position: relative; color: var(--nt-muted); border-bottom: 1px solid var(--nt-border); }
.nt-list li:last-child { border-bottom: 0; }
.nt-list li::before { content: "✓"; position: absolute; left: 0; color: var(--nt-accent); font-weight: 700; }

/* ---------------------------------------------
   7. Legal / verification block
--------------------------------------------- */
.nt-legal {
  background: #fff;
  border: 1px solid var(--nt-border);
  border-left: 4px solid var(--nt-primary);
  border-radius: var(--nt-radius);
  padding: 32px;
  box-shadow: var(--nt-shadow);
}
.nt-legal dl { display: grid; grid-template-columns: 280px 1fr; gap: 0; margin: 0; }
.nt-legal dt {
  font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--nt-border);
  font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--nt-muted);
}
.nt-legal dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--nt-border); }
.nt-legal dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------------------------------------------
   8. Content / posts
--------------------------------------------- */
.nt-page { padding: 60px 0 80px; }
.nt-page__header { margin-bottom: 32px; }
.nt-page__header h1 { margin-bottom: .2em; }
.nt-meta { color: var(--nt-muted); font-size: .9rem; }

.nt-entry { margin-bottom: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--nt-border); }
.nt-entry:last-child { border-bottom: 0; }
.nt-entry h2 { font-size: 1.55rem; margin-bottom: .3em; }
.nt-thumb { border-radius: var(--nt-radius); overflow: hidden; margin-bottom: 20px; }

.nt-content img { border-radius: var(--nt-radius); }
.nt-content blockquote {
  margin: 0 0 1.2em; padding: 6px 0 6px 20px;
  border-left: 4px solid var(--nt-accent); color: var(--nt-muted); font-style: italic;
}
.nt-content ul, .nt-content ol { padding-left: 22px; }
.nt-content table { width: 100%; border-collapse: collapse; }
.nt-content th, .nt-content td { border: 1px solid var(--nt-border); padding: 10px; text-align: left; }

.nt-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.nt-pagination .page-numbers {
  padding: 8px 14px; border: 1px solid var(--nt-border); border-radius: 8px; color: var(--nt-ink);
}
.nt-pagination .current { background: var(--nt-primary); color: #fff; border-color: var(--nt-primary); }

/* ---------------------------------------------
   9. Contact page
--------------------------------------------- */
.nt-contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
.nt-form { background: #fff; border: 1px solid var(--nt-border); border-radius: var(--nt-radius); padding: 30px; box-shadow: var(--nt-shadow); }
.nt-field { margin-bottom: 18px; }
.nt-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.nt-field input, .nt-field textarea, .nt-field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem;
  border: 1px solid var(--nt-border); border-radius: 10px; background: #fff; color: var(--nt-ink);
}
.nt-field input:focus, .nt-field textarea:focus, .nt-field select:focus {
  outline: none; border-color: var(--nt-primary); box-shadow: 0 0 0 3px rgba(11,99,229,.15);
}
.nt-field textarea { min-height: 150px; resize: vertical; }
.nt-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .95rem; }
.nt-notice--ok { background: rgba(0,194,168,.12); border: 1px solid rgba(0,194,168,.4); }
.nt-notice--err { background: rgba(229,57,53,.1); border: 1px solid rgba(229,57,53,.35); }

.nt-info-card { background: var(--nt-surface); border: 1px solid var(--nt-border); border-radius: var(--nt-radius); padding: 28px; }
.nt-info-card h3 { margin-bottom: .5em; }
.nt-info-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.nt-info-card li { padding: 8px 0; border-bottom: 1px dashed var(--nt-border); }
.nt-info-card li:last-child { border-bottom: 0; }
.nt-info-card strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nt-muted); }

/* ---------------------------------------------
   10. Footer
--------------------------------------------- */
.nt-footer { background: var(--nt-dark); color: #b9c7dd; padding: 64px 0 0; margin-top: 40px; }
.nt-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.nt-footer a { color: #dbe5f5; }
.nt-footer a:hover { color: #fff; }
.nt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.nt-footer ul { list-style: none; padding: 0; margin: 0; }
.nt-footer li { padding: 6px 0; }
.nt-footer__note {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  font-size: .88rem;
}
.nt-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .86rem;
}
.nt-footer .widget { margin-bottom: 20px; }

/* ---------------------------------------------
   11. Responsive
--------------------------------------------- */
@media (max-width: 960px) {
  .nt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nt-contact-grid { grid-template-columns: 1fr; }
  .nt-footer__grid { grid-template-columns: 1fr 1fr; }
  .nt-legal dl { grid-template-columns: 1fr; }
  .nt-legal dt { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 720px) {
  h1 { font-size: 2rem; }
  .nt-hero { padding: 72px 0; }
  .nt-hero h1 { font-size: 2.1rem; }
  .nt-grid--3, .nt-grid--2, .nt-footer__grid { grid-template-columns: 1fr; }
  .nt-menu-toggle { display: inline-block; }
  .nt-nav { display: none; width: 100%; }
  .nt-nav.is-open { display: block; }
  .nt-header__inner { flex-wrap: wrap; }
  .nt-nav ul { flex-direction: column; gap: 0; padding: 10px 0; }
  .nt-nav li { border-top: 1px solid var(--nt-border); padding: 10px 0; }
  .nt-topbar .nt-container { justify-content: center; text-align: center; }
}
