/*
Theme Name: Kinitk
Theme URI: https://kinitk.com/
Author: Kinitk Inc.
Description: Custom theme for Kinitk Inc., an IT services company in Buffalo, NY. Three divisions: Cybersecurity, Networking, Helpdesk. Brand colors and logo assets are exact — do not substitute.
Version: 1.0.0
Requires at least: 6.0
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: kinitk
*/

/* ==========================================================================
   Kinitk Solutions — Buffalo, NY
   Colors sampled directly from KI_Logo_Deck.pdf. Do not substitute.
   Brand is near-black-dominant (see apparel/card mockups), white wordmark,
   with a blue/green/orange triad. Blue leads; green and orange support.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand — exact values from the logo deck */
  --ink:          #090C02;   /* brand ground */
  --blue:         #1789FC;   /* primary accent */
  --green:        #98CE00;   /* secondary accent */
  --orange:       #FF6B00;   /* tertiary accent */

  /* Derived */
  --ink-raised:   #14180C;
  --blue-deep:    #0A63C4;   /* accessible blue for text/buttons on light */
  --paper:        #FFFFFF;
  --paper-alt:    #F2F3EF;
  --rule:         #DDDED7;
  --rule-dark:    #23281B;
  --steel:        #545B4C;   /* secondary text on light */
  --steel-light:  #9AA192;   /* secondary text on dark */

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 1180px;
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* CONTRAST RULES — do not violate:
   --green on light backgrounds is a FILL ONLY, never text (1.9:1).
   --orange on light is large display text only (3.0:1).
   --blue on light is large text/UI only; use --blue-deep for body links.
   All three are safe as accents on --ink.                                   */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--section-y); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--alt { background: var(--paper-alt); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.024em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4.15rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -0.014em; }
p  { margin: 0 0 1.15em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.1rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--steel); }
.band--ink .lede { color: var(--steel-light); }

/* Section label — carries the logo's three-bar device.
   Lifted directly from the Logo Suite lockup, so it reads as brand, not trim. */
.label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1.4rem;
}
.label::before {
  content: "";
  flex: none;
  width: 9px;
  height: 30px;
  background: url("assets/logo/KI_Logo_Mark.svg") no-repeat center / contain;
}
.band--ink .label { color: var(--steel-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px; padding-block: 0.75rem;
}

/* Brand lockup — real artwork from the official logo pack. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
@media (max-width: 480px) { .brand img { height: 32px; } }

.footer-logo { height: 62px; width: auto; margin-bottom: 1.1rem; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.84rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel-light); text-decoration: none;
  padding-block: 0.4rem; border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--blue); }

.header-phone {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.04rem;
  color: var(--blue); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) { .site-nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.87rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.75rem;
  border: 2px solid var(--blue-deep);
  background: var(--blue-deep); color: var(--paper);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: transparent; color: var(--blue-deep); }
.band--ink .btn { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.band--ink .btn:hover { background: transparent; color: var(--blue); }

.btn--ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.band--ink .btn--ghost { color: var(--paper); border-color: var(--rule-dark); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.band--ink .btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(23,137,252,0.06) 118px 119px);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.5rem; max-width: 54ch; }

/* Signature: the phone number as display type, sitting under the brand triad.
   This is a referral-driven business — the call is the conversion. */
.callout { margin-top: clamp(2.5rem, 5vw, 3.75rem); display: inline-block; }
.callout::before {
  content: ""; display: block; width: 132px; height: 6px; margin-bottom: 1.6rem;
  background: linear-gradient(90deg,
    var(--blue) 0 33.333%, var(--green) 33.333% 66.666%, var(--orange) 66.666% 100%);
}
.callout__label {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--steel-light); margin: 0 0 0.5rem;
}
.callout__number {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  letter-spacing: -0.035em; line-height: 1;
  color: var(--paper); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.callout__number:hover { color: var(--blue); }
.callout__note { margin: 0.85rem 0 0; font-size: 0.97rem; color: var(--steel-light); }

.page-head { background: var(--ink); color: var(--paper); padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin-top: 1.3rem; }

/* ---------- Sections ---------- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1.1rem; }

/* ---------- Service grid ---------- */
.grid {
  display: grid; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.band--ink .grid { background: var(--rule-dark); border-color: var(--rule-dark); }

.cell {
  background: var(--paper);
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  border-top: 3px solid transparent;
  transition: border-color 0.18s ease;
}
.band--alt .cell { background: var(--paper-alt); }
.band--ink .cell { background: var(--ink); }
.cell:hover { border-top-color: var(--blue); }
.cell h3 { margin-bottom: 0.75rem; }
.cell p { font-size: 0.99rem; color: var(--steel); }
.band--ink .cell p { color: var(--steel-light); }

/* Service tags rotate through the brand triad as a swatch, not as text —
   keeps green and orange legible by never setting them as type on white. */
.cell__tag {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 0.9rem;
}
.cell__tag::before { content: ""; width: 11px; height: 11px; background: var(--blue); flex: none; }
.cell:nth-child(3n+2) .cell__tag::before { background: var(--green); }
.cell:nth-child(3n) .cell__tag::before { background: var(--orange); }
.band--ink .cell__tag { color: var(--steel-light); }

.inline-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.83rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--blue-deep); text-decoration: none;
  border-bottom: 2px solid var(--blue); padding-bottom: 2px;
}
.inline-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .split--even { grid-template-columns: 1fr 1fr; }
}

