/*
Theme Name: Elegant Wolves Labs
Theme URI: https://elegantwolves.com
Author: Elegant Wolves Labs
Author URI: https://elegantwolves.com
Description: Obsidian Lab theme for Elegant Wolves Labs. Standalone (not a CareSync/HealthFlex child). Tokens match WD-2 design system. Built for WPBakery + Yoast on Hostinger staging.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elegant-wolves
Tags: dark, custom-menu, featured-images, blog
*/

/* ------------------------------------------------------------------ */
/* Obsidian Lab tokens (must match ROWAN-HANDOFF exactly)             */
/* ------------------------------------------------------------------ */
:root {
  --ewl-bg: #0B0D10;
  --ewl-surface: #12151A;
  --ewl-surface2: #1A1E24;
  --ewl-bone: #F4F0E8;
  --ewl-muted: #A8A29A;
  --ewl-faint: #7A746C;
  --ewl-copper: #C4784A;
  --ewl-line: #2A2E36;
  --ewl-placeholder: #2C313A;
  --ewl-radius-card: 16px;
  --ewl-radius-card-m: 14px;
  --ewl-radius-btn: 8px;
  --ewl-radius-step: 12px;
  --ewl-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ewl-font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ewl-pad-x: 72px;
  --ewl-max: 1440px;
}

/* ------------------------------------------------------------------ */
/* Reset / base                                                        */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--ewl-bg);
  color: var(--ewl-bone);
  font-family: var(--ewl-font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ewl-copper); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
.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;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.ewl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--ewl-radius-btn);
  background: var(--ewl-copper);
  color: #0B0D10 !important;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ewl-btn:hover { filter: brightness(1.08); color: #0B0D10 !important; }
.ewl-btn-lg { padding: 14px 22px; font-size: 14px; }
.ewl-btn-ghost {
  background: transparent;
  color: var(--ewl-bone) !important;
  border: 1px solid var(--ewl-line);
  font-weight: 500;
}
.ewl-btn-ghost:hover { border-color: var(--ewl-copper); color: var(--ewl-copper) !important; }

/* ------------------------------------------------------------------ */
/* Site chrome — header / nav                                          */
/* ------------------------------------------------------------------ */
.ewl-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ewl-line);
}
.ewl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--ewl-max);
  margin: 0 auto;
  padding: 20px var(--ewl-pad-x);
}
.ewl-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ewl-font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ewl-bone) !important;
  flex-shrink: 0;
}
.ewl-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ewl-surface2);
  object-fit: contain;
}
.ewl-nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.ewl-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ewl-muted);
  font-size: 14px;
  font-weight: 500;
}
.ewl-nav-links a { color: var(--ewl-muted); }
.ewl-nav-links a:hover {
  color: var(--ewl-bone);
}
.ewl-nav-links a.active,
.ewl-nav-links .current-menu-item > a {
  color: var(--ewl-bone);
  box-shadow: inset 0 -2px 0 var(--ewl-copper);
}
.ewl-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ewl-line);
  color: var(--ewl-bone);
  border-radius: var(--ewl-radius-btn);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}
.ewl-nav-cta { flex-shrink: 0; }

