/*
Theme Name: EverWise Co
Theme URI: https://everwiseco.com
Author: EverWise Co
Author URI: https://everwiseco.com
Description: A custom one-page portfolio theme for EverWise Co — career, personal development, and people & culture consulting. Code-first: all section content lives directly in template-parts/*.php.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: everwise
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --ew-plum: #4A3048;
  --ew-plum-deep: #3A2538;
  --ew-cream: #F7F1E7;
  --ew-cream-warm: #FBF7F0;
  --ew-charcoal: #303033;
  --ew-orange: #F59A2A;
  --ew-lime: #C5D91B;
  --ew-blush: #F0DCE0;
  --ew-white: #FFFFFF;

  --ew-font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ew-font-body: "Lora", Georgia, "Times New Roman", serif;

  --ew-space-xs: 0.5rem;
  --ew-space-sm: 1rem;
  --ew-space-md: 2rem;
  --ew-space-lg: 3rem;
  --ew-space-xl: 4.5rem;

  --ew-radius: 2px;
  --ew-max-width: 1180px;
  --ew-line: 1px solid rgba(48, 48, 51, 0.14);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ew-cream);
  color: var(--ew-charcoal);
  font-family: var(--ew-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--ew-font-display);
  color: var(--ew-plum);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2rem; max-width: 62ch; }

ul { padding-left: 1.2rem; }
li { margin-bottom: 0.5rem; }

::selection { background: var(--ew-lime); color: var(--ew-plum-deep); }

:focus-visible {
  outline: 2px solid var(--ew-orange);
  outline-offset: 3px;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.ew-wrap {
  max-width: var(--ew-max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.everwise-page > section {
  scroll-margin-top: 90px;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.ew-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 231, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: var(--ew-line);
  transition: box-shadow 0.25s ease;
}

.ew-site-header__inner {
  max-width: var(--ew-max-width);
  margin: 0 auto;
  padding: 0.9rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ew-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ew-font-display);
  color: var(--ew-plum);
  font-weight: 700;
  font-size: 1.15rem;
}

.ew-brand img { height: 42px; width: 42px; border-radius: 50%; }

.ew-nav { display: flex; align-items: center; gap: 1.9rem; }

.ew-nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ew-nav a {
  font-family: var(--ew-font-body);
  font-size: 0.98rem;
  color: var(--ew-charcoal);
  position: relative;
  padding: 0.2rem 0;
}

.ew-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--ew-orange);
  transition: width 0.25s ease;
}

.ew-nav a:hover::after, .ew-nav a:focus-visible::after { width: 100%; }

.ew-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.ew-nav-toggle span,
.ew-nav-toggle span::before,
.ew-nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ew-plum);
  position: relative;
  transition: 0.25s ease;
}

.ew-nav-toggle span::before, .ew-nav-toggle span::after { content: ""; position: absolute; left: 0; }
.ew-nav-toggle span::before { top: -8px; }
.ew-nav-toggle span::after { top: 8px; }

@media (max-width: 780px) {
  .ew-nav-toggle { display: block; }
  .ew-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--ew-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }
  .ew-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .ew-nav a { font-size: 1.2rem; }
  .ew-nav-list { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.ew-btn, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ew-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--ew-radius);
  border: 1.5px solid var(--ew-plum);
  background: var(--ew-plum);
  color: var(--ew-cream) !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ew-btn:hover, .wp-block-button__link:hover {
  background: var(--ew-plum-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(74, 48, 72, 0.28);
}

.is-style-ew-outline .wp-block-button__link {
  background: transparent;
  color: var(--ew-plum) !important;
  border-color: var(--ew-plum);
  box-shadow: none;
}

.is-style-ew-outline .wp-block-button__link:hover {
  background: var(--ew-plum);
  color: var(--ew-cream) !important;
  box-shadow: 0 12px 22px rgba(74, 48, 72, 0.2);
}

.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.wp-block-button { margin: 0; }

/* =========================================================
   HERO
   ========================================================= */
