/*
Theme Name: EWF Solutions
Theme URI: https://ewfsolutions.com/
Author: EWF Solutions LLC
Author URI: https://ewfsolutions.com/
Description: A responsive charcoal-and-teal growth partnership theme for EWF Solutions.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: ewf-solutions
*/

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #090d0f;
  --raised-ink: #11191b;
  --deep-teal: #102526;
  --teal: #13a89e;
  --teal-hover: #19bdb1;
  --white: #f7f8f7;
  --warm: #c8c0b6;
  --muted: #929c9b;
  --hairline: rgba(200, 192, 182, 0.24);
  --light-bg: #edf1ef;
  --light-ink: #152021;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Geist", Inter, Arial, sans-serif;
  font-synthesis: none;
}

body.admin-bar .site-header {
  top: 0;
}

main {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

::selection {
  background: var(--teal);
  color: #051010;
}

.shell {
  width: min(100% - 96px, 1440px);
  margin-inline: auto;
}

.hero {
  min-height: 900px;
  position: relative;
  background:
    radial-gradient(circle at 72% 58%, rgba(19, 168, 158, 0.08), transparent 30%),
    linear-gradient(110deg, #090d0f 0%, #090d0f 58%, #0c1416 100%);
}

.site-header {
  height: 106px;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-link {
  display: block;
  width: 260px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop-nav a {
  position: relative;
  padding: 20px 26px;
  color: #e4e8e6;
  font-size: 15px;
  font-weight: 650;
  border-right: 1px solid var(--hairline);
}

.desktop-nav a:last-child {
  border-right: 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 11px;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.button span {
  font-size: 24px;
  line-height: 0;
  transition: transform 170ms ease;
}

.button:hover span {
  transform: translateX(3px);
}

.button-primary {
  background: var(--teal);
  color: #061211;
}

.button-primary:hover {
  background: var(--teal-hover);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(200, 192, 182, 0.38);
  background: rgba(9, 13, 15, 0.56);
}

.button-secondary:hover {
  border-color: var(--teal);
  background: var(--raised-ink);
  transform: translateY(-2px);
}

.button-small {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 7px;
}

.mobile-menu {
  display: none;
}

.hero-grid {
  min-height: 794px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(620px, 1.08fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding: 76px 56px 72px 0;
  animation: hero-in 560ms ease-out both;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(58px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 640px;
  margin-bottom: 32px;
  color: #d7dad8;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 54px;
  color: #cdd2cf;
  font-size: 14px;
}

.trust-line::before,
.trust-line::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--teal);
}

.trust-line::before {
  margin-right: 18px;
}

.trust-line::after {
  margin-left: 18px;
}

.trust-line span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.trust-line span:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 18px;
  margin-inline: 18px;
  background: var(--teal);
}

.hero-visual {
  min-height: 700px;
  position: relative;
  align-self: end;
  isolation: isolate;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 5% 100%, 0 44%);
  animation: visual-in 680ms ease-out 120ms both;
}

.hero-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 42% center;
  z-index: -3;
}

.photo-grade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 13, 15, 0.24), rgba(9, 13, 15, 0.08) 45%, rgba(10, 38, 38, 0.62)),
    linear-gradient(0deg, rgba(7, 17, 18, 0.72), transparent 52%);
}

.visual-keyline {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-top: 1px solid rgba(19, 168, 158, 0.8);
  border-left: 1px solid rgba(19, 168, 158, 0.8);
}

.system-plate {
  width: 320px;
  position: absolute;
  z-index: 3;
  top: 145px;
  right: 26px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(19, 168, 158, 0.72);
  border-radius: 8px;
  background: rgba(10, 18, 19, 0.82);
  backdrop-filter: blur(12px);
}

.system-plate p {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-mark {
  width: 76px;
  height: 66px;
  position: relative;
  flex: 0 0 auto;
  background:
    linear-gradient(30deg, transparent 48%, var(--teal) 49%, var(--teal) 51%, transparent 52%) center/100% 100%,
    linear-gradient(150deg, transparent 48%, var(--teal) 49%, var(--teal) 51%, transparent 52%) center/100% 100%;
}

.node-mark i {
  width: 10px;
  height: 10px;
  position: absolute;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--raised-ink);
}

.node-mark i:nth-child(1) { left: 0; top: 27px; }
.node-mark i:nth-child(2) { left: 33px; top: 0; }
.node-mark i:nth-child(3) { right: 0; top: 27px; }
.node-mark i:nth-child(4) { left: 33px; bottom: 0; }
.node-mark i:nth-child(5) { left: 33px; top: 27px; }

