/* =========================================================
   Noble Technology Solutions | Landing page (Classic Navy)
   Brand: navy #172451, gold #A47F53, light blue #D2E8FF, light gray #EBEBED
   Fonts: Nord Bold (H1) / Nord Medium (H2) / Avenir (body)
          Stand-ins: Montserrat / Nunito Sans (Google Fonts)
   ========================================================= */

:root {
  --navy: #172451;
  --navy-deep: #0E1633;
  --gold: #A47F53;        /* brand gold: rules, bars, accents */
  --gold-light: #C9A473;  /* gold text on navy (6.4:1) */
  --gold-btn: #B8915F;    /* page buttons: navy text on this gold (5.1:1) */
  --gold-btn-hover: #C9A473;
  --gold-deep: #8A6A44;   /* popup submit: white text on this gold (5.0:1), also gold text on white */
  --gold-deep-hover: #7E6040;
  --light-blue: #D2E8FF;
  --light-gray: #EBEBED;
  --white: #FFFFFF;
  --text: #172451;
  --muted: #4A5378;       /* 6.3:1 on light gray, 7.4:1 on white */
  --border: #E1E3EA;
  --error: #B42318;

  --font-h1: "Nord Bold", "Nord", "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-h2: "Nord Medium", "Nord", "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Avenir", "Avenir Next", "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --header-h: 76px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(10, 16, 41, .12);
  --maxw: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; color: var(--navy); }
h1 { font-family: var(--font-h1); font-weight: 800; letter-spacing: -.01em; }
h2 { font-family: var(--font-h2); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-family: var(--font-h2); font-weight: 700; font-size: 1.15rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--white); color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-h2); font-weight: 600; font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: .6rem;
}
.rule { display: block; width: 56px; height: 3px; background: var(--gold); margin: .3rem 0 1.2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-h2); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  padding: .7em 1.3em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold-btn); color: var(--navy); }
.btn-primary:hover { background: var(--gold-btn-hover); }
.btn-submit { background: var(--gold-deep); color: var(--white); }
.btn-submit:hover { background: var(--gold-deep-hover); }
.btn-submit:focus-visible { outline-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--white); }
.btn-lg { font-size: 1.02rem; padding: .85em 1.6em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: rgba(23, 36, 81, .97); box-shadow: 0 4px 18px rgba(10,16,41,.18);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.site-header .logo { height: 44px; width: auto; }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  color: var(--white); text-decoration: none; font-family: var(--font-h2);
  font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: calc(var(--header-h) + 64px) 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); max-width: 16ch; }
