/*
Theme Name: E.P. Consulting
Theme URI: https://epconsulting.services/
Author: E.P. Consulting Services, LLC
Description: A secure, self-contained WordPress theme reproducing the former Square site without Square or Weebly dependencies.
Version: 1.1.7
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: ep-consulting
*/

:root {
  --ep-ink: #101614;
  --ep-muted: #52605b;
  --ep-green: #68ad8d;
  --ep-green-dark: #28755d;
  --ep-mint: #eef7f3;
  --ep-line: #dfe8e4;
  --ep-white: #ffffff;
  --ep-shadow: 0 18px 45px rgba(16, 36, 29, 0.1);
  --ep-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ep-ink);
  background: var(--ep-white);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ep-green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: #174f3e; }
.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;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  z-index: 9999;
  background: var(--ep-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(223, 232, 228, 0.8);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(var(--ep-width), calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.site-branding {
  width: 255px;
  height: 78px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.site-branding img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  object-fit: contain;
  object-position: left center;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--ep-line);
  background: var(--ep-white);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ep-ink);
  font: inherit;
  cursor: pointer;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav a {
  color: var(--ep-ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--ep-green-dark); }
.primary-nav .client-portal-link > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 9px 16px;
  color: var(--ep-white);
  background: var(--ep-green-dark);
  box-shadow: 0 8px 20px rgba(40, 117, 93, 0.2);
}
.primary-nav .client-portal-link > a:hover,
.primary-nav .client-portal-link > a:focus-visible {
  color: var(--ep-white);
  background: #174f3e;
}

