/* ==========================================================================
   braveset theme — clean black, white and gray look (echo.ma-inspired).
   Loaded after style.css on every page; everything is scoped to
   body.theme-echo so it overrides the dark template defaults.
   ========================================================================== */

:root {
  --ec-bg: #ffffff;
  --ec-bg-soft: #f5f5f7;
  --ec-fg: #1e1e1f;
  --ec-muted: #6e6e73;
  --ec-border: #e4e4e7;
  --ec-primary: #111111;
  --ec-primary-dark: #000000;
  --ec-primary-soft: #f2f2f4;
  --ec-accent: #86868b; /* gray second line in headlines */
  --ec-blue: #0054d1;
  /* Film-grain texture used on the blue surfaces */
  --ec-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ec-blue-surface: var(--ec-grain), radial-gradient(120% 140% at 85% 0%, #3b7cf0 0%, #0054d1 45%, #003c99 100%);
  --ec-radius: 1rem;
  --ec-radius-lg: 1.75rem;
  --ec-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.06);
  --ec-font: "Geist", -apple-system, "system-ui", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
body.theme-echo,
body.theme-echo.h-minimal,
body.theme-echo main,
body.theme-echo .main-content,
body.theme-echo .bg-dark {
  background: var(--ec-bg) !important;
  color: var(--ec-fg);
}

/* Text font everywhere, but leave icon fonts (pe-7s, Font Awesome, etc.) alone */
body.theme-echo,
body.theme-echo :is(h1, h2, h3, h4, h5, h6, p, a, span, li, input, textarea, button, label):not([class*="pe-7s"]):not([class*="fa-"]):not([class^="fa"]):not([class*="ion-"]):not([class*="flaticon"]) {
  font-family: var(--ec-font) !important;
}

body.theme-echo h1, body.theme-echo h2, body.theme-echo h3,
body.theme-echo h4, body.theme-echo h5, body.theme-echo h6 {
  color: var(--ec-fg);
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.theme-echo p {
  color: var(--ec-muted) !important;
  font-weight: 400 !important;
  line-height: 1.65;
}

body.theme-echo a { color: inherit; }
body.theme-echo a:hover { color: var(--ec-primary); }

/* The template's outlined "stroke" words become solid brand blue */
body.theme-echo .stroke {
  -webkit-text-stroke: 0 !important;
  color: var(--ec-accent) !important;
}

/* Icons and small section labels (SERVICES, AGENCY…) use the brand blue */
body.theme-echo .main-color { color: var(--ec-blue) !important; }
body.theme-echo .sub-title.main-color { letter-spacing: 0.08em; font-weight: 600; }
body.theme-echo .sub-bg, body.theme-echo .sub-bg2 { background: var(--ec-bg-soft) !important; }
body.theme-echo .bord-thin-top { border-top-color: var(--ec-border) !important; }
body.theme-echo .bord-thin-bottom { border-bottom-color: var(--ec-border) !important; }
body.theme-echo main .vline,
body.theme-echo main .slines { display: none; }

/* Drop the template's custom cursor */
body.theme-echo .mouse-cursor { display: none !important; }

/* Scroll-to-top button */
body.theme-echo .progress-wrap { box-shadow: inset 0 0 0 1px var(--ec-border); }
body.theme-echo .progress-wrap::after { color: var(--ec-primary); }
body.theme-echo .progress-wrap svg.progress-circle path { stroke: var(--ec-primary); }

/* ---------- Buttons ---------- */
body.theme-echo .ec-btn,
body.theme-echo .navbar .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px !important;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
body.theme-echo .ec-btn-primary,
body.theme-echo .navbar .btn-primary {
  background: var(--ec-primary) !important;
  border-color: var(--ec-primary) !important;
  color: #fff !important;
}
body.theme-echo .navbar .btn-primary * { color: #fff !important; }
body.theme-echo .ec-btn-primary:hover,
body.theme-echo .navbar .btn-primary:hover {
  background: var(--ec-primary-dark) !important;
  color: #fff !important;
}
body.theme-echo .navbar .btn-primary { padding: 10px 18px; font-size: 14px; }
/* Navbar "Contact us" uses the same grainy blue surface as the CTA banner */
body.theme-echo .navbar .btn-primary,
body.theme-echo .navbar .btn-primary:hover {
  background: var(--ec-blue-surface) !important;
  background-color: #0054d1 !important;
  border-color: #0054d1 !important;
}
body.theme-echo .navbar .btn-primary:hover { filter: brightness(1.12); }
body.theme-echo .navbar .dark-mode-icon { animation: none !important; }
body.theme-echo .navbar .dark-mode-icon::before { display: none; }
body.theme-echo .ec-btn-ghost {
  background: transparent;
  color: var(--ec-fg) !important;
  padding-left: 4px;
  padding-right: 4px;
}
body.theme-echo .ec-btn-ghost:hover { color: var(--ec-muted) !important; }
body.theme-echo .ec-btn-light {
  background: #fff;
  color: var(--ec-fg) !important;
}
body.theme-echo .ec-btn-light:hover { transform: translateY(-1px); background: #f2f2f4; color: var(--ec-blue) !important; }

/* ---------- Navbar ---------- */
body.theme-echo .navbar,
body.theme-echo .navbar.nav-scroll {
  background: rgba(255, 255, 255, 0.82) !important;
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ec-border);
  box-shadow: none !important;
}
body.theme-echo .navbar { padding: 14px 0; }
body.theme-echo .navbar.nav-scroll { padding: 10px 0; }
body.theme-echo .navbar .logo .logo-light { opacity: 0 !important; visibility: hidden !important; }
body.theme-echo .navbar .logo .logo-dark { opacity: 1 !important; visibility: visible !important; }
body.theme-echo .navbar .navbar-nav .nav-link {
  color: var(--ec-muted) !important;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px !important;
}
body.theme-echo .navbar .navbar-nav .nav-link:hover,
body.theme-echo .navbar .navbar-nav .nav-link.active { color: var(--ec-fg) !important; }
body.theme-echo .navbar .navbar-toggler,
body.theme-echo .navbar .navbar-toggler i { color: var(--ec-fg) !important; }
@media (max-width: 991px) {
  body.theme-echo .navbar .navbar-collapse {
    background: #fff !important;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    margin-top: 12px;
    padding: 12px;
  }
}

/* ---------- Generic section helpers ---------- */
body.theme-echo .ec-section { padding: 120px 0; }
body.theme-echo .ec-soft { background: var(--ec-bg-soft) !important; }
body.theme-echo .ec-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-muted);
  margin-bottom: 14px;
}
body.theme-echo .ec-title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
body.theme-echo .ec-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 620px;
}
body.theme-echo .ec-head { margin-bottom: 56px; }
body.theme-echo .ec-head .ec-lead { margin-top: 18px; }