.hero .lead { color: var(--light-blue); font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.hero-visual { position: relative; padding: 24px 0 0 24px; }
.gold-bar { position: absolute; background: var(--gold); }
.hero-visual .gold-bar { top: 0; left: 0; width: 55%; height: 90px; }
.hero-card {
  position: relative; background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: center;
}
.hero-card img { width: 72px; margin: 0 auto 14px; }
.card-eyebrow { font-family: var(--font-h2); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .3rem; font-weight: 700; }
.card-title { font-family: var(--font-h2); font-weight: 700; font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem; }
.card-text { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-services, .section-reviews { background: var(--white); }
.section-about { background: var(--light-gray); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .rule { margin-left: auto; margin-right: auto; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; margin: 0; background: var(--white); border: 1px solid var(--border);
  border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); font-size: .97rem; }
.icon { width: 52px; height: 52px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--light-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 26px; margin: .35em 0; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.checks li::after {
  content: ""; position: absolute; left: 4px; top: calc(.45em + 3px); width: 5px; height: 7px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.serve-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 44px; }
.serve-label { font-family: var(--font-h2); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-right: 6px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { background: var(--light-blue); color: var(--navy); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; }

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: center; }
.about-photo { position: relative; margin: 0; padding: 24px 0 0 24px; max-width: 420px; width: 100%; justify-self: center; }
.about-photo .gold-bar { top: 0; left: 0; width: 45%; height: 80px; }
.headshot { position: relative; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--light-blue); }
.name-line { margin-top: 14px; font-family: var(--font-h2); font-size: 1rem; color: var(--navy); }
.about-copy p { color: var(--muted); font-size: 1.05rem; }

/* Reviews */
.review { display: flex; flex-direction: column; }
.quote-mark { font-family: Georgia, "Times New Roman", serif; font-size: 3.6rem; line-height: .8; color: var(--gold); height: 34px; }
.review blockquote { margin: 0 0 18px; flex: 1; }
.review blockquote p { font-size: 1.02rem; color: var(--text); font-style: italic; margin: 0; }
.review figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--border); padding-top: 14px; }
.review figcaption strong { font-family: var(--font-h2); color: var(--navy); }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* Contact */
.section-contact { background: var(--navy); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.section-contact h2 { color: var(--white); }
.section-contact .eyebrow { color: var(--gold-light); }
.contact-copy p { color: var(--light-blue); max-width: 48ch; margin-bottom: 1.6rem; }
.contact-card {
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.2); border-left: 6px solid var(--gold);
}
.contact-row { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 0; }
.c-label { font-family: var(--font-h2); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.contact-row a, .contact-row span:not(.c-label) { font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--light-blue); padding: 64px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.footer-brand .logo { height: 56px; width: auto; margin-bottom: 18px; }
.mission { max-width: 44ch; margin: 0; }
.f-label { font-family: var(--font-h2); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 1em; }
.footer-contact p { margin: 0 0 .6em; }
.site-footer a { color: var(--white); overflow-wrap: anywhere; }
.verse { margin: 0 0 22px; padding-left: 16px; border-left: 3px solid var(--gold); }
.verse p { font-family: var(--font-h2); font-size: 1.05rem; line-height: 1.5; color: var(--white); font-style: italic; margin: 0; }
.verse cite { display: block; font-style: normal; font-size: .85rem; margin-top: 6px; color: var(--gold-light); font-weight: 700; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px;
  border-top: 1px solid rgba(210,232,255,.15); font-size: .88rem;
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,16,41,.72); }
.modal-dialog {
  position: relative; width: 100%; max-width: 720px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--white); color: var(--navy); border-radius: 10px; border-top: 6px solid var(--gold);
  padding: 36px 40px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.modal-dialog:focus { outline: none; }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer; border-radius: 50%;
}
.modal-close:hover { background: var(--light-gray); }
.modal-close:focus-visible { outline-color: var(--navy); }
.form-required-note { font-size: .82rem; color: var(--muted); margin: -.4rem 0 1rem; }
.form-required-note span, .req { color: var(--error); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 18px; }
.field-group { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--navy); background: var(--white);
  border: 1.5px solid #B7BDCF; border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(164,127,83,.35); }
.field [aria-invalid="true"] { border-color: var(--error); }
.other-field input { border-style: dashed; }
.form-error { color: var(--error); font-weight: 700; font-size: .92rem; margin: 0 0 12px; }
.form-success { text-align: center; padding: 28px 0 8px; }
.form-success h3 { font-size: 1.6rem; }
.form-success h3:focus { outline: none; }
.form-success p { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-header .logo { height: 34px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--navy); border-bottom: 3px solid var(--gold); box-shadow: 0 16px 30px rgba(10,16,41,.25);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(210,232,255,.15); }
  .header-actions { margin-left: auto; gap: 6px; }
  .btn-quote { font-size: .85rem; padding: .6em 1em; }
  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; }
  .about-photo { max-width: 340px; justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 72px 0; }
  .cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .cards-4 { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; }
  .site-header .logo { height: 30px; }
  .btn-quote { font-size: .8rem; padding: .55em .8em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .section { padding: 60px 0; }
  .modal { padding: 0; align-items: stretch; }
  .modal-dialog { max-width: none; max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; padding: 28px 20px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .btn:hover { transform: none; }
}

/* Compact modal on desktop so the submit button fits a typical laptop screen */
@media (min-width: 601px) {
  .modal-dialog { padding: 28px 36px 24px; }
  .modal-head h2 { font-size: 1.9rem; }
  .modal-head .rule { margin-bottom: .8rem; }
  .form-grid { gap: 12px 20px; }
  .field-group { gap: 10px; }
  .field input, .field select, .field textarea { padding: 9px 12px; }
  .field textarea { min-height: 64px; }
}

/* Spam honeypot: off-screen, never shown to people */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error a { color: inherit; font-weight: 700; text-decoration: underline; }
