/*
Theme Name: FidelACT Consulting
Author: FidelACT Consulting Inc.
Description: A responsive consulting theme for SQL Server, Azure SQL, database infrastructure, and IT operations. Includes an interactive service selector and editable homepage content in the WordPress Customizer.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fidelact-consulting
Tags: custom-logo, custom-menu, featured-images, blog
*/

:root {
  color-scheme: light;
  --ink: #161c31;
  --muted: #505a71;
  --surface: #f6f7fb;
  --line: #dce0eb;
  --violet: #4c47a5;
  --lavender: #b5b2ff;
  --navy: #11172b;
  --white: #fff;
  --content: 73rem;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--navy); }
[hidden] { display: none !important; }
a { color: inherit; }
button, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7068e5; outline-offset: 4px; }
.wrap { width: min(var(--content), calc(100% - 5rem)); margin-inline: auto; }
.icon {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.symbol-bank { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute;
  z-index: 5;
  inset: 1rem auto auto 1rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: .4rem;
}
.skip-link:focus { transform: none; }
.intro { background: radial-gradient(ellipse at 79% 15rem, #20244a 0%, #11172b 34rem); }
.site-header { color: #f7f7ff; border-bottom: 1px solid #34394f; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; gap: .66rem; align-items: center; text-decoration: none; }
.brand img { display: block; flex: 0 0 auto; }
.brand strong { display: block; font-size: 1.28rem; line-height: 1.05; letter-spacing: -.035em; }
.brand small { display: block; font-weight: 700; font-size: .57rem; letter-spacing: .12em; line-height: 1.4; margin-top: .2rem; color: #c0c4dc; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: center; }
nav a { font-size: .9rem; font-weight: 600; color: #d8dbef; text-decoration: none; }
nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25em; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .63rem .9rem;
  border: 1px solid #616485;
  border-radius: .48rem;
  color: #eeedff;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.25rem);
  color: #f8f8ff;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .9rem;
  color: var(--violet);
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .12em;
}
.eyebrow > span:first-child {
  display: block;
  width: .46rem;
  height: .46rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}
.hero .eyebrow, .result-panel .eyebrow { color: var(--lavender); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  font-size: clamp(3rem, 5.1vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  margin: 0;
  font-weight: 750;
}
h1 em { font-style: normal; color: var(--lavender); }
.hero-description {
  max-width: 31rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  margin: 1.3rem 0 0;
  color: #d0d4e9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-items: center; margin-top: 1.8rem; }
.button {
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: .48rem;
  padding: .71rem 1.05rem;
  font-size: .93rem;
  line-height: 1.2;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.button-accent { background: var(--lavender); color: #171936; }
.button-accent:hover { background: #d5d2ff; }
.text-link { color: #e2e3f3; font-weight: 650; font-size: .94rem; text-underline-offset: .23em; }
.text-link:hover { color: var(--white); }
.hero-art {
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid #474c72;
  background: #191f3b;
  overflow: hidden;
  box-shadow: 0 1.5rem 5rem #070b1a70;
}
.art-caption, .art-footer {
  display: flex;
  gap: .55rem;
  align-items: center;
  padding: 1rem 1.2rem;
  color: #c4c8e5;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.art-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #a7a6ff; box-shadow: 0 0 .75rem #a7a6ff; }
.art-line { flex: 1; height: 1px; background: #464c76; margin-left: .3rem; }
.art-footer { border-top: 1px solid #3c4367; justify-content: space-between; gap: .35rem; }
.infrastructure { display: block; width: 100%; }
.svg-center { fill: #f1f0ff; font-size: 17px; font-weight: 720; }
.svg-node rect { fill: #222949; stroke: #666a9e; }
.svg-node text { fill: #e2e3fa; font-size: 13px; font-weight: 650; }
.node-dot { fill: #b5b2ff; }

.light { background: var(--surface); }
.services { padding-block: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.section-intro { max-width: 42rem; margin-bottom: 1.8rem; }
h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  letter-spacing: -.055em;
  line-height: 1.12;
  font-weight: 750;
  margin: 0;
}
.section-intro > p:last-child, .experience-copy > p:last-child {
  margin: .7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  padding: clamp(1.1rem, 2.2vw, 1.65rem);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .55rem;
  background: #eceaff;
  color: var(--violet);
  font-size: 1.17rem;
  margin-bottom: .9rem;
}
.service-card h3 { font-size: 1.17rem; letter-spacing: -.025em; line-height: 1.3; margin: 0; }
.service-card p { font-size: .93rem; color: var(--muted); line-height: 1.6; margin: .57rem 0 1rem; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.9rem;
  margin-top: auto;
  font-size: .89rem;
  font-weight: 740;
  color: var(--violet);
  text-decoration: none;
}
.service-link:hover { text-decoration: underline; text-underline-offset: .22em; }

.experience { padding-block: .5rem 0; }
.experience-panel {
  border: 1px solid #dcdef3;
  border-radius: .85rem;
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  background: #eeeffa;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(1.4rem, 5vw, 4rem);
}
.experience-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.experience-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
}
.experience-facts > div { border-left: 1px solid #c2c5e4; padding-left: 1rem; }
.experience-facts dt { font-size: clamp(1.5rem, 2.7vw, 2.2rem); font-weight: 780; letter-spacing: -.05em; color: #342e83; }
.experience-facts dd { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: .3rem 0 0; }

.selector { padding-block: clamp(3.25rem, 6vw, 5rem); }
.selector-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 1rem; }
.inputs-panel, .result-panel { padding: clamp(1.15rem, 2.8vw, 2rem); border-radius: .85rem; min-width: 0; }
.inputs-panel { border: 1px solid var(--line); background: var(--white); }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { font-weight: 750; padding: 0; margin-bottom: .85rem; }
.step {
  display: inline-grid;
  place-items: center;
  margin-right: .4rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #eeecff;
  color: var(--violet);
  font-size: .8rem;
  font-weight: 750;
}
.choices, .selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.choices label {
  display: flex;
  align-items: center;
  gap: .58rem;
  min-height: 3.1rem;
  padding: .65rem;
  border: 1px solid #d3d8e5;
  border-radius: .44rem;
  font-size: .85rem;
  font-weight: 630;
  line-height: 1.32;
  cursor: pointer;
}
.choices label:hover { border-color: #827cb9; }
.choices label:has(input:checked) { color: #312779; background: #eeecff; border-color: #675dc0; }
.choices label:has(input:focus-visible) { outline: 3px solid #7068e5; outline-offset: 2px; }
.choices input { flex: 0 0 auto; margin: 0; width: 1rem; height: 1rem; accent-color: #5549aa; }
.context-fields { margin-top: 1.4rem; }
.optional { margin-left: .32rem; color: var(--muted); font-size: .8rem; font-weight: 500; }
.selects label, #summary-area label { display: block; font-size: .84rem; font-weight: 650; }
select {
  display: block;
  width: 100%;
  min-height: 2.7rem;
  margin-top: .35rem;
  padding: .38rem .5rem;
  border: 1px solid #cbd0df;
  border-radius: .42rem;
  color: var(--ink);
  background: #fafaff;
  font-size: .87rem;
}
.reset-button {
  border: 0;
  padding: .45rem 0;
  margin-top: .75rem;
  background: transparent;
  color: var(--violet);
  text-decoration: underline;
  text-underline-offset: .2em;
  font-size: .84rem;
  font-weight: 650;
}
.result-panel { background: #1b2240; color: #f8f7ff; }
.result-panel .eyebrow { margin-bottom: .68rem; }
.recommendation h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.17; letter-spacing: -.035em; }
.recommendation p { margin: .55rem 0 0; color: #d2d6ec; font-size: .95rem; line-height: 1.5; }
#summary-area { margin-top: 1rem; }
textarea {
  display: block;
  width: 100%;
  min-height: 7.1rem;
  field-sizing: content;
  margin-top: .35rem;
  padding: .6rem .7rem;
  resize: vertical;
  background: #11172c;
  color: #edf0ff;
  border: 1px solid #5e668e;
  border-radius: .45rem;
  font-size: .82rem;
  line-height: 1.45;
}
.copy-button { margin-top: .7rem; }
.copy-status { color: #e1dfff; font-size: .83rem; margin: .6rem 0 0; }
.copy-status:empty { margin: 0; }
.privacy-note {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  border-top: 1px solid #434b6e;
  margin: 1rem 0 0;
  padding-top: .82rem;
  color: #c7cde7;
  font-size: .79rem;
  line-height: 1.45;
}
.privacy-note .icon { margin-top: .05em; }
.noscript { color: var(--muted); }

.site-footer { color: #f6f6ff; padding-block: 1.55rem; }
.site-footer p { color: #c6cbe1; font-size: .86rem; margin: 0; }
.footer-private { display: flex; align-items: center; gap: .35rem; }
#services, #experience, #selector { scroll-margin-top: 1rem; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); gap: 1.6rem; }
  .desktop-break { display: none; }
  .art-caption, .art-footer { padding-inline: .75rem; }
}

@media (max-width: 750px) {
  .hero, .selector-grid { grid-template-columns: 1fr; }
  .hero { gap: 2.3rem; }
  .hero-copy { max-width: 36rem; }
  .hero-art { max-width: 32rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-panel { grid-template-columns: 1fr; }
}

@media (max-width: 490px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 64px; gap: .6rem; }
  nav > a:not(.nav-cta) { display: none; }
  .nav-cta { font-size: .8rem; gap: .34rem; padding: .5rem; white-space: nowrap; }
  .brand img { width: 33px; height: 33px; }
  .brand strong { font-size: 1.13rem; }
  .brand small { letter-spacing: .09em; white-space: nowrap; }
  .hero { padding-block: 3.25rem 2.5rem; }
  .hero .eyebrow { letter-spacing: .075em; font-size: .67rem; }
  h1 { font-size: clamp(2.6rem, 11vw, 3.45rem); }
  .service-grid, .choices, .selects { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; gap: 1rem; }
  .site-footer .brand { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* WordPress navigation, logos, and editorial content. */
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.custom-logo { display: block; width: auto; max-width: min(15rem, 42vw); max-height: 3rem; }
.footer-note { max-width: 19rem; }
.content-shell { min-height: 65vh; padding-block: clamp(2.5rem, 6vw, 5rem); }
.reading-wrap { max-width: 52rem; }
.content-heading { margin-bottom: 2rem; }
.content-heading h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.15; }
.post-card { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.entry-title { margin-bottom: .8rem; }
.entry-title a { text-decoration: none; }
.entry-title a:hover { text-decoration: underline; text-underline-offset: .15em; }
.post-date { color: var(--muted); font-size: .85rem; }
.entry-content, .entry-summary, .archive-description { line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-block: 1.8rem .7rem; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.entry-content img, .post-card img, .entry-image { max-width: 100%; height: auto; border-radius: .5rem; }
.entry-content a, .entry-summary a { color: var(--violet); text-underline-offset: .2em; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .6rem; border: 1px solid var(--line); }
.entry-content pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #eceefa; }
.entry-content blockquote { border-left: 3px solid var(--violet); padding-left: 1rem; margin-inline: 0; }
.entry-content iframe { max-width: 100%; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .5rem 1.2rem .8rem 0; }
.alignright { float: right; margin: .5rem 0 .8rem 1.2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--muted); }
.bypostauthor > .comment-body { border-left: 3px solid var(--violet); padding-left: 1rem; }
.sticky { border-top: 3px solid var(--violet); padding-top: 1rem; }
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.search-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: end; margin-block: 1.5rem; }
.search-form label { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 15rem; }
.content-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), .content-shell textarea { min-height: 2.7rem; border: 1px solid #b7bdd0; padding: .65rem; border-radius: .4rem; background: #fff; color: var(--ink); max-width: 100%; }
.content-shell input[type="submit"], .search-submit { padding: .75rem 1.1rem; border: 0; border-radius: .4rem; background: var(--violet); color: #fff; font: inherit; cursor: pointer; }
.post-navigation, .pagination, .comments-area { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.page-numbers { padding: .4rem .6rem; }
.comment-list { padding-left: 1.4rem; }
.comment-body { padding-block: 1rem; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-form label { display: block; margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form textarea { min-height: 8rem; }
@media (max-width: 490px) {
  .header-inner:has(.primary-menu) { flex-wrap: wrap; padding-block: .8rem; }
  .header-inner:has(.primary-menu) nav { width: 100%; }
  .primary-menu { gap: .5rem 1rem; }
}