/* ---------- Hero ---------- */
body.theme-echo .ec-hero { padding: 170px 0 40px; }
body.theme-echo .ec-hero h1 {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
body.theme-echo .ec-hero h1 span { color: var(--ec-blue); }
body.theme-echo .ec-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

body.theme-echo .ec-hero .ec-lead { margin-bottom: 28px; }
body.theme-echo .ec-hero h1 { margin-bottom: 0; }
body.theme-echo .ec-hero-img {
  margin-top: 64px;
  border-radius: var(--ec-radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--ec-bg-soft);
}
body.theme-echo .ec-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
@media (max-width: 991px) {
  body.theme-echo .ec-hero h1 { margin-bottom: 24px; }
  body.theme-echo .ec-hero-img { margin-top: 48px; aspect-ratio: 4 / 3; }
}

/* ---------- echo section keeps echo's blue ---------- */
body.theme-echo .ec-echo {
  --ec-primary: #0054d1;
  --ec-primary-dark: #0046b3;
  --ec-primary-soft: #eaf1fc;
  --ec-accent: #0054d1;
  background: linear-gradient(180deg, #f5f8ff 0%, #f5f5f7 100%) !important;
}
body.theme-echo .ec-echo .ec-btn-ghost { color: var(--ec-primary) !important; }
body.theme-echo .ec-echo .ec-btn-ghost:hover { color: var(--ec-primary-dark) !important; }

/* ---------- echo brand ---------- */
body.theme-echo .ec-brand { display: inline-flex; align-items: center; gap: 10px; }
body.theme-echo .ec-brand img { width: auto; height: 28px; }
body.theme-echo .ec-brand b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--ec-fg); }
body.theme-echo .ec-brand.sm img { height: 18px; }
body.theme-echo .ec-brand.sm b { font-size: 16px; }

/* ---------- Cards ---------- */
body.theme-echo .ec-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
body.theme-echo .ec-card:hover { transform: translateY(-3px); box-shadow: var(--ec-shadow); border-color: transparent; }
body.theme-echo .ec-card .ec-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #eaf1fc; color: var(--ec-blue);
  font-size: 28px; margin-bottom: 24px;
}
body.theme-echo .ec-card h5 { font-size: 21px; margin-bottom: 10px; }
body.theme-echo .ec-card p { margin: 0; font-size: 15.5px; }
body.theme-echo .ec-grid { row-gap: 24px; }

/* Stats strip inside the echo section */
body.theme-echo .ec-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-lg); margin-top: 24px; overflow: hidden;
}
body.theme-echo .ec-stats > div { padding: 26px 28px; border-left: 1px solid var(--ec-border); }
body.theme-echo .ec-stats > div:first-child { border-left: 0; }
body.theme-echo .ec-stats strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ec-fg); }
body.theme-echo .ec-stats span { font-size: 14px; color: var(--ec-muted); }
@media (max-width: 767px) {
  body.theme-echo .ec-stats { grid-template-columns: repeat(2, 1fr); }
  body.theme-echo .ec-stats > div:nth-child(3) { border-left: 0; }
  body.theme-echo .ec-stats > div:nth-child(n+3) { border-top: 1px solid var(--ec-border); }
}