.ew-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--ew-space-lg);
  padding: var(--ew-space-xl) 1.75rem 2.75rem;
  max-width: var(--ew-max-width);
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
}

/* Soft ambient glow behind the hero content — one quiet atmospheric
   touch, kept subtle so text contrast is unaffected. */
.ew-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -8%;
  width: 55%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(245, 154, 42, 0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ew-hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  right: 4%;
  width: 40%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(197, 217, 27, 0.16), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.ew-hero h1 { margin-bottom: 1.4rem; }

.ew-hero__lede {
  font-size: 1.15rem;
  color: var(--ew-charcoal);
  max-width: 46ch;
}

.ew-hero__media {
  position: relative;
}

/* Layered color-block frame behind the photo: a plum bar set further
   back, a lime bar closer in front of it, echoing the brand's own
   plum/lime pairing instead of a single flat offset block. */
.ew-hero__media::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  background: var(--ew-plum);
  z-index: -2;
  border-radius: var(--ew-radius);
}

.ew-hero__media::after {
  content: "";
  position: absolute;
  top: -16px;
  right: -16px;
  width: 100%;
  height: 100%;
  background: var(--ew-lime);
  z-index: -1;
  border-radius: var(--ew-radius);
}

.ew-hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--ew-radius);
  box-shadow: 0 24px 48px rgba(58, 37, 56, 0.22);
}

/* Ambient dot cluster with a slow, gentle drift — the one continuous
   motion detail in the hero, paused for reduced-motion users. */
.ew-hero__dots {
  position: absolute;
  top: -34px;
  left: -20px;
  width: 64px;
  height: 64px;
  background-image: radial-gradient(var(--ew-orange) 3px, transparent 3px);
  background-size: 14px 14px;
  opacity: 0.6;
  z-index: -1;
  animation: ew-dots-drift 7s ease-in-out infinite;
}

@keyframes ew-dots-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, -6px); }
}

@media (prefers-reduced-motion: reduce) {
  .ew-hero__dots { animation: none; }
}

/* Scroll cue at the base of the hero, inviting the next section. */
.ew-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--ew-plum);
  opacity: 0.55;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.ew-scroll-cue svg {
  width: 16px;
  height: 16px;
  animation: ew-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes ew-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .ew-scroll-cue svg { animation: none; }
}

@media (max-width: 900px) {
  .ew-hero { grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 3.5rem; }
  .ew-hero__media { order: -1; max-width: 340px; margin: 0 auto 1.5rem; }
  .ew-scroll-cue { display: none; }
}

/* "People Are at the Heart" intro — asymmetric split with accent rule */
.ew-intro-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--ew-space-lg);
  align-items: start;
}