/* ---------- Trust points ---------- */
.points { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.point { border-top: 3px solid var(--blue); padding-top: 1.25rem; }
.point:nth-child(3n+2) { border-top-color: var(--green); }
.point:nth-child(3n) { border-top-color: var(--orange); }
.point h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.point p { font-size: 0.97rem; color: var(--steel-light); }
.band--alt .point p, .band:not(.band--ink) .point p { color: var(--steel); }

/* ---------- Service detail ---------- */
.service { border-top: 1px solid var(--rule); padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
.service:last-of-type { border-bottom: 1px solid var(--rule); }
.service__body h2 { margin-bottom: 1.15rem; }
.service__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service__list li {
  padding: 0.72rem 0 0.72rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem; position: relative;
}
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 1.28rem;
  width: 9px; height: 9px; background: var(--blue);
}
.service__aside h4 {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--steel); margin: 0 0 0.9rem;
}
.note {
  margin-top: 1.5rem; padding: 1.15rem 1.35rem;
  background: var(--paper-alt); border-left: 4px solid var(--blue);
  font-size: 0.97rem;
}
.note p { max-width: none; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.quote { background: var(--paper); padding: clamp(1.6rem, 2.5vw, 2.1rem); border-top: 4px solid var(--blue); }
.quote:nth-child(3n+2) { border-top-color: var(--green); }
.quote:nth-child(3n) { border-top-color: var(--orange); }
.quote blockquote { margin: 0 0 1.35rem; font-size: 1.06rem; line-height: 1.55; }
.quote cite { font-style: normal; font-size: 0.9rem; color: var(--steel); display: block; }
.quote cite strong { font-family: var(--font-display); display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 0.15rem; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.75rem, 4vw, 3.25rem); }
.badge-slot {
  min-width: 130px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--rule); color: var(--steel);
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  padding: 0.5rem 1rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2.25rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.detail-list { margin: 0; }
.detail-list dt {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--steel); margin-top: 1.6rem;
}
.detail-list dt:first-of-type { margin-top: 0; }
.detail-list dd { margin: 0.35rem 0 0; font-size: 1.06rem; }
.detail-list dd a { color: var(--blue-deep); text-underline-offset: 3px; }

/* ---------- Form ---------- */
.form-field { margin-bottom: 1.15rem; }
.form-field label {
  display: block; font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel); margin-bottom: 0.45rem;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 0.8rem 0.9rem; border: 1px solid var(--rule);
  background: var(--paper); color: var(--ink); border-radius: 0;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; gap: 0 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA ---------- */
