/*
Theme Name: NQuire Services
Theme URI: https://nquireservices.com/
Author: OpenAI Codex
Description: A custom WordPress theme for NQuire Services, a Salesforce consulting company serving nonprofits and community organizations.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nquire-services
*/

:root {
  --color-ink: #132127;
  --color-ink-soft: #3f5457;
  --color-sky: #d8f0ee;
  --color-foam: #f5fbfb;
  --color-moss: #2ea7a0;
  --color-gold: #8fd4cd;
  --color-rust: #bb5d46;
  --color-coral: #d2775a;
  --color-ocean: #2c7da0;
  --color-navy: #17344d;
  --color-lime: #9dd8cf;
  --color-white: #ffffff;
  --shadow-soft: 0 28px 60px rgba(38, 31, 94, 0.18);
  --shadow-card: 0 18px 40px rgba(38, 31, 94, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(46, 167, 160, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(143, 212, 205, 0.18), transparent 20%),
    linear-gradient(180deg, #eef8f8 0%, #f8fbfb 30%, #ffffff 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(18, 49, 74, 0.1);
  overflow: visible;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, backdrop-filter 0.22s ease;
}

.home .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.home .site-header.site-header--scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(18, 49, 74, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 28px rgba(26, 31, 82, 0.1);
}

.site-header__inner,
.site-footer__inner,
.section,
.page-content,
.post-content {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  min-height: 68px;
}

.site-branding {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-branding__logo {
  display: block;
  width: auto;
  height: 52px;
}

.home .site-header:not(.site-header--scrolled) .site-branding__logo {
  filter: brightness(0) invert(1);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav {
  flex-shrink: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--color-ocean);
}

.home .site-header:not(.site-header--scrolled) .site-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.home .site-header:not(.site-header--scrolled) .site-nav a:hover {
  color: var(--color-white);
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-coral), var(--color-rust));
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #c96b51, #ad523f);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-navy);
  border: 1px solid rgba(38, 31, 94, 0.12);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 7.25rem 0 3.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(143, 212, 205, 0.26), transparent 18%),
    radial-gradient(circle at 85% 18%, rgba(46, 167, 160, 0.22), transparent 18%),
    linear-gradient(135deg, #17344d 0%, #215b73 42%, #2ea7a0 100%);
  color: var(--color-white);
}

.hero--photo {
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: url('assets/nonprofit-admin-warm-hero-5.jpg') 66% 18% / cover no-repeat;
  transform: scaleX(-1);
  transform-origin: center;
  filter: none;
  z-index: 0;
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  filter: none;
  transform: none;
  z-index: 0;
}

.hero--page {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.hero:not(.hero--photo)::after {
  content: "";
  position: absolute;
  inset: auto -8% -10rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(2px);
}

.hero:not(.hero--photo)::before {
  content: "";
  position: absolute;
  inset: 2.5rem auto auto -7rem;
  width: 20rem;
  height: 20rem;
  border-radius: 42% 58% 70% 30% / 42% 31% 69% 58%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__grid {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero__grid--overlay {
  align-items: start;
  grid-template-columns: 1fr 1fr;
}

.hero__content {
  max-width: 42rem;
  padding: 1.75rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(210, 119, 90, 0.64), rgba(34, 82, 102, 0.66));
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 60px rgba(8, 10, 20, 0.22);
  grid-column: 2;
  justify-self: end;
}

.eyebrow {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(12, 16, 28, 0.42);
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1,
.page-hero h1,
.entry-title {
  margin: 1rem 0;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 42rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero__lede {
  max-width: 44rem;
}

.hero__actions,
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-card,
.card,
.focus-card,
.process-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 49, 74, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.hero-card__art {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(10, 27, 42, 0.25);
}

.hero-card--floating {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(10, 27, 42, 0.28);
  margin-top: 1.5rem;
}

.section-card {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-ink);
  border-color: rgba(18, 49, 74, 0.08);
}

.section-card--plain {
  margin-bottom: 1.25rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-card__title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-card .hero-card__list li {
  border-bottom: 1px solid rgba(18, 49, 74, 0.08);
  color: var(--color-ink-soft);
}

.hero-card .eyebrow {
  background: rgba(143, 212, 205, 0.2);
  color: #eefcf9;
}

.hero-card__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.hero-card__list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.hero-card__list li:last-child {
  border-bottom: 0;
}

.section {
  padding: 2rem 0 4rem;
}

.services-section {
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.section:nth-of-type(even):not(.cta) {
  position: relative;
}

.section-divider {
  width: 100%;
  height: 86px;
  line-height: 0;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.section-divider--light {
  margin-top: -1px;
}

.section-divider--light path {
  fill: #ffffff;
}

.section-divider--accent path {
  fill: rgba(216, 240, 238, 0.9);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section__intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section__intro p {
  margin: 0;
  color: var(--color-ink-soft);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.focus-card,
.process-card {
  padding: 1.5rem;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
}

.service-icon--centered {
  margin-left: auto;
  margin-right: auto;
}

.grid--tight-top {
  margin-top: 0.35rem;
}

.service-card--centered h3,
.service-card--centered p {
  text-align: center;
}

.services-grid {
  gap: 1.5rem 1.25rem;
}

.card--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.stat-number {
  display: block;
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--color-moss);
  font-weight: 800;
}

.card h3,
.focus-card h3,
.process-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.card p,
.focus-card p,
.process-card p,
.page-content p,
.post-content p {
  color: var(--color-ink-soft);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.badge-list li {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.logo-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 33, 39, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(216, 240, 238, 0.82));
  box-shadow: var(--shadow-card);
  color: var(--color-navy);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.visual-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.5rem;
  align-items: center;
}

.visual-panel {
  position: relative;
}

.visual-panel img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 1rem;
}

.people-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.people-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.people-point {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 49, 74, 0.08);
  box-shadow: var(--shadow-card);
}

.people-point h3 {
  margin: 0 0 0.45rem;
}

.people-point p {
  margin: 0;
  color: var(--color-ink-soft);
}

.photo-grid--editorial {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.photo-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.photo-card--large img {
  height: 100%;
  min-height: 320px;
}

.photo-card--feature img {
  height: 100%;
  min-height: 460px;
}

.photo-card figcaption {
  padding: 0.95rem 1rem 1.1rem;
  color: var(--color-ink-soft);
  font-weight: 600;
}

.photo-credit {
  margin-top: 1rem;
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: stretch;
}

.split-panel__highlight {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #17344d 0%, #215b73 52%, #2ea7a0 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.split-panel__highlight p,
.split-panel__highlight li {
  color: rgba(255, 255, 255, 0.84);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.check-list li {
  margin-bottom: 0.85rem;
  padding-left: 1.6rem;
  position: relative;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 1.4rem;
  line-height: 1;
}

.contact-list,
.service-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.contact-list li,
.service-list li {
  margin-bottom: 0.8rem;
  color: var(--color-ink-soft);
}

.contact-list strong,
.service-list strong {
  color: var(--color-ink);
}

.section--tint {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(216, 240, 238, 0.58), rgba(255, 255, 255, 0)),
    radial-gradient(circle at right top, rgba(46, 167, 160, 0.14), transparent 18%);
}

.section--tint > .section__intro,
.section--tint > .grid,
.section--tint > .split-panel,
.section--tint > .page-content {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-left: auto;
  margin-right: auto;
}

.section--compact {
  padding-top: 3rem;
}

.section--flush-top {
  padding-top: 0;
}

.quote-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(187, 93, 70, 0.96), rgba(210, 119, 90, 0.92));
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

.quote-panel strong {
  display: block;
  margin-top: 1rem;
}

.contact-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 49, 74, 0.08);
  box-shadow: var(--shadow-soft);
}

.contact-panel h3 {
  margin-top: 0;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.testimonial-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 49, 74, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 252, 0.96));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-ocean), var(--color-gold));
}

.testimonial-card__quote {
  margin: 0;
  color: var(--color-ink);
  font-size: 1.08rem;
  padding-top: 0.5rem;
}

.testimonial-card__meta {
  margin: 1rem 0 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.cta__panel--lead {
  padding: 2.2rem;
}

.lead-capture {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.lead-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(23, 52, 77, 0.96), rgba(31, 111, 120, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

.lead-card h3 {
  margin-top: 0;
}

.lead-card__note {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta {
  padding: 0 0 5rem;
}

.cta__panel {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(210, 119, 90, 0.16), rgba(143, 212, 205, 0.16)),
    #fffdf8;
  border: 1px solid rgba(18, 49, 74, 0.08);
  box-shadow: var(--shadow-soft);
}

.page-hero,
.entry-header {
  padding: 4rem 0 1rem;
}

.page-content,
.post-content {
  padding-bottom: 4rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(19, 33, 39, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-ink-soft);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .hero__grid,
  .grid--three,
  .grid--two,
  .split-panel,
  .visual-split,
  .people-layout,
  .photo-grid,
  .lead-capture,
  .logo-band {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-branding {
    align-items: flex-start;
  }

  .site-branding__logo {
    height: 46px;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero--photo {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero__content {
    padding: 1.25rem;
    grid-column: auto;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .hero h1,
  .page-hero h1,
  .entry-title {
    font-size: 2.5rem;
  }

  .site-header__inner,
  .site-footer__inner,
  .section,
  .page-content,
  .post-content,
  .hero__grid,
  .cta__panel {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }
}