.ew-intro-split__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 154, 42, 0.16);
  color: var(--ew-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.ew-intro-split__icon svg { width: 26px; height: 26px; }

.ew-intro-split__copy { border-left: 3px solid var(--ew-lime); padding-left: var(--ew-space-md); }
.ew-intro-split__copy p:first-child { font-size: 1.12rem; color: var(--ew-plum-deep); }

@media (max-width: 900px) {
  .ew-intro-split { grid-template-columns: 1fr; }
  .ew-intro-split__copy { border-left: none; padding-left: 0; border-top: 3px solid var(--ew-lime); padding-top: 1.2rem; }
}

/* =========================================================
   COLOR-BLOCK PHILOSOPHY STRIP (Self -> People -> Culture)
   ========================================================= */
.ew-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--ew-max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.ew-flow__panel {
  padding: var(--ew-space-lg) var(--ew-space-md);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ew-flow__panel--cream { background: var(--ew-cream-warm); color: var(--ew-charcoal); }
.ew-flow__panel--plum {
  background: var(--ew-plum);
  color: var(--ew-cream);
  background-image: radial-gradient(rgba(247, 241, 231, 0.08) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.ew-flow__panel--blush { background: var(--ew-blush); color: var(--ew-plum-deep); }

.ew-flow__panel--plum h3, .ew-flow__panel--plum .ew-flow__label { color: var(--ew-cream); }

.ew-flow__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.ew-flow__icon svg { width: 20px; height: 20px; }

.ew-flow__panel--cream .ew-flow__icon { background: rgba(245, 154, 42, 0.16); color: var(--ew-orange); }
.ew-flow__panel--plum .ew-flow__icon { background: rgba(197, 217, 27, 0.22); color: var(--ew-lime); }
.ew-flow__panel--blush .ew-flow__icon { background: rgba(74, 48, 72, 0.12); color: var(--ew-plum); }

.ew-flow__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ew-plum);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ew-flow__panel h3 { max-width: 20ch; }

.ew-flow__arrow { font-size: 1.4rem; margin-top: 2rem; }

.ew-flow__panel--cream .ew-flow__arrow { color: var(--ew-plum); }
.ew-flow__panel--plum .ew-flow__arrow { color: var(--ew-lime); }
.ew-flow__panel--blush .ew-flow__arrow { color: var(--ew-plum); }

@media (max-width: 780px) {
  .ew-flow { grid-template-columns: 1fr; }
  .ew-flow__panel { min-height: auto; padding: var(--ew-space-md) var(--ew-space-sm); }
}

/* =========================================================
   SECTION SPACING
   ========================================================= */
.ew-section {
  padding: var(--ew-space-xl) 1.75rem;
  max-width: var(--ew-max-width);
  margin: 0 auto;
}

.ew-section-head { max-width: 640px; margin: 0 0 var(--ew-space-lg); }

.ew-section-head .ew-kicker {
  color: var(--ew-orange);
  font-family: var(--ew-font-body);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

/* Divider used for inline SELF -> PEOPLE -> CULTURE repeats */
.ew-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 2.2rem 0 1.4rem;
  color: var(--ew-orange);
}

.ew-divider::before, .ew-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(74, 48, 72, 0.18);
}

.ew-divider__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(245, 154, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ew-divider__icon svg { width: 15px; height: 15px; }

.ew-divider span { font-weight: 700; letter-spacing: 0.06em; font-size: 0.9rem; white-space: nowrap; }

/* "Our Approach" step rail — Understand -> Clarify -> Grow -> Contribute,
   shown as a connected sequence of numbered steps instead of a flat
   text divider, so it reads as a small piece of visual storytelling. */
.ew-approach h3 { margin-bottom: 0.6rem; }

.ew-approach > p { max-width: 58ch; }

.ew-approach__steps {
  display: flex;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  max-width: 620px;
}

.ew-approach__steps li {
  flex: 1;
  position: relative;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ew-plum);
  letter-spacing: 0.01em;
}

.ew-approach__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, rgba(74, 48, 72, 0.28) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
}

.ew-approach__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  font-family: var(--ew-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
  background: var(--ew-cream);
  border: 2px solid var(--ew-plum);
  color: var(--ew-plum);
}

.ew-approach__steps li:nth-child(2) .ew-approach__num { border-color: var(--ew-orange); color: var(--ew-orange); }
.ew-approach__steps li:nth-child(3) .ew-approach__num { border-color: #8a9613; color: #8a9613; }
.ew-approach__steps li:nth-child(4) .ew-approach__num {
  background: var(--ew-plum);
  border-color: var(--ew-plum);
  color: var(--ew-lime);
}

@media (max-width: 560px) {
  .ew-approach__steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    max-width: none;
  }
  .ew-approach__steps li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-align: left;
  }
  .ew-approach__num { margin: 0; flex-shrink: 0; }
  .ew-approach__steps li:not(:last-child)::after {
    top: 38px;
    left: 19px;
    width: 2px;
    height: calc(100% + 1.4rem - 38px);
    background-image: linear-gradient(to bottom, rgba(74, 48, 72, 0.28) 0 6px, transparent 6px 12px);
    background-size: 2px 12px;
  }
}

/* About intro — two-column editorial layout */
.ew-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ew-space-lg);
  align-items: start;
}

.ew-about-col p:first-child { font-size: 1.12rem; }