.capability-matrix {
  width: min(590px, calc(100% - 68px));
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.capability-tile {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(19, 168, 158, 0.66);
  border-radius: 7px;
  background: rgba(13, 23, 24, 0.86);
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.capability-tile:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: rgba(16, 37, 38, 0.94);
}

.capability-tile span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.capability-tile strong {
  font-size: 17px;
  font-weight: 620;
}

.section {
  padding-block: 136px;
}

.partnership {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 80px;
  color: var(--light-ink);
  background: var(--light-bg);
  box-shadow: 0 0 0 100vmax var(--light-bg);
  clip-path: inset(0 -100vmax);
}

.section-heading h2,
.approach-copy h2,
.about-copy h2,
.contact-message h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 4.1vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-lead {
  align-self: end;
  padding-bottom: 6px;
}

.section-lead p {
  max-width: 610px;
  margin-bottom: 28px;
  color: #44504e;
  font-size: 19px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 6px;
  color: #0b6862;
  font-weight: 700;
  border-bottom: 1px solid var(--teal);
}

.text-link span {
  font-size: 22px;
}

.pillar-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid #c9d0cd;
  border-left: 1px solid #c9d0cd;
}

.pillar-card {
  min-height: 310px;
  padding: 30px;
  border-right: 1px solid #c9d0cd;
  border-bottom: 1px solid #c9d0cd;
}

.pillar-card > span {
  display: block;
  margin-bottom: 68px;
  color: #0b7f78;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.pillar-card h3,
.service-card h3,
.approach-list h3 {
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.pillar-card p,
.service-card p,
.approach-list p {
  margin-bottom: 0;
  color: #53605d;
  font-size: 16px;
  line-height: 1.65;
}

.capabilities {
  position: relative;
  background:
    linear-gradient(rgba(19, 168, 158, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 168, 158, 0.035) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
}

.capabilities-heading {
  max-width: 920px;
  margin-bottom: 64px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.service-card {
  min-height: 330px;
  position: relative;
  padding: 42px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(17, 25, 27, 0.72);
  transition: background 180ms ease;
}

.service-card:hover {
  background: rgba(16, 37, 38, 0.86);
}

.service-card > span {
  display: block;
  margin-bottom: 80px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.17em;
}

.service-card h3 {
  max-width: 500px;
  color: var(--white);
  font-size: 28px;
}

.service-card p {
  max-width: 570px;
  color: #aeb7b3;
}

.card-rule {
  width: 44px;
  height: 2px;
  position: absolute;
  top: 46px;
  right: 42px;
  background: var(--teal);
  transition: width 180ms ease;
}

.service-card:hover .card-rule {
  width: 72px;
}

.approach {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 100px;
  background: #f7f8f7;
  color: var(--light-ink);
  box-shadow: 0 0 0 100vmax #f7f8f7;
  clip-path: inset(0 -100vmax);
}

.approach-copy {
  position: sticky;
  top: 64px;
  align-self: start;
}

.approach-copy > p:last-child {
  max-width: 560px;
  margin-top: 28px;
  margin-bottom: 0;
  color: #53605d;
  font-size: 18px;
  line-height: 1.65;
}

.approach-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cbd2cf;
}

.approach-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 26px;
  padding: 36px 0;
  border-bottom: 1px solid #cbd2cf;
}

.approach-list li > span {
  color: #0b7f78;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.approach-list h3 {
  margin-bottom: 10px;
}

.about {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--deep-teal);
}

.about-photo-wrap {
  min-height: 680px;
  position: relative;
}

.about-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(16, 37, 38, 0.82));
}

.about-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.04);
}

.content-page {
  min-height: 100vh;
  padding-block: 48px 100px;
}

.content-header {
  padding-bottom: 36px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--hairline);
}

.content-logo {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.content-article {
  max-width: 860px;
}

.content-article + .content-article {
  margin-top: 72px;
  padding-top: 72px;
  border-top: 1px solid var(--hairline);
}

.content-article h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.content-article p,
.content-article li {
  color: #d7dad8;
  font-size: 18px;
  line-height: 1.7;
}

.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;
}

.about-copy {
  align-self: center;
  max-width: 760px;
  padding: 100px 7vw 100px 80px;
}