/* ------------------------------------------------------------------ */
/* Site chrome — footer                                                */
/* ------------------------------------------------------------------ */
.ewl-site-footer {
  padding: 48px var(--ewl-pad-x);
  border-top: 1px solid var(--ewl-line);
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--ewl-faint);
  font-size: 13px;
  max-width: var(--ewl-max);
  margin: 0 auto;
}
.ewl-site-footer .ewl-brand { margin-bottom: 12px; }
.ewl-footer-meta p { margin-top: 0; }
.ewl-footer-meta p + p { margin-top: 8px; }
.ewl-footer-cols { display: flex; gap: 48px; }
.ewl-footer-cols h4 {
  color: var(--ewl-bone);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--ewl-font-ui);
}
.ewl-footer-cols li { margin-bottom: 8px; }
.ewl-footer-cols a { color: var(--ewl-faint); }
.ewl-footer-cols a:hover { color: var(--ewl-copper); }

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */
.ewl-wrap { max-width: var(--ewl-max); margin: 0 auto; }
.ewl-pad-x { padding-left: var(--ewl-pad-x); padding-right: var(--ewl-pad-x); }
.ewl-eyebrow {
  color: var(--ewl-copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.ewl-lede {
  color: var(--ewl-muted);
  font-size: 18px;
  line-height: 28px;
  max-width: 720px;
}
.ewl-cat {
  color: var(--ewl-copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.ewl-link-copper {
  color: var(--ewl-copper) !important;
  font-size: 14px;
  font-weight: 500;
}
.ewl-link-copper:hover { filter: brightness(1.1); }

/* Hero (home) */
.ewl-hero {
  padding: 96px var(--ewl-pad-x);
  max-width: 980px;
}
.ewl-hero .ewl-eyebrow { margin-bottom: 28px; }
.ewl-hero h1 {
  font-family: var(--ewl-font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 58px;
  margin-bottom: 28px;
  color: var(--ewl-bone);
}
.ewl-hero .ewl-lede { margin-bottom: 28px; }
.ewl-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Page hero */
.ewl-page-hero {
  padding: 80px var(--ewl-pad-x) 48px;
  max-width: 920px;
}
.ewl-page-hero h1 {
  font-family: var(--ewl-font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  margin-bottom: 20px;
  color: var(--ewl-bone);
}

/* Blocks */
.ewl-block { padding: 80px var(--ewl-pad-x); }
.ewl-block-sm { padding: 40px var(--ewl-pad-x) 80px; }
.ewl-block-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ewl-block-h h2 {
  font-family: var(--ewl-font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ewl-bone);
}

/* Capability strip */
.ewl-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px var(--ewl-pad-x);
  background: var(--ewl-surface);
  border-top: 1px solid var(--ewl-line);
  border-bottom: 1px solid var(--ewl-line);
}
.ewl-caps h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: var(--ewl-font-ui);
  color: var(--ewl-bone);
}
.ewl-caps p {
  font-size: 13px;
  color: var(--ewl-faint);
  line-height: 1.45;
}

/* Cards / portfolio */
.ewl-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ewl-card {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  overflow: hidden;
}
.ewl-ph {
  height: 200px;
  background: var(--ewl-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ewl-faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 1px dashed #3A404A;
  text-align: center;
  padding: 16px;
}
.ewl-card-body { padding: 24px; }
.ewl-card-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #0B0D10;
}
.ewl-card h3 {
  font-family: var(--ewl-font-display);
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ewl-bone);
}
.ewl-card p {
  color: var(--ewl-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ewl-card .ewl-visit {
  color: var(--ewl-copper) !important;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
  display: inline-block;
}

/* Steps */
.ewl-how { background: var(--ewl-surface); }
.ewl-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ewl-step {
  padding: 20px;
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-step);
  background: var(--ewl-bg);
}
.ewl-how .ewl-step { background: var(--ewl-bg); }
.ewl-steps-page .ewl-step {
  background: var(--ewl-surface);
  padding: 24px;
  min-height: 200px;
}
.ewl-step .ewl-n {
  color: var(--ewl-copper);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ewl-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-family: var(--ewl-font-ui);
  color: var(--ewl-bone);
}
.ewl-steps-page .ewl-step h3 {
  font-family: var(--ewl-font-display);
  font-size: 20px;
  margin-bottom: 10px;
}
.ewl-step p {
  font-size: 13px;
  color: var(--ewl-faint);
  line-height: 1.45;
}
.ewl-steps-page .ewl-step p {
  font-size: 14px;
  color: var(--ewl-muted);
  line-height: 1.5;
}

/* Trust / final CTA */
.ewl-trust { text-align: center; max-width: 760px; margin: 0 auto; }
.ewl-trust h2 {
  font-family: var(--ewl-font-display);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--ewl-bone);
}
.ewl-trust p {
  color: var(--ewl-muted);
  font-size: 16px;
  line-height: 1.6;
}
.ewl-final {
  background: var(--ewl-surface2);
  text-align: center;
  padding: 80px var(--ewl-pad-x);
}
.ewl-final h2 {
  font-family: var(--ewl-font-display);
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--ewl-bone);
}
.ewl-final p {
  color: var(--ewl-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* Services hub */
.ewl-services {
  padding: 24px var(--ewl-pad-x) 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ewl-svc {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.ewl-svc .ewl-cat { margin-bottom: 12px; }
.ewl-svc h2 {
  font-family: var(--ewl-font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--ewl-bone);
}
.ewl-svc .ewl-blurb {
  color: var(--ewl-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.ewl-svc ul { margin-bottom: 24px; }
.ewl-svc li {
  color: var(--ewl-faint);
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 0 8px 18px;
  position: relative;
  border-top: 1px solid var(--ewl-line);
}
.ewl-svc li::before {
  content: "·";
  color: var(--ewl-copper);
  position: absolute;
  left: 4px;
  font-weight: 700;
}
.ewl-svc .ewl-link-copper { margin-top: auto; }

/* Engagement note */
.ewl-engage {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  padding: 32px 36px;
  max-width: 900px;
  margin-top: 40px;
}
.ewl-engage h2 {
  font-family: var(--ewl-font-display);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ewl-bone);
}
.ewl-engage p {
  color: var(--ewl-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* About */
.ewl-about-hero {
  padding-top: 80px;
}
.ewl-about-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 32px 40px;
  align-items: stretch;
  max-width: 1120px;
}
.ewl-about-main > h1 {
  font-family: var(--ewl-font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  margin-bottom: 20px;
  color: var(--ewl-bone);
}
.ewl-about-main > .ewl-lede {
  margin-bottom: 28px;
}
.ewl-story { max-width: none; }
.ewl-story p {
  color: var(--ewl-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.ewl-lead-card {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  padding: 36px;
  max-width: none;
  margin-top: 40px;
}
.ewl-lead-card h2 {
  font-family: var(--ewl-font-display);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--ewl-bone);
}
.ewl-lead-card p {
  color: var(--ewl-muted);
  font-size: 15px;
  line-height: 1.6;
}
.ewl-about-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.ewl-atelier {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
  position: relative;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  height: auto;
  overflow: hidden; /* keep soft glow inside right column */
  z-index: 0;
}
.ewl-atelier-glow {
  /* in-flow grid cell only — never absolute on the aside */
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}
.ewl-atelier-glow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}
.ewl-atelier-plate {
  display: none;
}
.ewl-atelier-label,
.ewl-atelier-note {
  display: none;
}
.ewl-trust-line {
  margin-top: 40px;
  max-width: 1120px;
  color: var(--ewl-faint);
  font-size: 14px;
  line-height: 1.55;
  border-top: 1px solid var(--ewl-line);
  padding-top: 24px;
}
@media (max-width: 900px) {
  .ewl-about-hero {
    padding-top: 56px;
  }
  .ewl-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ewl-about-main > h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .ewl-atelier {
    position: relative;
    height: auto;
    min-height: 360px;
    max-width: none;
    margin: 0;
    order: -1;
    aspect-ratio: 1 / 1.05;
  }
  .ewl-atelier-glow {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
  }
  .ewl-atelier-glow-img {
    position: absolute;
    inset: 0;
    max-width: none;
    width: 100%;
    height: 100%;
    max-height: none;
  }
}

/* Contact */
.ewl-contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 32px;
  padding: 24px var(--ewl-pad-x) 80px;
  align-items: start;
}
.ewl-form {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  padding: 36px;
}
.ewl-form h2 {
  font-family: var(--ewl-font-display);
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--ewl-bone);
}
.ewl-form .ewl-hint {
  color: var(--ewl-faint);
  font-size: 13px;
  margin-bottom: 28px;
}
.ewl-field { margin-bottom: 18px; }
.ewl-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ewl-muted);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.ewl-field input,
.ewl-field select,
.ewl-field textarea {
  width: 100%;
  background: var(--ewl-bg);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-btn);
  color: var(--ewl-bone);
  font-size: 14px;
  padding: 12px 14px;
}
.ewl-field input::placeholder,
.ewl-field textarea::placeholder { color: var(--ewl-faint); }
.ewl-field textarea { min-height: 120px; resize: vertical; }
.ewl-field select { appearance: none; background-image: none; }
.ewl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.ewl-spam-note {
  color: var(--ewl-faint);
  font-size: 12px;
  margin-top: 16px;
  line-height: 1.45;
}
.ewl-side {
  background: var(--ewl-surface2);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  padding: 32px;
}
.ewl-side h3 {
  font-family: var(--ewl-font-display);
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--ewl-bone);
}
.ewl-side .ewl-row { margin-bottom: 18px; }
.ewl-side .ewl-k {
  color: var(--ewl-faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ewl-side .ewl-v { color: var(--ewl-bone); font-size: 15px; }

/* Blog */
.ewl-badge {
  display: inline-block;
  background: var(--ewl-surface2);
  color: var(--ewl-copper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
  width: fit-content;
}
.ewl-meta {
  color: var(--ewl-faint);
  font-size: 13px;
  margin-bottom: 14px;
}
.ewl-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card);
  overflow: hidden;
}
.ewl-featured .ewl-ph {
  height: 100%;
  min-height: 280px;
  border-bottom: none;
  border-right: 1px dashed #3A404A;
}
.ewl-featured .ewl-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ewl-featured h2 {
  font-family: var(--ewl-font-display);
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ewl-bone);
}
.ewl-featured p {
  color: var(--ewl-muted);
  font-size: 15px;
  line-height: 1.55;
}
.ewl-grid-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ewl-post-card {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-card-m);
  overflow: hidden;
}
.ewl-post-card .ewl-ph { height: 140px; }
.ewl-post-card .ewl-body { padding: 20px; }
.ewl-post-card h3 {
  font-family: var(--ewl-font-display);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ewl-bone);
}
.ewl-post-card p {
  color: var(--ewl-muted);
  font-size: 14px;
  line-height: 1.55;
}
.ewl-yoast-note {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px dashed var(--ewl-line);
  border-radius: var(--ewl-radius-step);
  color: var(--ewl-faint);
  font-size: 13px;
  line-height: 1.5;
}

/* Blog single */
.ewl-post-wrap {
  max-width: 720px;
  padding: 80px var(--ewl-pad-x) 40px;
}
.ewl-post-wrap h1 {
  font-family: var(--ewl-font-display);
  font-size: 40px;
  line-height: 48px;
  margin-bottom: 16px;
  color: var(--ewl-bone);
}
.ewl-post-wrap .ewl-meta { font-size: 14px; margin-bottom: 32px; }
.ewl-body-copy p {
  color: var(--ewl-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.ewl-body-copy h2 {
  font-family: var(--ewl-font-display);
  font-size: 24px;
  color: var(--ewl-bone);
  margin: 36px 0 14px;
}
.ewl-related {
  padding: 40px var(--ewl-pad-x) 80px;
  border-top: 1px solid var(--ewl-line);
}
.ewl-related h2 {
  font-family: var(--ewl-font-display);
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--ewl-bone);
}
.ewl-rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ewl-rel {
  background: var(--ewl-surface);
  border: 1px solid var(--ewl-line);
  border-radius: var(--ewl-radius-step);
  padding: 20px;
}
.ewl-rel .ewl-meta { margin-bottom: 8px; font-size: 12px; }
.ewl-rel h3 {
  font-family: var(--ewl-font-display);
  font-size: 16px;
  color: var(--ewl-bone);
}

/* WP content area safety for WPBakery */
.ewl-content {
  min-height: 40vh;
}
.ewl-content .wpb_wrapper > *:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  :root { --ewl-pad-x: 40px; }
  .ewl-caps { grid-template-columns: repeat(2, 1fr); }
  .ewl-steps { grid-template-columns: repeat(3, 1fr); }
  .ewl-cards,
  .ewl-grid-posts,
  .ewl-rel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --ewl-pad-x: 20px;
    --ewl-radius-card: 14px;
  }
  .ewl-nav { padding: 16px var(--ewl-pad-x); }
  .ewl-nav-panel { display: none; }
  .ewl-nav.is-open .ewl-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ewl-bg);
    border-bottom: 1px solid var(--ewl-line);
    padding: 20px;
    gap: 16px;
    z-index: 50;
  }
  .ewl-nav.is-open .ewl-nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }
  .ewl-nav-toggle { display: inline-flex; }
  .ewl-brand { font-size: 16px; }
  .ewl-brand span.ewl-brand-text { max-width: 160px; line-height: 1.2; }

  .ewl-hero { padding: 56px var(--ewl-pad-x) 48px; }
  .ewl-hero h1 { font-size: 32px; line-height: 40px; }
  .ewl-page-hero { padding: 56px var(--ewl-pad-x) 32px; }
  .ewl-page-hero h1 { font-size: 32px; line-height: 40px; }
  .ewl-lede { font-size: 16px; line-height: 26px; }

  .ewl-caps {
    grid-template-columns: 1fr;
    padding: 28px var(--ewl-pad-x);
  }
  .ewl-block,
  .ewl-block-sm,
  .ewl-final { padding: 56px var(--ewl-pad-x); }
  .ewl-block-h h2 { font-size: 26px; }
  .ewl-cards,
  .ewl-grid-posts,
  .ewl-rel-grid,
  .ewl-steps,
  .ewl-services { grid-template-columns: 1fr; }
  .ewl-steps-page .ewl-step { min-height: 0; }
  .ewl-final h2 { font-size: 28px; }
  .ewl-services { padding: 16px var(--ewl-pad-x) 56px; }
  .ewl-svc { min-height: 0; padding: 28px; }
  .ewl-contact-grid {
    grid-template-columns: 1fr;
    padding: 16px var(--ewl-pad-x) 56px;
  }
  .ewl-featured { grid-template-columns: 1fr; }
  .ewl-featured .ewl-ph {
    min-height: 180px;
    border-right: none;
    border-bottom: 1px dashed #3A404A;
  }
  .ewl-post-wrap {
    padding: 56px var(--ewl-pad-x) 32px;
  }
  .ewl-post-wrap h1 { font-size: 28px; line-height: 36px; }
  .ewl-site-footer {
    flex-direction: column;
    padding: 40px var(--ewl-pad-x);
  }
  .ewl-footer-cols {
    flex-direction: column;
    gap: 28px;
  }
}