.hero {
  min-height: 300px;
  display: grid;
  align-items: end;
  color: var(--ep-white);
  background-color: #092229;
  background-position: center;
  background-size: cover;
  isolation: isolate;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3, 17, 21, 0.75), rgba(3, 17, 21, 0.16));
}
.hero-home { background-image: url("assets/images/hero-it-security.jpg"); }
.hero-services { background-image: url("assets/images/security-lock.jpg"); }
.hero-inner {
  width: min(var(--ep-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 42px;
}
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.06; }
.hero .eyebrow { color: #a7e5ca; }
.hero-lead { max-width: 700px; margin: 18px 0 0; color: #edf7f3; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.page-title {
  width: min(var(--ep-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 0;
}
.page-title h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-main { min-height: 55vh; }
.content-wrap {
  width: min(var(--ep-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 82px;
}
.content-wrap > :first-child { margin-top: 0; }
.content-wrap h2, .content-wrap h3, .content-wrap h4 { line-height: 1.2; }
.content-wrap h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.content-wrap h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.lead { font-size: 1.15rem; color: #25342f; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--ep-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ep-button, button.ep-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--ep-green);
  border-radius: 7px;
  color: var(--ep-white);
  background: var(--ep-green-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.ep-button:hover, .ep-button:focus-visible { color: var(--ep-white); background: #174f3e; }
.ep-button-secondary { color: var(--ep-green-dark); background: var(--ep-white); }
.ep-button-secondary:hover, .ep-button-secondary:focus-visible { color: #174f3e; background: var(--ep-mint); }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 72px;
  align-items: center;
}
.round-image { aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--ep-shadow); }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 62px;
}
.portal-card {
  min-height: 220px;
  padding: 34px;
  border: 1px solid var(--ep-line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--ep-white), var(--ep-mint));
  box-shadow: var(--ep-shadow);
}
.portal-card h3 { margin-top: 0; }
.portal-card p { color: var(--ep-muted); }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 70px;
  align-items: center;
}
.about-image { min-height: 440px; width: 100%; object-fit: cover; border-radius: 14px; box-shadow: var(--ep-shadow); }

.services-list { display: grid; gap: 54px; }
.services-intro { max-width: 850px; }
.services-intro h2 { margin: 0 0 18px; }
.service-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.service-pill-row span { padding: 7px 13px; border: 1px solid #bdd9cd; border-radius: 999px; color: var(--ep-green-dark); background: var(--ep-mint); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { min-width: 0; padding: 28px; border: 1px solid var(--ep-line); border-radius: 16px; background: var(--ep-white); box-shadow: 0 8px 24px rgba(16, 36, 29, 0.06); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.service-card:hover { transform: translateY(-4px); border-color: #b8d7ca; box-shadow: var(--ep-shadow); }
.service-card-featured { background: linear-gradient(145deg, #f8fcfa, var(--ep-mint)); border-color: #afd3c3; }
.service-card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.service-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; color: var(--ep-white); background: linear-gradient(145deg, var(--ep-green-dark), #174f3e); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.05em; }
.service-kicker { color: var(--ep-green-dark); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.service-card h2 { margin: 0 0 11px; font-size: 1.35rem; }
.service-card p { margin: 0 0 18px; color: var(--ep-muted); }
.service-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: #263a33; font-size: 0.91rem; }
.service-card li { position: relative; padding-left: 20px; }
.service-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ep-green-dark); font-weight: 900; }
.service-audiences { padding: 46px; border-radius: 18px; background: #102c24; color: var(--ep-white); }
.service-audiences > h2 { margin: 0 0 28px; }
.service-audiences .eyebrow { color: #a7e5ca; }
.audience-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.audience-grid article { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.audience-grid h3 { margin: 0 0 10px; font-size: 1.15rem; }
.audience-grid p { margin: 0; color: #dceae4; font-size: 0.94rem; }
.service-cta { padding: 46px; border: 1px solid #c9ded5; border-radius: 18px; background: linear-gradient(140deg, var(--ep-mint), #f9fcfb); }
.service-cta h2 { max-width: 700px; margin: 0 0 13px; }
.service-cta > p:not(.eyebrow) { max-width: 730px; color: var(--ep-muted); }

.contact-grid { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.contact-card { padding: 28px; border-radius: 12px; background: var(--ep-mint); }
.contact-card a { font-size: 1.25rem; font-weight: 800; }
.ep-form { display: grid; gap: 18px; }
.ep-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ep-field { display: grid; gap: 7px; }
.ep-field label { font-size: 0.9rem; font-weight: 750; }
.ep-field input, .ep-field select, .ep-field textarea {
  width: 100%;
  border: 1px solid #bdcbc5;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ep-ink);
  background: var(--ep-white);
  font: inherit;
}
.ep-field input:focus, .ep-field select:focus, .ep-field textarea:focus { outline: 3px solid rgba(104, 173, 141, 0.25); border-color: var(--ep-green-dark); }
.ep-field textarea { min-height: 160px; resize: vertical; }
.ep-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ep-alert { margin: 0 0 24px; padding: 14px 16px; border-radius: 7px; }
.ep-alert-success { color: #164c3a; background: #e2f5eb; }
.ep-alert-error { color: #7a1820; background: #fde9eb; }
.privacy-note { color: var(--ep-muted); font-size: 0.82rem; }

/* Fluent Forms contact experience */
.contact-grid .fluentform { width: 100%; }
.contact-grid .ff-el-group { margin-bottom: 18px; }
.contact-grid .ff-el-input--label label {
  color: var(--ep-ink);
  font-size: 0.9rem;
  font-weight: 750;
}
.contact-grid .ff-el-form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bdcbc5;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ep-ink);
  background: var(--ep-white);
  box-shadow: none;
  font: inherit;
}
.contact-grid textarea.ff-el-form-control { min-height: 170px; resize: vertical; }
.contact-grid .ff-el-form-control:focus {
  outline: 3px solid rgba(104, 173, 141, 0.25);
  border-color: var(--ep-green-dark);
  box-shadow: none;
}
.contact-grid .ff-el-help-message { color: var(--ep-muted); font-size: 0.82rem; }
.contact-grid .ff-btn-submit {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 12px 22px;
  color: var(--ep-white);
  background: var(--ep-green-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.contact-grid .ff-btn-submit:hover,
.contact-grid .ff-btn-submit:focus-visible { background: #0f533f; }
.contact-grid .ff-message-success {
  border: 0;
  border-radius: 7px;
  padding: 16px 18px;
  color: #164c3a;
  background: #e2f5eb;
  box-shadow: none;
}

.site-footer { color: #dce7e2; background: #10221c; }
.footer-inner {
  width: min(var(--ep-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ep-white); }

@media (max-width: 800px) {
  .header-inner { min-height: 86px; }
  .site-branding { width: 190px; height: 66px; }
  .site-branding img { width: 100%; height: 100%; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 86px; left: 0; right: 0; padding: 20px; background: var(--ep-white); border-bottom: 1px solid var(--ep-line); box-shadow: var(--ep-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 16px; }
  .primary-nav a { display: block; padding: 5px 0; }
  .hero { min-height: 250px; }
  .home-intro, .about-layout, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .home-intro .round-image { max-width: 360px; }
  .portal-grid { grid-template-columns: 1fr; }
  .service-grid, .audience-grid { grid-template-columns: 1fr; }
  .service-audiences, .service-cta { padding: 32px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner, .hero-inner, .page-title, .content-wrap, .footer-inner { width: min(100% - 28px, var(--ep-width)); }
  .ep-form-row { grid-template-columns: 1fr; }
  .content-wrap { padding: 42px 0 60px; }
  .portal-card, .service-card { padding: 23px; }
  .services-list { gap: 40px; }
  .service-audiences, .service-cta { padding: 26px 22px; }
}

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