/* ---------- Clients ---------- */
body.theme-echo .ec-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
body.theme-echo .ec-logos .ec-logo {
  display: flex; align-items: center; justify-content: center;
  height: 110px; padding: 24px 32px;
  border: 1px solid var(--ec-border); border-radius: var(--ec-radius);
  background: #fff;
}
body.theme-echo .ec-logos img {
  max-height: 46px; width: auto; max-width: 100%;
  filter: brightness(0); opacity: 0.55; transition: opacity 0.2s;
}
body.theme-echo .ec-logos .ec-logo:hover img { opacity: 0.9; }
@media (max-width: 767px) {
  body.theme-echo .ec-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA banner ---------- */
body.theme-echo .ec-cta {
  background: var(--ec-blue-surface);
  background-color: #0054d1;
  border-radius: var(--ec-radius-lg);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
body.theme-echo .ec-cta h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
body.theme-echo .ec-cta p { color: rgba(255,255,255,.8) !important; font-size: 18px; margin: 16px 0 32px; }
body.theme-echo .ec-cta .ec-btn-outline { border-color: rgba(255,255,255,.45); color: #fff !important; }
body.theme-echo .ec-cta .ec-btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Footer ---------- */
body.theme-echo .main-footer { background: var(--ec-bg-soft) !important; color: var(--ec-fg); }
body.theme-echo .main-footer .logo .logo-light { display: none !important; }
body.theme-echo .main-footer .logo .logo-dark { display: block !important; opacity: 1 !important; visibility: visible !important; position: static !important; }
body.theme-echo .main-footer .logo img { max-width: 140px; }
body.theme-echo .main-footer .title { font-size: 15px !important; font-weight: 600; color: var(--ec-fg); }
body.theme-echo .main-footer a, body.theme-echo .main-footer li { color: var(--ec-muted); font-size: 15px; }
body.theme-echo .main-footer a:hover { color: var(--ec-primary); }
body.theme-echo .main-footer .sub-footer { border-top-color: var(--ec-border) !important; }
body.theme-echo .main-footer .sub-footer .logo { display: none; }

/* ---------- Inner pages (agency, services, contact, legal) ---------- */
body.theme-echo .serv-item,
body.theme-echo .item-box,
body.theme-echo .feat .item,
body.theme-echo .box-bg .item {
  background: #fff !important;
  border: 1px solid var(--ec-border) !important;
  border-radius: var(--ec-radius-lg) !important;
}
body.theme-echo .serv-item h5,
body.theme-echo .bord-thin-bottom { border-color: var(--ec-border) !important; }
body.theme-echo .clients .brands .img img { filter: brightness(0); opacity: 0.55; }
body.theme-echo .clients .brands .link { color: var(--ec-muted) !important; }
body.theme-echo .go-more { color: var(--ec-fg) !important; }
body.theme-echo .go-more::after, body.theme-echo .go-more::before { border-color: var(--ec-border) !important; }
body.theme-echo .main-marq .box .item h4,
body.theme-echo .main-marq .box .item h4 a { color: var(--ec-fg) !important; -webkit-text-stroke: 0 !important; }
body.theme-echo .main-marq .box .item:nth-of-type(even) h4,
body.theme-echo .main-marq .box .item:nth-of-type(even) h4 a { color: var(--ec-accent) !important; }
body.theme-echo .main-marq::after { background: linear-gradient(to left, #fff, rgba(255,255,255,0) 220px, rgba(255,255,255,0) calc(100% - 220px), #fff) !important; }
body.theme-echo .butn, body.theme-echo .butn-bord, body.theme-echo .butn-bg {
  border-radius: 9999px !important;
}
body.theme-echo .butn-bg { background: var(--ec-primary) !important; border-color: var(--ec-primary) !important; }
body.theme-echo .butn-bg span, body.theme-echo .butn-bg * { color: #fff !important; }
body.theme-echo .butn-bord { border-color: var(--ec-border) !important; color: var(--ec-fg) !important; }
body.theme-echo input, body.theme-echo textarea, body.theme-echo select {
  background: #fff !important;
  color: var(--ec-fg) !important;
  border: 1px solid var(--ec-border) !important;
  border-radius: 12px !important;
}
body.theme-echo input:focus, body.theme-echo textarea:focus {
  border-color: var(--ec-primary) !important;
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08) !important;
}
body.theme-echo .page-header, body.theme-echo .page-intro, body.theme-echo .header-page {
  background: var(--ec-bg) !important;
}

/* Form submit buttons (contact page) */
body.theme-echo form button[type="submit"] {
  background: var(--ec-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9999px !important;
  padding: 14px 26px !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background 0.2s;
}
body.theme-echo form button[type="submit"] * { color: #fff !important; }
body.theme-echo form button[type="submit"]:hover { background: var(--ec-primary-dark) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  body.theme-echo .ec-hero { padding: 130px 0 24px; }
  body.theme-echo .ec-section { padding: 88px 0; }
  body.theme-echo .ec-cta { padding: 48px 28px; }
}
@media (max-width: 575px) {
  body.theme-echo .ec-section { padding: 72px 0; }
  body.theme-echo .ec-card { padding: 26px; }
  body.theme-echo .container-xxl { padding-left: 16px; padding-right: 16px; }
}