.ew-about-col p:first-child::first-letter {
  font-family: var(--ew-font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--ew-plum);
  float: left;
  line-height: 0.8;
  margin: 0.1rem 0.5rem 0 0;
}

.ew-about-col--accent {
  background: var(--ew-cream-warm);
  border-radius: var(--ew-radius);
  padding: var(--ew-space-md);
}

.ew-about-col--accent .ew-divider { margin-top: 0; }

.ew-about-callout {
  background: var(--ew-white);
  border-left: 4px solid var(--ew-lime);
  padding: 1.2rem 1.4rem;
  border-radius: var(--ew-radius);
  margin-top: 1.4rem;
}

.ew-about-callout p {
  margin: 0;
  font-family: var(--ew-font-display);
  font-style: italic;
  color: var(--ew-plum-deep);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .ew-about-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SERVICES / PILLARS — closed cards
   ========================================================= */
.ew-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ew-space-md);
}

.ew-pillar {
  padding: var(--ew-space-md) var(--ew-space-md) calc(var(--ew-space-md) + 0.5rem);
  position: relative;
  background: var(--ew-white);
  border-radius: var(--ew-radius);
  border-top: 4px solid var(--ew-orange);
  box-shadow: 0 2px 14px rgba(74, 48, 72, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ew-pillar:nth-child(2) { border-top-color: var(--ew-plum); }
.ew-pillar:nth-child(3) { border-top-color: var(--ew-lime); }

.ew-pillar:hover { box-shadow: 0 18px 32px rgba(74, 48, 72, 0.14); transform: translateY(-5px); }

.ew-pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.ew-pillar__icon svg { width: 24px; height: 24px; }

.ew-pillar:nth-child(1) .ew-pillar__icon { background: rgba(245, 154, 42, 0.16); color: var(--ew-orange); }
.ew-pillar:nth-child(2) .ew-pillar__icon { background: rgba(74, 48, 72, 0.1); color: var(--ew-plum); }
.ew-pillar:nth-child(3) .ew-pillar__icon { background: rgba(197, 217, 27, 0.22); color: #8a9613; }

.ew-pillar__tag { font-style: italic; color: var(--ew-plum); font-weight: 600; margin-bottom: 1rem; }

.ew-pillar ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.ew-pillar li { padding-left: 1.3rem; position: relative; font-size: 0.98rem; }

.ew-pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ew-orange);
}

.ew-pillar:nth-child(2) li::before { background: var(--ew-plum); }
.ew-pillar:nth-child(3) li::before { background: #8a9613; }

@media (max-width: 900px) {
  .ew-pillars { grid-template-columns: 1fr; }
  .ew-pillar:hover { transform: none; }
}

/* =========================================================
   ABOUT / FOUNDER
   ========================================================= */
.ew-founder {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--ew-space-lg);
  align-items: center;
  position: relative;
}

.ew-founder__media { position: relative; }

.ew-founder__media::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: var(--ew-orange);
  z-index: -1;
  border-radius: var(--ew-radius);
}

.ew-founder__media img { border-radius: var(--ew-radius); aspect-ratio: 3 / 4; object-fit: cover; }

.ew-founder__badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--ew-plum);
  color: var(--ew-cream);
  border-radius: 50%;
  width: 122px;
  height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 10px 26px rgba(74, 48, 72, 0.28);
}

.ew-founder__badge svg { width: 22px; height: 22px; margin-bottom: 0.25rem; color: var(--ew-lime); }
.ew-founder__badge strong { font-family: var(--ew-font-display); font-size: 1.35rem; line-height: 1; display: block; }
.ew-founder__badge span { font-size: 0.68rem; letter-spacing: 0.04em; max-width: 80px; line-height: 1.2; }

.ew-founder__copy { position: relative; }

.ew-founder__mark {
  position: absolute;
  top: -2.4rem;
  left: -0.4rem;
  width: 44px;
  height: 44px;
  color: rgba(74, 48, 72, 0.14);
  z-index: -1;
  display: block;
}