.about-copy > p:not(.eyebrow) {
  margin-top: 30px;
  margin-bottom: 42px;
  color: #bec7c3;
  font-size: 18px;
  line-height: 1.7;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.about-facts div {
  padding: 24px 20px 24px 0;
}

.about-facts div:not(:last-child) {
  border-right: 1px solid var(--hairline);
  margin-right: 20px;
}

.about-facts strong,
.about-facts span {
  display: block;
}

.about-facts strong {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.about-facts span {
  color: #9eaaa5;
  font-size: 12px;
  line-height: 1.4;
}

.contact {
  background: var(--teal);
  color: #061211;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  align-items: end;
}

.contact .eyebrow {
  color: #084e4a;
}

.contact-action p {
  max-width: 560px;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.65;
}

.contact .button-primary {
  color: var(--white);
  background: var(--ink);
}

.contact .button-primary:hover {
  background: #152223;
}

.site-footer {
  padding: 82px 0 30px;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  padding-bottom: 70px;
}

.footer-brand .brand-logo {
  width: 236px;
  margin-bottom: 24px;
}

.footer-brand p,
.footer-grid p,
.footer-grid address,
.footer-grid a {
  color: #aab3af;
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.footer-grid a {
  display: block;
}

.footer-grid a:hover {
  color: var(--teal);
}

.footer-grid h2 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  color: #74807c;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visual-in {
  from { opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 44%); }
  to { opacity: 1; clip-path: polygon(16% 0, 100% 0, 100% 100%, 5% 100%, 0 44%); }
}

@media (max-width: 1220px) {
  .site-header {
    grid-template-columns: 240px 1fr auto;
  }

  .logo-link {
    width: 215px;
  }

  .desktop-nav a {
    padding-inline: 16px;
  }

  .desktop-nav a::after {
    left: 16px;
    right: 16px;
  }

  .header-cta {
    padding-inline: 18px;
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  }

  .hero-copy {
    padding-right: 20px;
  }

  .system-plate {
    width: 285px;
  }

  .capability-matrix {
    width: calc(100% - 58px);
  }
}

@media (max-width: 1020px) {
  .shell {
    width: min(100% - 48px, 920px);
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    height: 90px;
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    display: block;
    position: relative;
    z-index: 30;
  }

  .mobile-menu summary {
    padding: 12px 0 12px 20px;
    color: var(--white);
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary::after {
    content: "+";
    margin-left: 12px;
    color: var(--teal);
    font-size: 20px;
  }

  .mobile-menu[open] summary::after {
    content: "–";
  }

  .mobile-menu nav {
    width: min(320px, calc(100vw - 48px));
    position: absolute;
    top: 50px;
    right: 0;
    display: grid;
    padding: 12px;
    border: 1px solid rgba(19, 168, 158, 0.5);
    background: rgba(9, 13, 15, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }

  .mobile-menu nav a {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu nav a:last-child {
    color: var(--teal);
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    display: block;
    width: 100%;
  }

  .hero-copy {
    width: min(100% - 48px, 920px);
    margin-inline: auto;
    padding: 92px 0 72px;
  }

  h1 {
    max-width: 800px;
    font-size: clamp(58px, 9.5vw, 80px);
  }

  .hero-visual {
    min-height: 680px;
    width: 100%;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%, 0 16%);
  }

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

  .partnership,
  .approach,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .section-lead {
    margin-top: 36px;
  }

  .approach {
    gap: 64px;
  }

  .approach-copy {
    position: static;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-photo-wrap {
    min-height: 560px;
  }

  .about-photo-wrap::after {
    background: linear-gradient(0deg, var(--deep-teal), transparent 50%);
  }

  .about-copy {
    max-width: 920px;
    padding: 84px 24px 100px;
    margin-inline: auto;
  }

  .contact-inner {
    gap: 46px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }

  .logo-link {
    width: 190px;
  }

  .site-header {
    height: 80px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 72px 0 60px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 66px);
    line-height: 0.98;
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .trust-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding-left: 20px;
    border-left: 1px solid var(--teal);
  }

  .trust-line::before,
  .trust-line::after,
  .trust-line span::after {
    display: none;
  }

  .hero-visual {
    min-height: 610px;
    clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%, 0 13%);
  }

  .system-plate {
    width: calc(100% - 36px);
    top: 56px;
    right: 18px;
  }

  .capability-matrix {
    width: calc(100% - 36px);
    right: 18px;
    bottom: 28px;
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-tile {
    min-height: 92px;
    padding: 14px;
  }

  .section {
    padding-block: 94px;
  }

  .section-heading h2,
  .approach-copy h2,
  .about-copy h2,
  .contact-message h2 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .pillar-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: 0;
  }

  .pillar-card > span,
  .service-card > span {
    margin-bottom: 42px;
  }

  .service-card {
    min-height: 300px;
    padding: 30px;
  }

  .card-rule {
    top: 34px;
    right: 30px;
  }

  .approach-list li {
    grid-template-columns: 42px 1fr;
  }

  .about-photo-wrap {
    min-height: 440px;
  }

  .about-copy {
    padding-inline: 18px;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .about-facts div:not(:last-child) {
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