.cta-close { text-align: left; }
.cta-close h2 { max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-raised); color: var(--steel-light);
  padding-block: clamp(2.75rem, 5vw, 4rem); font-size: 0.95rem;
}
.footer-grid {
  display: grid; gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  /* colored rule rotates through the brand triad */
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--paper); margin: 0 0 1rem;
  padding-top: 0.85rem; border-top: 3px solid var(--blue);
}
.footer-grid > div:nth-child(3n+2) h4 { border-top-color: var(--green); }
.footer-grid > div:nth-child(3n) h4 { border-top-color: var(--orange); }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer p { max-width: 46ch; }
.footer-base {
  border-top: 1px solid var(--rule-dark); padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; font-size: 0.88rem;
}

/* ---------- Utility ---------- */
.stack > * + * { margin-top: 1.15rem; }
.muted { color: var(--steel); }
.band--ink .muted { color: var(--steel-light); }
.skip-link {
  position: absolute; left: -9999px;
  background: var(--blue); color: var(--ink);
  padding: 0.85rem 1.35rem; font-family: var(--font-display); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Unfilled placeholder marker — visible before launch, easy to grep */
.ph {
  background: rgba(255,107,0,0.16);
  border-bottom: 1px dashed var(--orange);
  padding: 0 0.2em;
}

/* ==========================================================================
   Divisions
   Client-assigned mapping. DO NOT REASSIGN — these match printed collateral:
     Networking    = blue   #1789FC
     Helpdesk      = green  #98CE00
     Cybersecurity = orange #FF6B00
   Each division sets --div inline; every colored element below inherits it.
   Division marks sit on --ink because green at 1.9:1 is invisible on white.
   ========================================================================== */
:root {
  --div-networking: var(--blue);
  --div-helpdesk:   var(--green);
  --div-cyber:      var(--orange);
}

.divisions {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.division {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.band--alt .division { border-color: var(--rule); }
.division__head {
  background: var(--ink);
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  display: flex; align-items: center; gap: 0.95rem;
  border-bottom: 5px solid var(--div, var(--blue));
}
.division__mark { width: 26px; height: auto; flex: none; display: block; }
.division__head h3 { color: var(--paper); font-size: 1.28rem; margin: 0; }
.division__body {
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  flex: 1; display: flex; flex-direction: column;
}
.division__body > p { color: var(--steel); font-size: 0.99rem; margin-bottom: 0; }
.division__services { list-style: none; margin: 1.35rem 0 0; padding: 0; }
.division__services li { padding: 0.85rem 0; border-top: 1px solid var(--rule); }
.division__services li:first-child { border-top-color: var(--div, var(--blue)); border-top-width: 2px; }
.division__services strong {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: 1.01rem; margin-bottom: 0.15rem;
}
.division__services span { font-size: 0.93rem; color: var(--steel); line-height: 1.5; }

/* Services page: full-width division sections */
.division-band { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.division-band:first-of-type { border-top: none; padding-top: 0; }
.division-band__head {
  display: flex; align-items: center; gap: 1rem;
  background: var(--ink); color: var(--paper);
  padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.35rem, 2.4vw, 1.9rem);
  border-left: 6px solid var(--div, var(--blue));
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.division-band__head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.division-band__head img { width: 24px; height: auto; flex: none; }
.division-band__head p { margin: 0.2rem 0 0; color: var(--steel-light); font-size: 0.96rem; max-width: none; }
.division-band .service:first-of-type { border-top: none; padding-top: 0; }
.division-band .service:last-of-type { border-bottom: none; padding-bottom: 0; }
.division-band .service__list li::before { background: var(--div, var(--blue)); }
.division-band .note { border-left-color: var(--div, var(--blue)); }

/* ==========================================================================
   WordPress integration
   Menu markup comes from wp_nav_menu, which wraps links in <li>. These rules
   make the generated markup match the hand-written nav styling above.
   ========================================================================== */
.site-nav li { list-style: none; margin: 0; }
.site-nav ul { display: contents; margin: 0; padding: 0; list-style: none; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--paper);
  border-bottom-color: var(--blue);
}
.site-footer .menu-item { margin-bottom: 0.55rem; }

/* Custom logo, if one is uploaded via the Customizer */
.custom-logo-link { display: inline-flex; }
.custom-logo { height: 38px; width: auto; }

/* Editor / block content inside .band */
.wp-block-image { margin-block: 1.5rem; }
.alignwide, .alignfull { max-width: none; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