.ew-founder__mark svg { display: block; width: 100%; height: 100%; }

.ew-founder__name { margin-bottom: 0.2rem; }

.ew-founder__role { color: var(--ew-orange); font-style: italic; font-weight: 600; margin-bottom: 1.3rem; display: block; }

.ew-founder__pullquote {
  font-family: var(--ew-font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ew-plum-deep);
  border-left: 3px solid var(--ew-lime);
  padding-left: 1.2rem;
  margin: 1.6rem 0;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .ew-founder { grid-template-columns: 1fr; }
  .ew-founder__media { max-width: 280px; margin: 0 auto 2.2rem; }
  .ew-founder__badge { width: 100px; height: 100px; bottom: -14px; right: 10px; }
}

/* Values — icon cards with cycling accents */
.ew-values { display: flex; flex-wrap: wrap; gap: var(--ew-space-md); margin-top: var(--ew-space-md); }

.ew-value {
  flex: 1 1 260px;
  max-width: 320px;
  background: var(--ew-white);
  padding: var(--ew-space-md) var(--ew-space-sm) var(--ew-space-sm);
  border-radius: var(--ew-radius);
  border-bottom: 4px solid var(--ew-orange);
  box-shadow: 0 2px 0 rgba(48,48,51,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ew-value:hover { transform: translateY(-6px); box-shadow: 0 16px 28px rgba(74, 48, 72, 0.12); }

.ew-value:nth-child(1) { border-bottom-color: var(--ew-orange); }
.ew-value:nth-child(2) { border-bottom-color: var(--ew-plum); }
.ew-value:nth-child(3) { border-bottom-color: var(--ew-lime); }
.ew-value:nth-child(4) { border-bottom-color: var(--ew-orange); }
.ew-value:nth-child(5) { border-bottom-color: var(--ew-plum); }

.ew-value__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.ew-value__icon svg { width: 22px; height: 22px; }

.ew-value:nth-child(1) .ew-value__icon { background: rgba(245, 154, 42, 0.16); color: var(--ew-orange); }
.ew-value:nth-child(2) .ew-value__icon { background: rgba(74, 48, 72, 0.1); color: var(--ew-plum); }
.ew-value:nth-child(3) .ew-value__icon { background: rgba(197, 217, 27, 0.22); color: #8a9613; }
.ew-value:nth-child(4) .ew-value__icon { background: rgba(245, 154, 42, 0.16); color: var(--ew-orange); }
.ew-value:nth-child(5) .ew-value__icon { background: rgba(74, 48, 72, 0.1); color: var(--ew-plum); }

.ew-value dt { font-family: var(--ew-font-display); color: var(--ew-plum); font-size: 1.15rem; margin-bottom: 0.4rem; }
.ew-value dd { margin: 0; color: var(--ew-charcoal); font-size: 0.98rem; }

@media (max-width: 700px) {
  .ew-value { flex: 1 1 100%; max-width: none; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.ew-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ew-space-md); }

.ew-testimonial {
  background: var(--ew-white);
  border-top: 3px solid var(--ew-orange);
  padding: var(--ew-space-md) var(--ew-space-sm) var(--ew-space-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ew-testimonial:hover { transform: translateY(-5px); box-shadow: 0 16px 28px rgba(74, 48, 72, 0.1); }

.ew-testimonial:nth-child(2) { border-top-color: var(--ew-plum); }
.ew-testimonial:nth-child(3) { border-top-color: var(--ew-lime); }

.ew-testimonial__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 154, 42, 0.14);
  margin-bottom: 1rem;
  color: var(--ew-orange);
}

.ew-testimonial__mark svg { width: 17px; height: 17px; }

.ew-testimonial:nth-child(2) .ew-testimonial__mark { background: rgba(74, 48, 72, 0.1); color: var(--ew-plum); }
.ew-testimonial:nth-child(3) .ew-testimonial__mark { background: rgba(197, 217, 27, 0.24); color: #8a9613; }

.ew-testimonial blockquote {
  font-family: var(--ew-font-display);
  font-style: italic;
  color: var(--ew-plum-deep);
  font-size: 1.1rem;
  margin: 0 0 1.3rem;
}

.ew-testimonial__lead { font-weight: 700; margin-bottom: 0.6rem !important; }

.ew-testimonial__foot { display: flex; align-items: center; gap: 0.7rem; }

.ew-testimonial__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ew-plum);
  color: var(--ew-cream);
  font-family: var(--ew-font-display);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ew-testimonial:nth-child(2) .ew-testimonial__avatar { background: var(--ew-orange); }
.ew-testimonial:nth-child(3) .ew-testimonial__avatar { background: #8a9613; }

.ew-testimonial cite {
  font-style: normal;
  font-family: var(--ew-font-body);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ew-charcoal);
  font-weight: 700;
}

@media (max-width: 900px) {
  .ew-testimonials { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.ew-contact-wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--ew-space-lg); }

.ew-form { display: grid; gap: 1.1rem; max-width: 640px; }

.ew-form label { display: block; font-weight: 600; color: var(--ew-plum); margin-bottom: 0.4rem; font-size: 0.95rem; }

.ew-form input, .ew-form select, .ew-form textarea {
  width: 100%;
  font-family: var(--ew-font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(74, 48, 72, 0.3);
  border-radius: var(--ew-radius);
  background: var(--ew-cream-warm);
  color: var(--ew-charcoal);
}

.ew-form input:focus, .ew-form select:focus, .ew-form textarea:focus { outline: none; border-color: var(--ew-orange); }

.ew-form textarea { resize: vertical; min-height: 120px; }

.ew-form button[type="submit"] { justify-self: start; font-family: var(--ew-font-body); }

.ew-form__hp { position: absolute; left: -9999px; }

.ew-form__notice { padding: 0.9rem 1.1rem; border-radius: var(--ew-radius); margin-bottom: 1.2rem; font-size: 0.95rem; }
.ew-form__notice--success { background: rgba(197, 217, 27, 0.28); color: var(--ew-plum-deep); }
.ew-form__notice--error { background: rgba(245, 154, 42, 0.18); color: var(--ew-plum-deep); }

.ew-contact-direct {
  background: var(--ew-plum);
  color: var(--ew-cream);
  padding: var(--ew-space-md);
  border-radius: var(--ew-radius);
  height: fit-content;
}

.ew-contact-direct h3 { color: var(--ew-cream); }
.ew-contact-direct a { text-decoration: underline; text-underline-offset: 3px; }
.ew-contact-direct dl { margin: 1rem 0 0; }
.ew-contact-direct dt { font-size: 0.85rem; opacity: 0.75; margin-top: 1rem; }
.ew-contact-direct dd { margin: 0.2rem 0 0; font-size: 1.05rem; }

@media (max-width: 900px) {
  .ew-contact-wrap { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.ew-site-footer { background: var(--ew-plum-deep); color: rgba(247, 241, 231, 0.85); padding: var(--ew-space-lg) 1.75rem var(--ew-space-md); }

.ew-site-footer__inner {
  max-width: var(--ew-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--ew-space-md);
}

.ew-site-footer h2, .ew-site-footer h3 { color: var(--ew-cream); }

.ew-footer-tagline { font-family: var(--ew-font-display); font-style: italic; font-size: 1.2rem; max-width: 32ch; color: var(--ew-cream); }

.ew-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ew-footer-links a:hover { color: var(--ew-lime); }

.ew-footer-bottom {
  max-width: var(--ew-max-width);
  margin: var(--ew-space-md) auto 0;
  padding-top: var(--ew-space-sm);
  border-top: 1px solid rgba(247, 241, 231, 0.15);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.ew-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.ew-reveal.is-visible { opacity: 1; transform: translateY(0); }

.ew-reveal-child {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--ew-delay, 0s);
}
.ew-reveal-child.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .ew-reveal, .ew-reveal-child { opacity: 1; transform: none; }
}
